Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Krallis on March 20, 2008, 03:57:55 pm

Title: Making TBL Files: Help?
Post by: Krallis on March 20, 2008, 03:57:55 pm
I've just made a new beam weapon and I have 2 questions.
1. When you don't want a texture on the beam do you set the texture field to -1
2. How do I save the beam as a TBL file so it can go in the tables directory in freespace 2 folder

Please help, i need this beam for my mission.
Title: Re: Making TBL Files: Help?
Post by: asyikarea51 on March 20, 2008, 04:04:33 pm
Are you using SCP? If you are then...

For #2 you can just put the beam weapon in a tbm, save it as xxx-wep.tbm (where xxx is the name of the file) and save it in the data/tables folder of the mod that you're working on. Don't forget the #Primary Weapons and #End tags at the start and at the end of the document...

Otherwise you'll likely have to extract the weapons.tbl out of root_fs2.vp (use a tool that can open VPs), copy your entry, paste it in an empty space somewhere within the section of weapons.tbl where the beam cannons are, save the document and then put it wherever it's needed. (data/tables of the mod you're working on, again.)

:doubt:... :)
Title: Re: Making TBL Files: Help?
Post by: Krallis on March 20, 2008, 04:08:14 pm
I am using Freespace 2 open. I copied the file data to notepad and edited it there.
Title: Re: Making TBL Files: Help?
Post by: Jeff Vader on March 20, 2008, 04:11:29 pm
Name the file the way asyikarea51 said and make sure that the format is 'All files'. Otherwise Notepad will just persistently add .txt to the end, effectively making it a text file instead of a .tbm. Then, to \freespace\data\tables, or \freespace\mymod\data\tables, since it is good to make subfolders for different mods.
Title: Re: Making TBL Files: Help?
Post by: Krallis on March 20, 2008, 04:14:46 pm
Okay should the beam show up as the name that I set it.

Oh I take it you meant manually add .tbm to the end because that's what I did.

Ill add the beam text file. (Not the TBM file)



[attachment deleted by ninja]
Title: Re: Making TBL Files: Help?
Post by: asyikarea51 on March 20, 2008, 04:19:21 pm
Yes, whatever's in the $Name: field will show up in-game. :)
Title: Re: Making TBL Files: Help?
Post by: Jeff Vader on March 20, 2008, 04:22:10 pm
Okay should the beam show up as the name that I set it.

Oh I take it you meant manually add .tbm to the end because that's what I did.

Ill add the beam text file. (Not the TBM file)


Indeed.
(http://koti.mbnet.fi/reiler/FunkyFreeSpaceStuff/saveas.jpg)
But the circled spot here should say 'All files' or whatever it is in the language your OS is set to. If it says 'Text files', it'll just add .txt after the file name. And then you'd need to remove it afterwards.
Title: Re: Making TBL Files: Help?
Post by: Krallis on March 20, 2008, 04:25:31 pm
I changed it to all files but my weapon isnt showing up in the game. Im using www.freespace2.com cheat then scrolling through a list of weapons to see if i'ts there but it ain't showing up.
Title: Re: Making TBL Files: Help?
Post by: Krallis on March 20, 2008, 04:39:41 pm
Okay I changed 2 letters, now its shoqing up but I can't see the actual beam.
Title: Re: Making TBL Files: Help?
Post by: Getter Robo G on March 20, 2008, 05:23:26 pm
[sigh]

Cause like I told you in your two otehr threads ( :P)

The beam you made is invisible...
or
You did something wrong in the table...

A good thing to do when modding is only use existing things as a template to test things.

To test a model simple change teh .pof name of a fighter or a cap ship.

FOr a weapon or effect chacnge teh name if the image file (.pcx) for beams or bolts/blobs

Once you see your model or image workign in game ONLY then should you worry about a custom table.
Why? So you know it works and avoid more bug hunting and focus more of your time on actual modding.

 [ps] Not a mod myself, but it won't be long before one comes by and mentions your prolific near same topic posting so you got some forewarning...  :D