Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: foolfromhell on July 28, 2007, 09:44:16 pm

Title: How to add ships to FS2?
Post by: foolfromhell on July 28, 2007, 09:44:16 pm
I was hoping to add a few ship mods. How many ships is the max and how many are there already?
I dont want to destroy my installation.
I added the table info to c://games/freespace2/ships/data/tables/ships.tbl
but now FRED wont show any ships at all except the ones in ships.tbl.
If I add it to freespace2/data/tables/ships.tbl, I get an error in FRED.
What do I do to add ships?
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 28, 2007, 10:16:09 pm
I'm mainly trying to add http://hades-combine.com/web/index.php?ind=downloads&op=entry_view&iden=45 (http://hades-combine.com/web/index.php?ind=downloads&op=entry_view&iden=45) and it asks me to add stome data to ships.tbl and weapons.tbl, but that crashes FRED.
Title: Re: How to add ships to FS2?
Post by: Unknown Target on July 29, 2007, 12:49:28 am
Download VPViewer from www.descent-network.com.

Open up root.vp in FS2, open up tables, and extract ships.tbl and weapons.tbl to your data/tables directory. Open those up in notepad, and copy/paste the data for the ship into their respective files. Textures go into data/maps, models go into data/models.
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 29, 2007, 01:33:05 am
There is no .vp
if there was a .vp, it would be much easier.
its like .pofs and some .pcxs.
Can you download it and tell me what to do?
Thanks.
Title: Re: How to add ships to FS2?
Post by: karajorma on July 29, 2007, 01:52:43 am
For a start. Don't install to Data. You'll be back complaining that the mod broke FS2 by the end of the week.

http://homepage.ntlworld.com/karajorma/FAQ/installingmods.html#clean

Then create a shortcut for FRED and add -mod NameOfFolder (or maybe -mod NameofFolder, mediavps if you want to use them too) to it.

Then you'll want to create a table entry for the ship (or a .tbm if you're only adding a few ships). The wiki has details on that.
Title: Re: How to add ships to FS2?
Post by: jr2 on July 29, 2007, 03:22:59 am
Don't forget -fredhtl ;)  And the quotes.

"C:\Games\FreeSpace2\FRED2_Open_3_6_9.exe" -fredhtl -mod modname
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 29, 2007, 10:33:57 am
Could someone download the file and check its contents?
It has .pcxs and .POFs.
I tried everything.
Adding stuff to ships.tbm or weapons.tbm in the mod folder causes FRED to crash.

I also tried sticking the .PCX into Ajax/data/effects and the .POF into Ajax/data/models
Doesnt work.
Title: Re: How to add ships to FS2?
Post by: karajorma on July 29, 2007, 11:39:09 am
Don't forget -fredhtl ;)

I didn't forget it so much as edit the code and remove it a couple of months ago. :D

From 3.6.10 we'll never have to remind people about that nonsense again.
Title: Re: How to add ships to FS2?
Post by: Snail on July 29, 2007, 11:51:13 am
But the HTL fred messes up the grid and the axes and whatever and it really annoys me.
Title: Re: How to add ships to FS2?
Post by: Hades on July 29, 2007, 11:55:27 am
Evil HTL Fred.! :D
Title: Re: How to add ships to FS2?
Post by: jr2 on July 29, 2007, 11:56:51 am
Don't forget -fredhtl ;)

I didn't forget it so much as edit the code and remove it a couple of months ago. :D

From 3.6.10 we'll never have to remind people about that nonsense again.

I knew someone had fixed it... but I was also pretty sure it wasn't implemented yet.  :p  Thanks BTW... and did you also fix the problem Snail mentioned?
Title: Re: How to add ships to FS2?
Post by: karajorma on July 29, 2007, 02:22:37 pm
But the HTL fred messes up the grid and the axes and whatever and it really annoys me.

Then use -nohtl and you can quite happily watch all your high poly models crash FRED on you. :)
Title: Re: How to add ships to FS2?
Post by: Hades on July 29, 2007, 02:25:14 pm
Thats not true.I can use Fred with HTL models without using -FredHTL. :nervous:
Title: Re: How to add ships to FS2?
Post by: karajorma on July 29, 2007, 02:29:50 pm
Well SOME of your high poly models then. :p
Title: Re: How to add ships to FS2?
Post by: Snail on July 29, 2007, 02:33:40 pm
Meh.

