Then it tells me "invalid value" :-/Rubidium wrote:If you set minimum version to 0.7.2 and no maximum version it should work.Michiel wrote:Devs: is there a way to make it available in Bananas for both 0.7.2 and nightlies?
ChooChoo, a train network AI
Moderator: OpenTTD Developers
Re: ChooChoo, a train network AI
Re: ChooChoo, a train network AI
I think you need to remember to select "no limit" or something similar in the drop-down list rather than just not putting anything in the edit box.
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
I started ChooChoo roughly twenty playing years (I time cheated) into my game, and I got an error almost immediately. Screenshot attached.
- Attachments
-
- GlobalTrans, 25th Oct 1937.png
- (28.17 KiB) Downloaded 137 times
Re: ChooChoo, a train network AI
Oh, that's fine, actually. It's just trying to find two towns to connect. Because it doesn't do terraforming for stations (yet), it can take a couple of tries before it finds a suitable pair of towns. In the meantime, it'll retry (which it does by throwing an exception, which is the source of the red output).
Re: ChooChoo, a train network AI
It does seem to have finally planted a seed, but I think its already built some lines outside of the main network. Is that normal?
Re: ChooChoo, a train network AI
Yup, it starts off with 3 single track, point to point lines to generate some initial income. Then, it'll start building networks. Eventually, I want it to clean up the simple lines once it gets enough income from its "real" tracks.
By the way, what's the maximum loan set to? It can usually get off the ground on 100k, but a bigger loan will make it start a lot quicker.
By the way, what's the maximum loan set to? It can usually get off the ground on 100k, but a bigger loan will make it start a lot quicker.
Re: ChooChoo, a train network AI
The bug with too long NewGRF trains is still present. Not sure if you already tried to fix it
Re: ChooChoo, a train network AI
Max loan is set to 500k . As for the main network, it unfortunately built a junction in a very bad place, so it may have to start the second network already. How fast does it usually build?
Also has the AI been designed for the 2cc set? It seems to be using just metro trains as opposed to steam ones. No real problem, just wondering.
Also has the AI been designed for the 2cc set? It seems to be using just metro trains as opposed to steam ones. No real problem, just wondering.
Re: ChooChoo, a train network AI
Nope, I've got bigger ones to fix first Broken tracks, and such. I think I can fix the train length bug in the next release, though.Kerygma wrote:The bug with too long NewGRF trains is still present. Not sure if you already tried to fix it
Once the initial three lines are in place, as fast as it can If it has money to spend, it'll be building or pathfinding. When nothing is happening, it's usually waiting for money to buy trains, which are the most expensive part of expansion. If you're using 2cc, they're even more expensive. The debug window should give a hint as to what it's doing, but it's not very user friendly. I'm thinking of making it place optional "this is what I'm currently working on" signs. "Expanding this crossing", "buying train for service from X to Y", that sort of thing.Wasila wrote:Max loan is set to 500k . As for the main network, it unfortunately built a junction in a very bad place, so it may have to start the second network already. How fast does it usually build?
No, I don't use any newgrfs myself and I'm not really going to support specific sets. 2cc uses monorail as metro trains, right? Unfortunately, there's no easy way to tell that this is the case. I just take the newest rail type available, which in a normal game progresses through regular, electrified, monorail and then maglev as engines become available, and "newer is better" generally holds when it comes to buying locomotives. If 2cc introduces monorail in 1850, well, then that's what it'll use Maybe I'll add a more sophisticated train selection algorithm, which can then be used to pick the most appropriate rail type. Not anytime soon, thoughWasila wrote:Also has the AI been designed for the 2cc set? It seems to be using just metro trains as opposed to steam ones. No real problem, just wondering.
Re: ChooChoo, a train network AI
The game does use metro tracks, which do still make money.
Re: ChooChoo, a train network AI
Attached is a crazy loop worthy of the original AI. You can also just about see my much shorter (and saner) route between the same cities.
- Attachments
-
- GlobalTrans, 13th Oct 1951.png
- (127.33 KiB) Downloaded 147 times
Re: ChooChoo, a train network AI
Haha, that is pretty crazy. It doesn't check distance travelled vs. distance as-the-crow-flies at all; if it turns out the trains are running at a loss, they'll just be sold.
Re: ChooChoo, a train network AI
Having wrote my own pathfinder, I could go into detail as to why that probably happens. Lets just say that I bet ChooChoo doesn't waste too much time pondering "perfect" when it can get to "good enough" in a hurry. Time is money, and pathfinding is where the AI's spend the majority of thier time. Choo Choo has a neat solution by only making major runs along the axis. You can always build rail in the direction. DR&G could use some of that kind of thinking on hilly maps.Wasila wrote:Attached is a crazy loop worthy of the original AI. You can also just about see my much shorter (and saner) route between the same cities.
Re: ChooChoo, a train network AI
Exactly soDustin wrote:Having wrote my own pathfinder, I could go into detail as to why that probably happens. Lets just say that I bet ChooChoo doesn't waste too much time pondering "perfect" when it can get to "good enough" in a hurry.
Also, it doesn't actually connect cities - it just expands its current network, adding trains to newly connected stations. If a network ends up connecting only two cities, you may end up with something like that, but connecting those cities was never an explicit goal.
Re: ChooChoo, a train network AI
I wanted to share this gem with you:
Besides, you should test ChooChoo with 2CC. It works just as 2CC intended, starts building metro tracks right away between cities =P looks very cool.
Besides, you should test ChooChoo with 2CC. It works just as 2CC intended, starts building metro tracks right away between cities =P looks very cool.
Re: ChooChoo, a train network AI
LOL, that's a nice knot
Re: ChooChoo, a train network AI
Well the AI sort of stopped working for me -
And when it works it fails like this:
And when it works it fails like this:
Re: ChooChoo, a train network AI
The first one is really weird - there's no signals on the track. The second one looks familiar, I think that's the bug I've been working on. I continue to blame Dwarf Fortress for the lack of progress
Re: ChooChoo, a train network AI
The first one is just one of its initial three money generating connections? It doesn't put signals on those, so.Michiel wrote:The first one is really weird - there's no signals on the track. The second one looks familiar, I think that's the bug I've been working on. I continue to blame Dwarf Fortress for the lack of progress
Re: ChooChoo, a train network AI
Durr... thanks for pointing that out *facepalm*
Who is online
Users browsing this forum: No registered users and 8 guests