Follow-up Comment #4, bug #20659 (project wesnoth):
OK, I think I have this figured out.
First off, you can get this message without [base_unit]; all you need is an
_initial.cfg file with content of the form {./Master_of_Alchemy.cfg}. As far
as I can tell, this is intentional. At least, I see no indication of an
attempt to prevent files from being included twice. (I don't see how something
else is being suggested in the documentation, so I don't know what -- if
anything -- to change there.) If there is no _main.cfg, then the files in the
directory are listed, _initial.cfg is moved to the front of the list,
_final.cfg is moved to the end, then all of those files are processed in
order, regardless of what is in each file (barring a fatal syntax error, of
course).
So why were no errors logged in 1.10? I added the warning in r56093 (between
1.11.1 and 1.11.2). The duplicates were merely silently ignored before.
The revision that made the _initial.cfg hack unnecessary was r56092, also
between 1.11.1 and 1.11.2. So 1.11.1 and lower need _initial.cfg, while 1.11.2
and higher do not.
You might want to review your remaining _initial.cfg's -- if any are still
including files in the same directory of _initial.cfg, then those files are
being included twice. (You might want to move those files into a subdirectory
so the normal processing skips them.)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20659>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs