Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Valius on March 20, 2002, 09:38:24 pm

Title: Tables...
Post by: Valius on March 20, 2002, 09:38:24 pm
Hey there everyone.
I'm starting to (slowly) learn how to create ships in Freespace and I was wondering, what programs do you guys use to edit .tbl files.
Title: Tables...
Post by: HeX on March 20, 2002, 09:41:16 pm
Notepad :D
Title: Tables...
Post by: CP5670 on March 20, 2002, 09:44:08 pm
Notepad if it can open the file; Wordpad otherwise. ;):D
Title: Tables...
Post by: vadar_1 on March 20, 2002, 10:24:33 pm
(http://bama.ua.edu/~slucas/images/notepad.gif)

:nod:
Title: Tables...
Post by: CP5670 on March 21, 2002, 12:04:35 am
(http://mywebpages.comcast.net/cp5670/Image2.gif)

;7
Title: Tables...
Post by: Ulundel on March 21, 2002, 03:37:49 am
Yes wordpad rules!!! :D
Title: Tables...
Post by: Stunaep on March 21, 2002, 03:46:27 am
Quote
Originally posted by Ten of Twelve
Yes wordpad rules!!! :D


Wordpad nothing, all hail NOTEPAD
Title: Tables...
Post by: Ulundel on March 21, 2002, 04:09:04 am
Quote
Originally posted by Stunaep


Wordpad nothing, all hail NOTEPAD


You edit tables with notepad????
Title: Re: Tables...
Post by: aldo_14 on March 21, 2002, 04:23:46 am
Quote
Originally posted by Valius
Hey there everyone.
I'm starting to (slowly) learn how to create ships in Freespace and I was wondering, what programs do you guys use to edit .tbl files.


Notepad (or any text editor).  Just view all files (in the open dialog box) and open a tbl file - it's an ASCII text file, so it can be edited.

Just make sure not to change the save format.

http://freespace.volitionwatch.com/fs1/mods/Guide/WeapMOD.shtml is a useful guide to tbls, although it's FS1 (but most of it applies to FS2)
Title: Tables...
Post by: Unknown Target on March 21, 2002, 05:08:36 am
Quote
Originally posted by Stunaep


Wordpad nothing, all hail NOTEPAD

Yes!
Oh, BTW, you need VPVIEW32 from www.descent-network.com
Title: Tables...
Post by: diamondgeezer on March 21, 2002, 07:26:47 am
Quote
Originally posted by CP5670
Green Notepad


Ach! Mein eyes!
Title: Tables...
Post by: CP5670 on March 21, 2002, 09:39:42 am
green on black 0\/\/|\|5 _|()0 !! :D

Notepad would be better than Wordpad if it did not have the 36k filesize limit.
Title: Tables...
Post by: LAW ENFORCER on March 21, 2002, 04:04:28 pm
notpad seems not very good when pasting stuff from wordpad. I had to make loads of ships before I could edit properly! (from scratch table!!!!!)
Title: Tables...
Post by: vadar_1 on March 21, 2002, 05:27:45 pm
Quote
Originally posted by CP5670
green on black 0\/\/|\|5 _|()0 !! :D

Notepad would be better than Wordpad if it did not have the 36k filesize limit.


Um, what? If it was 36k you wouldn't be able to load tables... its more like 6 megs
Title: table editing
Post by: Star Dragon on March 21, 2002, 06:20:17 pm
HI also learning to make my own stuff for FS2. I figured out how to extract the tbl files and then edit them with notepad/wordpad BUT I can't seem to get them back to .tbl format??? It tried to save it as one of 3 different types of txt documents? Is there a program I need to get to make or edit purely .tbl files to save in that format ???

 Also I have a dream of having all the mods in one big game. Robotech,Bab5, ST,SW ect.. is there a physical limit to the number of ships you can have in a table? Do mod ships replace an existing slot in the table or can you keep adding more custom stuff to the original no problem?

Same for weapons or stars???
Title: Crashing
Post by: Valius on March 21, 2002, 06:27:30 pm
Ok, managed to edit the tables, but I seem to have another problem. When I add a ship into the table and try to start up a mission using it, the game crashes. Anyway to get around this?
Title: DTP
Post by: DTP on March 21, 2002, 06:27:44 pm
UltraEdit:


Because it has 100+ functions, I recently just created a CLEAN ships.tbl without the comments, and unnecessary tabulator stops, and unnecessary Spaces, which took the size of the TBL file down to about 246 KB. That means I got around 140 KBS of new ship entries. And I did this in 10 min or less.

+ I like to multitask a lot, so I value low resource demanding applications, and Wordpad uses 1% more resource than Ultra edit.

+ I can have multiple documents open at once in Ultra edit, and align them such in a second that I can easily have the original TBL file opened and my modified TBL file opened that I get an excellent view of both documents at any one time.

This program is superb to edit any file that uses raw ASCII text such as C/C++ source files, or HTML, as it highlights functions and keywords and numbers with colors in a way that you can easily see what you are doing, instead of just looking at Black or Green text.

But, it costs money of course.
Title: Tables...
Post by: Galemp on March 21, 2002, 07:23:51 pm
Quote
Originally posted by DTP
UltraEdit:

But, it costs money of course.


Aye, there's the rub.
Title: Re: table editing
Post by: Sesquipedalian on March 21, 2002, 07:40:29 pm
Quote
Originally posted by Star Dragon
HI also learning to make my own stuff for FS2. I figured out how to extract the tbl files and then edit them with notepad/wordpad BUT I can't seem to get them back to .tbl format??? It tried to save it as one of 3 different types of txt documents? Is there a program I need to get to make or edit purely .tbl files to save in that format ???

 Also I have a dream of having all the mods in one big game. Robotech,Bab5, ST,SW ect.. is there a physical limit to the number of ships you can have in a table? Do mod ships replace an existing slot in the table or can you keep adding more custom stuff to the original no problem?

Same for weapons or stars???


The limit for ships.tbl is 380 kB of data, rather than any particular number of entries.  You can reduce the size of your ships.tbl dramatically by following the instructions here (http://vbb.volition-inc.com/ubb/Forum6/HTML/002409.html).  This will give you lots more space to put more ships into the table.

Unfortunately, one cannot have more than forty fighters listed in the hud.tbl.  This is the table that catalogues all the shield animations for all the fighters (i.e. the pictures on either side of the radar showing the shield strengths of yourself and your target).  So while you could theoretically have all the fighters from all the mods in your ships.tbl at one time, only forty of them could have a shield ani show up on the HUD.

P.S.  Rather than using Save As, simply use Save to keep the .tbl file extension.  Alternatively, save the file as a plain text file (.txt), and then manually change the file extension to .tbl in the Windows shell.
Title: Tables...
Post by: WMCoolmon on March 21, 2002, 09:01:29 pm
You could look into PHPEdit (http://www.phpedit.com); to color things in a more sensible manner, simply add "
Title: Tables...
Post by: CP5670 on March 21, 2002, 09:07:17 pm
Quote
Um, what? If it was 36k you wouldn't be able to load tables... its more like 6 megs


Exactly, that's why you cannot load ships.tbl or weapons.tbl with it. :p (at least the one included with WinME)
Title: More .tbl ponderings
Post by: Star Dragon on March 23, 2002, 03:28:42 am
Thanks for the info! Limit of 380k huh? Hmm limit of 40 fighters for hud ani's? Does that mean you can have more than 40? Can you go without hud ani's for shields on opponents and just keep your own? I just tinkered with the SDF-1 and it's funny to see the main gun fire from a tiny turrent! Now it can fire front back and both sides... I was right next to it when I first tested it out and wow was I shocked :) Now if only max and the team release a transforming version I could die happy lol.
Title: Tables...
Post by: Sesquipedalian on March 23, 2002, 10:01:10 am
YOU can have as many ships as you can fit into the ships.tbl. Hud ani's are assigned by ship type, not IFF team.  If you are flying a herc II and your opponent is also in a herc II, both will have a hud ani.  If you are flying a mod not listed in the hud.tbl, and you opponent's ship is in the table, he will have an ani and you will not.
Title: Tables...
Post by: aldo_14 on March 23, 2002, 10:07:01 am
Quote
Originally posted by Sesquipedalian
YOU can have as many ships as you can fit into the ships.tbl. Hud ani's are assigned by ship type, not IFF team.  If you are flying a herc II and your opponent is also in a herc II, both will have a hud ani.  If you are flying a mod not listed in the hud.tbl, and you opponent's ship is in the table, he will have an ani and you will not.


Point of reference- the HUD ani is the shield icon.  The 40 - ani limit is one of the mnost incredibly annoying things in Freespace modding, IMO.

Otherwise, every ship could have an icon.
Title: Tables...
Post by: Galemp on March 23, 2002, 02:50:30 pm
Like support ships and escape pods.
Title: 40 FTR limit
Post by: Star Dragon on March 24, 2002, 07:38:41 am
I see, well I guess I just have to be particular in which ships I give ani's for then. But no way I'll setter for just 40 FTR's! As for knowing how much shields the others have left when a player uses them..."use the force".

    Besides every pilot should deal with fear once in a while.   (why aren't you an accountant then?)
Title: Tables...
Post by: CP5670 on March 24, 2002, 01:36:32 pm
Quote
Point of reference- the HUD ani is the shield icon. The 40 - ani limit is one of the mnost incredibly annoying things in Freespace modding, IMO.


It says to ask Dave if you need more. :D