bugFreeciv - Bugs: bug #20130, Cannot load savegame with ai type...

 
 
Show feedback again

bug #20130: Cannot load savegame with ai type != classic

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Mon 03 Sep 2012 01:16:16 AM UTC  
 
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: Duplicate
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Release: Operating System: None
Planned Release: 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 20 Jan 2015 01:24:24 AM UTC, comment #2:

Not reproducible any more (in S2_5 or later). I tested also with dynamic ai modules like in the original report, and not only with now-standard statically linked modules. If the needed module is loaded, savegame loading works just fine.

Related code modules have been rewritten a lot since the report. I don't know which exact change fixed this, but marking as duplicate of these rewrites anyway.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sat 15 Nov 2014 05:15:31 PM UTC, comment #1:

Does this still happen? Do you have a savegame for testing?

Jacob Nevins <jtn>
Project Administrator
Mon 03 Sep 2012 01:16:16 AM UTC, original submission:

I have savegame from game where AIs were "threaded":

> ./fcser -f freeciv-T0200-Y01500-auto.sav.bz2

1: Invalid AI type: 'threaded'!
...
1: Failure loading savegame!

> ./fcser -f freeciv-T0200-Y01500-auto.sav.bz2 -L threaded

2: Removing player AI*1.
1: in dai_auto_settler_free() [../../../../src.patched/ai/default/aisettler.c::1156]: assertion 'ai != ((void *)0)' failed.

It seems that it tries to remove initial "classic" ai player when loading savegame with another ai type, but that initial player is not in fact set up at that point (any more or yet)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Jan 2015 01:24:24 AM UTCcazfiStatusNone=>Duplicate
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
    Mon 03 Sep 2012 08:11:04 PM UTCcazfiCategoryNone=>ai
      Planned Release=>2.5.0
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup