project-navigation
Personal tools

Author Topic: can't load saved game  (Read 4651 times)

Offline RyanW

  • Rookie
  • ***
  • Posts: 16
    • View Profile
can't load saved game
« on: August 05, 2010, 04:34:08 am »
Updated to version 31244 on 8/4.  Could not load a saved campaign with new version.  I had a previous version from 8/3 or 8/2, can't remember exactly which one, but that worked fine.
below is a portion of the output


Change gametype to 'Campaign mode'

--- save subsystem initialization --
added base subsystem
added research subsystem
added campaign subsystem
added hospital subsystem
added market subsystem
added employee subsystem
added aliencont subsystem
added aircraft subsystem
added interest subsystem
added mission subsystem
added installation subsystem
added ufostores subsystem
added production subsystem
added messagesystem subsystem
added stats subsystem
added nations subsystem
added transfer subsystem
added alien base subsystem
added xvirate subsystem
added messageoptions subsystem
Campaign data loaded - size 3341800 bytes
...techs: 200
...buildings: 19
...ranks: 16
...nations: 8
...cities: 457

Loading savegame xml (size 77888)
Loading savegame
...version: 4
...game version: 2.4-dev
...xml Size: 894805, compressed? y
Shutdown gametype 'Campaign mode'
Change gametype to 'Campaign mode'

--- save subsystem initialization --
added base subsystem
added research subsystem
added campaign subsystem
added hospital subsystem
added market subsystem
added employee subsystem
added aliencont subsystem
added aircraft subsystem
added interest subsystem
added mission subsystem
added installation subsystem
added ufostores subsystem
added production subsystem
added messagesystem subsystem
added stats subsystem
added nations subsystem
added transfer subsystem
added alien base subsystem
added xvirate subsystem
added messageoptions subsystem
Campaign data loaded - size 3341800 bytes
...techs: 200
...buildings: 19
...ranks: 16
...nations: 8
...cities: 457

Load 'slot7' 20 subsystems
...Running subsystem 'base'
...subsystem 'base' - loaded.
...Running subsystem 'research'
...subsystem 'research' - loaded.
...Running subsystem 'campaign'
...subsystem 'campaign' - loaded.
...Running subsystem 'hospital'
...subsystem 'hospital' - loaded.
...Running subsystem 'market'
...subsystem 'market' - loaded.
...Running subsystem 'employee'
...subsystem 'employee' - loaded.
...Running subsystem 'aliencont'
...subsystem 'aliencont' - loaded.
...Running subsystem 'aircraft'
CP_GetMissionByID: Could not find mission cat7_interest197_0
CP_GetMissionByID: Could not find mission cat2_interest199_0
CP_GetMissionByID: Could not find mission cat8_interest202_0
...subsystem 'aircraft' - loaded.
...Running subsystem 'interest'
...subsystem 'interest' - loaded.
...Running subsystem 'mission'
CP_GetMissionByID: Could not find mission cat2_interest199_0
Could not link mission 'cat2_interest199_0' in aircraft
...subsystem 'mission' returned false - savegame could not be loaded
music change to van_geoscape (from van_theme)
Shutdown gametype 'Campaign mode'
« Last Edit: August 05, 2010, 04:41:36 am by RyanW »

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: can't load saved game
« Reply #1 on: August 05, 2010, 06:03:12 am »
It might be because the code for the savegame system is being worked on, here's just one of a number of commits that might potentially be part of the issue:

http://ufoai.svn.sourceforge.net/viewvc/ufoai?view=revision&revision=31219

Edit:  Of course, geever would have a better idea than I would as to exactly which commit did this.

Also, you're not trying to load a saved game from an older revision into a game compiled with more up-to-date source code, are you?  That almost always leads to problems, depending on how old the saved game is compared to the version you are playing.  If you update from SVN, you should always start a new game to avoid issues.  If you don't want to start a new game, you can either play a stable release or pick one SVN version and stick with it.

