Foliage isn`t showing up ingame [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Foliage isn`t showing up ingame [Solved]

Post by SkinnyODST »

I read the foliage section of this thang https://sites.google.com/site/swbf2modt ... -EDIT-MODE and placed some foliage down but nothing shows up.
Here`s the odf of kas2_prop_bush, I`m attempting to make 2 kinds of bush show up, kas2 bush of course, and also yav_prop_bush. What am I doing wrong? Everything?
Thought so... I`m sorry but for a Yavin map, foliage is a vital thing I need to know how to do, and I just can`t seem to fully understand how to make it work
kas2_prop_bush odf
Hidden/Spoiler:
[code][GameObjectClass]

ClassLabel = "grasspatch"
GeometryName = "editor_prop_bush.msh"


[Properties]

MinSize = "1.6"
MaxSize = "1.9"
Alpha = "1.0"
NumParticles = "40"
MaxDistance = "30"
Texture = "kas_grass"
RadiusFadeMin = "3.0"
RadiusFadeMax = "5.0"
Height = "0.5"

DarknessMin = "1.0"
DarknessMax = "0.8"

MaxScatterBirds = "3"

Layer(0)

{

SpreadFactor(0.4);

Mesh()

{

File("kas2_prop_bush.msh", 30);

Frequency(20);

Scale(1);

Stiffness(0.0);

CollisionSound("foliage_collision");

ColorVariation(0.2);

}

Mesh()

{

File("yav_prop_bush.msh", 50);

Frequency(80);

Scale(1);

Stiffness(0.0);

CollisionSound("foliage_collision");

ColorVariation(0.2);

}

}
[/code]
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Foliage isn`t showing up ingame

Post by Marth8880 »

Code: Select all

Layer(0)
{
SpreadFactor(0.4);
      Mesh()
      {
      File("kas2_prop_bush.msh", 30);
      Frequency(20);
      Scale(1);
      Stiffness(0.0);
      CollisionSound("foliage_collision");
      ColorVariation(0.2);
      }
      Mesh()
      {
      File("yav_prop_bush.msh", 50);
      Frequency(80);
      Scale(1);
      Stiffness(0.0);
      CollisionSound("foliage_collision");
      ColorVariation(0.2);
      }
}
This goes in your world's PRP file, not the foliage's ODF file.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11079
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Foliage isn`t showing up ingame

Post by Teancum »

I believe the mod tools documentation cover this as well.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Foliage isn`t showing up ingame

Post by Marth8880 »

Teancum wrote:I believe the mod tools documentation cover this as well.
Indeed - quite exhaustively, in fact.
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: Foliage isn`t showing up ingame

Post by SkinnyODST »

Where exactly is this illusive PRP file? Is it in the world1 folder? Because I can`t find it there. Yes I know I`m an idiot, I don`t know why foliage is so hard for me to understand but it is
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Foliage isn`t showing up ingame

Post by Marth8880 »

The PRP file goes in your world1 folder, yes. If it does not exist, create it or copy one from one of the stock worlds (such as Endor).
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: Foliage isn`t showing up ingame

Post by SkinnyODST »

Omg yes it works! Thanks for your help!! This will come in VERY handy.
Post Reply