How do you add lava?

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

GolfBulb

How do you add lava?

Post by GolfBulb »

How do u add lava, i know how to add water but its diffrent, i tried adding the water way then taking the Mus .FX and the lava .TGA and puting it together. but it made my map crash, and if it didnt crash.. it was Kashyyk water.. so please help
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: lava...............lava!

Post by Taivyx »

Use this as the basis:

- Get a lava texture, whether from the assets or internet
- Go to your ***.fx
- Make this your water part of your fx:
Effect("Water")
{
// general parameters
PatchDivisions(8,8);
Tile(2.0,2.0);

// ocean parameters
OceanEnable(0);

// water event parameters
WaterRingColor(228, 155, 15,255);
WaterWakeColor(228, 155, 15,255);
WaterSplashColor((228, 155, 15,255);

DisableLowRes();

// PS2 parameters
PS2()
{
Velocity(0.0,0.0);
LODDecimation(8);
MainTexture("mus1_main_4.tga");
MinDiffuseColor(32, 40, 32, 255);
MaxDiffuseColor(128, 130, 128, 255);
BorderDiffuseColor(160, 160, 160, 255);
//SpecularColor(192, 192, 192, 192);
//SpeckleSpecularColor(160, 160, 160, 255);
//SpeckleAmbientColor(0, 0, 0, 255);
//SpeckleTextures("water_specularmask_",25, 2.0);
//SpeckleTile(4.0, 4.0);
//SpeckleScrollSpeed(0.0,0.0);
//SpeckleCoordShift(10.0,10.0);
LightAzimAndElev(1.0,0.0);
}
// PC parameters
PC()
{
Tile(1.0,1.0);
Velocity(0.01,0.02);
MainTexture("lava.tga");
LODDecimation(1);

RefractionColor(160, 100, 0, 255);
ReflectionColor(204,51,51,255);
UnderwaterColor(204, 85, 0, 200);
FresnelMinMax(0.2,0.7)

NormalMapTextures("water_normalmap_",16,8.0);
//BumpMapTextures("water_bumpmap_",16,8.0);
//SpecularMaskTextures("water_specularmask_",25, 2.0);
//SpecularMaskTile(4.0,4.0);
//SpecularMaskScrollSpeed(0.0,0.0);
}
// XBOX parameters
XBOX()
{
Velocity(0.01,0.002);
LODDecimation(1);
RefractionColor(128, 130, 128, 64);
ReflectionColor(150,150,150,150);
UnderwaterColor(128, 130, 128, 64);
FresnelMinMax(0.2,0.7)
NormalMapTextures("water_normalmap_",16,8.0);
}
}
- Substitute lava.tga to whatever your lava texture is called.
- Put your lava texture in your effects and world1 folder.
- Munge and it should work if you set up your water correctly.
Last edited by Taivyx on Tue Sep 04, 2007 7:26 pm, edited 1 time in total.
GolfBulb

Re: lava...............lava!

Post by GolfBulb »

i know it might sound silly buyt.. i dont have an effect folder should i make one?
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: lava...............lava!

Post by Taivyx »

Of course.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

um...that would affect all water on your map, right?

so from now on if you tried to place water in that map, it would appear as water, i'm assuming?
Last edited by BountyHunterV on Tue Sep 04, 2007 10:32 pm, edited 1 time in total.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: lava...............lava!

Post by Taivyx »

Well, I believe so.
I don't think there's any other way of doing it.

However, if there is, that would be cool.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

sorry, i meant:

so from now on if you tried to place water in that map, it would appear as LAVA, i'm assuming?



if that is true, than that stinks, cause i had a map in mind with both lava and water...does anybody know if that's possible?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
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: lava...............lava!

Post by Teancum »

If I remember right the Mustafar lava is an animated model.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Re: lava...............lava!

Post by Penguin »

Also there was an unused tile .odf for lava somewhere, someone posted it along time ago.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

penguin do you know where exactly that .odf is? cause the search is still a little screwy
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: lava...............lava!

Post by Maveritchell »

I don't know why so many people get hung up on lava. It's just differently-colored water. You put it in just like normal water. If you don't want to have to deal with:

a) It only showing the texture on low settings (like all water does anyway), or
b) It affecting all the water on your map,

then just reskin a flat object with lava textures (mus_main_3 is the Mustafar lava texture, I think) and place like any other object.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

i guess...i was just thinkin it would be really cool if troopers could, you know, wade through it and stuff..thats all
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: lava...............lava!

Post by Taivyx »

All you have to do for them to be able to do that is to give it no collision.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

oh...i didn't know you could do that

how do you give an ODF no collision?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: lava...............lava!

Post by AceMastermind »

In a msh.option file enter this:
-nocollision

If there is no msh.option file for the mesh you're using, then create one.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

does it matter where in the file you put it?
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: lava...............lava!

Post by Taivyx »

Nope!
:)
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Re: lava...............lava!

Post by Penguin »

It does, can't put it in the middle of another word, must have a space before it if theres something else in front :P
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: lava...............lava!

Post by Taivyx »

Oh, well, duh.
That's a given, lol.
BountyHunterV

Re: lava...............lava!

Post by BountyHunterV »

lol...

in general is this true with all ODFs? like if theres a line you want to add like "WeaponShareAmmo" for instance does it matter where you put it?
Post Reply