Difference between revisions of "Debug Modes"

From AGI Wiki
Jump to navigationJump to search
Line 127: Line 127:
 
!width="175"|Command!!width="625"|Result
 
!width="175"|Command!!width="625"|Result
 
|-
 
|-
| TP (room #)||Teleport to room.*
+
| TP (room #*)||Teleport to specified room.
 
|-
 
|-
 
| OBJECT NUMBER||Show a list of items and numbers
 
| OBJECT NUMBER||Show a list of items and numbers
Line 135: Line 135:
 
| GIMME GIMME||Obtain all objects
 
| GIMME GIMME||Obtain all objects
 
|-
 
|-
| OBJECT ROOM (object #)||Specifies room where an item is
+
| OBJECT ROOM (object #)||Shows room where an item is
 
|-
 
|-
 
| ROOM NUMBER||X/Y Coordinates and current room number
 
| ROOM NUMBER||X/Y Coordinates and current room number

Revision as of 14:06, 24 October 2013

Partially based on the On-Line Debug Mode FAQ by HWM

 


Introduction

Most AGI games still have the debug code that developers used while the games were being developed. Most of the games activate their debug modes by pushing the ALT-D key combination. The other games use a "magic phrase" to enter the debug mode. Once activated, here are commands that can be used.

 

Standard AGI Debug Mode Commands

Command Result
TP Teleport to room.
SHOW PRIORITY Displays the current rooms priority bands and control lines.
GET OBJECT Get any inventory item.
GIMME GIMME Get all inventory items.
SHOW FLAG Displays one of the 256 flags.
SET FLAG Set one of the 256 flags.
RESET FLAG Clear one of the 256 flags.
SHOW VAR Displays one of the 256 variables.
SET VAR Change the value of one of the 256 variables.
POSITION Change egos position.
SHOW POSITION Show egos current screen coordinates.
OBJECT NUMBER Displays list of all the objects and their object numbers.
OBJECT ROOM Displays which room an object is found in.
ROOM Displays room number.
SET PRIORITY et the priority of ego.
RELEASE PRIORITY Release the last priority that ego was set to.

 

AGI Game Specific Debug Modes

Of all the AGI games, it is unknown whether the KQ4 256K version, MH1, MH2 and Mixed Up Mother Goose have a debug mode or not. KQ4 will almost certainly have one, while MUMG probably doesn't even though its words.tok file has all the debug words contained in it. Manhunter 2 has some kind of debug mode which allows you to teleport and change variable values because there are text messages in the first LOGIC file along these lines. Manhunter: New York probably has the same debug mode.

To access the debug mode in King's Quest I-III (in the newer versions of the game most of the debugging options won't work) while playing press Alt+D. Two information boxes will appear. Press Enter to get rid of them. Enter the right command to enter debug mode.

Game Command
Gold Rush type "bird man".
Kings Quest I Alt+D and Enter twice
Kings Quest II Alt+D and Enter twice
Kings Quest III type "rats ass" or Alt+D
Kings Quest IV AGI Alt+D and Enter twice
Leisure Suit Larry 1 Alt+D and Enter twice
Police Quest 1 type "stink bug".
Space Quest 1 type "backstage" or "dbg".
Space Quest 2 Alt+D and Enter twice

 

AGI Game Specific Debug Commands

 

King's Quest III

Here are a few interesting tricks to help you deal with that intolerable wizard in debug mode (). Type:

Command Result
enchanter status Were wizard is, when he'll return, etc.
do chore To have your task done for you.
sleep enchanter To put him to sleep.
bye bye enchanter To kill him.

 

King's Quest 4 AGI

While playing, press Alt+D. Two information boxes will appear. Press enter to get rid of them (in the newer versions of the games though, most of the debugging options won't work).

Command Result
TP Teleport to room.*

* For a list of room numbers for KQ4, see the King's Quest IV Room Maps.

 

Leisure Suit Larry 1

Press ALT+D and press enter twice to enable Debug Mode.

Command Result
TP (room #*) Teleport to specified room.
OBJECT NUMBER Show a list of items and numbers
GET OBJECT (item #) To get specified object
GIMME GIMME Obtain all objects
OBJECT ROOM (object #) Shows room where an item is
ROOM NUMBER X/Y Coordinates and current room number
SHOW VAR or SV Display value of variable
SET VAR or CHANGE VAR Change value of variable
SET FLAG or SF Set a flag
VIEW FLAG or SHOW FLAG See flags
RESET FLAG Reset a flag
ALT+M Display heapsize
ALT+I or SP (object #) Shows information about screen objects
ALT+V or PRIORITY Displays priority screen

Leisure Suit Larry 1 Room Numbers

  •  6 - Starting Screen
  •  8 - Sierra Lab
  •  9 - Bad Alley
  • 10 - Taxi Cab
  • 11 - Outside Lefty's Bar
  • 12 - Lefty's Alley
  • 13 - Lefty's Bathroom
  • 14 - Lefty's Hallway
  • 15 - Lefty's Bar
  • 16 - Lefty's Storeroom * Pimp's Hideout -
  • 17 - Lefty's Upstairs Bedroom
  • 19 - Suicide Screen * Dying -
  • 20 - Boss Key Screen
  • 21 - Quiki Mart
  • 22 - Outside Quiki Mart
  • 23 - Outside Disco
  • 24 - Disco
  • 25 - Fawn Screen
  • 31 - Casino
  • 32 - Outside Casino
  • 33 - Outside Quiki Wed
  • 34 - Quiki Wed
  • 35 - Casino Lobby Elevator
  • 36 - Casino Cabaret
  • 37 - Casino Slots
  • 38 - Casino Blackjack
  • 40 - Casino Hotel 4th Floor
  • 41 - Casino Hotel Honeymoon Suite
  • 42 - Casino Hotel 8th Floor Desk
  • 43 - Casino Penthouse Hot Tub
  • 44 - Casino Penthouse Living Room
  • 45 - Casino Penthouse Bedroom
  • 55 - Help Screen

 

Space Quest I-II

Command Result
tester Displays Rogers screen coordinates.