Chat messages don't full grid in chat. For Example "f18" instead of "af18". This is an issue specifically on larger maps
Shows incorrect sector on large mapsSolved
yea, I dont know how to fix this.
What size "larger" maps ?
pookins
What size "larger" maps ?
Any map with 2 letter zones. a small map with location A15 would be fine, but a 6k map with an AA15 zone would just display as A15
thanks for clearing that up, i use a standard 4250 map but was thinking of going to a 5000.
you can change the code in PositionToGrid(Vector3 position) to
char letter = 'A';
char letter2 = 'A';
var x = Mathf.Floor((position.x + (ConVar.Server.worldsize / 2)) / 146.3f) % 26;
var x2 = (Mathf.Floor((position.x + (ConVar.Server.worldsize / 2)) / 146.3f) / 26);
var z = (Mathf.Floor(ConVar.Server.worldsize / 146.3f)) - Mathf.Floor((position.z + (ConVar.Server.worldsize / 2)) / 146.3f);
letter = (char)(((int)letter) + x);
letter2 = (char)(((int)letter2) + (x2 - 1));
return $"{(x2 >= 1 ? letter2 : ' ')}{letter}{z - 1}";
ok ty, changed in next update
Locked automatically