Foliage problem

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
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Foliage problem

Post by Darth_Spiderpig »

Again I seek to be iluminated, I wanted to change the msh of the naboo foliage to Sky's desert grass model, so i opened my ***.prp and changed the File

Code: Select all

File("desert_grass.msh", 30);
Ingame it now just have the single grass parts lying around.Image

I have the stock naboo grass/grass_close odf for it, anyone know what could be wrong?

EDIT:
Image

That is what I mean.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Foliage problem

Post by Maveritchell »

Post a screenshot of both the stock texture and your new texture. Post the .odf of the grass you are using.
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: Foliage problem

Post by Darth_Spiderpig »

No need, got it all working.

All I did in the .prp was changing this

Code: Select all

Layer(0)
{
	SpreadFactor(0.3);
	Mesh()
	{
		GrassPatch("GRASS.odf", 60);
		File("NEWMODEL.msh", 50);
		Frequency(100);
		Scale(1);
		Stiffness(0.0);
		CollisionSound("foliage_collision");
	}
to this

Code: Select all

Layer(0)
{

	SpreadFactor(0.4);
 	Mesh()
	{
		File("NEWMODEL.msh", 30);
		Frequency(20);
		Scale(2);
		Stiffness(0.0);
		CollisionSound("foliage_collision");
	        ColorVariation(0.2);
		AIVisibilityFactor(0.7,1.0);
	}
}

Thanks for trying to help anyway, Mav.
I really appreciate it. :wink:
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Foliage problem

Post by lucasfart »

Try changing stifness to 1.0, and is that mesh named right? Because unless its a custom msh/renamed msh, there's no need to change the name...
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: Foliage problem

Post by Darth_Spiderpig »

Darth_Spiderpig wrote:No need, got it all working.
;D

It was no stock msh btw,
Darth_Spiderpig wrote:I wanted to change the msh of the naboo foliage to Sky's desert grass model
:P
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Foliage problem

Post by lucasfart »

Oops :oops: Sorry about that lol, didn't read your last post
Post Reply