Offline RyanW

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: can't load saved game
« Reply #2 on: August 05, 2010, 02:35:07 pm »
Quote
you're not trying to load a saved game from an older revision into a game compiled with more up-to-date source code, are you?

nope just the version a day or two old.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2560
    • View Profile
Re: can't load saved game
« Reply #3 on: August 05, 2010, 05:04:34 pm »
Updated to version 31244 on 8/4.  Could not load a saved campaign with new version.  I had a previous version from 8/3 or 8/2, can't remember exactly which one, but that worked fine.
below is a portion of the output

Bug#3039853.
I fix it tonight.

-geever

Offline RyanW

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: can't load saved game
« Reply #4 on: August 06, 2010, 05:59:25 pm »
Can load the saved game now, but it crashes immediately after starting it.

--- save subsystem initialization --
added base subsystem
added research subsystem
added campaign subsystem
added hospital subsystem
added market subsystem
added employee subsystem
added aliencont subsystem
added interest subsystem
added mission subsystem
added aircraft subsystem
added installation subsystem
added ufostores subsystem
added production subsystem
added messagesystem subsystem
added stats subsystem
added nations subsystem
added transfer subsystem
added alien base subsystem
added xvirate subsystem
added messageoptions subsystem
Campaign data loaded - size 3341800 bytes
...techs: 200
...buildings: 19
...ranks: 16
...nations: 8
...cities: 457

Loading savegame xml (size 78199)
Loading savegame
...version: 4
...game version: 2.4-dev
...xml Size: 895721, compressed? y
Shutdown gametype 'Campaign mode'
Change gametype to 'Campaign mode'

--- save subsystem initialization --
added base subsystem
added research subsystem
added campaign subsystem
added hospital subsystem
added market subsystem
added employee subsystem
added aliencont subsystem
added interest subsystem
added mission subsystem
added aircraft subsystem
added installation subsystem
added ufostores subsystem
added production subsystem
added messagesystem subsystem
added stats subsystem
added nations subsystem
added transfer subsystem
added alien base subsystem
added xvirate subsystem
added messageoptions subsystem
Campaign data loaded - size 3341800 bytes
...techs: 200
...buildings: 19
...ranks: 16
...nations: 8
...cities: 457

