bugFreeciv - Bugs: bug #21345, have_huts never set => scenario...

 
 
Show feedback again

bug #21345: have_huts never set => scenario load/save cycles keep adding more huts

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Fri 13 Dec 2013 07:48:56 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: 2.4.1Operating System: Any
Planned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 13 Dec 2013 07:49:46 PM UTC, comment #1:

(Some but not all of the supplied scenarios do have have_huts set.)

Jacob Nevins <jtn>
Project Administrator
Fri 13 Dec 2013 07:48:56 PM UTC, original submission:

There's a variable map.server.have_huts that, if set, prevents generating huts (make_huts()) when starting a game.

Unlike the equivalent have_resources / add_resources(), the function that adds huts does not set the variable. In fact the only way I can see that it gets set is if a savegame has "map.have_huts" set or absent (and it's always saved).

Thus, if one creates a scenario by starting a game with settings that generate huts, and does "Save Scenario" (saving huts on the map), then when the scenario is loaded to play then more huts will be generated; and if you do repeated load / scenario-save cycles as part of developing a scenario, you'll keep getting more huts.

Jacob Nevins <jtn>
Project Administrator

 

(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 (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):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup