PDA

View Full Version : getGridOffset returns out of spec value. ( tested in 5e, but probably a core issue. )



bratch9
July 11th, 2023, 18:55
getGridOffset is not returning
The values will vary from zero to -((grid size) - 1).

if you change one of the pre-map grids, the net result is that the getGridOffset becomes incorrect.

Not sure if this is caused when the 'radial -> set grid' on the image is 'processed'.. or if it should be getting 'corrected' in the getGridOffset.

58159

The above shows that the campaign/moduledb/FG Battle Maps.xml file is showing the offset of '477,282' from the reset of the grid I tested with. ( ie re-position a grid by starting some place mid map... say at (x,y) of (477,282) !!! )

So not sure if the 'radial' setgrid information is writing back incorrect values into the 'FG Battle Maps.xml'

or if the 'getGridOffset' function should be processing the 'mod' to get the 'remainder-gridSize' to bring it into the ' -((grid size) - 1)' of the function return.

-pete