Load 'slot6' 20 subsystems
...Running subsystem 'base'
...subsystem 'base' - loaded.
...Running subsystem 'research'
...subsystem 'research' - loaded.
...Running subsystem 'campaign'
...subsystem 'campaign' - loaded.
...Running subsystem 'hospital'
...subsystem 'hospital' - loaded.
...Running subsystem 'market'
...subsystem 'market' - loaded.
...Running subsystem 'employee'
...subsystem 'employee' - loaded.
...Running subsystem 'aliencont'
...subsystem 'aliencont' - loaded.
...Running subsystem 'interest'
...subsystem 'interest' - loaded.
...Running subsystem 'mission'
...subsystem 'mission' - loaded.
...Running subsystem 'aircraft'
CP_GetMissionByID: Could not find mission cat7_interest197_0
CP_GetMissionByID: Could not find mission cat2_interest199_0
CP_GetMissionByID: Could not find mission cat8_interest202_0
CP_GetMissionByID: Could not find mission cat4_interest202_0
...subsystem 'aircraft' - loaded.
...Running subsystem 'installation'
...subsystem 'installation' - loaded.
...Running subsystem 'ufostores'
...subsystem 'ufostores' - loaded.
...Running subsystem 'production'
...subsystem 'production' - loaded.
...Running subsystem 'messagesystem'
...subsystem 'messagesystem' - loaded.
...Running subsystem 'stats'
...subsystem 'stats' - loaded.
...Running subsystem 'nations'
...subsystem 'nations' - loaded.
...Running subsystem 'transfer'
...subsystem 'transfer' - loaded.
...Running subsystem 'alien base'
...subsystem 'alien base' - loaded.
...Running subsystem 'xvirate'
...subsystem 'xvirate' - loaded.
...Running subsystem 'messageoptions'
...subsystem 'messageoptions' - loaded.
File 'slot6' successfully loaded from compressed xml savegame.
music change to karlmacklin_geoscape (from van_theme)
music change to van_geoscape (from karlmacklin_geoscape)
ufo: src/client/campaign/cp_ufo.c:496: UFO_CampaignRunUFOs: Assertion `ufo->mission' failed.
./ufo(Sys_Backtrace+0x1c)[0x580ebb]
./ufo[0x580f1b]
/lib/libc.so.6[0x7fa6919990a0]
/lib/libc.so.6(gsignal+0x35)[0x7fa691999015]
/lib/libc.so.6(abort+0x183)[0x7fa69199ab83]
/lib/libc.so.6(__assert_fail+0xe9)[0x7fa691991d89]
./ufo(UFO_CampaignRunUFOs+0x8c)[0x4bcfa6]
./ufo[0x48e355]
./ufo(CL_CampaignRun+0x301)[0x48e6a7]
./ufo(GAME_CP_Frame+0x14)[0x42f715]
./ufo(GAME_Frame+0x35)[0x42e818]
./ufo(CL_Frame+0xe6)[0x43be5a]
./ufo[0x5163dd]
./ufo(Qcommon_Frame+0x70)[0x5168a6]
./ufo(main+0x57)[0x57ffc9]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fa691984466]
./ufo[0x42c0e9]
./ufo(Sys_Backtrace+0x1c)[0x580ebb]
./ufo(Sys_Error+0xa4)[0x58048f]
./ufo(Sys_InitSignals+0x0)[0x580f2d]
/lib/libc.so.6[0x7fa6919990a0]
/lib/libc.so.6(gsignal+0x35)[0x7fa691999015]
/lib/libc.so.6(abort+0x183)[0x7fa69199ab83]
/lib/libc.so.6(__assert_fail+0xe9)[0x7fa691991d89]
./ufo(UFO_CampaignRunUFOs+0x8c)[0x4bcfa6]
./ufo[0x48e355]
./ufo(CL_CampaignRun+0x301)[0x48e6a7]
./ufo(GAME_CP_Frame+0x14)[0x42f715]
./ufo(GAME_Frame+0x35)[0x42e818]
./ufo(CL_Frame+0xe6)[0x43be5a]
./ufo[0x5163dd]
./ufo(Qcommon_Frame+0x70)[0x5168a6]
./ufo(main+0x57)[0x57ffc9]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fa691984466]
./ufo[0x42c0e9]
Error: Received signal 6.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2560
    • View Profile
Re: can't load saved game
« Reply #5 on: August 06, 2010, 08:54:43 pm »
Can load the saved game now, but it crashes immediately after starting it.

Revision? SaveGame?

-geever

Offline Gren

  • Squad Leader
  • ****
  • Posts: 165
    • View Profile
Re: can't load saved game
« Reply #6 on: August 06, 2010, 10:18:30 pm »
Revision? SaveGame?

-geever

I seem to have a problem like this too... r31272.  I can load a savegame ok, but as soon as time starts, I get assertion errors..

« Last Edit: August 07, 2010, 08:14:22 pm by Gren »

Offline RyanW

  • Rookie
  • ***
  • Posts: 16
    • View Profile
Re: can't load saved game
« Reply #7 on: August 07, 2010, 03:09:32 am »
Quote
Revision? SaveGame?

sorry, it was after you fixed bug #3039853, version #31272

attached save game

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2560
    • View Profile
Re: can't load saved game
« Reply #8 on: August 07, 2010, 10:25:28 pm »
sorry, it was after you fixed bug #3039853, version #31272

attached save game

Fixed in r31291.

Thanks for the reports!

-geever