UFO: Afterlight wiki
m (Better format instructions)
No edit summary
Tag: Visual edit
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  +
<br />
==Cheat codes==
 
   
UFO: Afterlight comes with an in-built game console, which can be activated by adding a new command line option to the game shortcut.
 
 
* Right-click the game's shortcut and select [Properties].
 
* In the Target box, append the following line:
 
enable_system_console=true
 
: Example:
 
"C:\Program Files\CENEGA\UFO Afterlight\UFO.exe" --options enable_system_console=true
 
* While playing, press the [`] button (to the left of the [1] button) to dispaly the console.
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 15: Line 7:
 
! Locations
 
! Locations
 
|-
 
|-
  +
| <code><big>?</big></code>
| ?
 
| List all commands
+
|<big>List all commands available for that specific screen.</big>
| All
+
|<big>All</big>
 
|-
 
|-
  +
| <code><big>hit # # #</big></code>
| full_store
 
  +
|<big>Deals # # # damage to selected unit ([[AL:Damage|stun/temp/perm]]). Negative values = healing.</big>
| +25 of each type of equipment
 
 
|<big>Mission (tactical)</big>
| Geoscape (strategic)
 
 
|-
 
|-
  +
| <code><big>untouch</big></code>
| kill_enemies
 
  +
|<big>Invulnerable mode.</big>
| Kills all enemy soldiers on the map
 
| Mission (tactical)
+
|<big>Mission (tactical)</big>
 
|-
 
|-
  +
| <code><big>kill_enemies</big></code>
| resource_all
 
  +
|<big>Kills all enemies. Does not remove mines and would kill capture target.</big>
| Adds resources
 
 
|<big>Mission (tactical)</big>
| Geoscape (strategic)
 
 
|-
 
|-
  +
| <code><big>matrix</big></code>
| add_experience #
 
  +
|<big>(Easter egg) A special vision. Use <code>normal</code> to return.</big>
| Adds # amount of experience.
 
  +
|<big>Mission (tactical)</big>
| Geoscape (strategic)
 
 
|-
 
|-
  +
| <code><big>research_all</big></code>
| naked
 
  +
|<big>Finishes all researches.</big>
| Surprise!
 
  +
|<big>Geoscape & People screen</big>
| Mission (tactical)
 
 
|-
 
|-
  +
| <code><big>resource_all</big></code>
| no_vis
 
  +
|<big>Gives max resources.</big>
| Toggles the fog of war
 
  +
|<big>Geoscape & People screen</big>
| Mission (tactical)
 
  +
|-
  +
| <code><big>full_store</big></code>
 
|<big>Gives 25 pieces of each type of item.</big>
  +
|<big>Geoscape & People screen</big>
  +
|-
  +
| <code><big>flood #</big></code>
  +
|<big>Set terraform progress. # should be between 0 and 3.5.</big>
  +
|<big>Geoscape & People screen</big>
  +
|-
 
| <code><big>add_experience #</big></code>
  +
|<big>Adds # experience to all soldiers.</big>
  +
|<big>People screen</big>
  +
|-
  +
| <code><big>train #</big></code>
  +
|<big>Grants # training to selected soldier. # is the [[AL:Training|training]]'s text id.</big>
  +
|<big>People screen</big>
  +
|-
  +
| <code><big>add_item #</big></code>
  +
|<big>Gives a piece of #. # is the item's text id.<br />This can be used to fix relevant research requirements.<br />(Some tech is checked after a mission, e.g. [[AL:Martian Archives (Tech)|Martian Archives]])</big>
  +
|<big>Squad screen</big>
  +
|-
  +
| <code><big>add_item #</big></code>
  +
|<big>Gives a piece of #. # is the item's text id.<br />This can be used to fix relevant research requirements.<br />(Some tech is checked after a mission, e.g. [[AL:Martian Archives (Tech)|Martian Archives]])</big>
  +
|<big>Squad screen</big>
  +
|-
  +
| <code><big>mission_rescue_martian</big></code>
  +
|<big>Gives a Rescue captured alien mission on Beastman territory empty of missions.<br />This can be used to initiate those rescue martian members missions ASAP instead of waiting for them appear naturally which can be a very long time for all three. <br />(Should have [[AL:Spoken Martian Language (Tech)|Spoken Martian Language]] and ally with them already</big>
  +
|<big>Global screen</big>
  +
|-
  +
| <code><big>add_unit/add_robot #</big></code>
  +
|<big>Enrols # to the team. # is the [[AL:Character|character]]'s text id.</big>
  +
|<big>Squad screen</big>
 
|}
 
|}
Note: this list is incomplete.
 
 
==Game Engine Exploits==
 
 
While not actually cheating per se, the methods below describe how to abuse the game's internal logic in order to gain an advantage.
 
 
===Avoiding enemy attacks on player owned territory===
 
 
Attacks on player territories may be triggered by several reasons. They can generally be avoided by saving regularly.
 
 
* Timed events cannot be prevented outright but the target territory is randomly chosen. In addition, the attackers may be destroyed by a rocket base, in which case the target of the attacks is recalculated again.
 
 
* Attacks on construction sites occur as soon as the scientific buggy or technical truck begin to construct a new planetary installation. The probability is recalculated if you reload a save before construction begins.
 
 
===Avoiding the production switch penalty===
 
   
  +
<br />
When manufacturing items in a workshop, time needs to be spent to built the assembly line. This time cost, usually a few hours, is paid every time a new item is produced, even if you have produced the item in the past. There is no way to avoid this the first time, but by queueing a very high production target (e.g. 1,000 units) the order will not be completed for a very long time and you can reorder the queue around it when need be.. This is best used for items which you know you will need to manufacture again (e.g. projectile ammo).
 
  +
[[Category:Afterlight]]

Latest revision as of 00:31, 26 December 2021


Code Effect Locations
? List all commands available for that specific screen. All
hit # # # Deals # # # damage to selected unit (stun/temp/perm). Negative values = healing. Mission (tactical)
untouch Invulnerable mode. Mission (tactical)
kill_enemies Kills all enemies. Does not remove mines and would kill capture target. Mission (tactical)
matrix (Easter egg) A special vision. Use normal to return. Mission (tactical)
research_all Finishes all researches. Geoscape & People screen
resource_all Gives max resources. Geoscape & People screen
full_store Gives 25 pieces of each type of item. Geoscape & People screen
flood # Set terraform progress. # should be between 0 and 3.5. Geoscape & People screen
add_experience # Adds # experience to all soldiers. People screen
train # Grants # training to selected soldier. # is the training's text id. People screen
add_item # Gives a piece of #. # is the item's text id.
This can be used to fix relevant research requirements.
(Some tech is checked after a mission, e.g. Martian Archives)
Squad screen
add_item # Gives a piece of #. # is the item's text id.
This can be used to fix relevant research requirements.
(Some tech is checked after a mission, e.g. Martian Archives)
Squad screen
mission_rescue_martian Gives a Rescue captured alien mission on Beastman territory empty of missions.
This can be used to initiate those rescue martian members missions ASAP instead of waiting for them appear naturally which can be a very long time for all three.
(Should have Spoken Martian Language and ally with them already
Global screen
add_unit/add_robot # Enrols # to the team. # is the character's text id. Squad screen