Hi
The smx files are documentated at https://www.lfs.net/programmer but it is bit outside my comfort zone. Bit confusing with the binary file, bytes and stuff, and the only way to really check if you did it correct would be to actually draw the map too...so very error prone.
Basically I am looking for a way to get the terrain-height at given coordinates. Something like:
Maybe someone has already done something similiar? (preferably c/c++)
The smx files are documentated at https://www.lfs.net/programmer but it is bit outside my comfort zone. Bit confusing with the binary file, bytes and stuff, and the only way to really check if you did it correct would be to actually draw the map too...so very error prone.
Basically I am looking for a way to get the terrain-height at given coordinates. Something like:
int getTerrainHeight (int x, int y)
{
...something happens here...
return height;
}
Maybe someone has already done something similiar? (preferably c/c++)