project-navigation
Personal tools

Author Topic: Assertion failed in cp_missions.c (r25862)  (Read 4465 times)

Offline MXcom

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Assertion failed in cp_missions.c (r25862)
« on: August 31, 2009, 01:11:20 am »
The following assert happens in the provided savegame (made with the same revision r25862) shortly after unpausing:

Code: [Select]
Assertion failed!
Program: [...]\ufo.exe
File: [...]src\client\campaign\cp_missions.c
Line: 755

Expression: !mission->ufo || !mission->ufo->detected


Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Assertion failed in cp_missions.c (r25862)
« Reply #1 on: September 01, 2009, 10:31:37 pm »
How this happened? The save says the ufo is detected and landed but it's not shown and the mission the ufo is on also not detected. These are in conflict...

-geever

Offline MXcom

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Assertion failed in cp_missions.c (r25862)
« Reply #2 on: September 01, 2009, 10:59:01 pm »
Hm, maybe it was not saved properly?

I pretty sure the landed ufo (in africa) was there (=visible) when I saved. I was just sending my dropship to one mission, when a new mission (the one in africa) appeared iirc. In the pause caused by the message, I saved.
Maybe it's got to do with saving in the instant the mission appeared (during the pause caused by the message).
Or because there are two missions on the map at the same time?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Assertion failed in cp_missions.c (r25862)
« Reply #3 on: September 01, 2009, 11:07:01 pm »
There are 2 missions in this save (and 2 ufos):
1: In Africa (near your radar (SW)) with a Fighter --- invisible. this is the problem
2: Terror in Sidney, your Dropship is almost there

Are we speaking about the same?
Don't you have a save only a bit earlier? Maybe when the Fighter in Africa was just flying to the mission (detected)?

-geever

Offline MXcom

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Assertion failed in cp_missions.c (r25862)
« Reply #4 on: September 02, 2009, 05:58:32 pm »
Sorry, I don't have an earlier save anymore. I managed to continue the game by loading an older savegame, and overwrote the save slots with new saves... I only conserved the one I already posted, for this bugreport. :(

That reminds me to ask.. are the limited save slots a design choice, or just because no one implemented unlimited save slots yet?
I find it a bit odd to have limited save slots... People who want to have more save slots will do so anyway (by copying the save folder), it's only a bit inconvenient.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Assertion failed in cp_missions.c (r25862)
« Reply #5 on: September 02, 2009, 09:05:34 pm »
geever - CP_SaveXML seems to not save any mission->ufo data

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Assertion failed in cp_missions.c (r25862)
« Reply #6 on: September 03, 2009, 11:59:43 am »
geever - CP_SaveXML seems to not save any mission->ufo data

cp_campaign.c:1321 ?

-geever

Offline Tlactar

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Assertion failed in cp_missions.c (r25862)
« Reply #7 on: September 11, 2009, 11:51:02 am »
hello, same error here! ;)
it couldn't have to do sth. with a mission just disappearing from the map after loading, could it? I think a few hours before that my men were at a mission (which went terribly wrong... :D), so i loaded the quicksave right before it, but the mission wasn't there anymore (the dropship was already at the location)

I've attached 3 saves, slot 2&3 are corrupted, slot 1 is the last save before them.

I only have ".lint" files for one of them though, don't know if you'd need them for the others, too. I just updated my version from r26052 to r26082, both from Destructavator's compiled .exes and it seems 82 has .lint files and 52 doesn't...

OS is the Win 7 x86 RC