Foliage Not Working!

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
ibrahimturk
Recruit Womprat Killer
Posts: 10
Joined: Tue Feb 12, 2013 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: Cod4 SWBF 2
xbox live or psn: No gamertag set

Foliage Not Working!

Post by ibrahimturk »

I've tried to put foliage on my maps but for some reason it wont appear at all. In editor or in game. Heres the PRP file and the ODF file.
Hidden/Spoiler:
Layer(0)
{
SpreadFactor(0.3);
Mesh()
{
GrassPatch("yav_prop_grass.odf", 60);
File("editor_grasspatch.msh", 50);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}


}
And the ODF file (For the grass)
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "grasspatch"
GeometryName = "editor_grasspatch.msh"


[Properties]

MinSize = "1.2"
MaxSize = "1.6"
Alpha = "1.0"
NumParticles = "60"
MaxDistance = "30"
Texture = "yav_grass"
RadiusFadeMin = "3.0"
RadiusFadeMax = "4.0"

DarknessMin = "0.2"
DarknessMax = "0.4"
The PRP File is saved in the world folder, the ODF file is saved in the ODF folder and the msh folder is in the Msh folder. I tried to fix the problem with my buddy Loopy53 but we tried different things with no luck

Please help me out, your buddy

Ibrahim
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 Not Working!

Post by Marth8880 »

Dumb question, but you've tried placing the foliage in the editor already, right? Also, your .prp file's name must be your world's three-character ID.

Oh, and note that you (the "camera") have to be relatively close to the terrain in the editor for the foliage to appear; also know that some stock foliage uses the white, cylindrical editor_grasspatch mesh to display the foliage in the editor.
ibrahimturk
Recruit Womprat Killer
Posts: 10
Joined: Tue Feb 12, 2013 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: Cod4 SWBF 2
xbox live or psn: No gamertag set

Re: Foliage Not Working!

Post by ibrahimturk »

The file is the worlds 3 letter ID, but thanks for the reply any way, Hopefully I figure out the problem soon enough
Post Reply