bugBattle for Wesnoth - Bugs: bug #20933, [base_unit] doesn't work for...

Show feedback again

bug #20933: [base_unit] doesn't work for females

Submitted by:  Nate Wright <natewr>
Submitted on:  Fri Jun 28 09:32:25 2013  
Category: BugSeverity: 4 - Important
Priority: 5 - NormalItem Group: WML
Status: FixedPrivacy: Public
Assigned to: J Tyne <jamit>Open/Closed: Closed
Release: 1.11.5Operating System: Win7

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Mon Jul 1 03:06:45 2013, comment #3:

Fixed in 41f8816872584603bb9ba2c955947c078997f6a7.

Note that the name of the female "Mage" type is set within its [female] tag. That means the female variant of a derived type will keep that name (_"female^Mage") unless it is specifically set within the derived unit (which is a good idea anyway, to prepare for translations).

J Tyne <jamit>
Project MemberIn charge of this item.
Fri Jun 28 23:09:54 2013, comment #2:

i took a look at the code and i think the problem is that [female] of the base_unit is pocecced before the [base_unit] of the other unit, so the other units inherits the already completed [female] of the base_unit

i think this was changed in this commit: 81159e7c42e270077f0203dad820dc024a76a9ae

Fri Jun 28 18:52:30 2013, comment #1:

i did some testing and i found out thats this bug only appears if the base_unit unitcfg is processed before the other unit, so the behaviour depends on wich unitsconfigs are processed first. (when the base unit is a core units it is aleway processed first.)

Fri Jun 28 09:32:25 2013, original submission:

The following WML will not produce Apprentice Mages for females. When an Apprentice Mage is recruited, the id and name values are used for the [base_unit].

id=Apprentice Mage
name = _ "Apprentice Mage"

I've attached a simple addon to reproduce this. Install the addon and then load a multiplayer game. Choose the map "Base Unit Test". You can recruit Apprentice Mages. The males will appear correctly. The females will not.

Nate Wright <natewr>


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

Attach File(s):

Attached Files
file #18183:  base_unit_test.zip added by natewr (2kB - application/x-zip-compressed)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jamit (Updated the item)
  • -unavailable- added by natewr (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



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Aug 17 21:58:42 2013jamitOpen/ClosedOpen=>Closed
    Mon Jul 1 03:06:45 2013jamitStatusNone=>Fixed
    Sat Jun 29 20:00:46 2013jamitAssigned toNone=>jamit
    Fri Jun 28 09:32:25 2013natewrAttached File-=>Added base_unit_test.zip, #18183
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup