URL:
<http://gna.org/bugs/?11166>
Summary: Assert when the random generator cannot generate a
starting position
Project: Battle for Wesnoth
Submitted by: noyga
Submitted on: mardi 26.02.2008 à 23:18
Category: Bug
Severity: 4 - Important
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: SVN r24095
Operating System: Linux (FC8)
_______________________________________________________
Details:
I sometimes get this for scenarios that use a map generated by the random map
generator :
20080226 23:03:57 error general: An error due to possible invalid WML
occured
The error message is :
Redéfinition du camp « 5 » trouvée.
When reporting the bug please include the following error message :
Condition 'units.count(start_pos) == 0' failed at config_adapter.cpp:156 in
function 'get_player_info'.
("Redéfinition du camp « 5 » trouvée." means "Redefinition of side '5'
found").
From my experience it seems to happen when the random generator fails to make
a castle for all the requested positions.
In that case it might be a good idea to try to regenerate a correct map (but
maybe a limited amount of times to avoid infinite loops).
A failure is maybe ok there, but if we accept a failure a better message
would be nice (unfortunately for that part, we're in string freeze).
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11166>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs