Skip to content

Commit

Permalink
#3 Extracted game variables into a separate page
Browse files Browse the repository at this point in the history
- fixed some errorneous index values
  • Loading branch information
dertseha committed Jul 22, 2017
1 parent 7f07b80 commit 9c78a87
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 14 deletions.
18 changes: 4 additions & 14 deletions archives/gameState.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,7 @@ This chunk contains everything about the hacker, together with general game-stat
00AD uint8 Power usage in JPM

00B6 512xbool Boolean game variables

Known boolean game variable indices:
7 Shield on
10 Delta grove enabled
11 Alpha grove enabled
12 Beta grove enabled
15 Beta grove launched
21 Life pods enabled, reactor on destruct
145 Online help

00F6 40xuint16 Integer game variables

31 3-digit game code 1 ([Binary-Coded-Decimal](https://en.wikipedia.org/wiki/Binary-coded_decimal))
32 3-digit game code 2 ([Binary-Coded-Decimal](https://en.wikipedia.org/wiki/Binary-coded_decimal))


0148 byte Option: Audio, Music Volume (0x00 .. 0x64)
014A uint16 Option: Video, Gamma (Default: 0x4A3D)
Expand Down Expand Up @@ -182,6 +168,10 @@ This chunk contains everything about the hacker, together with general game-stat

0567 byte Option: Text Length (0: normal, 1: terse)

### Game variables

Game variables are described on a [separate page](gameVariables.md)

### Notes

#### New Game
Expand Down
48 changes: 48 additions & 0 deletions archives/gameVariables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Game variables

This page lists all game variables with their index, their initital value, and their usage in the original game.

> At the moment not all variables have been catalogued.
### Boolean variables

| Index | Initial Value | Usage |
|------:|--------------:|----------------------------------------------------------------------------------------------|
| 6 | 0 | Shield status (+ System Analyzer) |
| 8 | 0 | Laser status (+ System Analyzer); 0: charging, 1: destroyed |
| 10 | 0 | Delta grove launch enable (+ System Analyzer) |
| 11 | 0 | Alpha grove launch enable (+ System Analyzer) |
| 12 | 0 | Beta grove launch enable (+ System Analyzer) |
| 15 | 0 | Beta grove jettisoned (+ System Analyzer) |
| 20 | 0 | Reactor on destruct, pods enabled; Quakes (+ System Analyzer) |
| 145 | 0 | "Online" help (tooltips); 0: show, 1: off |


### Integer variables

| Index | Initial Value | Usage |
|------:|--------------:|---------------------------------------------------------|
| 3 | 2 | Unknown |
| 12 | 3 | Unknown |
| 13 | Mission value | Unknown |
| 14 | Cyber value | Unknown |
| 15 | Combat value | Unknown |
| 16 | L00 security | Security value of level |
| 17 | L01 security | Security value of level |
| 18 | L02 security | Security value of level |
| 19 | L03 security | Security value of level |
| 20 | L04 security | Security value of level |
| 21 | L05 security | Security value of level |
| 22 | L06 security | Security value of level |
| 23 | L07 security | Security value of level |
| 24 | L08 security | Security value of level |
| 25 | L09 security | Security value of level |
| 26 | L10 security | Security value of level |
| 27 | L11 security | Security value of level |
| 28 | L12 security | Security value of level |
| 29 | L13 security | Security value of level |
| 30 | Puzzle value | Unknown |
| 31 | random | Reactor code 1 (3-digit BCD) |
| 32 | random | Reactor code 2 (3-digit BCD) |

> The two random codes are stored in [Binary-Coded-Decimal](https://en.wikipedia.org/wiki/Binary-coded_decimal).
1 change: 1 addition & 0 deletions archives/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This chunk contains the name of the archive (title of the save-game). It is a 0x
### [Game state chunk 0x0FA1 (4001)](gameState.md)
This chunk contains information about the game and the hacker.
It also contains the [level variables](levelVariables.md).

### Additional Chunks

Expand Down

0 comments on commit 9c78a87

Please sign in to comment.