project-navigation
Personal tools

Author Topic: Corrupting saved games  (Read 4158 times)

Offline GPS51

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Corrupting saved games
« on: February 20, 2010, 10:59:52 pm »
Hello again, I keep having my savegame files corrupt. >< I was wondering if someone could tell me what to do to A fix/debug them or B how to keep that from happening. Here is the console readout. Sorry it's so long. I did see where it said the ufo_craft_fighter wasn't linked to any mission. Each of the saved games that corrupts has to do with an alien mission that is unlinked. I believe another had to do with the alien base mission being unlinked. Thanks


2010/02/20 13:52:10 --- save subsystem initialization --
2010/02/20 13:52:10 added base subsystem
2010/02/20 13:52:10 added research subsystem
2010/02/20 13:52:10 added campaign subsystem
2010/02/20 13:52:10 added hospital subsystem
2010/02/20 13:52:10 added market subsystem
2010/02/20 13:52:10 added employee subsystem
2010/02/20 13:52:10 added aliencont subsystem
2010/02/20 13:52:10 added aircraft subsystem
2010/02/20 13:52:10 added installation subsystem
2010/02/20 13:52:10 added ufostores subsystem
2010/02/20 13:52:10 added production subsystem
2010/02/20 13:52:10 added messagesystem subsystem
2010/02/20 13:52:10 added stats subsystem
2010/02/20 13:52:10 added nations subsystem
2010/02/20 13:52:10 added transfer subsystem
2010/02/20 13:52:10 added alien base subsystem
2010/02/20 13:52:10 added xvirate subsystem
2010/02/20 13:52:10 added messageoptions subsystem
2010/02/20 13:52:10 Campaign data loaded - size 4467040 bytes
2010/02/20 13:52:10 ...techs: 205
2010/02/20 13:52:10 ...buildings: 23
2010/02/20 13:52:10 ...ranks: 16
2010/02/20 13:52:10 ...nations: 8
2010/02/20 13:52:10 ...cities: 457
2010/02/20 13:52:10 2010/02/20 13:52:10 Line has unmatched quote, discarded.
2010/02/20 13:52:10 Usage: set <variable> <value> [u / s]
2010/02/20 13:52:11 Loading savegame xml (size 124892)
2010/02/20 13:52:11 Loading savegame
...version: 3
...game version: 2.3-dev
...xml Size: 1734530, compressed? y
2010/02/20 13:52:11 Shutdown gametype 'Campaign mode'
2010/02/20 13:52:11 Change gametype to 'Campaign mode'
2010/02/20 13:52:11 --- save subsystem initialization --
2010/02/20 13:52:11 added base subsystem
2010/02/20 13:52:11 added research subsystem
2010/02/20 13:52:11 added campaign subsystem
2010/02/20 13:52:11 added hospital subsystem
2010/02/20 13:52:11 added market subsystem
2010/02/20 13:52:11 added employee subsystem
2010/02/20 13:52:11 added aliencont subsystem
2010/02/20 13:52:11 added aircraft subsystem
2010/02/20 13:52:11 added installation subsystem
2010/02/20 13:52:11 added ufostores subsystem
2010/02/20 13:52:11 added production subsystem
2010/02/20 13:52:11 added messagesystem subsystem
2010/02/20 13:52:11 added stats subsystem
2010/02/20 13:52:11 added nations subsystem
2010/02/20 13:52:11 added transfer subsystem
2010/02/20 13:52:11 added alien base subsystem
2010/02/20 13:52:11 added xvirate subsystem
2010/02/20 13:52:11 added messageoptions subsystem
2010/02/20 13:52:11 Campaign data loaded - size 4467040 bytes
2010/02/20 13:52:11 ...techs: 205
2010/02/20 13:52:11 ...buildings: 23
2010/02/20 13:52:11 ...ranks: 16
2010/02/20 13:52:11 ...nations: 8
2010/02/20 13:52:11 ...cities: 457
2010/02/20 13:52:11 2010/02/20 13:52:11 Load 'slot1' 18 subsystems
2010/02/20 13:52:11 ...Running subsystem 'base'
2010/02/20 13:52:11 ...subsystem 'base' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'research'
2010/02/20 13:52:11 ...subsystem 'research' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'campaign'
2010/02/20 13:52:11 ...subsystem 'campaign' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'hospital'
2010/02/20 13:52:11 ...subsystem 'hospital' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'market'
2010/02/20 13:52:11 ...subsystem 'market' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'employee'
2010/02/20 13:52:11 ...subsystem 'employee' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'aliencont'
2010/02/20 13:52:11 ...subsystem 'aliencont' - loaded.
2010/02/20 13:52:11 ...Running subsystem 'aircraft'
2010/02/20 13:52:11 Error: UFO 'craft_ufo_fighter' is not linked to any mission
2010/02/20 13:52:11 ...subsystem 'aircraft' returned false - savegame could not be loaded
2010/02/20 13:52:11 music change to van_geoscape (from van_theme)
2010/02/20 13:52:11 Shutdown gametype 'Campaign mode'
2010/02/20 13:52:11 music change to van_theme (from van_geoscape)

