Difference between revisions of "Cheats.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m ("+Spawn ship" gives an error for wrong syntax)
m ("Require Cheats" gives a syntax error)
 
Line 30: Line 30:
 
*Syntax: '''''String'''''}}
 
*Syntax: '''''String'''''}}
  
===+Require Cheats:===
+
===+RequireCheats:===
 
{{Table224|
 
{{Table224|
 
*Defines whether or not cheats must be activated with WWW.FREESPACE2.COM first in order to use this cheat.
 
*Defines whether or not cheats must be activated with WWW.FREESPACE2.COM first in order to use this cheat.

Latest revision as of 11:13, 20 April 2023

This feature requires FreeSpace Open

Revision information.....

FSO Revision: 20221122
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version


List of Tables and related code files
* Notes Modular Tables
** Notes tables which only use modular tables
Ai.tbl* /ai/aicode.cpp
Ai_profiles.tbl* /ai/ai_profiles.cpp
Animation.tbl** /model/modelanimation.cpp
Armor.tbl* /ship/ship.cpp
Asteroid.tbl* /asteroid/asteroid.cpp
Autopilot.tbl* /autopilot/autopilot.cpp
Cheats.tbl* /cheats_table/cheats_table.cpp
Colors.tbl* /globalincs/alphacolors.cpp
Curves.tbl* /math/curves.cpp
Controlconfigdefaults.tbl /controlconfig/controlsconfigcommon.cpp
Credits.tbl* /menuui/credits.cpp
Cutscenes.tbl* /cutscene/cutscenes.cpp
Decals.tbl** /decals/decals.cpp
Fireball.tbl* /fireball/fireballs.cpp
Fonts.tbl* /graphics/font.cpp
Game_settings.tbl* /mod_table/mod_table.cpp
Glowpoints.tbl* /model/modelread.cpp
Help.tbl* /gamehelp/contexthelp.cpp
Hud_gauges.tbl* /hud/hudparse.cpp
Icons.tbl* /mission/missionbriefcommon.cpp
Iff_defs.tbl* /iff_defs/iff_defs.cpp
Keywords.tbl* Not In Codebase
Lighting_Profiles.tbl* /lighting/lighting_profiles.cpp
Lightning.tbl* /nebula/neblightning.cpp
Mainhall.tbl* /menuui/mainhallmenu.cpp
Medals.tbl* /stats/medals.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
Options.tbl* Not In Codebase
Particle effects(-part.tbm)** /particle/effects...
Post_processing.tbl /graphics/gropenglpostprocessing.cpp
Rank.tbl* /stats/scoring.cpp
Scpui.tbl* Not In Codebase
Scripting.tbl* /parse/scripting.cpp
Ships.tbl* /ship/ship.cpp
Sexps.tbl** /parse/sexp/sexp_lookup.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* /stats/scoring.cpp
Tstrings.tbl* /localization/localize.cpp
Virtual_pofs.tbl* /model/modelreplace.cpp
Weapon_expl.tbl* /weapon/weapons.cpp
Weapons.tbl* /weapon/weapons.cpp

The cheats.tbl is used to define the in-mission cheats for a mod. This table is not found in the retail game.

This table is one of the Modular Tables and can be extended with xxx-cht.tbm

General Structure

  • Table consists of cheats section
  • Starts with #CUSTOM CHEATS
  • Ends with #END


$Cheat:

FS2 Open, 23.0:
  • Begin a cheat definition


+Code:

FS2 Open, 23.0:
  • Defines the text that must be typed to activate the cheat.
  • Limited to 17 characters
  • Syntax: String


+Message:

FS2 Open, 23.0:
  • Defines the message that will be sent when the cheat is activated.
  • Only works if the player is currently in a mission.
  • Syntax: String

+RequireCheats:

FS2 Open, 23.0:
  • Defines whether or not cheats must be activated with WWW.FREESPACE2.COM first in order to use this cheat.
  • Syntax: Boolean


+Spawnship:

FS2 Open, 23.0:
  • Specifies if this cheat spawns a ship.
  • If specified, then the following two fields are required.


+Name:

FS2 Open, 23.0:
  • The name the spawned ship will be given.
  • Syntax: String


+Class:

FS2 Open, 23.0:
  • The class of ship to spawn. Must match a ship from ships.tbl.
  • Syntax: String


Example

This is the built-in table that can be overridden with cheats.tbl or added to with -cht.tbm

#CUSTOM CHEATS

$Cheat:
   +Code: arrrrwalktheplank
   +Message: Walk the plank
   +SpawnShip: 
      +Name: Volition Bravos
      +Class: Volition Bravos

#END