Currently I'm using GSIndustryType.BuildIndustry and GSTown.FoundTown for scripted scenario,
but is it possible to build newgrf objects?
I did not found any functions for such action.
Object building?
Moderator: OpenTTD Developers
Re: Object building?
As far as I know, noone has implemented NewObjects building for GS yet. From my guess of how NewObject spec works, it could probably only work for GSes targeting specific NewObject NewGRFs. Thus it will work for scripted scenarios but not very good for generic GSes. With that I don't say that I'm against a such API, only that its use cases is more narrow than town and industry construction which is a likely reason why the API doesn't yet exist. Creating that API will require several hours of work, so API methods are usually only added if it seems that they will have a use case.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Object building?
http://nogo.openttd.org/api/trunk/class ... 6c54fe9517Zuu wrote:As far as I know, noone has implemented NewObjects building for GS yet
Wonder who add this function, as it seems to contradict you

- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Object building?
A NewGRF-changed rail station is not a NewObject; it's still a rail station.krinn wrote:http://nogo.openttd.org/api/trunk/class ... 6c54fe9517Zuu wrote:As far as I know, noone has implemented NewObjects building for GS yet
Wonder who add this function, as it seems to contradict you
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Who is online
Users browsing this forum: No registered users and 12 guests