Convoy: train support testversion
Moderator: OpenTTD Developers
Re: Convoy: train support testversion
Congratulations..
Test it ..
egh... What is minimum version required ?
Test it ..
egh... What is minimum version required ?
Re: Convoy: train support testversion
I'm not quite sure, I guess you're safe when you can run the bus version of Convoy. I don't think I've used any of the newest functions.
- davidx123
- Traffic Manager
- Posts: 146
- Joined: 21 Feb 2008 19:05
- Location: boring city in the middle of nowhere,Israel.
- Contact:
Re: Convoy: train support testversion
Wow!really nice AI!he even uses that new signals!
i don't even use pre-signals!
but sometimes,he stuck,when there isn't any free path for a train.also with some new grf,like dutch trainset,and DBset he has the to long train graphic error.but he very good ai when using the proper trains!
8\10!
i don't even use pre-signals!
but sometimes,he stuck,when there isn't any free path for a train.also with some new grf,like dutch trainset,and DBset he has the to long train graphic error.but he very good ai when using the proper trains!
8\10!
Re: Convoy: train support testversion
Thanks for the nice wordsdavidx123 wrote:Wow!really nice AI!he even uses that new signals!
i don't even use pre-signals!
.but he very good ai when using the proper trains!
I've never tested it with any newgrf, but thanks for the feedback. I took a little look at it, and it seems that some newgrfs make carriages or engines longer or shorter, so they don't fit anymore in the station's platform.davidx123 wrote: but sometimes,he stuck,when there isn't any free path for a train.also with some new grf,like dutch trainset,and DBset he has the to long train graphic error
I think I've solved it now, will be present in the next update.
- davidx123
- Traffic Manager
- Posts: 146
- Joined: 21 Feb 2008 19:05
- Location: boring city in the middle of nowhere,Israel.
- Contact:
Re: Convoy: train support testversion
one thing that i really love in that ai,that even if you reload him,he will still remake his old services
( if he had a a service from town a to b,and i reloaded him,he will start from a to b!).
any way,if you reduce the number of the trains to 2,it will be much better,since it will not stuck any more.
maybe also shorten wagons,according to city size.
( if he had a a service from town a to b,and i reloaded him,he will start from a to b!).
any way,if you reduce the number of the trains to 2,it will be much better,since it will not stuck any more.
maybe also shorten wagons,according to city size.
-
- Engineer
- Posts: 25
- Joined: 15 Dec 2006 21:58
- Location: South Bend, IN, USA
Re: Convoy: train support testversion
I introduced TConvoy into a relatively mature game (me and four NoCab 1.17). The first route it tried flamed out after the stations were built. I've attached a save game and a screenshot (including the end of the outputs in the AI debug window). Please let me know if there's any more information I can provide.
I let the game run for a little while longer after I saved it before taking the screenshot, because I wanted to see what the AI would do next.
This game is r16371, the nightly from a few days ago. (The most recent nightly does not load the AIs cleanly.)
Edit to add: TConvoy wound up going bankrupt, though they weren't alone in that regard: one of the NoCab's did too.
I let the game run for a little while longer after I saved it before taking the screenshot, because I wanted to see what the AI would do next.
This game is r16371, the nightly from a few days ago. (The most recent nightly does not load the AIs cleanly.)
Edit to add: TConvoy wound up going bankrupt, though they weren't alone in that regard: one of the NoCab's did too.
- Attachments
-
- Adams & Co., 29th Aug 1997.png
- Screenshot
- (183.76 KiB) Downloaded 133 times
-
- Adams & Co., 19th Aug 1997.sav
- Savegame
- (317.53 KiB) Downloaded 204 times
Re: Convoy: train support testversion
Mr Wednesday, thanks a lot for your report.
I think you've found three problems at once: 2 for TConvoy and 1 for NoCab, well done!
1. You used hilly terrain, that contains several areas of water and already build upon with several roads and tracks.
Both factors complicate things for the pathfinder. I limited the number of iterations the pathfinder can spend to find one connection, to prevent the situation that it spends decades of pathfinding before finding a route, if ever. But under more difficult situations I think I have to raise the number of iterations.
2. You use a setting or newgrf that cause trains to be a lot more expensive than usual (Do you happen to know which newgrf does that?).
In combination with point 1, this can get TConvoy into trouble: it already spent money to build some stations that weren't connected in the end, and when finally a connection is made, it does not have enough money to buy a train anymore. I think I will consider to build only one track to start with one train, and only double the tracks when enough money is available.
3. When loading your savegame, NoCab's are immediately stopped, because in the latest nightlies, the devs have limited the time the AI can spend in the constructor or Load function, to prevent the game lagging at startup. I'll put a note in NoCab's thread about this.
Anyway, thanks for testing, I'm glad I did not see any real AI crash. Going bankrupt is part of the game, it just needs to learn to play a bit better. But an AI crash is clearly a programming error, and that's worse in my opinion.
Well, you've given me some homework, next version will be better, thanks to you, though I won't promise when that version will be posted.
I think you've found three problems at once: 2 for TConvoy and 1 for NoCab, well done!
1. You used hilly terrain, that contains several areas of water and already build upon with several roads and tracks.
Both factors complicate things for the pathfinder. I limited the number of iterations the pathfinder can spend to find one connection, to prevent the situation that it spends decades of pathfinding before finding a route, if ever. But under more difficult situations I think I have to raise the number of iterations.
2. You use a setting or newgrf that cause trains to be a lot more expensive than usual (Do you happen to know which newgrf does that?).
In combination with point 1, this can get TConvoy into trouble: it already spent money to build some stations that weren't connected in the end, and when finally a connection is made, it does not have enough money to buy a train anymore. I think I will consider to build only one track to start with one train, and only double the tracks when enough money is available.
3. When loading your savegame, NoCab's are immediately stopped, because in the latest nightlies, the devs have limited the time the AI can spend in the constructor or Load function, to prevent the game lagging at startup. I'll put a note in NoCab's thread about this.
Anyway, thanks for testing, I'm glad I did not see any real AI crash. Going bankrupt is part of the game, it just needs to learn to play a bit better. But an AI crash is clearly a programming error, and that's worse in my opinion.
Well, you've given me some homework, next version will be better, thanks to you, though I won't promise when that version will be posted.
-
- Engineer
- Posts: 25
- Joined: 15 Dec 2006 21:58
- Location: South Bend, IN, USA
Re: Convoy: train support testversion
I'm a little surprised that the settings or newgrfs would increase the train prices substantially. The only newgrfs that I'm running that should touch the trains are Pikka's industries and the old wagons/new cargoes (so that I can transport the new cargoes from the new industries using existing wagons). I wouldn't have thought, though, that either would alter train costs significantly.
I don't remember making any economy-related changes to the settings or difficulty.
I don't remember making any economy-related changes to the settings or difficulty.
-
- Engineer
- Posts: 1
- Joined: 15 Jun 2009 12:37
Re: Convoy: train support testversion
Hi GeekToo,
Great AI ...
I think you could put a longer Sleep value (like 100 or 200, I don't know exactly ) on main thread of AI in order to avoid slow down the game when several TConvoy AI were started.
Another thing is, if I change the terrain(ex: remove slope) just before the AI build the track, the track can be built in wrong way and so the route won't be Ok. In this case it's necessary make some track review.
I think it could build less switch points too... sometimes the switch points looks crazy.
I agree with davidx123 about create only 2 trains for each route.
As posted before there are some problems with insufficient cash
Regards.
Great AI ...
I think you could put a longer Sleep value (like 100 or 200, I don't know exactly ) on main thread of AI in order to avoid slow down the game when several TConvoy AI were started.
Another thing is, if I change the terrain(ex: remove slope) just before the AI build the track, the track can be built in wrong way and so the route won't be Ok. In this case it's necessary make some track review.
I think it could build less switch points too... sometimes the switch points looks crazy.
I agree with davidx123 about create only 2 trains for each route.
As posted before there are some problems with insufficient cash
Regards.
Re: Convoy: train support testversion
Hi GeekToo,
Here is the crash I 've got several days ago. I've scrolled panel up, but I can't see where is the exactly error exception. I hope it is still clear for you to know where.
Here is the crash I 've got several days ago. I've scrolled panel up, but I can't see where is the exactly error exception. I hope it is still clear for you to know where.
- Attachments
-
- TConvoy-crash.png
- Tconvoy
- (66.53 KiB) Downloaded 63 times
-
- Engineer
- Posts: 16
- Joined: 23 Jul 2006 23:23
Re: Convoy: train support testversion
crashed when no vehicles to transport passengers available (1920 year)
Re: Convoy: train support testversion
I didn't get a crash, but I got a little bit of malfunctions :
Now a second thing - the Red has build a route with a single line ( connected both cities ) yet it didn't build a train to service them. And in addition there are no signals on yellow's track so the train reserves a lot of space ( don't know if this is intentional )
There are no mail wagons even though both station accept it.
Here, the Yellow has built a route, but couldn't double the track, so there is a single line for 50 tiles or so. That caused a lot of jams and didn't result in serious income
Now a second thing - the Red has build a route with a single line ( connected both cities ) yet it didn't build a train to service them. And in addition there are no signals on yellow's track so the train reserves a lot of space ( don't know if this is intentional )
There are no mail wagons even though both station accept it.
Re: Convoy: train support testversion
And the last thing:
And something else - I don't understand the choice of engines - the ai prefers to build expensive yet unreliable locos. For short distance route you can build Manley-Morel ( or something equivalent or even just slowly moving trains ) so you can have more passengers on the track resulting in greater income.
These are the 2nd and 3th largest cities and for 10 years neither of the companies have built a route. ( they have connected 7-8 times smaller towns )
And something else - I don't understand the choice of engines - the ai prefers to build expensive yet unreliable locos. For short distance route you can build Manley-Morel ( or something equivalent or even just slowly moving trains ) so you can have more passengers on the track resulting in greater income.
Re: Convoy: train support testversion
Thanks a lot guys, for posting your reports, it's really appreciated. Some of the bugs are known problems, others aren't. For AI devs (well, at least for me), bug reports are really motivating, cause it means people are interested, and it offers a chance to improve things. And that does feel a lot better than having your efforts ignored.
I am already busy with improving TConvoy, though some of the issues are difficult to solve, next version will be better, thanks to you.
I am already busy with improving TConvoy, though some of the issues are difficult to solve, next version will be better, thanks to you.
Re: Convoy: train support testversion
I second thatGeekToo wrote:For AI devs (well, at least for me), bug reports are really motivating, cause it means people are interested, and it offers a chance to improve things. And that does feel a lot better than having your efforts ignored.
Re: Convoy: train support testversion
Speaks for itself ( keep up the work though )
A slight bug
Re: Convoy: train support testversion
possibly found a bug with the pre-train test version
as you can see, convoy constantly builds terminus bus stations and then proceeds to build far too many buses for the network which results in 1 station with high ratings but huge queues of buses while the other 8 stations in the network have ratings of under 20% and very very very rare service
Re: Convoy: train support testversion
Hi, I don't know if you're still updating on the vehicles part of Convoy, I've used Convoy v11 in a game with other AIs (see other topics)
I tried a game with Convoy v11 among other AI's.
Compared to the other AI's, Convoy performed extremely well, maxxing out in all graphs until the vehicle limit was reached (in under 10 years in the 1980s). One annoyance: clogged roads. One funny thing: within on continuous game Convoy is not aware of crashing road vehicles, does not attempt to replace them, and is also not aware of the 'vehicle gap' caused by many, many railroad crossing crashed (thanks Choochoo!), although it could use it to build new vehicles or even new routes. When I saved the game and reloaded it however, Convoy immediately detected the 'gap' and filled it with vehicles.
Congratulations on this competetive AI, which make me tremble when I see the head of P. McIntosh and the text "Convoy starts construction near Brundale!"
See attached save game.
OpenTTD 0.7.3
NewGRFs: OpenGFX, better vehicles names, Av8 1.501
(I will post comparable posts in the other AI's topics)
EDIT: PS I'm looking forward to try TConvoy!
I tried a game with Convoy v11 among other AI's.
Compared to the other AI's, Convoy performed extremely well, maxxing out in all graphs until the vehicle limit was reached (in under 10 years in the 1980s). One annoyance: clogged roads. One funny thing: within on continuous game Convoy is not aware of crashing road vehicles, does not attempt to replace them, and is also not aware of the 'vehicle gap' caused by many, many railroad crossing crashed (thanks Choochoo!), although it could use it to build new vehicles or even new routes. When I saved the game and reloaded it however, Convoy immediately detected the 'gap' and filled it with vehicles.
Congratulations on this competetive AI, which make me tremble when I see the head of P. McIntosh and the text "Convoy starts construction near Brundale!"
See attached save game.
OpenTTD 0.7.3
NewGRFs: OpenGFX, better vehicles names, Av8 1.501
(I will post comparable posts in the other AI's topics)
EDIT: PS I'm looking forward to try TConvoy!
- Attachments
-
- AI game.sav
- (658.84 KiB) Downloaded 154 times
*hmz*
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Convoy: train support testversion
Seems I forgot report back here on my AI testgame results. Congratulations, you (or Convoy v11) won! and it reached the vehicle limit in less than 10 years.
Having a 2nd look at the game I observed by chance a funny thing Convoy did do: clear a piece of water, build a bus station which then was - of course - flooded immediately:
Having a 2nd look at the game I observed by chance a funny thing Convoy did do: clear a piece of water, build a bus station which then was - of course - flooded immediately:
- Attachments
-
- flooded bus station
- OTVI, 21-05-1989.png (107.29 KiB) Viewed 4639 times
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: Convoy: train support testversion
I'm sorry to dig it up, but I have problems playing with this nice AI when using articulated road vehicles
In the pic attached you can see 2 Convoy AIs in action after about 100 years of gameplay
I hope it will be possible to fix this problem
In the pic attached you can see 2 Convoy AIs in action after about 100 years of gameplay
I hope it will be possible to fix this problem
- Attachments
-
- Convoy_ARV.png (290.26 KiB) Viewed 870 times
Who is online
Users browsing this forum: No registered users and 36 guests