Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: jdh300x on June 13, 2012, 07:25:41 am

Title: Getting the ships in game
Post by: jdh300x on June 13, 2012, 07:25:41 am
Thankyou droid and headde for all that help in getting me my model together.
It is simply a box, with an orion turret on it.
I converted it to pof, and created a table file for it (it is a sentry gun, so i copied the .tbl file from the watchdog)
I put both the table file and pof in the correct folder, but now the game is not reading them. What are some common mistakes that i might be making?
And yes, i have no mods selected when i attempt this.
Title: Re: Getting the ships in game
Post by: MatthTheGeek on June 13, 2012, 07:31:59 am
Log. (http://www.hard-light.net/forums/index.php?topic=56279.msg1180359#msg1180359)
Title: Re: Getting the ships in game
Post by: CommanderDJ on June 13, 2012, 07:33:00 am
Thankyou droid and headde for all that help in getting me my model together.
It is simply a box, with an orion turret on it.
I converted it to pof, and created a table file for it (it is a sentry gun, so i copied the .tbl file from the watchdog)
I put both the table file and pof in the correct folder, but now the game is not reading them. What are some common mistakes that i might be making?
And yes, i have no mods selected when i attempt this.

What exactly do you mean by "the game is not reading them"?

Which folder particularly did you put the pof and table into? It's good practice to create a mod folder for your tests and put the pof and table into the /models and /tables folders respectively. Then just select your mod in the launcher to test with it. You can create a simple mod.ini (http://www.hard-light.net/wiki/index.php/Mod.ini) to reference the MediaVPs with it if you wish.

Also, you should probably use a modular table file (ending in .tbm instead of .tbl) for the ship so you don't have to copy the entire ships.tbl over.
Title: Re: Getting the ships in game
Post by: Crybertrance on June 13, 2012, 07:36:18 am
Hmm, could be your table...does the name of your table have the "-shp" tag at the end? Your filename should be like so "MySentryturrent-shp.tbm". Also note it should be .tbm not .tbl. Not to mention. check whether your table as the "#Ship Classes" and "#End" tags.

Otherwise post a debug log....
Title: Re: Getting the ships in game
Post by: jdh300x on June 13, 2012, 12:28:07 pm
It does have the #ship classes and #End things. I also have it as a .tbm file as well. But what is this -shp thing.
I have never heard of this in a tutorial before?
Title: Re: Getting the ships in game
Post by: jdh300x on June 13, 2012, 12:43:51 pm
the -shp thing at the end is what did it. I didnt have it.
It works now, so thankyou very much.
Now all i need is to texture and i will have a working cube sentry thing!!!
Title: Re: Getting the ships in game
Post by: Droid803 on June 13, 2012, 01:28:35 pm
the -shp tells the game what type of TBM it is, -shp means add to ships.tbl, -wep for weapons.tbl, etc.
Title: Re: Getting the ships in game
Post by: Crybertrance on June 14, 2012, 03:03:45 am
Most of the time my custom tbm's didn't work, mainly becoz of the "-shp" thing or because it was missing the hash tags... :nono:

Title: Re: Getting the ships in game
Post by: headdie on June 14, 2012, 05:15:48 am
If you haven't already take a look through

http://www.hard-light.net/wiki/index.php/Ships_and_General_Mod_Creation