Page 1 of 1

Object building?

Posted: 27 Jan 2015 18:38
by Wahazar
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.

Re: Object building?

Posted: 27 Jan 2015 21:39
by Zuu
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.

Re: Object building?

Posted: 28 Jan 2015 14:44
by krinn
Zuu wrote:As far as I know, noone has implemented NewObjects building for GS yet
http://nogo.openttd.org/api/trunk/class ... 6c54fe9517
Wonder who add this function, as it seems to contradict you :)

Re: Object building?

Posted: 28 Jan 2015 14:53
by planetmaker
krinn wrote:
Zuu wrote:As far as I know, noone has implemented NewObjects building for GS yet
http://nogo.openttd.org/api/trunk/class ... 6c54fe9517
Wonder who add this function, as it seems to contradict you :)
A NewGRF-changed rail station is not a NewObject; it's still a rail station.