Difference between revisions of "Tables"
m (→Brief descriptions of table files) |
(added table with links to table file pages) |
||
Line 5: | Line 5: | ||
==Table files== | ==Table files== | ||
+ | |||
+ | {| border=0 align=right cellpadding=2 cellspacing=1 style="margin: 0 0 1em 1em; background: #202020; border: 1px #AA2020 solid; border-collapse: collapse; font-size: 95%;" | ||
+ | ! colspan="2" style="color: white; height: 30px; background: #512020; 70%;"|'''''Tables files and related code files''''' | ||
+ | |- | ||
+ | | align="center"| [[Ai.tbl]] | ||
+ | | '''/ai'''/aicode.cpp | ||
+ | |- | ||
+ | | align="center"| [[Ai_profiles.tbl]] | ||
+ | | '''/ai'''/ai_profiles.cpp | ||
+ | |- | ||
+ | | align="center"| [[Armor.tbl]] | ||
+ | | '''/ship'''/ship.cpp | ||
+ | |- | ||
+ | | align="center"| [[Asteroid.tbl]] | ||
+ | | '''/asteroid'''/asteroid.cpp | ||
+ | |- | ||
+ | | align="center"| [[Autopilot.tbl]] | ||
+ | | '''/autopilot'''/autopilot.cpp | ||
+ | |- | ||
+ | | align="center"| [[Credits.tbl]] | ||
+ | | '''/menuui'''/credits.cpp | ||
+ | |- | ||
+ | | align="center"| [[Cutscenes.tbl]] | ||
+ | | '''/cutscene'''/cutscenes.cpp | ||
+ | |- | ||
+ | | align="center"| [[Fireball.tbl]] | ||
+ | | '''/fireball'''/fireballs.cpp | ||
+ | |- | ||
+ | | align="center"| [[Help.tbl]] | ||
+ | | '''/gamehelp'''/contexthelp.cpp | ||
+ | |- | ||
+ | | align="center"| [[Hud.tbl]] | ||
+ | | | ||
+ | |- | ||
+ | | align="center"| [[Hud_gauges.tbl]] | ||
+ | | '''/hud'''/hudparse.cpp | ||
+ | |- | ||
+ | | align="center"| [[Icons.tbl]] | ||
+ | | '''/missions'''/missionbriefcommon.cpp | ||
+ | |- | ||
+ | | align="center"| [[Iff_defs.tbl]] | ||
+ | | '''/iff_defs'''/iff_defs.cpp | ||
+ | |- | ||
+ | | align="center"| [[Lightning.tbl]] | ||
+ | | '''/nebula'''/neblightning.cpp | ||
+ | |- | ||
+ | | align="center"| [[Mainhall.tbl]] | ||
+ | | '''/menuui'''/mainhallmenu.cpp | ||
+ | |- | ||
+ | | align="center"| [[Medals.tbl]] | ||
+ | | '''/stats'''/medals.cpp | ||
+ | |- | ||
+ | | align="center"| [[Menu.tbl]] | ||
+ | | '''/menuui'''/snazzyui.cpp | ||
+ | |- | ||
+ | | align="center"| [[Messages.tbl]] | ||
+ | | '''/mission'''/missionmessage.cpp | ||
+ | |- | ||
+ | | align="center"| [[Mflash.tbl]] | ||
+ | | '''/weapon'''/muzzleflash.cpp | ||
+ | |- | ||
+ | | align="center"| [[Music.tbl]] | ||
+ | | '''/gamesnd'''/eventmusic.cpp | ||
+ | |- | ||
+ | | align="center"| [[Nebula.tbl]] | ||
+ | | '''/nebula'''/neb.cpp | ||
+ | |- | ||
+ | | align="center"| [[Objecttypes.tbl]] | ||
+ | | '''/ship'''/ship.cpp | ||
+ | |- | ||
+ | | align="center"| [[Rank.tbl]] | ||
+ | | '''/stats'''/scoring.cpp | ||
+ | |- | ||
+ | | align="center"| [[Scripting.tbl]] | ||
+ | | '''/parse'''/scripting.cpp | ||
+ | |- | ||
+ | | align="center"| [[Ships.tbl]] | ||
+ | | '''/ship'''/ship.cpp | ||
+ | |- | ||
+ | | align="center"| [[Sounds.tbl]] | ||
+ | | '''/gamesnd'''/gamesnd.cpp | ||
+ | |- | ||
+ | | align="center"| [[Species_defs.tbl]] | ||
+ | | '''/species_defs'''/species_defs.cpp | ||
+ | |- | ||
+ | | align="center"| [[Species.tbl]] | ||
+ | | '''/menuui'''/techmenu.cpp | ||
+ | |- | ||
+ | | align="center"| [[Ssm.tbl]] | ||
+ | | '''/hud'''/hudartillery.cpp | ||
+ | |- | ||
+ | | align="center"| [[Stars.tbl]] | ||
+ | | '''/starfield'''/starfield.cpp | ||
+ | |- | ||
+ | | align="center"| [[Strings.tbl]] | ||
+ | | '''/localization'''/localize.cpp | ||
+ | |- | ||
+ | | align="center"| [[Tips.tbl]] | ||
+ | | '''/menuui'''/playermenu.cpp | ||
+ | |- | ||
+ | | align="center"| [[Traitor.tbl]] | ||
+ | | '''/missionui'''/missiondebrief.cpp | ||
+ | |- | ||
+ | | align="center"| [[Tstrings.tbl]] | ||
+ | | '''/localization'''/localize.cpp | ||
+ | |- | ||
+ | | align="center"| [[Weapon_expl.tbl]] | ||
+ | | '''/weapon'''/weapons.cpp | ||
+ | |- | ||
+ | | align="center"| [[Weapons.tbl]] | ||
+ | | '''/weapon'''/weapons.cpp | ||
+ | |- | ||
+ | |} | ||
In general tables files are simple unformatted text files | In general tables files are simple unformatted text files |
Revision as of 17:30, 28 July 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.
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_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 |
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
Species_defs.tbl
Objecttypes.tbl
iff_defs.tbl
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
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
- Asterisks (*) denote a table added for Freespace 2. These are not required by FS1.
- Plus signs (+) denote a table added by the Source Code Project. These are not required by retail FS2
- In all the tables help pages, SCP added entries are usually marked with red font, (unless the whole table is an addition).
- For full list and links see Category:Tables
ai.tbl - Defines a small subset of the AI behavior.
ai_profiles.tbl+ - Defines extended options for AI behavior. AI profiles can be specified on a per-mission basis.
armor.tbl+ - Defines the behaviour of ship armor.
iff_defs.tbl+ - Defines IFF. New IFFs can be specified, with different behaviors for each.
ships.tbl - Defines the statistics of ships in-game.
species_defs.tbl+ - Defines characteristics of ships belonging to each species.
weapons.tbl - Defines the statistics of weapons in-game.