Model is crashing Zero Editor, but not the game [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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Model is crashing Zero Editor, but not the game [Solved]

Post by Marth8880 »

Alright, so I have a model that I'm making for my Mass Effect Mod. The model itself isn't completely finished yet, I still have to make it efficient and whatnot, but I have it (sloppily) UV'd and all already. I exported it using the new XSI ZE Tools, which all went well. When I opened it up in SWBF Viewer, everything looked just right, no problems there. I created an ODF for it, set its ClassLabel to "building" since it's the base structure of the map, saved it, and exited. Next, I launched Zero Editor, loaded up my map, browsed for the ODF, and when I opened it, Zero Editor froze for a second and crashed without any errors or dialogues.

This is where it gets freaky. :o

I edited the ODF to reference a different, working model, saved, launched Zero Editor and placed the object which all worked out fine. Then, I closed Zero Editor after saving, opened up the ODF again and changed it to reference the model that was crashing Zero Editor. I munged the map, launched Battlefront, loaded the map, and BAM!, there the model was, perfectly fine, no crashes. Confused, I launched Zero Editor, loaded up my map, but it crashed.

Does anybody know what could possibly be causing this odd Zero Editor crash? The model is only at 908 tris right now, so there's no way that could be the issue. Exporting the model using MshEx3 didn't fix or alter the problem, nor did changing the ClassLabel to "prop".
Last edited by Marth8880 on Tue Jan 03, 2012 6:49 pm, edited 1 time in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Model is crashing Zero Editor, but not the game

Post by AQT »

In my experience, removing SEGMs from MODLs without resizing the GEOMs properly will cause the model to crash ZE, but the model would show up fine in-game. So faulty hex editing or something related could be the problem.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by Marth8880 »

Hmm. But I haven't done any hex edits to the model though. :?
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: Model is crashing Zero Editor, but not the game

Post by Teancum »

Sometimes folks put ".msh" in both the geometryname for their [GameObjectClass] and [Properties] sections. Doing this in the ODF might have caused a crash.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by Marth8880 »

I only have the .msh file extension in the GeometryName parameter under [GameObjectClass].
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Model is crashing Zero Editor, but not the game

Post by AQT »

Teancum wrote:Sometimes folks put ".msh" in both the geometryname for their [GameObjectClass] and [Properties] sections. Doing this in the ODF might have caused a crash.
That only causes the game to crash, not ZE.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by Marth8880 »

All of the models I am exporting are contained in the same scene. Could this be the issue?
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by Cerfon Rournes »

Marth8880 wrote:All of the models I am exporting are contained in the same scene. Could this be the issue?
I once fixed a model problem by using a fresh dummyroot. Try that and see what happens. :)
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by Marth8880 »

Cerfon Rournes wrote:
Marth8880 wrote:All of the models I am exporting are contained in the same scene. Could this be the issue?
I once fixed a model problem by using a fresh dummyroot. Try that and see what happens. :)
What do you mean?


EDIT:

Oh, deleting the old dummyroot and making a new one. Well, the thing is, I am not using one in the first place since the ZE Tools produces the same error that TNA and Cerfon are getting if the model is exported under one.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by ANDEWEGET »

This error should be fixed now.
Could you send me the .msh? It might not be directly caused by my exporter but maybe Rep and me did something wrong? Id very much like to take a look at it. :)
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Model is crashing Zero Editor, but not the game

Post by DarthD.U.C.K. »

how large is the models texture? zero editor will crash when attempting to load 2048px textures or higher.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Model is crashing Zero Editor, but not the game

Post by Marth8880 »

@ANDE: Sure, I will when I get home.
@D.U.C.K.: The first model that crashed Zero Editor has a texture resolution of 2048px, but the ones after that which crashed were lower res.


EDIT:

Cutting the texture's resolution in half seemed to fix the problem for all of my crashing models for some reason. :o Thanks guys! :D
Post Reply