Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Droid803 on December 08, 2008, 09:06:00 pm

Title: Crash When Colliding with Subsystems
Post by: Droid803 on December 08, 2008, 09:06:00 pm
Ok, I don't know where else to put this, as this is a custom model related error, but it's probably related to FSO and PCS2 as well.
I've found that on certain ships that I have, if you run into (as in, collide a fighter with) a certain destroyable subsystem (or turret), the game will just hang, then crash a split second before the collision is to occur (without actually playing the collision sound).

I'm not sure exactly what causes this to happen however. I do know that I experience this on the big turrets on a reskinned Trashman's GVI Abythys (or whatever, its the big round-ish vasudan installation), and the any of the cargo pods on a reskinned GTFr Demeter.
I could provide the models and the table if needed.

Does anyone have any clue whatsoever on how to fix this issue? It's holding up a few (ok, two) in-development campaigns I have.
Title: Re: Crash When Colliding with Subsystems
Post by: Vertigo 7 on December 08, 2008, 09:14:21 pm
some of the older incomplete models by trashman that i downloaded had some bounding box errors, and the MOI or whatever it was wasn't set. Try opening them up in PCS and see if it give you any fits, also try a fred debug build and just place those models on a blank map. If theres a problem, you should beable to spot it.
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 08, 2008, 09:22:19 pm
FRED debug gives me no errors, nor does PCS2.
I had PCS2 recalculate the MOI, but it didn't help.

Does it have anything to do with the fact that the subsystem is outside the bounding box for the main model or something? That shouldn't be an issue...
Title: Re: Crash When Colliding with Subsystems
Post by: Vertigo 7 on December 08, 2008, 09:38:18 pm
naw that shouldn't affect it. I'm tryin to remember what it was i did to fix those... Other than some missing textures, i had some lock up issues with several of the ships and i corrected them some how  :(
Title: Re: Crash When Colliding with Subsystems
Post by: blowfish on December 08, 2008, 10:07:24 pm
IIRC at least the center of the subsystem has to be within the bounding box.

And my (http://i274.photobucket.com/albums/jj251/blowfishpro/My_Stuff/fsfreighter-1.jpg) demeter is better :drevil:
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 08, 2008, 10:10:42 pm
Ah hell...that explains things. (you mean inside the bounding box of the main ship right, not its own bounding box?)
Is there any way to fix the bounding box?
Or do I just saw off those subsystems >.>
Title: Re: Crash When Colliding with Subsystems
Post by: blowfish on December 08, 2008, 10:14:20 pm
I think you can edit the bounding box in PCS2.
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 08, 2008, 10:25:46 pm
I don't seem to be able to...
Title: Re: Crash When Colliding with Subsystems
Post by: Vertigo 7 on December 08, 2008, 10:30:50 pm
try converting the model to cob and see if you can edit the bounding box then convert back to pof and import data if that works.
Title: Re: Crash When Colliding with Subsystems
Post by: blowfish on December 08, 2008, 11:02:44 pm
I don't seem to be able to...

If it's not in the header, then it may be the bounding box for detail0.
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 09, 2008, 05:17:26 pm
Nope...not there...
Great, now I need to find new models...
Title: Re: Crash When Colliding with Subsystems
Post by: blowfish on December 09, 2008, 05:19:24 pm
:wtf:

I could swear there was a place to edit the bounding box in PCS2...
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 09, 2008, 05:36:11 pm
Oh I think I found it. Do you add it under properties?

EDIT: I expanded the box, but it doesn't help. I run into a subsystem, its still crashes.  :hopping:
EDIT2: lol of course, that just sets detail boxes...  :sigh:
Title: Re: Crash When Colliding with Subsystems
Post by: chief1983 on December 10, 2008, 12:36:13 pm
I remember hearing someone say that the fix to expand the bounding box was to use invisible polygons sticking off of the ship in the direction you want it to expand, the bounding box will go but unless collide-invisible is on nothing will ever hit them.
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 10, 2008, 06:57:08 pm
Then that means I need to export it from POF->DAE (and back, but that's the easy part).
The problem here is that the version of PCS2 that supports COLLADA doesn't like POFs, and will crash upon seeing one.
Title: Re: Crash When Colliding with Subsystems
Post by: chief1983 on December 10, 2008, 07:31:14 pm
I've been using a day old version of the PCS2 with DAE support.  The only crashes I got were upon saving a POF, but it still wrote the file, and just crashed at the end.  Still, I was able to open a POF and export to DAE just fine.  Someone posted an older version of the DAE build around here too, and I think I have one sitting on my computer if you can't find one.
Title: Re: Crash When Colliding with Subsystems
Post by: blowfish on December 10, 2008, 07:39:05 pm
Hmm ... Maja allows you to edit the bounding box, but it consistently saves bad models (and WMC hasn't been around lately).  I suppose you could ask WMC about it...
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 11, 2008, 04:52:05 pm
I've been using a day old version of the PCS2 with DAE support.  The only crashes I got were upon saving a POF, but it still wrote the file, and just crashed at the end.  Still, I was able to open a POF and export to DAE just fine.  Someone posted an older version of the DAE build around here too, and I think I have one sitting on my computer if you can't find one.

That would be helpful. I'm consistently getting a crash (on the newest version) trying to open the models that need fixing :(
Title: Re: Crash When Colliding with Subsystems
Post by: chief1983 on December 11, 2008, 05:47:27 pm
http://swc.fs2downloads.com/files/pcs2_DAE_203.7z (http://swc.fs2downloads.com/files/pcs2_DAE_203.7z)

There you go.  Maybe Spicious can get a better one though, I think that was pretty old.  Seemed to work ok though.  Spicious really ought to revert the update from CVS he did so that he can keep developing DAE on stable POF code instead of whatever kazan has been working on/breaking :)
Title: Re: Crash When Colliding with Subsystems
Post by: Droid803 on December 11, 2008, 09:12:59 pm
Thanks, it opened, but now I'm getting a
Quote from: PCS2
"Oh my GOD it's so HORABLE!!! Array out of bounds: 4294967295 >= 15! That's BAD!"