Difference between revisions of "Modular Tables"
From FreeSpace Wiki
m |
|||
Line 12: | Line 12: | ||
*Modular table files should use the 'parent table' files sections. | *Modular table files should use the 'parent table' files sections. | ||
*Completely new entries and also complete rewrites of entries in parent table file are always possible. | *Completely new entries and also complete rewrites of entries in parent table file are always possible. | ||
− | *For '''xxx-shp. | + | *For '''xxx-shp.tbm''' and '''xxx-wep.tbm''' |
**Table entries in modular tables do not have to be complete. Partial entries can be used to alter the data found in parent table files when only some changes to the original are desired to be made. | **Table entries in modular tables do not have to be complete. Partial entries can be used to alter the data found in parent table files when only some changes to the original are desired to be made. | ||
**Adding '''+nocreate''' right after the entry's name prevents possible creation of partially undefined entry. For example if the parent table file lacked the entry that was included to the as a partial entry to the modular table file then the creation of partially undefined entry is possible which could cause problems with the game. | **Adding '''+nocreate''' right after the entry's name prevents possible creation of partially undefined entry. For example if the parent table file lacked the entry that was included to the as a partial entry to the modular table file then the creation of partially undefined entry is possible which could cause problems with the game. | ||
Line 22: | Line 22: | ||
==Sample - Alpha-wep.tbm== | ==Sample - Alpha-wep.tbm== | ||
*Changes the speed of the ''Subach HL-7'' and also adds a faint grey trail to it. | *Changes the speed of the ''Subach HL-7'' and also adds a faint grey trail to it. | ||
+ | *To create it make a text file using a text editor and save the file as '''''Alpha-wep.tbm''''' with the following contents to the proper folder (.../data/tables). | ||
#Primary Weapons | #Primary Weapons |
Revision as of 08:35, 17 December 2005
Modular tables are SCP addition to the standard FreeSpace table system. XMTs (or eXtentable Modular Tables) offer capability to add new entries or alter already existing tables without any need of editing the 'parent' table file.
Extentable Tables
- armor.tbl can be extended with xxx-amr.tbm file (non-XMT)
- hud_gauges.tbl can be extended with xxx-hdg.tbm file (non-XMT)
- music.tbl can be extended with xxx-mus.tbm file (non-XMT)
- Ships.tbl can be extented with xxx-shp.tbm file (XMT)
- Weapons.tbl can be extended with xxx-wep.tbm file (XMT)
- Weapon_expl.tbl can be extended with xxx-wxp.tbm file (non-XMT)
Important Notes
- Modular table files should use the 'parent table' files sections.
- Completely new entries and also complete rewrites of entries in parent table file are always possible.
- For xxx-shp.tbm and xxx-wep.tbm
- Table entries in modular tables do not have to be complete. Partial entries can be used to alter the data found in parent table files when only some changes to the original are desired to be made.
- Adding +nocreate right after the entry's name prevents possible creation of partially undefined entry. For example if the parent table file lacked the entry that was included to the as a partial entry to the modular table file then the creation of partially undefined entry is possible which could cause problems with the game.
- Example:
$Name: @Subach HL-7 +nocreate
Sample - Alpha-wep.tbm
- Changes the speed of the Subach HL-7 and also adds a faint grey trail to it.
- To create it make a text file using a text editor and save the file as Alpha-wep.tbm with the following contents to the proper folder (.../data/tables).
#Primary Weapons $Name: @Subach HL-7 +nocreate $Velocity: 650.0 $Trail: +Start Width: 0.4 +End Width: 0.0 +Start Alpha: 0.35 +End Alpha: 0.0 +Max Life: 0.2 +Bitmap: Contrail #End