Hard Light Productions Forums

Community Projects => The FreeSpace Wiki Project => Topic started by: Wanderer on November 12, 2005, 08:37:59 am

Title: An attempt to create some table references
Post by: Wanderer on November 12, 2005, 08:37:59 am
So this is my attempt to create table references to FS Wiki. I decided finally to do something for the community and wrote sort of references to ships and weapons tables though most of the stuff i currently have managed to get there was originally written by GE (Galactic Emperor?)

They are not linked. Opinions and proof reading would be appreaciated (you can access the files by searching them in FS wiki, ships.tbl and weapons.tbl). I hope some other people would also be interesting in completing the references for the tables so that we would finally have a good reference for all table editing. That is for the people who do not understand the code at all but still would like to do some modding, like me.

EDIT: I forgot to mention but thanks to Black Wolf for some guidelines and advices
Title: Re: An attempt to create some table references
Post by: WMCoolmon on November 12, 2005, 12:55:08 pm
I was just thinking about this the other day, and I think a better option for SCP options would be to color them differently (Say, yellow for CVS, some shade of green for ones that have been in an official release.)

It'd be nice if flags didn't break up the layout so much, they could also use some description. Also, for the weapon values in ships.tbl, you should probably change the label from "flag" to something different. Right now you have:
Quote
Syntax: ( "Flag" "Flag" ) ( "Flag" "Flag" )

I'm impressed, though, I don't think there's ever been such a complete table reference ever made.
Title: Re: An attempt to create some table references
Post by: WMCoolmon on November 12, 2005, 02:03:50 pm
Also, pretty much all values are now optional for fs2_open in ships.tbl...although if you try to make a ship without a model, something will break.
Title: Re: An attempt to create some table references
Post by: Wanderer on November 12, 2005, 02:09:27 pm
I'm just so bad with proper HTML that the current representation was easier for me to accomplish... The coloring is really much better way to do it, now that you mention it. I'll also try to get around into making the descriptions for the flags.

It would be for the best to alter atleast some of the places where i just put "Flag" as a placeholder to "Name" or something else... I'll get around into doing that tomorrow.
Title: Re: An attempt to create some table references
Post by: Wanderer on November 13, 2005, 12:11:28 am
Just revamped the ship.tbl and now IMHO it indeed does look better.
Title: Re: An attempt to create some table references
Post by: WMCoolmon on November 13, 2005, 01:37:57 am
Technically, all entries are optional. (Except for name, obviously) It's just that if certain values aren't filled in by the end of the loading sequence for a certain ship, it'll crash. Off the top of my head, those values are just the ship model, and flags.

For nearly all fields, the default is 0, or none. I will try to list the fields that this is different for.


First, "$animation=triggered". This is the only type right now.

Next, "$type=" gets animation trigger types. Current ones are "initial" (when the mission starts), "docking" (when a ship starts docking), "docked" (when a ship is docked), "primary bank" when a primary bank is fired, "secondary bank" when a secondary is fired, "door" when ???

Then, "+sub_type:" gets the 'sub type' for the trigger...for example, which primary bank triggers it. (With the first pank as 0, i believe)

If the trigger type is initial:
Code: [Select]
+delay: How long til the trigger starts (seconds)
+absolute_angle: or +relative_angle: three floats that give the x, y, and z rotation degrees. Absolute means in world terms; relative means relative to the ship. So a 90 degree angle on the ship would always be straight up in relative degrees; it would vary depending how the ship was rotated in absolute degrees.
+velocity: Subobject rotation speed, in relative terms. (three floats, xyz)
+acceleration: Acceleration speed of subobject rotation. (three floats, xyz)
+time: Time for object to rotate, move, whatever. (seconds)
Otherwise,
Code: [Select]
+delay:
+reverse delay:
+absolute angle: or +relative angle:
+velocity:
+acceleration:
+time:
$Sound:
    +Start: sound to play when animation starts
    +Loop: sound to play while animation is going
    +End: sound to play when animation stops
    +Radius: Distance that sound is audible


YIKES! That was big. :eek:

So yeah, that's the info in raw form, straight from the codebase. I can add all that if you like.
Title: Re: An attempt to create some table references
Post by: Wanderer on November 13, 2005, 02:38:52 am
I dropped next version in which was some little things added (Engine Wash etc, sample table file and so on).  It includes some of things you have mentioned, but is rather focused on bringing the rest of table file to the wiki.. So please include the data to the ships.tbl as you must know more of these things than i do.

