Skip to main content
Topic: bug: saving and loading of ai (Read 2377 times) previous topic - next topic

bug: saving and loading of ai

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 cl**** 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.

Re: bug: saving and loading of ai

Reply #1
(Only vague ****umptions, 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?

Re: bug: saving and loading of ai

Reply #2
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.

Re: bug: saving and loading of ai

Reply #3
Nothing six lines of code cannot fix ...