ChooChoo, a train network AI
Moderator: OpenTTD Developers
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: ChooChoo, a train network AI
Millennium Z1 is actually a default monorail vehicle.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
Re: ChooChoo, a train network AI
Thank you for your responses.
Here are the newgrf's I have been using. The version I am using is 409, however when using the previous version I used to use, 394, appears to be working without a problem.
I advanced it to 2022 to bypass the monorail era, and all that did was continue on with the problem but with lev 1 instead of millenium.
Hover Bus 1.0
PlaneSet 1.5.3(23/Oct/2006)
City Stations
eGRVTSv1.0
World Airliners Set Alpha Release
Bigger Train Depot
DB Double Deck Coaches
Long vehicles v4(13 Jan 2008)
Old Wagons with New Cargos 1.1
Total Town Replacement Set 3.11
Welsh Town Names
Speed upgrade for all default suspension bridges.
Hover Vehicles 1.0
Junkers JU-52
Longer Girder, Steel Bridge
Manual Industries II (nightly-r5)
NewCC Set
Improved Road Vehicles (for DB Set XL) v1.0
Town and Industry - UK Houses
DB Double Deck Coaches v0.3
I have tried with all removed less the plane sets.
Any suggestions are appreciated.
Steve
Here are the newgrf's I have been using. The version I am using is 409, however when using the previous version I used to use, 394, appears to be working without a problem.
I advanced it to 2022 to bypass the monorail era, and all that did was continue on with the problem but with lev 1 instead of millenium.
Hover Bus 1.0
PlaneSet 1.5.3(23/Oct/2006)
City Stations
eGRVTSv1.0
World Airliners Set Alpha Release
Bigger Train Depot
DB Double Deck Coaches
Long vehicles v4(13 Jan 2008)
Old Wagons with New Cargos 1.1
Total Town Replacement Set 3.11
Welsh Town Names
Speed upgrade for all default suspension bridges.
Hover Vehicles 1.0
Junkers JU-52
Longer Girder, Steel Bridge
Manual Industries II (nightly-r5)
NewCC Set
Improved Road Vehicles (for DB Set XL) v1.0
Town and Industry - UK Houses
DB Double Deck Coaches v0.3
I have tried with all removed less the plane sets.
Any suggestions are appreciated.
Steve
Re: ChooChoo, a train network AI
Hi Steve, thanks for the bug report! I'm afraid I haven't done any work on ChooChoo recently, but I'll see if I can reproduce and fix it.
Edit: sorry, but I can't seem to reproduce it here :-/ Started a game in 2010, temperate climate, and it successfully runs "Millenium Z1" locomotives with passenger and mail carriages, and diesels for cargo.
Edit: sorry, but I can't seem to reproduce it here :-/ Started a game in 2010, temperate climate, and it successfully runs "Millenium Z1" locomotives with passenger and mail carriages, and diesels for cargo.
Re: ChooChoo, a train network AI
Hey and thank you for your response.
I have uploaded my "unique" scenario and save game for you to have a look at to try and replicate.
http://www.mabono5.com/openttd/choochoo.zip
The map is purpose built due to a competition my brother and I started back in 1990's - who can make the most money, period, any way you can (I have won every time so far )
Thank you
Steve
I have uploaded my "unique" scenario and save game for you to have a look at to try and replicate.
http://www.mabono5.com/openttd/choochoo.zip
The map is purpose built due to a competition my brother and I started back in 1990's - who can make the most money, period, any way you can (I have won every time so far )
Thank you
Steve
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: ChooChoo, a train network AI
Seven different errors over the day...
Find savegame here
and before that a few times:
and
and
and
and
and
Find savegame here
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
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
Re: ChooChoo, a train network AI
Thanks PM! I don't have the right version to open the save game, but as far as I can tell they're regular "couldn't find a route, couldn't build in this spot" exceptions. Anything unusual about the map?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: ChooChoo, a train network AI
Pretty normal map, arctic, with a decent amount of water (30% or so), FISH, NUTS, av8, OpenGFX+Airports, OpenGFX+ Landscape.
A recent trunk version should open it for you; you probably also need the OpenGFX+ Landscape as found next to the savegame; the others are bananas versions.
A recent trunk version should open it for you; you probably also need the OpenGFX+ Landscape as found next to the savegame; the others are bananas versions.
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
- Fairyfloss
- Traffic Manager
- Posts: 159
- Joined: 03 Aug 2011 14:10
- Location: Yes
Re: ChooChoo, a train network AI
If I run this AI with the NUTS, Useless tracks and NuTracks GRFs, the AI builds lifted tracks as rails, which cannot have any locomotives. Because of that reason, ChooChoo only builds roads and railroads, but can't use the railroads, because there aren't any available trains, could you fix this?
Re: ChooChoo, a train network AI
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
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: ChooChoo, a train network AI
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
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.
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
Re: ChooChoo, a train network AI
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.
Re: ChooChoo, a train network AI
Hi, I have a question. How to stop that goddamn AI ? Im typing stop_ai <company_x> in console and nothing happens. I tried every number from 1 to 15, nothing works. Wtf ?
Re: ChooChoo, a train network AI
it might be restarting. you'll need to go into AI/GS settings (on the main menu, iirc) and change the number to 0
otherwise, you can't count to 15, and you're missing some numbers out The stop_ai command isn't related to the AI, it's a builtin OTTD feature that insta-kills the AI
otherwise, you can't count to 15, and you're missing some numbers out The stop_ai command isn't related to the AI, it's a builtin OTTD feature that insta-kills the AI
AroAI - A really feeble attempt at an AI
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Re: ChooChoo, a train network AI
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.
I'm kinda a begginer at ottd and I started my game, but I got dissatisfied with this AI ( It has 450k value at year 1965 while I have 35kk ) So i wanted to just get rid of it and start another one, but I don't want to start over again.
I'm kinda a begginer at ottd and I started my game, but I got dissatisfied with this AI ( It has 450k value at year 1965 while I have 35kk ) So i wanted to just get rid of it and start another one, but I don't want to start over again.
Re: ChooChoo, a train network AI
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
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: ChooChoo, a train network AI
Yes, thank you : ) This will be useful later
And sorry for spamming topic with such a trivial question ; )
And sorry for spamming topic with such a trivial question ; )
Re: ChooChoo, a train network AI
No worriesGladius wrote:And sorry for spamming topic with such a trivial question ; )
Re: ChooChoo, a train network AI
I like this AI, but it is unusable with strong preferences:
High build cost, high running costs, minimum loan.
It has built a complex track, but ran out of money. Why build first monorail tracks when rails are available cheaper?
Two different AI is in the screenshot.
High build cost, high running costs, minimum loan.
It has built a complex track, but ran out of money. Why build first monorail tracks when rails are available cheaper?
Two different AI is in the screenshot.
- Attachments
-
- 1
- Screen Shot 2014-01-13 at 9.12.59.png (288.88 KiB) Viewed 8395 times
-
- 2
- Screen Shot 2014-01-13 at 9.19.53.png (116.78 KiB) Viewed 15186 times
Sorry my bad english, I don't speak english!
Re: ChooChoo, a train network AI
If you open the AI settings page and increase "Number of single track cargo lines to start with", it may be able to survive on those game settings. ChooChoo's infrastructure is pretty expensive so it needs some funds to get off the ground. It'll still be really slow, though. It's not designed to make maximum money, just build stuff that looks nice.
The setting is in the main menu under AI/Game Script Settings. You can also change it in-game under Help, AI/Game Script Debug.
The setting is in the main menu under AI/Game Script Settings. You can also change it in-game under Help, AI/Game Script Debug.
Who is online
Users browsing this forum: No registered users and 33 guests