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

                 Summary: Scatter Embellishment Macro throws errors now
                 Project: Battle for Wesnoth
            Submitted by: sigurdthedragon
            Submitted on: Wed 28 Sep 2011 03:26:36 AM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Trunk r 51321
        Operating System: Win 7 x64

    _______________________________________________________

Details:

This bug was introduced between r51234 and r51255 (exclusive) and is still
present in r51321

I've used a variant of the {SCATTER_EMBELLISHMENT} Macro in my map pack
(Sigurd's Random Maps) since ~March 2011 (~1.9.3-4) and it has worked fine.
(essentially, the only change is for it to effect layer=both) 

Used it as follows {SCATTER_TERRAIN Ch Cud 100} and it would convert castles
to dwarvish castles on the Cave map.

sometime after r51234 and before r51255 it does not convert all of them and
throws the following errors in stderr:

20110927 21:38:49 warning engine: WML Syntax error:: Variable in WML string
cannot be evaluated because, the WML array index is larger than the largest
array element. in 
"terrain_variation_locations[65536].x" at 
""  -->"terrain_variation_locations[65536]."<-- "x"
20110927 21:38:49 warning engine: WML Syntax error:: Variable in WML string
cannot be evaluated because, the WML array index is larger than the largest
array element. in 
"terrain_variation_locations[65536]." at 
""  -->"terrain_variation_locations[65536]."<-- 
20110927 21:38:49 warning engine: WML Syntax error:: Variable in WML string
cannot be evaluated because, the WML array index is invalid.  Use
varname[0].length to check for the existence of an array element. in 
"terrain_variation_locations[0].y" at 
""  -->"terrain_variation_locations[0]."<-- "y"
20110927 21:38:49 warning engine: WML Syntax error:: Variable in WML string
cannot be evaluated because, the WML array index is invalid.  Use
varname[0].length to check for the existence of an array element. in 
"terrain_variation_locations[0].x" at 
""  -->"terrain_variation_locations[0]."<-- "x"


(I tested SCATTER_EMBELLISMENT as is as well and it produces similar errors
if percent changed is set to 100.)





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to