Re: ChooChoo, a train network AI
Posted: 16 Jan 2013 07:18
Millennium Z1 is actually a default monorail vehicle.
The place to talk about Transport Tycoon
https://www.tt-forums.net/
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [CheckError()] choochoo-409/task.nut line [142]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_stations.nut line [400]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_network.nut line [485]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [front] 153316
dbg: [script] [1] [S] [t] 153315
dbg: [script] [1] [S] [area] INSTANCE
dbg: [script] [1] [S] [maxRange] 6
dbg: [script] [1] [S] [curRange] 1
dbg: [script] [1] [S] [spotFound] false
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] ""
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [exit] ARRAY
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_network.nut line [434]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [stationRotation] 2
dbg: [script] [1] [S] [towns] INSTANCE
dbg: [script] [1] [S] [exit] ARRAY
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [CheckError()] choochoo-409/task.nut line [142]
dbg: [script] [1] [S] *FUNCTION [BuildPlatforms()] choochoo-409/builder_stations.nut line [239]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_stations.nut line [140]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_network.nut line [485]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [cover] 154850
dbg: [script] [1] [S] [platform2] 154851
dbg: [script] [1] [S] [platform1] 154850
dbg: [script] [1] [S] [direction] 2
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] ""
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [exit] ARRAY
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_network.nut line [434]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [stationRotation] 2
dbg: [script] [1] [S] [towns] INSTANCE
dbg: [script] [1] [S] [exit] ARRAY
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_track.nut line [58]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_network.nut line [245]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_network.nut line [485]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] " "
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [crossing] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] ""
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [exit] ARRAY
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_trains.nut line [188]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_trains.nut line [46]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_cargo.nut line [99]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [wagon] 57
dbg: [script] [1] [S] [wagonType] 315
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] " "
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] ""
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
Code: Select all
dbg: [script] [1] [S] Your script made an error: unknown error
dbg: [script] [1] [S]
dbg: [script] [1] [S] *FUNCTION [FindPath()] choochoo-409/builder_track.nut line [115]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_track.nut line [56]
dbg: [script] [1] [S] *FUNCTION [RunSubtasks()] choochoo-409/task.nut line [82]
dbg: [script] [1] [S] *FUNCTION [Run()] choochoo-409/builder_cargo.nut line [99]
dbg: [script] [1] [S] *FUNCTION [Start()] choochoo-409/main.nut line [75]
dbg: [script] [1] [S]
dbg: [script] [1] [S] [maxBridgeCost] 31526
dbg: [script] [1] [S] [u] 100
dbg: [script] [1] [S] [bridgeLength] 20
dbg: [script] [1] [S] [pathfinder] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [indent] ""
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [this] INSTANCE
dbg: [script] [1] [S] [task] INSTANCE
dbg: [script] [1] [S] [minMoney] 0
dbg: [script] [1] [S] [this] INSTANCE
It surely makes sense in a general sense to only build tracks where you can buy in their depots also engines to run on them, no?Michiel wrote:Hoi Darth! Probably not, since I'm not really supporting all the crazy newgrfs out there But I'll add it to the lists of things to maybe do
Absolutely. I've just been lazy and said "set rail type to AIRailTypeList().Begin()" because in the vanilla game, that gives you the most recent rail type (normal, electric, monorail, maglev) as they become available.planetmaker wrote:It surely makes sense in a general sense to only build tracks where you can buy in their depots also engines to run on them, no?
EDIT: I have the feeling that particularily in this area many merits are still to be won - and maybe doing so in a small train and track decision library might be a good idea which many can build on and profit from.
It looks like you have misunderstood the company ID placeholder. If you want to stop company 2 you should use:Gladius wrote:I did what you said but, it's like, every other AI got for example (company 2) next to their name, but ChooChoo got only ChooChoo and nothing else, making it impossible to delete from the game. It is in slot 2 when I open AI/GS debug but stop_ai <company_2> doesn't work.
Code: Select all
stop_ai 2
No worriesGladius wrote:And sorry for spamming topic with such a trivial question ; )