News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

bug: saving and loading of ai

Started by Dwachs, May 15, 2009, 01:04:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dwachs

The saving and loading of ai-players is currently disabled, since the function rdwr is not defined virtual in simplay.h. That means everytime a game is saved/loaded only the rdwr-function of the base class spieler_t is called. A fix, which simply inserts 'visual' there, will made all earlier savegames with ai-players unloadable.

How should this be fixed?

Parsley, sage, rosemary, and maggikraut.

gerw

(Only vague assumptions, I didn't had a look at the code)
Can't this be solved by a new savegame version:
If version < ... => take old routine
otherwise save/load with new routine?

z9999

I don't know what version the original topic is with.
But r2461 has saving problem. It freezed during saving a game.
(Really too slow saving and too big file size.)
I'm not sure this is the same problem or not.

prissi

Nothing six lines of code cannot fix ...