IMHO Default values could be included in the same way as Examples...
Title: Re: An attempt to create some table references
Post by: Wanderer on November 13, 2005, 02:46:16 am
Perhaps the animation code would require a separate wiki page? Should we bother Bob to make it...
Title: Re: An attempt to create some table references
Post by: WMCoolmon on November 13, 2005, 03:53:14 pm
weapon_expl.tbl entry added (http://www.hard-light.net/wiki/index.php/Weapon_expl.tbl)
Title: Re: An attempt to create some table references
Post by: Wanderer on November 13, 2005, 03:58:41 pm
I added part of entries that you posted. Up to $Stealth: to be more precise.

Also modular tables and animation code have been added.
Title: Re: An attempt to create some table references
Post by: FireCrack on November 13, 2005, 04:34:27 pm
Door is used for when a ship launches or retreives others through it's fighterbay
Title: Re: An attempt to create some table references
Post by: WMCoolmon on November 13, 2005, 06:23:21 pm
I've added pretty much everything from $Stealth onwards, except for subsystem Pbank and Sbank capacity.
Title: Re: An attempt to create some table references
Post by: Wanderer on November 14, 2005, 12:55:38 am
I included the missing pbank and sbank capacity entries for the turret and also changed the formatting around the subsystems to implicate more clearly which entries are part of the subsystem entry.

Then there is the weapons.tbl... I have constructed the wiki entry in a bit different form compared to the ships.tbl.
Title: Re: An attempt to create some table references
Post by: Nuke on November 15, 2005, 02:02:46 am
just incase you missed it in the other thread, primary/secondary bank trigger seems to be mislabled in function.  it doesnt happen when a weapon is fired but rather when a weapon is armed, the pf chimera uses it to unfold its wings and open the missile bay when selecting the various banks.
Title: Re: An attempt to create some table references
Post by: WMCoolmon on November 15, 2005, 03:24:54 am
Yeah, thanks nuke. I just did a quick once-over of the code so I'm not too surprised that I got something wrong.
Title: Re: An attempt to create some table references
Post by: Wanderer on November 15, 2005, 04:01:31 am
Thanks for corrections. Fixed wiki accordingly.
Title: Re: An attempt to create some table references
Post by: Wanderer on November 25, 2005, 12:34:25 pm
Request: Could any 'code-literate' crack the ships flags open for me to be added to the wiki, please? Pretty please?

And please also check if the weapons.tbl in wiki is missing anything critical.
Title: Re: An attempt to create some table references
Post by: Wanderer on December 15, 2005, 04:50:56 am
I think there is a need for SCP features to be clearly marked their with 'birthdate' so to speak. I mean in ships.tbl, weapons.tbl there are lots of options that are incompatible with for example 3.6.7 builds. So could some one give me a date when the 3.6.7 and possible 3.6.5 were compiled so that i could make notes for the SCP entries.
Title: Re: An attempt to create some table references
Post by: karajorma on December 15, 2005, 05:53:45 am
3.6.5 was released very close to christmas last year though I can't remember the exact day.
Title: Re: An attempt to create some table references
Post by: Goober5000 on December 15, 2005, 04:09:32 pm
Christmas. ;)
Title: Re: An attempt to create some table references
Post by: Wanderer on December 17, 2005, 04:53:52 am
I have now gathered most of the entries from the code to the wiki. See weapons.tbl (http://www.hard-light.net/wiki/index.php/Weapons.tbl) and ships.tbl (http://www.hard-light.net/wiki/index.php/Ships.tbl) from FSwiki.

There are a lot of options that i have absolutely no idea what they do or why they are in the table. For example in the weapons.tbl there seems to be multiple options for defining the model ($Tech model, $Model File, $External Model File, $Model etc.  :nervous:). So...  :rolleyes: any help available?
Title: Re: An attempt to create some table references
Post by: Wanderer on December 18, 2005, 07:33:01 am
And same goes for newer files such as asteroids.tbl (http://www.hard-light.net/wiki/index.php?title=Asteroid.tbl&rcid=1966). I have given it a try but it would be nice if some one more familiar with it would take a look at it.
Title: Re: An attempt to create some table references
Post by: WMCoolmon on December 18, 2005, 03:10:42 pm
I have now gathered most of the entries from the code to the wiki. See weapons.tbl (http://www.hard-light.net/wiki/index.php/Weapons.tbl) and ships.tbl (http://www.hard-light.net/wiki/index.php/Ships.tbl) from FSwiki.

There are a lot of options that i have absolutely no idea what they do or why they are in the table. For example in the weapons.tbl there seems to be multiple options for defining the model ($Tech model, $Model File, $External Model File, $Model etc.  :nervous:). So...  :rolleyes: any help available?

$Tech model: For use in loadout and techroom screens.
$Model file: tells fs2_open to render the model instead of using the laser renderer.
$External Model File: shown on the gunpoint, used with Bobb's external-visible-weapon code.
$Model: Basically the same as $Model file:, included for compatibility with countermeasures as they have been merged with weapons in the code.
Title: Re: An attempt to create some table references
Post by: Black Wolf on December 18, 2005, 04:10:33 pm
Don't tell him - put it into the Wiki ;)