Thank you, Zuu, correct. With the link that XeryusTC provided, I recompiled openttd, so the problem was already solved. Maybe I'll use your commandline solution from now on, because then I don't have to wait until it starts.Zuu wrote:EDIT: I guess you wanted to remove NoAI so that you're AI become the only AI because of the issue described above. If your reasons are other, I'm sorry I've misinterpreted you.
I have been playing around today with Squirrel, and I started writing a routine that would return me two towns that are close together, and have a high number of potential passengers. Initially, I took the populations for it, but because XeryusTC gave me the link to the sourcefiles, I decided to add the following functions, and give myself Squirrel access to them:
Code: Select all
uint32 GetMaxPass(TownID town_id);
uint32 GetMaxMail(TownID town_id);
uint32 GetNewMaxPass(TownID town_id);
uint32 GetNewMaxMail(TownID town_id);
uint32 GetActPass(TownID town_id);
uint32 GetActMail(TownID town_id);
uint32 GetNewActPass(TownID town_id);
uint32 GetNewActMail(TownID town_id);
byte GetPctPassTransported(TownID town_id);
byte GetPctMailTransported(TownID town_id);
I just wonder what
Code: Select all
GetPctPassTransported
GetPctMailTransported
As a final remark for today, I noticed that in certain cases openttd gives a runtime exception, and dies. This has been the case when the Squirrel script could not be compiled, but depends on the details. MSVC catches and asks to debug (keeping the windows open), so I could see that Squirrel was complaining about being unable to compile.
Thank you all for your answers.