Jump to content
skittl

Terrain Builder Problem

Recommended Posts

hello everyone, I have a problem with my terrain builder where it refuses to load the layers.cfg. Every time I try to load it, I try get the error "layers generation - Unable to load the file "P:Map\source\layers.cfg"

Can anyone help me with how to fix it. I shall paste my layers.cfg below to see if anyone can find a problem.

class Layers
{
    class Grass_Green
    {
        texture = ;
        material = "Moray\data\grass_green.rvmat";
    };
    class Underwater
        texture = ;
        material = "Moray\data\underwater.rvmat";
    };
    class Beach
        texture = ;
        material = "Moray\data\beach.rvmat";
    };
};
class Legend
{
    picture = "Moray\source\maplegend.png";
    class Colors
        Grass_Green[] = {{0,255,0}};
        Underwater[] = {{0,0,255}};
        Beach[] = {{248,255,185}};
    };
};

Share this post


Link to post
Share on other sites

Your layers config path and your material paths tell different stories. Make sure the path to the layers config is indeed correct. 

 

If if you can post screenshots of your project folders so we can verify 

Share this post


Link to post
Share on other sites
2 hours ago, m1lkm8n said:

Your layers config path and your material paths tell different stories. Make sure the path to the layers config is indeed correct. 

 

If if you can post screenshots of your project folders so we can verify 

http://imgur.com/a/govhy

Share this post


Link to post
Share on other sites

In tb are you you pointing it towards your layers config? You say "Unable to load the file "P:Map\source\layers.cfg" but all your files are in P:\Moray...

 

Also you should have saved your project in source\TerrainBuilder. I'm not sure if that stuff is going to get packed with your map when you do it...

 

Just seen your height and sat map, what is going on there? You only have half a map! :icon_confused: What size is that sat map?

Share this post


Link to post
Share on other sites

Tb can not find your layers config because you have "P:Map\source\layers.cfg" that in your path to it instead of what it actually is "P:\Moray\source"

 

RoF. He could technically export from within what he does have. 

Share this post


Link to post
Share on other sites
2 minutes ago, m1lkm8n said:

Tb can not find your layers config because you have "P:Map\source\layers.cfg" that in your path to it instead of what it actually is "P:\Moray\source"

I know i said map\source but i really meant Moray\source. sorry for the confusion

 

Share this post


Link to post
Share on other sites
16 minutes ago, RoF said:

In tb are you you pointing it towards your layers config? You say "Unable to load the file "P:Map\source\layers.cfg" but all your files are in P:\Moray...

 

Also you should have saved your project in source\TerrainBuilder. I'm not sure if that stuff is going to get packed with your map when you do it...

 

Just seen your height and sat map, what is going on there? You only have half a map! :icon_confused: What size is that sat map?

The map is based off a coastline however i was following a a tutorial that was for islands so i ended up with a smooth southern border. the map itself i believe s maybe 40km across

 

Share this post


Link to post
Share on other sites

what size in pixels is your sat map? if it's 40km map it should be 40960x40960

Share this post


Link to post
Share on other sites

Can you post another screen shot of your terrain builder set window. I want to compare the layers paths. 

 

Edited - you are missing a bracket after class Colors. Add that as see what happens

 

Also don't "need" to have the sat the same size as the terrain. If it's bigger it will be a higher resolution then the height map and will look better. If you do it the other way and make it smaller then the height map it will look lower resolution and not as good. Generally the rule is to at least shoot for 1px per meter. That 1:1.  

Share this post


Link to post
Share on other sites

In your class-definitions for you are missing some "".

 

Yours is:

class Grass_Green
    {
        texture = ;
        material = "Moray\data\grass_green.rvmat";
    };

While it should have this:
texture = "";

______________

 

And you are missing one { in your class Legend

 

{
    {

     picture = "Moray\source\maplegend.png";

 

Perhaps this might be enough to solve the problem

Share this post


Link to post
Share on other sites
8 minutes ago, Cosmo_D41 said:

In your class-definitions for you are missing some "".

 

Yours is:


class Grass_Green
    {
        texture = ;
        material = "Moray\data\grass_green.rvmat";
    };

While it should have this:
texture = "";

______________

 

And you are missing one { in your class Legend

 

{
    {

     picture = "Moray\source\maplegend.png";

 

Perhaps this might be enough to solve the problem

Haha. Shoot I forgot to mention the "" as well. That what happens when you type all this on your phone :)

Share this post


Link to post
Share on other sites
16 minutes ago, m1lkm8n said:

Can you post another screen shot of your terrain builder set window. I want to compare the layers paths. 

 

Edited - you are missing a bracket after class Colors. Add that as see what happens

 

Also don't "need" to have the sat the same size as the terrain. If it's bigger it will be a higher resolution then the height map and will look better. If you do it the other way and make it smaller then the height map it will look lower resolution and not as good. Generally the rule is to at least shoot for 1px per meter. That 1:1.  

I think mine is 30px per metre

Share this post


Link to post
Share on other sites

I have also changed everything that people has said and added the right characters and it still fails to load.

Share this post


Link to post
Share on other sites

Hey,

 

Looking at your layers.cfg....

 

On top of what everyone else has said....

 

You seem to be missing several open brackets in your statements, you have the closers but not the openers.  This thing.... "{"

Class Grass_Green is set correctly, but the underwater & Beach are not.

 

class Layers

{
    class Grass_Green
    {
        texture = "";
        material = "Moray\data\grass_green.rvmat";
    };
    class Underwater

--PLEASE ADD ME HERE
        texture = "";
        material = "Moray\data\underwater.rvmat";
    };
    class Beach

--PLEASE ADD ME HERE
        texture = "";
        material = "Moray\data\beach.rvmat";
    };
};
class Legend
{
    picture = "Moray\source\maplegend.png";
    class Colors

--PLEASE ADD ME HERE
        Grass_Green[] = {{0,255,0}};
        Underwater[] = {{0,0,255}};
        Beach[] = {{248,255,185}};
    };
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×