Offline zapkitty

  • Rookie
  • ***
  • Posts: 56
    • View Profile
Re: Corrupting saved games
« Reply #1 on: February 21, 2010, 02:12:18 am »
My friend,
Do you suffer from the heartbreak of... undead ufos?

Quote
Error: UFO 'craft_ufo_fighter' is not linked to any mission
2010/02/20 13:52:11 ...subsystem 'aircraft' returned false - savegame could not be loaded

... why yes, it seems that you are. Plan 9 has struck again.

Seriously. Your game session acquired a zombie ufo and at that point the game became unsavable... as savegames with zombies can't be loaded.

More on the threat posed by undead alien spaceships can be found here:
http://ufoai.ninex.info/forum/index.php?topic=4472.0

Offline GPS51

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Re: Corrupting saved games
« Reply #2 on: February 21, 2010, 05:35:52 am »
Ah I noticed the other thread but didn't connect the two  ::)  Sigh...tis a sad day along with my share of no free inventories CTD

Offline zapkitty

  • Rookie
  • ***
  • Posts: 56
    • View Profile
Re: Corrupting saved games
« Reply #3 on: February 21, 2010, 07:12:10 am »
I'm fairly confident that the bug is actually widespread but unreported because it is almost asymptomatic. It does not cause an immediate crash and a ufo shootdown is reported on the scroll. In the midst of a late-game multiple ufo dogfight spread over several bases who's going to notice one ufo flying away unscathed? I didn't for a very long time. And when the ufo is not near a radar tower it's a case of out of sight, out of mind.

The only overt symptom is when the savegames stop loading and that can easily be attributed to almost anything... including the latest svn update.

And so the actual bug goes unreported.

Clever Plan 9 is clever...

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Corrupting saved games
« Reply #4 on: February 21, 2010, 09:57:44 am »
Hello again, I keep having my savegame files corrupt. >< I was wondering if someone could tell me what to do to A fix/debug them or B how to keep that from happening. Here is the console readout. Sorry it's so long. I did see where it said the ufo_craft_fighter wasn't linked to any mission. Each of the saved games that corrupts has to do with an alien mission that is unlinked. I believe another had to do with the alien base mission being unlinked. Thanks

This was a bug between r28510-r28627.
To "fix" your save you should load your save (which is only possible with versions < r28550) with a DEBUG build and type the following commands into the game console:
Code: [Select]
debug_delmissions
debug_destroyufos
This will remove all the UFOs and missions, resave then update to r28627 or later to prevent it happen again.

-geever


Offline zapkitty

  • Rookie
  • ***
  • Posts: 56
    • View Profile
Re: Corrupting saved games
« Reply #5 on: February 21, 2010, 12:17:00 pm »
Code: [Select]
debug_destroyufos
This will remove all the UFOs....

Does this destroy all ufos currently in the geoscape simultaneously?

Offline zapkitty

  • Rookie
  • ***
  • Posts: 56
    • View Profile
Re: Corrupting saved games
« Reply #6 on: February 22, 2010, 07:45:25 am »
Does this destroy all ufos currently in the geoscape simultaneously?

The reason that I asked is that it doesn't... and I've lucked into a savegame configuration that seems to always generate a zombie if you use debug_destroyufos shortly after the mission starts to prove it  ;D

Also, not only does this "Plan 9" bug seem to account for savegames that won't load, it also seems related to savegames that will load but crash  to the desktop when you start the clock.

I'm composing the report and will post it and the savegames in the other plan 9 thread...

... also will describe other strange effects...

Brilliant alien plan #9 is brilliant...


Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Re: Corrupting saved games
« Reply #7 on: February 22, 2010, 11:11:23 am »
geever, add check for link between UFO and missions into saving code.