Christine wrote:[code] <DefaultFlagIndex>9</DefaultFlagIndex>
Christine wrote:It would be nice to have a little debug tool build into the mapeditor.
Kroah wrote:Christine wrote:[code] <DefaultFlagIndex>9</DefaultFlagIndex>
Do you have added the flags to the picture "flags.png" ?
Kroah wrote:When a map is loaded, a validation is done to check for invalid values. There are so many things to check, we can't be exhaustive.
But we can still add new checks to give specific error messages instead of a stack dump.
For this error, a new message will explain the flag is not in the "flags.png" file:
FlagIndex is out of bound (current=9, max=5, "flags.png" contains only 6 flags).
Christine wrote:But ... I don't see a real logical reason for that, but some others may want to create scenarios there country a can go to b, but b cant go to a. I've seen a lot of fantasy-scenarios in many games... someone always gets strange ideas (strange, but maybe good ones).
Christine wrote:This time I get an MsgBox with:
"Map/PatternDefault/@ImageIndex is mandatory.
Expected: integer value or random value '[a;b]' in range [0;+oo["
A line number would be helpful like it comes in some alertboxes.
Christine wrote:It would be helpful the do the checks - witch are done by loading the map "from scratch" - in the save map and reload map function, so an editor would notice the problem much earlier (maybe directly then it appears).
Users browsing this forum: No registered users and 1 guest