Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Tolwyn on May 23, 2009, 08:57:07 am

Title: $Tech Model howto
Post by: Tolwyn on May 23, 2009, 08:57:07 am
As the title says: how do I get it to work? ;)

I added a line $Tech Model: model.pof prior to $Model File: model.pof. Ingame old ani still pops up instead of the 3d model I specified. I even went as far as enabling "use models for weapons selection" in the launcher. ;)

What am I doing wrong? I probably grabbed one beer too many last night, but apart from that? ;)
Title: Re: $Tech Model howto
Post by: Wanderer on May 23, 2009, 09:38:18 am
Are you referring to the tech room view or to the loadout view of the weapon?
Title: Re: $Tech Model howto
Post by: Tolwyn on May 23, 2009, 10:43:06 am
Tech room.
Title: Re: $Tech Model howto
Post by: Wanderer on May 23, 2009, 10:54:08 am
Hmmm... AFAIK both show ship and show weapon models apply only to the mission ship selection and weapons loadout screens not to the tech room.
Title: Re: $Tech Model howto
Post by: blowfish on May 23, 2009, 12:46:28 pm
The weapon's external model (the one rendered on your fighter/bomber) is specified by $External Model File: in the table.  Note that the ship in question has to have external models enabled ($Show Primary Models: ( YES YES ) or $Show Secondary Models: ( YES YES YES ), each YES or NO referring to a bank, so you can set them individually) in the ship table.  $Tech Model: and -weapon_choice_3d only affect the loadout screen.
Title: Re: $Tech Model howto
Post by: chief1983 on May 26, 2009, 05:41:26 pm
You might also try deleting the old +Tech Anim: line, it may default to that when both are defined, and if you undefine it you should at least see the $Model File: entry without needing to even define the $Tech Model: entry.
Title: Re: $Tech Model howto
Post by: Tolwyn on May 27, 2009, 12:48:08 pm
I tried that originally. No luck.
Title: Re: $Tech Model howto
Post by: chief1983 on May 27, 2009, 03:12:43 pm
If you deleted the tech anim, I don't think there's any sort of hardcoded default.  You should have seen the model, or the game should have crashed, one or the other.  I'm pretty sure about that anyway.  Is it possible there's a table somewhere overriding what you're doing?  That's the only other idea I would have, although it's probably asinine to suggest it.