Help with mist effect [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
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Help with mist effect [Solved]

Post by [TFA]Padawan_Fighter »

I guess I should first mention this:

I recently got old files off of my old computer (the motherboard broke). Before it broke, I had my mods on it. On one of the maps were about 3 dag_prop_mist ODFs in there. They didn't work, but I knew what it was, so I figured I'd fix it later. After it broke, I got the files off and put them onto a new computer. Now it works, but ONLY IN THOSE 3 SPOTS. Anywhere else it will not show up. The 3 objects are deleted from the map, but if you put the right assets in the game, they'll pop up.

Looking for another way around this, I renamed the Dagobah mist assets to different names (and made sure they all reference eachother), but that didn't work. There had to be something I'm missing.


I made a different map trying to put the Dagobah mist into there. To my surprise, ZeroEditor crashed when I placed dag_prop_mist.odf into the map. So obviously, I have to be missing something.


Things I put in the second map:

Mist .fx, in Data_***/Worlds/***/effects

Mist texture, in the same location

Mist ODF, in Data_***/Worlds/***/world1/odf


Is that all I needed for this, or is there something else? It always seems to crash on the test map, and on the main map I'm working on it simply does not show up. Can someone help?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

If you put any odf in ZE without a MSH file associated with it, ZE will crash. Usually for effects you give it a small, invisible, collisionless msh.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

Where do I find this collisionless msh?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

You can make anything collisionless by giving it a msh.option file with the switch -nocollision.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

Ah...it's editor_grasspatch, correct?


Okay...in my test map, I put the msh file in the game. Now I can get the objects in ZE, but they still don't show up ingame.


Am I still missing something??
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

Yes.

Rather than explain it all out myself, just take a look at myg1_bldg_fire_effect.odf in the stock Mygeeto world assets. Look how it's set up, look at its corresponding mesh (it's very, very small), look how the effect is attached to it by an odf line, and everything else.

You may as well just copy this asset to your own world's folders and just rename the appropriate things. Should you do that, however, you'll also want to make a msh.option.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

I don't get it.


Basically, what you're saying is I should look at the .odf and see what it connects to?

Dag1_prop_mist.odf's msh is editor_grasspatch.msh, and its .fx is dag1_mist.fx. I have both.


*EDIT* Ah..hmm..okay. Now that I looked at the Mygeeto .odf I noticed something. That odf has an AttachEffect line to it. The Dagobah mist prop however, does not...

Code: Select all

[GameObjectClass]		

ClassLabel		=	"dusteffect"
GeometryName	=	"editor_grasspatch.msh"


[Properties]		

MinPos = "-15 1 -15"
MaxPos = "15 6 15"
MinVel = "-1 0 -1"
MaxVel = "1 0 1"
MinSize = "100"
MaxSize = "100"
MinLifeTime = "3"
MaxLifeTime = "6"
Alpha = "0.1"
NumParticles = "100"
MaxDistance = "100"
Texture = "dag1_mist"
RadiusFadeMin = "0"
RadiusFadeMax = "1"
HeightScale = "0.8"
SpawnSound = ""

So I get the idea of what to put in the AttachEffect parameter. But how do I use AttachHardpoint? How do I find out what the names of the hardpoints in the prop are?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

Open the msh and search for "hp_" without the quotes. In myg_bldg_fire_effect's msh, it's hp_fire, I believe.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

How strange...in editor_grasspatch.msh, there is no hp_ anything. Should I switch to a different msh?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

Yes. That mesh was never meant to be an emitter.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

Well, I changed the msh, but it's still not showing up.

I'm posting the new .odf now. Anything wrong with it?
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "dusteffect"
GeometryName = "myg1_bldg_fire_effect.msh"


[Properties]

GeometryName = "myg1_bldg_fire_effect"

MinPos = "-15 1 -15"
MaxPos = "15 6 15"
MinVel = "-1 0 -1"
MaxVel = "1 0 1"
MinSize = "100"
MaxSize = "100"
MinLifeTime = "3"
MaxLifeTime = "6"
Alpha = "0.1"
NumParticles = "100"
MaxDistance = "100"
Texture = "dag1_mist"
RadiusFadeMin = "0"
RadiusFadeMax = "1"
HeightScale = "0.8"
SpawnSound = ""

AttachEffect = "dag1_mist""

AttachToHardPoint = "hp_fire_01"
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

Yes. This:
Hidden/Spoiler:
[quote]
Post subject: Re: Help with mist effect

Well, I changed the msh, but it's still not showing up.

I'm posting the new .odf now. Anything wrong with it?

Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "dusteffect"
GeometryName = "myg1_bldg_fire_effect.msh"


[Properties]

GeometryName = "myg1_bldg_fire_effect"



MinPos = "-15 1 -15"
MaxPos = "15 6 15"
MinVel = "-1 0 -1"
MaxVel = "1 0 1"
MinSize = "100"
MaxSize = "100"
MinLifeTime = "3"
MaxLifeTime = "6"
Alpha = "0.1"
NumParticles = "100"
MaxDistance = "100"
Texture = "dag1_mist"
RadiusFadeMin = "0"
RadiusFadeMax = "1"
HeightScale = "0.8"
SpawnSound = ""


AttachEffect = "dag1_mist""

AttachToHardPoint = "hp_fire_01"[/quote]
is unnecessary.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

Alright, I took it out...still nothing. Are you sure I have everything?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

Aia, this shouldn't be so hard. Just copy over all the myg_bldg_fire_effect assets and rename/edit what you need to rename/edit. If that doesn't work, you can try this, following Step 2 at the very bottom of the tutorial.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

Alright, it works now! Now how do I make it bigger? I tried fooling with it in PE but I don't see any changes being made.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Help with mist effect

Post by Fiodis »

Then keep fooling with it in PE, you must be doing something wrong. What are you doing in PE to make it bigger?
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Help with mist effect

Post by [TFA]Padawan_Fighter »

I just looked wherever it looked like I could make it taller. I tried using Frame height, Y position...wait. I found where the Size parameter is at...that looks like what I want...


Okay, I think the problem's solved. Thank you, Fiodis.
Post Reply