Missing foliage

Started by {AR}MetalKiller, June 30, 2022, 09:47:47 AM

Previous topic - Next topic
Hey guys,

since it is 2022, I thought it would be a good time to create my first mod map in swbf  :rofl: .
I am on my finishing touches, but ran into some issues with the foliage.
Below you find the .prp file of the map, which is pretty standard.
The foliage shows in the zero editor but not in the game after munging.
I already tried to reduce the spread of the foliage and the number of used layers, with the same result.
Do you have any ideas what might be the problem?

Layer(0)
{
SpreadFactor(0.2);
Mesh()
{
GrassPatch("end_prop_grass.odf", 80);
File("editor_grasspatch.msh", 80);
Frequency(50);
Scale(1);
Stiffness(0.0);
        CollisionSound("foliage_collision");
        ColorVariation(0.2);
}
}

Layer(1)
{
SpreadFactor(0.4);
  Mesh()
{
File("end_prop_fern2.msh", 30);
Frequency(20);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
                ColorVariation(0.2);
}
}

Layer(2)
{
SpreadFactor(0.4);

  Mesh()
{
File("end_prop_foliage7.msh", 180);
Frequency(50);
Scale(1);
Stiffness(0.5);
CollisionSound("foliage_collision");
                ColorVariation(0.1);
FadeDist(10.0);
}
}

Layer(3)
{
SpreadFactor(0.4);

  Mesh()
{
File("end_prop_foliage6.msh", 180);
Frequency(50);
Scale(1);
Stiffness(0.5);
CollisionSound("foliage_collision");
                ColorVariation(0.1);
FadeDist(10.0);
}
}


Sorry to bump this topic, but after I had the same problem on another map I revisited the old map and found a fix.
The solution is fairly simple, I just did not uncomment the prop section in the requirement file.

    REQN
    {
        "prop"
        -- "mapname"              <-- Comment had to be removed manually
    }

Excellent work! I welcome a productive, problem solving bump such as this.