Author Topic: Unable to Load Terrain.cfg  (Read 1325 times)

Offline Jurassic

  • Experienced Traveler
  • **
  • Posts: 110
  • Country: de
  • Floof-O-Meter: 8
    • wolfwicks
    • wolfwicks
    • wolfwicks
    • View Profile
Unable to Load Terrain.cfg
« on: May 22, 2016, 01:13:42 pm »
Ah, I'm in the process of making a map, one that is close to being completed, however after restarting my computer twice for freezing up and not connecting to the internet, when I try to load the map, it gives me this alert/popup:


"Unable to load Terrain.cfg file for [insertmapnamehere]!"


I had delved into the map's Object.cfg earlier just to remove some fog particles, but it loaded fine after I did that. Its terrain and mask .pngs are still in the terrains folder. Roleplay opening date is today and I'd like to be able to add details and export it!

wolfwicks on dA

Offline Redlinelies

  • The FeralHeart Guru
  • Immortal Legend
  • *****
  • Posts: 7,077
  • Country: 00
  • Floof-O-Meter: 792
  • Modoru Pride
    • redlinelies
    • redlinelies
    • redlinelies
    • redlinelies
    • View Profile
Re: Unable to Load Terrain.cfg
« Reply #1 on: May 22, 2016, 01:23:40 pm »
If you go into the map folder for a specific that you made you have a few different .cfg files and a material file.

You have 2 files with the name terrain in them.

yourmapnameTerrain.cfg
yourmapnameTerrain.material

If you get the message you mentioned above it's either that you do not have any yourmapnameTerrain.cfg file in your map folder it can load up, or the codes in it can not be read. An example of a working one is this(Take note that you cannot plainly copy and paste it and it will work as before as this code is for a completely different map).

Code: [Select]
PageSource=Heightmap
Heightmap.image=blackscreenTerrain.png
PageSize=513
TileSize=65
MaxPixelError=3
PageWorldX=2000
PageWorldZ=2000
MaxHeight=600
MaxMipMapLevel=5
VertexNormals=yes
VertexProgramMorph=no
LODMorphStart=0.2
CustomMaterialName=Terrain/blackscreenRLL

If you're missing a mapnameTerrain.cfg in your map folder for your custom map, then you can copy a terrain.cfg file from another map folder, paste it into your own. Open up the cfg file you just copied with NOTEPAD Edit the pageworldx, z, and maxheight to the size you used to have in the map maker, change the custommaterial to the name you have on the terrain.material file, save it, and then start the game and it should work enough to change your ground textures and stuff again. There's probably some things that could go wrong and please make sure all names are the same and link to the right material and configs as it will not work otherwise.

The error your posted is directly linked to the cfg terrain file inside of your custom map folder for that specific map.
Former community manager of FeralHeart