SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: {AR}MetalKiller on June 30, 2022, 09:47:47 AM

Title: Missing foliage
Post by: {AR}MetalKiller on June 30, 2022, 09:47:47 AM
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);
}
}

Title: Re: Missing foliage
Post by: {AR}MetalKiller on January 30, 2023, 08:18:59 AM
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
    }
Title: Re: Missing foliage
Post by: Unit 33 on January 31, 2023, 04:34:18 AM
Excellent work! I welcome a productive, problem solving bump such as this.
EhPortal 1.34 © 2024, WebDev