Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Spoon on February 17, 2010, 06:26:17 am
-
I'm running into 2 assertion errors with certain ships but assertion errors have the nasty habbit of not really explaining to me what they want me to fix. They both pop up after hitting Commit.
Aside from that I'm getting the error that
WARNING: "Invalid subobj_num or model_num in subsystem 'gunturret-17' on ship type 'LSF Challenger II'. Not linking into ship! (This warning means that a subsystem was present in the table entry and not present in the model it should probably be removed from the table or added to the model.)" at ship.cpp:4728
WARNING: "Invalid subobj_num or model_num in subsystem 'gunturret-18' on ship type 'LSF Challenger II'. Not linking into ship! (This warning means that a subsystem was present in the table entry and not present in the model it should probably be removed from the table or added to the model.)
WARNING: "Ship 'LSF Challenger II' does not have subsystem 'gunturret-17' linked into the model file, 'ChallengerII.pof'." at ship.cpp:14436
WARNING: "Ship 'LSF Challenger II' does not have subsystem 'gunturret-18' linked into the model file,
However I've checked several times and the turrets are right there in the .pof with exactly the same name. I can't see what it's complaining about.
From the shiptable.
$Subsystem: gunturret-17,2.5,1.0
$Default PBanks: ( "LSF Phasers" )
$Flags: ("check hull")
$Subsystem: gunturret-18,2.5,1.0
$Default PBanks: ( "LSF Phasers" )
$Flags: ("check hull")
The .pof
(http://i45.tinypic.com/f9lid5.jpg)
The 2 assertion errors are this one:
Assert: num == bm_bitmaps[n].handle
File: bmpman.cpp
Line: 2459
Which tells me absolutely nothing.
And
Assert: !(psub->flags & MSS_FLAG_ROTATES)
File: ship.cpp
Line: 10848
Which I suspect has something to do with the ship having 4 subobjects that rotate (in the same way the faustus does)
debug logs included for your convenience
[attachment deleted by admin]
-
Assert: num == bm_bitmaps[n].handle
File: bmpman.cpp
Line: 2459
See Mantis 2114 (http://scp.indiegames.us/mantis/view.php?id=2114).
-
However I've checked several times and the turrets are right there in the .pof with exactly the same name. I can't see what it's complaining about.
I see they are there on the subobjects but are they in the turret list?
-
yes
(http://i46.tinypic.com/34g12ed.jpg)
and the turrets work just fine in game too.
(http://i50.tinypic.com/2nlx0ds.jpg)
-
Check for a space after the 17. Trailing spaces in PCS2 are bad.
-
Check for a space after the 17. Trailing spaces in PCS2 are bad.
I checked, none.
And then I discovered I have the same problem for gunturret-17 and 18 on a completely different ship too. Same debug errors but the turrets both work. :wtf:
-
Check the rest of them too. I had a problem with dock points the other day and the error wasn't occurring until a couple of docks after the one with the problem.
Also make sure you don't have any .tbm files overriding that ship. That error message was backward for quite some time so depending on what build you are using it may be in the pof but not in the table instead of what the message actually says. The messages have been fixed since then.