#Co-ordinates confuse me
3 messages · Page 1 of 1 (latest)
the format uses a cell x,y and then relative to the cell x,y instead of the map-wide x,y like most other places in game.
on https://map.projectzomboid.com/ click Map Coordinates on the left and the worldX and worldY are the cell values, and then posX and posY are the Rel values
you can convert map-wide x,y to cell/relative values by dividing by 300 and taking the floor(just remove everything after the decimal point) of that to get the cell(worldX and worldY), and then the remainder is the relative x,y (posX and posY). for example for 345,8123, first 345/300 = 1.15, so worldX would be 1, and then 345 % 300 = 45 so posX is 45. then 8123 / 300 = 27.07666, so worldY would be 27, and 8123 % 300 = 23, so posY would be 23, and the whole spawnpoint line would be { worldX = 1, worldY = 27, posX = 45, posY = 23, posZ = 0 },