[go: up one dir, main page]

Menu

#508 loading/saving game with SVN r12564 loads you into dumbfire

SVN
closed-works-for-me
nobody
5
2010-08-01
2009-10-21
No

I've build VS from SVN r12564 on a ubuntu 9.04 32-bit system. The problem is that after loading a saved game, you are flying inside a dumbfire missile with

Steps to reproduce:
1. Delete ~/.vegastrike
2. build VS from SVN r12564
3. launch game and immediately save the game, call it "immediatesave"
4. This creates a savegame file for your game - AND creates an AUTOSAVE file (it probably shouldn't do that either?)
5. Load the savegame.

Discussion

  • Chris Hiestand

    Chris Hiestand - 2009-10-21

    VS screenshot

     
  • Chris Hiestand

    Chris Hiestand - 2009-10-21

    output for saving the game (then closing VS)

     
  • Chris Hiestand

    Chris Hiestand - 2009-10-21

    output after loading the saved game

     
  • Bart Verthé

    Bart Verthé - 2009-10-26

    --- savegame.cpp 2009-10-26 22:36:26.000000000 +0100
    +++ /tmp/savegame-HEAD.2.cpp 2009-10-26 22:29:15.000000000 +0100
    @@ -833,7 +833,7 @@
    {
    VSFile f;
    VSError err = f.OpenCreateWrite( outputsavegame, SaveFile);
    - if(err <= Ok)
    + if(err > Ok)
    {// check
    // WRITE THE SAVEGAME TO THE MISSION SAVENAME
    f.Write( savestring.c_str(), savestring.length());

     
  • Bart Verthé

    Bart Verthé - 2009-10-26

    file in the trunk might be as it is for a reason? (can't figure on though)
    see the comment of revision 12564 of trunk/vegastrike/src/savegame.cpp (http://vegastrike.svn.sourceforge.net/viewvc/vegastrike?view=rev&revision=12564), which explicitly states the :
    >> Note: inconsistent checks of error condition are present. (>Ok vs <= Ok), which may cause consistency issues in the future.

     
  • www2

    www2 - 2009-10-30

    Bug is fix in svn r12565

     
  • Klauss++

    Klauss++ - 2010-08-01

    Probably fixed independently (ie: before I read this report)

     
  • Klauss++

    Klauss++ - 2010-08-01
    • status: open --> closed-works-for-me
     

Anonymous
Anonymous

Add attachments
Cancel