Page 1 of 1

Help with mist effect [Solved]

Posted: Sun Oct 03, 2010 6:57 am
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?

Re: Help with mist effect

Posted: Sun Oct 03, 2010 11:25 am
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.

Re: Help with mist effect

Posted: Sun Oct 03, 2010 4:21 pm
by [TFA]Padawan_Fighter
Where do I find this collisionless msh?

Re: Help with mist effect

Posted: Sun Oct 03, 2010 5:05 pm
by Fiodis
You can make anything collisionless by giving it a msh.option file with the switch -nocollision.

Re: Help with mist effect

Posted: Sun Oct 03, 2010 11:44 pm
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??

Re: Help with mist effect

Posted: Mon Oct 04, 2010 3:15 pm
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.

Re: Help with mist effect

Posted: Thu Oct 07, 2010 2:08 am
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?

Re: Help with mist effect

Posted: Thu Oct 07, 2010 3:18 pm
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.

Re: Help with mist effect

Posted: Fri Oct 08, 2010 3:29 am
by [TFA]Padawan_Fighter
How strange...in editor_grasspatch.msh, there is no hp_ anything. Should I switch to a different msh?

Re: Help with mist effect

Posted: Fri Oct 08, 2010 6:47 am
by Fiodis
Yes. That mesh was never meant to be an emitter.

Re: Help with mist effect

Posted: Sat Oct 09, 2010 6:15 pm
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"

Re: Help with mist effect

Posted: Sat Oct 09, 2010 7:43 pm
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.

Re: Help with mist effect

Posted: Sun Oct 10, 2010 10:16 pm
by [TFA]Padawan_Fighter
Alright, I took it out...still nothing. Are you sure I have everything?

Re: Help with mist effect

Posted: Mon Oct 11, 2010 10:35 am
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.

Re: Help with mist effect

Posted: Tue Oct 12, 2010 3:47 am
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.

Re: Help with mist effect

Posted: Tue Oct 12, 2010 6:51 am
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?

Re: Help with mist effect

Posted: Tue Oct 12, 2010 6:01 pm
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.