Saved games won't load at all!

Bug #976937 reported by Travis on 2012-04-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Joris Dauphin

Bug Description

I'm testing out build 8201 - here are the bugs

> Goldmines (and probably Oil derriks) don't animate when playing Skirmish - they do work when playing campaign though
> Saved Games will not load AT ALL, don't matter if you try loading straight after saving, quiting to menu/to windows, they won't load at all.

I've even run it in debug mode and there's no message telling me where the error is. My friend is also having the same problem.

Related branches

Travis (dinky-dye-aussie) wrote :

Build 8203 loads games just after you save them as soon as you start, but when you have a big battle after saving, it won't load the save, it just exits.

it keeps telling me the there's an error in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector - where "vector" is the name of the external file - it doesn't have an extension to it like .cpp, etc...

Anyways it's line 932 which is the following

  if (size() <= _Pos)
   { // report error
---> _DEBUG_ERROR("vector subscript out of range"); <---

the arrowed line is the error that is being reported.

Travis (dinky-dye-aussie) wrote :

i think it's a Vec2i issue to be honest

Joris Dauphin (joris-dauphin) wrote :

Fix a Saving/loading problem with Missile and Animation-die.
now Saving/loading should work.

vector and Vec2i are unrelated (vector is the std:: "array" , Vec2i is a stratagus "Point")
as it is a common low level container, most stack error or buffer overflow make these container report error.

For the gold Mine, it is not the game mode where is the bug, but a conflict in animation and unit ID (not fixed yet).

Thanks for the report.

Joris Dauphin (joris-dauphin) wrote :

gold mine animation fixed in trunk (stratagus+wargus).

Changed in stratagus:
status: New → Fix Committed
Travis (dinky-dye-aussie) wrote :

Well it seems your fix to the code to make save games load is so far working nicely for me :)

I've been testing the skirmish mode a lot this morning and have been getting whipped hardcore by the computer :) and have had to reload the save games alot, and have done so without a single crash :) So I'm very happy about it working they way it should. If I have any more trouble with it I will let you know, but for now - great work mate :)

Pali (pali) on 2012-04-19
Changed in stratagus:
assignee: nobody → Joris Dauphin (joris-dauphin)
milestone: none → 2.2.7
Pali (pali) on 2012-08-20
Changed in stratagus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers