Page 1 of 1

save Singleplayer Session

Posted: 09 Jan 2007, 16:17
by kaiserbert
Hi,

how can i save and load a singleplayer session?

bye Bert

Posted: 09 Jan 2007, 21:21
by malric
If you mean how can you save a game, the answer is : you can't yet. And I do not know if there is someone working on this...

If you do not mean that please explain what do you mean by 'session'

Posted: 09 Jan 2007, 21:56
by kaiserbert
yes thats what i wanna know.
Where is the Problem?
Does the Windows Version support this yet?

bye Bert

Posted: 09 Jan 2007, 22:23
by malric
No, the windows version doesn't support it either.

The save/load isn't implemented yet. There replays of the games are available, but in these replays just the commands for the units are saved (so you have to run the entire simulation to reach again a certain point - not very practical).

Posted: 26 Jan 2007, 11:22
by Xerxes-17
actually, yes you can.

Use the Spring Test.exe, and one of the F* keys will save the game I believe. After that do the same thing, but look for the "load test" command in the menu of the STest and you'll load up from that point.

Posted: 26 Jan 2007, 11:44
by malric
You mean it is in the latest version. The first post was on 9th of january. Was save/load available then ?

Posted: 26 Jan 2007, 12:03
by AF
press f8.

But its unreliable.

For one you can only have 1 savegame file. And its a bit pointless as the saved game is a single player game when loaded and none of the AIs are re-initialized so the enemy units just sit there.

Posted: 26 Jan 2007, 13:49
by Tobi
You can have as many as you want, you just have to rename Test.ssf to something else or it will get overwritten next time you save.

Posted: 26 Jan 2007, 15:34
by AF
dirty hacks ftw!

Posted: 01 Feb 2007, 21:19
by kaiserbert
Maybe somebody can do a patch to the Code,

Code: Select all

string buttonpressed;
fstream SaveFile,GameFile;
string NameofSaveFile;

if(buttonpressed==F8)//Save Game
    {
    cout<<"Which File Name?"<<endl;
    cin>>NameofSaveFile;
    GameFile.open("Test.ssf",ios::in);
    SaveFile.open(NameofSaveFile.c_str(), ios::in|ios::out);
    char c;
    while(GameFile.get(c))
        {
        SaveFile.put(c);
        }
    GameFile.close();
    SaveFile.close();
    }
else if(buttonpressed==F5)//load Game
    {
    cout<<"Which File Name?"<<endl;
    cin>>NameofSaveFile;
    GameFile.open("Test.ssf",ios::in|ios::out);
    SaveFile.open(NameofSaveFile.c_str(), ios::in);
    char c;
    while(SaveFile.get(c))
        {
        GameFile.put(c);
        }
    GameFile.close();
    SaveFile.close();
    }
bye bert