RoF/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(Testing before adding images)
 
m (added couple of errors)
Line 1: Line 1:
== Error: Layers generation - Bad texel mapping for surface mask image ==
== Error: Layers generation - Bad texel mapping for surface mask image ==




This tends to be caused by your image files having the wrong image resolution for satellite / mask, compared to what you have in mapframe settings.  
This tends to be caused by your image files having the wrong image resolution for satellite / mask, compared to what you have in mapframe settings.  




Open Terrain Builder and double click your project in the Mapframes panel. If you don't see Mapframes panel, make sure it's enabled in Window > Mapframe View.
Open Terrain Builder and double click your project in the Mapframes panel. If you don't see Mapframes panel, make sure it's enabled in Window > Mapframe View.




In the Mapframe window, click the Samplers tab. Compare the size of the "Satellite / Surface (mask) source images" and make sure your images resolution matches it. For the best visual results in the game, the size should match the "Terrain Size".
In the Mapframe window, click the Samplers tab. Compare the size of the "Satellite / Surface (mask) source images" and make sure your images resolution matches it. For the best visual results in the game, the size should match the "Terrain Size".
TODO Add image
== Error: LandGrid reference exceeded the range [1024, 1024], it is [1337, 123] ==
(numbers are different depending on your map)
The Texture Layer in the Mapframe settings is incorrect. You should aim to get as close to 40 x 40 as possible. Having the wrong Texture Layer size can break AI and physics
For large terrains with a cell size larger than 10, it's recommended to be 4 x cell size. So if cell size is 20, you would use 80 x 80.
TODO add image
== Error: Too many objects in grid rectangle 64,64 ==
This error happens when your roads are "outside" the mapframe (i.e your terrain). If you don't have any roads yet, check your config.cpp that newRoadsShape are set to empty, otherwise it will load the roads of the map you inherit from

Revision as of 11:17, 25 September 2024

Error: Layers generation - Bad texel mapping for surface mask image

This tends to be caused by your image files having the wrong image resolution for satellite / mask, compared to what you have in mapframe settings.


Open Terrain Builder and double click your project in the Mapframes panel. If you don't see Mapframes panel, make sure it's enabled in Window > Mapframe View.


In the Mapframe window, click the Samplers tab. Compare the size of the "Satellite / Surface (mask) source images" and make sure your images resolution matches it. For the best visual results in the game, the size should match the "Terrain Size".

TODO Add image

Error: LandGrid reference exceeded the range [1024, 1024], it is [1337, 123]

(numbers are different depending on your map)

The Texture Layer in the Mapframe settings is incorrect. You should aim to get as close to 40 x 40 as possible. Having the wrong Texture Layer size can break AI and physics

For large terrains with a cell size larger than 10, it's recommended to be 4 x cell size. So if cell size is 20, you would use 80 x 80.


TODO add image

Error: Too many objects in grid rectangle 64,64

This error happens when your roads are "outside" the mapframe (i.e your terrain). If you don't have any roads yet, check your config.cpp that newRoadsShape are set to empty, otherwise it will load the roads of the map you inherit from