Author Topic: Model-related errors when starting mission  (Read 124 times)

0 Members and 1 Guest are viewing this topic.

Model-related errors when starting mission
I've started playing around a little with modding tables and adding player-made ships just to get a feel for how things are done. When using the mod I made to test a SEXPing concept the mission failed to load, instead giving me an error message as well as a few warnings once I made another attempt in Fast Debug. The debug log is here.

The error I received in FSO are as follows:
Code: [Select]
Error: Can't open model file <TTRM.pof>
File: modelread.cpp
Line: 1590

Now I've made two modifications used in this test mission. The first is a "GTF Pegasus Mark II" made by simply copying the GTF Pegasus table entry and changing a few data points. The other change I made is to add the "GTHC Garm" ship with its associated table, model, and other files. Through process of elimination I've determined that the presence of the Garm ship is what causes the mission to fail. The relevant debug warnings would appear to be:

Code: [Select]
Loading model 'FenrisII-GTCGarmRawr.pof' into slot '2'
Model FenrisII-GTCGarmRawr.pof has a null moment of inertia!  (This is only a problem if the model is a ship.)

WARNING: "GTHC Garm (FenrisII-GTCGarmRawr.pof) has a null moment of inertia!" at ship.cpp:6558

So my question is what these errors/warnings mean. I haven't done anything beyond the "script kiddie" level so I don't know what to think other than that something was missing from what I downloaded.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Model-related errors when starting mission
The first error is about a model file being not present or corrupted. It might be because the file structure is incorrect (i.e. its in the wrong folder).

The second is about an error in the model file that messes up the physics calculations of the engine.

If they both stop happening when the new ship is removed, it might be that TTRM.pof is associated with a weapon on the ship.
« Last Edit: December 16, 2024, 03:03:48 am by 0rph3u5 »
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 
Re: Model-related errors when starting mission
Yeah, I just looked through the weapons.tbm and TTRM.pof is a weapon-related model. If I remove all non-official weapons from the ship I still get the error, which I don't understand. I would have thought the models called by the weapons table would be fore the projectile itself, not part of the ship.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Model-related errors when starting mission
Did you remove it from ship's table or just from the ship in the mission?

It might still load the weapon if it is part of the default loadout for the class. Then you can substitute the model with a retail one as a workaround.

The zero interia thing requires some doing, and expertiae I don't have.
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 
Re: Model-related errors when starting mission
Ah no, I just removed the weapons in FRED.