RoF/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added couple of errors)
m (image test)
Line 13: Line 13:
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
[[File:arma3-bad texel mapping.png|left|thumb]]


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


(numbers are different depending on your map)
(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
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.
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
[[File:arma3-texture layer.png|left|thumb]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
==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 are getting the error in game, check your config.cpp that newRoadsShape is set to empty, otherwise it will load the roads of the map you inherit from, most likely Altis.
 
 
<code>newRoadsShape = ""; // would be correct in the case of no roads</code>
 
<code>newRoadsShape = "\A3\Map_Altis\data\roads\roads.shp"; // this would load Altis roads, which is most likely bigger than your terrain, an trigger the error</code>
 
 
If you have neither then add newRoadsShape = ""; to your config.cpp
 
 
== Dialog - TxTImport - Wrong file format or source template not found ==
 


== Error: Too many objects in grid rectangle 64,64 ==
This comes up when you import an objects txt file from eden or other in game editors. If you don't have a certain object in your template library, it will give this error. {{Feature|warning|Note: It will import objects up to the one it fails on, so its very easy to end up with duplicate objects!}}




To fix it, go to Layers Manager > Objects > Add New Layer. If you don't see Layer Manager, go to Toolbar > Window > Layers Manager.


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
Import objects to the new layer, right click object layer > show info.

Revision as of 21:33, 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".

arma3-bad texel mapping.png

















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.


arma3-texture layer.png
























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 are getting the error in game, check your config.cpp that newRoadsShape is set to empty, otherwise it will load the roads of the map you inherit from, most likely Altis.


newRoadsShape = ""; // would be correct in the case of no roads

newRoadsShape = "\A3\Map_Altis\data\roads\roads.shp"; // this would load Altis roads, which is most likely bigger than your terrain, an trigger the error


If you have neither then add newRoadsShape = ""; to your config.cpp


Dialog - TxTImport - Wrong file format or source template not found

This comes up when you import an objects txt file from eden or other in game editors. If you don't have a certain object in your template library, it will give this error.

Note: It will import objects up to the one it fails on, so its very easy to end up with duplicate objects!


To fix it, go to Layers Manager > Objects > Add New Layer. If you don't see Layer Manager, go to Toolbar > Window > Layers Manager.

Import objects to the new layer, right click object layer > show info.