Jump to content
slawterer

Layers generation - Unable to load file "P:\"

Recommended Posts

I'm trying to create an island, and the layers generation is failing with the following error:

Layers generation - Unable to load the file "P:\".

 

Can't load image from file 'P:\': file does not exist

Layers generation - PNGOVerlapV3Style.cpp   bool v3PictureDataMod::LoadFromFile( const char* filename = "P:\") Unable to open the image file.

Layers generation - Unable to load file "P:\".

 

 

I have looked over the forums and most people who have this issue say they resolved it by fixing a typo in their Layers.cfg file, however I cannot find one. If any of you can spot where I've gone wrong I will be eternally grateful.

class Layers
{
  class grass_green
  {
    texture = "";
    material = "slawterer\mann\data\grass_green.rvmat";
  };
  class sand
  {
    texture = "";
    material = "slawterer\mann\data\sand.rvmat";
  };
  class seabed
  {
    texture = "";
    material = "slawterer\mann\data\seabed.rvmat";
  };
  class steep_grass
  {
    texture = "";
    material = "slawterer\mann\data\grass_steep.rvmat";
  };
  class weed
  {
    texture = "";
    material = "slawterer\mann\data\grass_weed.rvmat";
  };
  class concrete
  {
    texture = "";
    material = "slawterer\mann\data\concrete.rvmat";
  };
    class cliff
  {
    texture = "";
    material = "slawterer\mann\data\rock.rvmat";
  };
    class scrub
  {
    texture = "";
    material = "slawterer\mann\data\grass_dry.rvmat";
  };
    class steep_scrub
  {
    texture = "";
    material = "slawterer\mann\data\thistles.rvmat";
  };
};

class Legend
{
  picture="slawterer\mann\source\mapLegend.png";
  class Colors
  {
	seabed[]={{230,230,120}};
	grass_green[]={{140,195,80}};
	steep_grass[]={{140,185,70}};
	scrub[]={{170,190,80}};
	steep_scrub{{=170,180,70}};
	sand[]={{120,190,180}};
	weed[]={{170,180,70}};
	cliff[]={{120,120,120}};
	concrete[]={{255,0,255}};
  };
};

Share this post


Link to post
Share on other sites

Is your layers.cfg in the source folder ? the same place you have your mapLegend.png

I don't see anything obvious wrong with your layers.cfg

 

Is your 'slawterer' folder in the root of your P drive ?

Share this post


Link to post
Share on other sites

double check your rvmats like go in them and double check the paths and also redo the P drive i had the same issue at one time

Share this post


Link to post
Share on other sites

I would rebuild your P drive. I had this problem but it resolved itself after i uninstalled and reinstalled the P drive.

 

Also, check your directory and make sure your files are placed in the correct location. your layers.cfg should be placed in the source folder

Share this post


Link to post
Share on other sites

here you go...

 

steep_scrub{{=170,180,70}};

 

should be ={{

  • Like 1

Share this post


Link to post
Share on other sites

Lol! Set up ya p drive! Rebuild ya p/drive! Check this checkthat, and all it was was a typo. Nine times out of ten it'll be a typo. No need to do all the other if your files are all sorted and in the right place. Sometimes it does take an extra eye to find to mistake, which is what the forum is for ain't it?

Well spotted jimbop.

My point really, is don't panic about it. User error happens all the time. If your p drive works and you don't have issues with it. Leave it alone. If its not broke don't fix it. Typos always happen, post your query take a breather and make a drink. Someone else will find it if you become blinded by code.

Happy days!

Share this post


Link to post
Share on other sites

here you go...

 

steep_scrub{{=170,180,70}};

 

should be ={{

He also needs [ ] infront of =

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

×