Model Shows in ZE but not in BF2

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
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Model Shows in ZE but not in BF2

Post 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?
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Model Shows in ZE but not in BF2

Post by Aman/Pinguin »

All I can say is: It's not the ODF.
Probably something with your model is wrong...
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Model Shows in ZE but not in BF2

Post 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.
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Re: Model Shows in ZE but not in BF2

Post by Karnage »

How do I change that then? Because it is a common layer and says it loads no matter what.
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Model Shows in ZE but not in BF2

Post by tsurugi13 »

I'm having the same problem and I tried putting the model on every layer, still nothing.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Model Shows in ZE but not in BF2

Post 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?
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Model Shows in ZE but not in BF2

Post 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:
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Re: Model Shows in ZE but not in BF2

Post 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.
Crazy_Ewok
2008 Best Amateur Avatar
Posts: 256
Joined: Wed Jan 23, 2008 6:49 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Midwest

Re: Model Shows in ZE but not in BF2

Post 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.
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Battling the ISA menace on Helghan.

Re: Model Shows in ZE but not in BF2

Post 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?
Crazy_Ewok
2008 Best Amateur Avatar
Posts: 256
Joined: Wed Jan 23, 2008 6:49 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Midwest

Re: Model Shows in ZE but not in BF2

Post by Crazy_Ewok »

That should be whatever you named your layer in Zero editor
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Model Shows in ZE but not in BF2

Post 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.
Crazy_Ewok
2008 Best Amateur Avatar
Posts: 256
Joined: Wed Jan 23, 2008 6:49 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Midwest

Re: Model Shows in ZE but not in BF2

Post 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.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Model Shows in ZE but not in BF2

Post 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.
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Re: Model Shows in ZE but not in BF2

Post by Karnage »

Thanks RepSharpshooter! That did it.

Everything works now. :thumbs:
Post Reply