You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some maps (such as https://www.gta5-mods.com/maps/ancient-egypt) are not possible to be viewed through CodeWalker.
This happens because some objects have a very high LOD DIST, something like 16960 for some objects, this causes CodeWalker to define LODDIST as -1 in the generated YMAP (This is done for any LODDIST value greater than 10000 when importing a Mennyo map).
Apparently LodDist in the game is an integer from 0 to 0xFFFF (uint16_t), if this number accepted 2's complement, the value -1 would be the default (0xFFFF). However, this apparently is not the case. Since loddist does not use 2's complement, the highest value would be 65535.
NOTE: If you change the "loddistance" of the YMAP items (ancient-egypt ) generated to 16960, you will see that everything works normally.
The text was updated successfully, but these errors were encountered:
Some maps (such as https://www.gta5-mods.com/maps/ancient-egypt) are not possible to be viewed through CodeWalker.
This happens because some objects have a very high LOD DIST, something like 16960 for some objects, this causes CodeWalker to define LODDIST as -1 in the generated YMAP (This is done for any LODDIST value greater than 10000 when importing a Mennyo map).
ProjectForm.cs
cent.lodDist = (placement.LodDistance < 10000) ? placement.LodDistance : -1;
Apparently LodDist in the game is an integer from 0 to 0xFFFF (uint16_t), if this number accepted 2's complement, the value -1 would be the default (0xFFFF). However, this apparently is not the case. Since loddist does not use 2's complement, the highest value would be 65535.
NOTE: If you change the "loddistance" of the YMAP items (ancient-egypt ) generated to 16960, you will see that everything works normally.
The text was updated successfully, but these errors were encountered: