Difference between revisions of "Tables"
(wikify) |
|||
Line 1: | Line 1: | ||
'''Tables''' are the major data files in [[Portal:Freespace 1|FreeSpace]] and [[Portal:Freespace 2|FreeSpace 2]]. Compared with many other games, they are highly intuitive and easy to edit, requiring no special tools other than notepad. For more detail on specific tables, see the links below. | '''Tables''' are the major data files in [[Portal:Freespace 1|FreeSpace]] and [[Portal:Freespace 2|FreeSpace 2]]. Compared with many other games, they are highly intuitive and easy to edit, requiring no special tools other than notepad. For more detail on specific tables, see the links below. | ||
− | + | ||
− | '''''Full list of tables can be found in [[:Category:Tables]] page. <br>In-depth modular tables info can be found in [[Modular Tables]] page. | + | '''''Full list of tables can be found in [[:Category:Tables]] page. <br>In-depth modular tables info can be found in [[Modular Tables]] page. |
− | + | ||
+ | Information on how FreeSpace uses tables can be found on the [[Freespace 2 Directory Structure|FreeSpace 2 Directory Structure]] page.''''' | ||
==Table files== | ==Table files== | ||
Line 127: | Line 128: | ||
These files are the basic FreeSpace table used for defining various aspects of the game. Game reads only single .tbl choosing the one it encounters first while parsing the game directories. | These files are the basic FreeSpace table used for defining various aspects of the game. Game reads only single .tbl choosing the one it encounters first while parsing the game directories. | ||
− | |||
===.tbm files=== | ===.tbm files=== | ||
Line 134: | Line 134: | ||
For usage info and important notes, see [[Modular Tables]]. | For usage info and important notes, see [[Modular Tables]]. | ||
− | |||
===Notes of certain table files=== | ===Notes of certain table files=== | ||
− | |||
====Hardcoded table files==== | ====Hardcoded table files==== | ||
Line 150: | Line 148: | ||
*[[Objecttypes.tbl]] | *[[Objecttypes.tbl]] | ||
*[[Species_defs.tbl]] | *[[Species_defs.tbl]] | ||
− | |||
====Optional table files==== | ====Optional table files==== | ||
Line 160: | Line 157: | ||
*[[Armor.tbl]] | *[[Armor.tbl]] | ||
*[[Scripting.tbl]] | *[[Scripting.tbl]] | ||
− | |||
====Obsolete table files==== | ====Obsolete table files==== | ||
Line 167: | Line 163: | ||
*[[Hud.tbl]] | *[[Hud.tbl]] | ||
− | |||
==Important notes== | ==Important notes== | ||
Line 175: | Line 170: | ||
*As a general rule, '''''all the table entries must be ordered'''''. | *As a general rule, '''''all the table entries must be ordered'''''. | ||
*Keep the order shown in the following help sections for each table in both normal tables (tbl files) and [[Modular Tables]] (tbm files). If you don't do it, you can get parser errors on FS2 or FRED2 loading when they are reading them. | *Keep the order shown in the following help sections for each table in both normal tables (tbl files) and [[Modular Tables]] (tbm files). If you don't do it, you can get parser errors on FS2 or FRED2 loading when they are reading them. | ||
− | |||
==Brief descriptions of table files== | ==Brief descriptions of table files== |
Revision as of 22:53, 27 September 2007
Tables are the major data files in FreeSpace and FreeSpace 2. Compared with many other games, they are highly intuitive and easy to edit, requiring no special tools other than notepad. For more detail on specific tables, see the links below.
Full list of tables can be found in Category:Tables page.
In-depth modular tables info can be found in Modular Tables page.
Information on how FreeSpace uses tables can be found on the FreeSpace 2 Directory Structure page.
Contents
Table files
Tables files and related code files | |
---|---|
Ai.tbl | /ai/aicode.cpp |
Ai_profiles.tbl | /ai/ai_profiles.cpp |
Armor.tbl | /ship/ship.cpp |
Asteroid.tbl | /asteroid/asteroid.cpp |
Autopilot.tbl | /autopilot/autopilot.cpp |
Credits.tbl | /menuui/credits.cpp |
Cutscenes.tbl | /cutscene/cutscenes.cpp |
Fireball.tbl | /fireball/fireballs.cpp |
Help.tbl | /gamehelp/contexthelp.cpp |
Hud.tbl | /hud/hudshield.cpp |
Hud_gauges.tbl | /hud/hudparse.cpp |
Icons.tbl | /missions/missionbriefcommon.cpp |
Iff_defs.tbl | /iff_defs/iff_defs.cpp |
Lightning.tbl | /nebula/neblightning.cpp |
Mainhall.tbl | /menuui/mainhallmenu.cpp |
Medals.tbl | /stats/medals.cpp |
Menu.tbl | /menuui/snazzyui.cpp |
Messages.tbl | /mission/missionmessage.cpp |
Mflash.tbl | /weapon/muzzleflash.cpp |
Music.tbl | /gamesnd/eventmusic.cpp |
Nebula.tbl | /nebula/neb.cpp |
Objecttypes.tbl | /ship/ship.cpp |
Pixels.tbl | /palman/palman.cpp |
Rank.tbl | /stats/scoring.cpp |
Scripting.tbl | /parse/scripting.cpp |
Ships.tbl | /ship/ship.cpp |
Sounds.tbl | /gamesnd/gamesnd.cpp |
Species_defs.tbl | /species_defs/species_defs.cpp |
Species.tbl | /menuui/techmenu.cpp |
Ssm.tbl | /hud/hudartillery.cpp |
Stars.tbl | /starfield/starfield.cpp |
Strings.tbl | /localization/localize.cpp |
Tips.tbl | /menuui/playermenu.cpp |
Traitor.tbl | /missionui/missiondebrief.cpp |
Tstrings.tbl | /localization/localize.cpp |
Weapon_expl.tbl | /weapon/weapons.cpp |
Weapons.tbl | /weapon/weapons.cpp |
In general tables files are simple unformatted text files
.tbl files
These files are the basic FreeSpace table used for defining various aspects of the game. Game reads only single .tbl choosing the one it encounters first while parsing the game directories.
.tbm files
These files are Modular Tables files. They can be used for adding content to the 'base' tables or to modify the data from those files.
For usage info and important notes, see Modular Tables.
Notes of certain table files
Hardcoded table files
Some of the table files are not actually required as the basic version has been written directly to the code. However these can be overridden by table files present in game directories.
These files are not present in standard FreeSpace 2 .vp files
Optional table files
Certain tables are not found from the code nor do they belong to the basic table set. These tables are parsed if game detects them
These files are not present in standard FreeSpace 2 .vp files
Obsolete table files
Some table files have since been 'retired' and they are no longer needed with FreeSpace Open
Important notes
Table entries must be ordered
- As a general rule, all the table entries must be ordered.
- Keep the order shown in the following help sections for each table in both normal tables (tbl files) and Modular Tables (tbm files). If you don't do it, you can get parser errors on FS2 or FRED2 loading when they are reading them.
Brief descriptions of table files
- In all the table help pages, SCP added entries are usually marked with infoboxes that mark the branch there the particular feature has added to.
- {{Table36| text}} gives 3.6.x branch box
- {{Table37| text}} gives 3.7 branch box
- For full list of table related pages and links see Category:Tables