Page 1 of 1

AI Version Upgrades

Posted: 30 Oct 2014 05:47
by Baldy's Boss
My old saves from 2011 generate error messages saying that the system can't find the specific VERSIONS of SimpleAI and Trans AI that were there when they were saved.Can't the system substitute a newer version of an AI a game was saved with rather than substituting another AI at random?

Re: AI Version Upgrades

Posted: 30 Oct 2014 10:41
by krinn
If the openttd version support (read: run) that newer AI version AND the newer AI version support loading that game version, it should do that itself

AI author code in their AI the minimal version they can load, if the newer version have that flag set a version higher than the one record in the savegame, openttd will consider that AI version as "not good for that savegame", and will look for other versions of the AI until it find one that have the ability to load that savegame.

It depend on the AI then, sometimes an AI version is use as transitional and can read says version 2 savegame, and record into a version 3. Some AI authors don't care about compatibility and doesn't offer such kind of layer and just drop any version 2 support.

Re: AI Version Upgrades

Posted: 30 Oct 2014 18:24
by Brumi
SimpleAI is supposed to be fully backward compatibile even with version 1. Does the AI or the game break because of this? If so, I would be interested in seeing the savegame.

Re: AI Version Upgrades

Posted: 30 Oct 2014 19:21
by Baldy's Boss
The game loads a random alternative AI in place of each SimpleAI Version 4 or Trans AI 100307 it can't find.I downloaded both Simple and Trans from Online Content,I believe,rather than transferring what was on the older computer on which the games were saved.

Re: AI Version Upgrades

Posted: 30 Oct 2014 20:56
by Zuu
Unfortunately it is a bit of mess in OpenTTD with saving of AI/Game Script IDs in save games. It save enough for loading your games, but not enough for computing the unique identifier used to get content from bananas. This is means that OpenTTD cannot offer you to download the missing AIs or missing Game Script.

Some year ago I have been looking a bit on improving this but have no complete solution. The sad part is that IIRC it will only work for save games created after the solution is merged into OpenTTD.


That said, if you downloaded the last Simple AI (go to AI settings and attempt to choose it for an AI slot to assure OpenTTD finds it), and it has the meta data setup so that it allows loading save games since first Simple AI version, it should load your game with the new Simple AI. If that doesn't work. Please upload your savegame here and we can have a look to see where it fails.