Page 1 of 1

Model Shows in ZE but not in BF2

Posted: Sat Jun 21, 2008 4:36 pm
by Karnage
So for starters, I just started to figure out modeling again. I made a box with a texture, exported it with Crosswalk, and converted it to a MSH. The name of the MSH is CardboardBox.msh.

Then I created an ODF called CardboardBox.odf.

This is what it looks like:
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "prop"
GeometryName = "CardboardBox.msh"


[Properties]

GeometryName = "CardboardBox"
I put it in my own layer in the DMI world. It shows up in ZE as the box with the texture, but it doesn't show up in-game. I've cleaned and munged twice. I get no errors about the ODF, the MSH, or the TGA texture.

What's going on?

Re: Model Shows in ZE but not in BF2

Posted: Sat Jun 21, 2008 4:41 pm
by Aman/Pinguin
All I can say is: It's not the ODF.
Probably something with your model is wrong...

Re: Model Shows in ZE but not in BF2

Posted: Sat Jun 21, 2008 6:28 pm
by Caleb1117
I had this problem. :wink:
It's simple, really but easy to miss, your layer isn't associated with the Eli mode, in ZE, so the objects put in that layer do not show in that mode, which is the only mode.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 4:17 am
by Karnage
How do I change that then? Because it is a common layer and says it loads no matter what.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 12:56 pm
by tsurugi13
I'm having the same problem and I tried putting the model on every layer, still nothing.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 1:17 pm
by Blade
Off-topic @tsurugi: Did you ever figure out what was going wrong with the exported models, that they were causing the terrain and such to not load?

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 3:32 pm
by tsurugi13
Blade wrote:Off-topic @tsurugi: Did you ever figure out what was going wrong with the exported models, that they were causing the terrain and such to not load?
Sort of. The beta 2 of mshex fixed it.
(whatever it was) now I just can't seem to get files ingame. :faint:

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 6:18 pm
by Karnage
Ya I still can't figure it out. I tried loading the data from my layer into the Base layer but nothing is happening.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 6:43 pm
by Crazy_Ewok
In your layer, make two command posts, one for team 2 and one for team one. All you need is the cp and a spawn path, no need for a capture region since it's hero assault. Once you have those made go to data_DMI/Common/scripts/DMI/DMI_lua and change this:

Code: Select all

    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("dc:DMI\\DMI.lvl", "DMI_eli")
    SetDenseEnvironment("false")
To this:

Code: Select all

    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("dc:DMI\\DMI.lvl", "DMI_Karnage")
    SetDenseEnvironment("false")
I think this works. The map loaded for me and I could enter my house but when I tried to turn, the map crashed. I'm guessing the crash is water related.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 8:03 pm
by tsurugi13
To this:
Code:
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:DMI\\DMI.lvl", "DMI_Karnage")
SetDenseEnvironment("false")

Can this just be anything? or does it have to be something specific?

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 8:05 pm
by Crazy_Ewok
That should be whatever you named your layer in Zero editor

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 8:56 pm
by Caleb1117
Crazy_Ewok wrote:In your layer, make two command posts, one for team 2 and one for team one. All you need is the cp and a spawn path, no need for a capture region since it's hero assault. Once you have those made go to data_DMI/Common/scripts/DMI/DMI_lua and change this:

Code: Select all

    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("dc:DMI\\DMI.lvl", "DMI_eli")
    SetDenseEnvironment("false")
To this:

Code: Select all

    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("dc:DMI\\DMI.lvl", "DMI_Karnage")
    SetDenseEnvironment("false")
I think this works. The map loaded for me and I could enter my house but when I tried to turn, the map crashed. I'm guessing the crash is water related.
Couldn't you do this?

Code: Select all

    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("dc:DMI\\DMI.lvl", "DMI_eli")
    ReadDataFile("dc:DMI\\DMI.lvl", "DMI_Karnage")
    SetDenseEnvironment("false")
That way, it loads the CPs from the Eli layer, and all the objects in it, plus your layer's.

I'm gonna test it.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 9:00 pm
by Crazy_Ewok
You probably could. I set mine back to DMI_eli just to see what would happen and my house and everything else showed up.

Re: Model Shows in ZE but not in BF2

Posted: Sun Jun 22, 2008 9:00 pm
by RepSharpshooter
no no no no no no no no... put everything back the way it was.
  1. Open ZE, load dmi.wld
  2. Click the Game Modes: CONFIGURE button. (by the layer thing)
  3. Under common layers, REMOVE YOUR LAYER THAT YOU CREATED. (don't worry, this doesn't delete it)
  4. Click on ELI under mode name.
  5. Under "Layers Used" click "add"
  6. Select the layer that you created, ex. DMI_Karnage
  7. Click the update REQ and Mode REQ button.
  8. Save world.

Re: Model Shows in ZE but not in BF2

Posted: Wed Jun 25, 2008 2:25 am
by Karnage
Thanks RepSharpshooter! That did it.

Everything works now. :thumbs: