URL:
  <http://gna.org/bugs/?20659>

                 Summary: error message when mother unit, child unit and
_initial.cfg in same folder
                 Project: Battle for Wesnoth
            Submitted by: anonymissimus
            Submitted on: Di 26 Mär 2013 23:02:37 GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: jamit
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: [email protected]+svn@r56594
        Operating System: win xp

    _______________________________________________________

Details:

Since some change, error messages of the form
20130326 23:35:23 error config: Multiple [unit_type]s with id=Master of
Alchemy encountered
show up when loading units under the following conditions:
-A cfg file defining a unit using [base_unit], and the unit it is based upon,
are in the same folder.
-An _initial.cfg file is in this folder as well, with content of the form
{./Master_of_Alchemy.cfg}

The purpose of this _intial.cfg file was/is to ensure the mother unit has
already been read at the point when the child unit is read, so that the
reference is resolved. Probably an error did occur at some spot otherwise.
This error no longer happens if I remove the _initial.cfg. (Which is bit
strange, since IIRC the files are read in alphabetical order.)
As I understand the documentation of _initial.cfg
(http://wiki.wesnoth.org/PreprocessorRef), it should work so that the
referenced files aren't read a second time.
The behavior can be observed with my add-on @revision 17925, checkout:
http://wesnoth-umc-dev.svn.sourceforge.net/svnroot/wesnoth-umc-dev/trunk/The_Earths_Gut
Just start anew into the first scenario and look in stderr.
So some change to base_unit resolving seems bad, or _initial.cfg doesn't work
like it should.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20659>

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to