edit:
really pointless post, sorry. exactly what is screwing up the axes in HTL fred mode anyway?
Title: Re: How to add ships to FS2?
Post by: Snail on July 29, 2007, 02:51:47 pm
rename ships.tbl

to

ships-shp.tbm
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 29, 2007, 03:01:04 pm
I did what you just said.
I get this


Error: Can't open model file <ajax2.pof>
File:J:\src\cvs\fs2_open_3_6_9.final\code\Model\ModelRead.cpp
Line: 1902
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------
Title: Re: How to add ships to FS2?
Post by: Snail on July 29, 2007, 03:06:16 pm
what is the contents of your ships-shp.tbm?
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 29, 2007, 03:08:57 pm
Its from the core.vp file, except I added teh GTCv Ajax's info in top of the Aeolus's entry.
No errors till I spawn an Ajax. Its on the list though.
What do I rename my weapons.tbm file to if thats the problem?
Title: Re: How to add ships to FS2?
Post by: Snail on July 29, 2007, 03:13:30 pm
Okay, start again.

Delete everything in ships-shp.tbm.

Then add ONLY the tabel info of the Ajax and add #Ship Classes at the beginning of the file, and #End at the end.
Title: Re: How to add ships to FS2?
Post by: Hades on July 29, 2007, 03:15:06 pm
I did what you just said.
I get this


Error: Can't open model file <ajax2.pof>
File:J:\src\cvs\fs2_open_3_6_9.final\code\Model\ModelRead.cpp
Line: 1902
[This filename points to the location of a file on the computer that built this executable]

Call stack:
------------------------------------------------------------------
------------------------------------------------------------------


It cannot find the model.Were is the model located?
Title: Re: How to add ships to FS2?
Post by: Snail on July 29, 2007, 03:17:02 pm
Stop, Hades, wait.

I think his .tbm contains all of the ships.tbl info as well. We need to get rid of that first.
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 29, 2007, 03:26:15 pm
I did what snail asked me to with deleteing the extra data and just adding what was in the readme.
Same error. The .pcx files are in /data/maps and the .pof files are in /data/models.
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 29, 2007, 07:25:51 pm
Anyone there?
Sorry for the bump, but this really is a problem for me.
Title: Re: How to add ships to FS2?
Post by: Snail on July 30, 2007, 05:12:30 am
Is ajax2.pof in the models folder...? Sometimes people make typos in their table files and make it reference the wrong files.
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 30, 2007, 09:23:00 am
The file that came was called
ajax.pof
and its in the data/models folder.
Should it be called ajax2.pof?
Title: Re: How to add ships to FS2?
Post by: Hades on July 30, 2007, 09:23:47 am
Yes i think. :nod:
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 30, 2007, 09:26:07 am
Woot!
It works! (atleast, in FRED, it does)
Haha. The dude who made this model should fix it.
Its the only model I can find thats 100% missiles.
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 30, 2007, 09:35:27 am
Wait wait.
Problem here.
Only the second-half of the turrets are functional in the weapons menu, and those weapons are lasers-only.
Its supposed to be a missile boat.
NO MISSILE TURRETS AT ALL.
Is there something else I should do?
Edit the .tbm info?
The mod also came witha  weapons.tbm/tbl file.
What should I rename that to?
And should the missile's .pof file be ajax2missile.pof?
I get no error messages, but this definitely is an error.
Title: Re: How to add ships to FS2?
Post by: Snail on July 30, 2007, 10:44:37 am
What is inside the weapons.tbl file?
Title: Re: How to add ships to FS2?
Post by: Snail on July 30, 2007, 10:55:24 am
Tell you what. Just do this.

Download this zip. Then make a mod folder in your FS2 dir. Make a data folder within that mod folder. Unzip these into freespace2\mod\data Try it then.
Title: Re: How to add ships to FS2?
Post by: foolfromhell on July 30, 2007, 01:25:59 pm
That worked perfectly, Snail.
If I add another ship, I should just make names like
"hercules-shp.tbm" and "hercules-wpn.tbm"?