Repository navigation
intel.tbl
Revision information OFP Revision: #144 Set the revision to your PR when your PR changes what this page documents. Leave it alone for edits that only fix or improve the documentation.
The intel.tbl defines the intelligence entries found in the tech room.
intel.tbl is the current name of this table. Its original name, species.tbl, is deprecated but still read: the game loads intel.tbl if it exists, and species.tbl otherwise (never both). Species themselves are defined in species_defs.tbl.
This table is one of the Modular Tables and can be extended with xxx-intl.tbm.
Code: /menuui/techmenu.cpp. See Tables for every table.
Badges show the version a field or behavior was added in. Fields without a badge are from the original game. The OFP badge marks what OFP adds.
Field index (every field, one per line in table order; click one to jump to it)
- Table consists of the intelligence data entries, each one starting with $Entry:
- In the original game the table does not have any kind of begin or end marker.
It can begin with
#Inteland end with#End; both are optional. - The fields of an entry must be in the order listed here. Anything else where the next
$Entry:should be logs a warning, and the rest of the file is not read. -
There is no limit on the number of entries (it was 75), and no limit on the length of a description (it was 5120 characters).
- Begins the intelligence data entry
- Required. Defines the name of the intelligence entry. Number refers to the translations found from tstrings.tbl
- A name used again without
+nocreatelogs a warning, and the entry is added anyway. - Syntax: XSTR("String", Integer)
- Optional, directly after
$Name:. In a modular table, edits the existing entry of that name instead of adding a new one; only the fields given are changed. If no entry has that name, the entry is skipped (noted in the log). - In intel.tbl itself it logs a warning and is ignored (a new entry is added).
- Defines the name of the animation used for the intelligence entry
- Syntax: String
- This field is now optional
- The model file to show for this intel entry, as a spinning 3D model the way ship and weapon entries do.
- If the model loads, it is shown instead of the entry's
$Anim:. If it fails to load, the tech room falls back to the animation. -
Syntax: String, model filename (e.g.
mystation.pof)
- The camera position used to view the model, the same as
$Closeup_pos:in ships.tbl. - Only read directly after
$Tech Model:. - If left out, it is worked out from the model's size: the camera sits on the z axis at twice the model's largest z extent.
-
Syntax: Vector,
x, y, z
- The camera zoom used to view the model, the same as
$Closeup_zoom:in ships.tbl. - Only read directly after
$Tech Model:(and+Closeup_pos:if present). - Must be greater than 0. Otherwise a message is logged and the default is used.
-
Default:
0.5 - Syntax: Float
- Sets the entry to appear from the beginning of campaigns. If set to '0' or false the entry has to be triggered with sexps during the campaign
- Syntax: Integer (0 or 1)
- Syntax: Boolean
- This field is now optional, defaults to false. When a modular table edits an entry, setting it resets the entry's tech room flags first.
- Sets the description shown when the intelligence entry is viewed in tech room. Number refers to the translations found from tstrings.tbl.
- Ends with $end_multi_text
- Syntax: XSTR("String", integer)
- This field is now optional
Optional. Defines a set of custom data for this intel entry, which can then be accessed through Lua scripts. There can be any amount of +Val: entries. It requires a $end_custom_data entry at the end.
Specifies a custom data value and its name, in the format
+Val: Name Value
- A Retail FreeSpace 2 entry
#Intel
$Entry:
$Name: XSTR("The Great War",3184)
$Anim: Intel_Great_War
$AlwaysInTechRoom: 1
$Description:
XSTR(
"In 2335, the Terran-Vasudan War entered its fourteenth year...", 3185)
$end_multi_text
$Entry:
$Name: Relay Station
$Anim: tech_relay
$Tech Model: relaystation.pof
+Closeup_pos: 0, 0, -350
+Closeup_zoom: 0.6
$AlwaysInTechRoom: 1
$Description:
XSTR("A long-range subspace relay.", -1)
$end_multi_text
#End
Getting Started
Features
SEXPs
Lua Scripting
Tables
-
Tables
- ai.tbl
- Animation (-anim.tbm)
- armor.tbl
- asteroid.tbl
- autopilot.tbl
- cheats.tbl
- colors.tbl
- controlconfigdefaults.tbl
- coordinate_points.tbl
- credits.tbl
- curves.tbl
- cutscenes.tbl
- Decals (-dcl.tbm)
- default_settings.tbl
- Dynamic SEXPs (-sexp.tbm)
- editor.tbl
- fireball.tbl
- fonts.tbl
- game_settings.tbl
- generated_nebula.tbl
- glowpoints.tbl
- help.tbl
- hud_gauges.tbl
- icons.tbl
- iff_defs.tbl
- intel.tbl
- lighting_profiles.tbl
- lightning.tbl
- mainhall.tbl
- medals.tbl
- messages.tbl
- mflash.tbl
- mission_profiles.tbl
- music.tbl
- nebula.tbl
- objecttypes.tbl
- Particle Effects (-part.tbm)
- post_processing.tbl
- props.tbl
- rank.tbl
- scripting.tbl
- ships.tbl
- sounds.tbl
- species_defs.tbl
- ssm.tbl
- stars.tbl
- strings.tbl
- tips.tbl
- traitor.tbl
- tstrings.tbl
- virtual_pofs.tbl
- weapons.tbl