bugBattle for Wesnoth - Bugs: bug #22090, Village count incorrect after map...

Show feedback again

bug #22090: Village count incorrect after map resize

Submitted by:  Dan Gerhards <beetlenaut>
Submitted on:  Mon May 26 04:30:39 2014  
Category: BugSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Editor
Status: ConfirmedPrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: 1.11.15Operating System: Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Tue Oct 20 07:08:38 2015, comment #3:

This is a tricky one, and I think requires someone who has actual working knowledge of the editor.

I had a go at removing villages from the gamemap::villages_ vector, since gamemap::on_board() will already let you know if a given map_location is within the resized board or not. This worked okay but I couldn't get the villages count at the top of the screen to update at the appropriate time.

Then there's the additional complication of villages that stay on the map after shrinking, but are right on the border and so can still be present if extending the map afterwards. I thought about forcing villages on the map border to become background terrain to force their deletion, but couldn't work out the various functions and event handlers. Even the interoperation between the tiles_ t_map and tdata_ tdata_cache isn't clear... not that they are very helpful member names either - it isn't clear that t_ in this context refers to terrain (I think).

So I'm giving up on this for now. I've stared at it all day hoping to get a breakthrough... but have nothing to show for it. ):

Wedge009 <wedge009>
Project Member
Sat Jun 21 14:31:05 2014, comment #2:

From a quick test with the "map change N" [replace_map] test cases in the test scenario, this doesn't appear to affect [replace_map]. I'd suspect that this is an editor-specific issue and thus it probably doesn't affect [terrain_mask] either.

Ignacio R. Morelle <shadowmaster>
Project Administrator
Tue Jun 3 18:55:36 2014, comment #1:

Does this also affect wml resize / overlay events?

Chris Beck <involution>
Project Member
Mon May 26 04:30:39 2014, original submission:

When you resize the map in the editor, the village count at the top of the screen is not updated. If villages were lost in the resize, the count will be incorrect.

Dan Gerhards <beetlenaut>
Project Member


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

Attach File(s):

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 wedge009 (Posted a comment)
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by involution (Posted a comment)
  • -unavailable- added by beetlenaut (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.


    Error: not logged in



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Mar 20 01:59:59 2017wedge009StatusNone=>Confirmed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup