Jump to content
Sign in to follow this  
icewindo

Clutter not working properly

Recommended Posts

Hi,

I have some issues with clutter. I used the samplemap and it had the sm_grass clutter allready defined. I used this clutter and ingame all sm_grass surfaces will show the clutter.

However, now I added a new clutter for the surface "pole1". This new clutter doesn't appear and I dunno why. I copied the sm_grass config files and adjusted them for pole1 and I can't find the error. Maybe it's just a small thing, but I'm not seeing it.

layers.cfg:

class Layers

{

class pisek

{

texture = "Ice_sgcislands\sgcislands\Data\pisek_mco.png";

material="Ice_sgcislands\sgcislands\Data\pisek.rvmat";

};

class travajih

{

texture = "Ice_sgcislands\sgcislands\Data\travajih_mco.png";

material="Ice_sgcislands\sgcislands\Data\travajih.rvmat";

};

class mesto2

{

texture = "Ice_sgcislands\sgcislands\Data\mesto2_mco.png";

material="Ice_sgcislands\sgcislands\Data\mesto2.rvmat";

};

class pole1

{

texture = "Ice_sgcislands\sgcislands\Data\pole1_mco.png";

material="Ice_sgcislands\sgcislands\Data\pole1.rvmat";

};

class sm_grass

{

texture = "Ice_sgcislands\sgcislands\Data\sm_grass_mco.png";

material= "Ice_sgcislands\sgcislands\Data\sm_grass.rvmat";

};

};

class Legend

{

picture="Ice_sgcislands\sgcislands\Source\mapLegend.png";

class Colors

{

/// color names should correspond to surface layer names

pisek[]={{255,255,0}};

sm_grass[]={{0,255,0}};

travajih[]={{255,255,255}};

mesto2[]={{0,0,255}};

pole1[]={{99,55,0}};

}

};

cfgSurfaces.hpp:

class CfgSurfaces

{

class Default {};

class SMgrassSurface : Default

{

files = "sm_grass_*";

rough = 0.1;

dust = 0.1;

soundEnviron = "grass";

character = "sm_grassClutter";

};

class pole1Surface : Default

{

files = "pole1_*";

rough = 0.1;

dust = 0.1;

soundEnviron = "grass";

character = "pole1Clutter";

};

};

class CfgSurfaceCharacters

{

class sm_grassClutter

{

probability[]={0.79,0.1,0.1,0.01};

names[]={sm_GrassCrookedGreen,sm_GrassCrooked,sm_AutumnFlowers,sm_WeedDead};

};

class pole1Clutter

{

probability[]={0.5,0.5};

names[]={pole1_GrassCrooked,pole1_WeedDead};

};

};

cfgClutter.hpp:

class sm_AutumnFlowers: DefaultClutter

{

model=ca\plants2\clutter\c_autumn_flowers.p3d;

affectedByWind = 0.4;

swLighting = true;

scaleMin = 0.7;

scaleMax = 1.0;

};

class sm_GrassCrooked: DefaultClutter

{

model=ca\plants2\clutter\c_GrassCrooked.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.7;

scaleMax = 1.4;

};

class sm_GrassCrookedGreen: DefaultClutter

{

model=ca\plants2\clutter\c_GrassCrookedGreen.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.9;

scaleMax = 1.3;

};

class sm_WeedDead: DefaultClutter

{

model=ca\plants2\clutter\c_WeedDead.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.75;

scaleMax = 1.1;

};

class pole1_AutumnFlowers: DefaultClutter

{

model=ca\plants2\clutter\c_autumn_flowers.p3d;

affectedByWind = 0.4;

swLighting = true;

scaleMin = 0.7;

scaleMax = 1.0;

};

class pole1_GrassCrooked: DefaultClutter

{

model=ca\plants2\clutter\c_GrassCrooked.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.7;

scaleMax = 1.4;

};

class pole1_GrassCrookedGreen: DefaultClutter

{

model=ca\plants2\clutter\c_GrassCrookedGreen.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.9;

scaleMax = 1.3;

};

class pole1_WeedDead: DefaultClutter

{

model=ca\plants2\clutter\c_WeedDead.p3d;

affectedByWind = 0.3;

swLighting = true;

scaleMin = 0.75;

scaleMax = 1.1;

};

Edited by Icewindo

Share this post


Link to post
Share on other sites

All looks OK to me at first glance... except for the...

class Layers

as the first line of cfgClutter.cfg... that doesn't belong there... did that error creep in while posting the scripts here? or is it in the actual one in use? Dunno if that would be enough to cause your problem but it definitely shouldn't be in there...

B

Share this post


Link to post
Share on other sites
All looks OK to me at first glance... except for the...

class Layers

as the first line of cfgClutter.cfg... that doesn't belong there... did that error creep in while posting the scripts here? or is it in the actual one in use? Dunno if that would be enough to cause your problem but it definitely shouldn't be in there...

B

Yep, that was a mishap during copying the contents. Hmm, yep, I found no errors in there too. :icon_neutral:

Share this post


Link to post
Share on other sites

Do you have any other islands loaded which are using the same clutter classname or config? I had this problem when using two of my islands which had the same clutter config.. the clutter was gone.

Share this post


Link to post
Share on other sites

Good point!

If these scripts look OK - and they do, maybe it's an external cause as Beton suggests...

Another longshot "external cause" might be - I notice the addition of your new terrain type brings your total up to 5... you can only have 4 groundtexture/clutter combos per "segment" (varies according to map size, but pretty big - say 500x500m) - did you check that the new clutter is not showing in ALL areas? - if there's more than 4 defined for any given area the 5th might not show at all...

B

Edited by Bushlurker

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
Sign in to follow this  

×