Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Shkval25 on December 15, 2024, 11:19:13 pm

Title: Model-related errors when starting mission
Post by: Shkval25 on December 15, 2024, 11:19:13 pm
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 (https://fsnebula.org/log/675fb1b7aaca1c2bfa001118).

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.
Title: Re: Model-related errors when starting mission
Post by: 0rph3u5 on December 16, 2024, 03:00:06 am
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.
Title: Re: Model-related errors when starting mission
Post by: Shkval25 on December 16, 2024, 04:16:13 pm
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.
Title: Re: Model-related errors when starting mission
Post by: 0rph3u5 on December 16, 2024, 05:35:32 pm
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.
Title: Re: Model-related errors when starting mission
Post by: Shkval25 on December 16, 2024, 08:21:32 pm
Ah no, I just removed the weapons in FRED.