Page 1 of 1

[Help] Terrain.con

Posted: 2011-08-24 21:22
by jax
Been searching around and couldnt find anyway to diagnose and fix this error.

Image

Code: Select all

if v_arg1 == BF2Editor
terrain.create TerrainEditable
terrain.patchSize 128
terrain.subdividePatches 1
terrain.primaryWorldScale 2/0.0025/2
terrain.secondaryWorldScale 8/0.64/8
terrain.patchColormapSize 512
terrain.lowDetailmapSize 512
terrain.detailmapBaseName "Levels/op_harrow/Detailmaps/tx"
terrain.lowDetailmapBaseName "Levels/op_harrow/LowDetailmaps/tx"
terrain.colormapBaseName "Levels/op_harrow/Colormaps/tx"
terrain.lightmapBaseName "Levels/op_harrow/Lightmaps/tx"
terrain.farSideTiling 2/2
terrain.farTopTilingHi 16
terrain.farTopTilingLow 32
terrain.farYOffset 0
terrain.terrainWaterColor 0/0/0
terrain.init

else
terrain.create Terrain
terrain.load Levels/op_harrow/terraindata.raw
endIf

Hopefully i can get some help with this, thanks

EDIT

Could someone change the title of the thread please, for some reason it named itself that.

Re: [Help] Terrain.con

Posted: 2011-08-27 19:07
by Amok@ndy
renamed

also make sure your HeightmapsSecondary's are in the right format and size

recompiling the terrain should fix it

Re: [Help] Terrain.con

Posted: 2011-08-27 21:15
by jax
Ok thanks that did the trick.

Re: [Help] Terrain.con

Posted: 2011-08-27 22:30
by Amok@ndy
used to happen if the editor crashes while saving

Re: [Help] Terrain.con

Posted: 2011-08-27 22:47
by jax
Used to, or still does? because sometimes i asume that it crashed after it finished saving, but the editor is truly one unpredictable wanker