[Bug] PRPL MapWidth and MapHeight, cursor cell readout.

Started by GoodMorning, November 06, 2016, 06:45:25 AM

Previous topic - Next topic

GoodMorning

Script in development, map is minimum size (32x32). MapWidth and MapHeight each return 128. I'm trying to process unit positions cellwise for efficiency reasons. The cursor position goes up to (31,31). It looks like these now unexpectedly return a pixel width and height.



While I was looking at it, I noted that, the cursor-cell display reports accurately unless off the top edge of the map, clipping to the nearest on-map position. Off the top edge, X is always deemed to be 31 and Y varies with cursor position.
A narrative is a lightly-marked path to another reality.

knucracker

Yeah... they seem to be coded to return the pixel size, which is 4 times the cell size.
I've just added MapCellWidth and MapCellHeight calls.  Of course those won't be there till the next build.  So the best you can do right now is mapwidth div(4).

GoodMorning

A narrative is a lightly-marked path to another reality.