Difference between revisions of "00C3"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Research}} thumb|A debug cube draw example {{Icon|3}} '''DEBUG_ON''' <hr /> '''Description''' : Enables the debug mode '''Syntax''' : 00C3: ente...")
 
(more explanation)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Research}}
 
{{Research}}
[[File:gta3_debug_cube.jpg|thumb|A debug cube draw example]]
+
{{OpCode
{{Icon|3}} '''DEBUG_ON'''
+
| games      = {{Icon|t}}
<hr />
+
| command    = DEBUG_ON
'''Description'''
+
| description = Enables the debug mode
: Enables the debug mode
+
| syntax1    = 00C3: enter_debugmode
'''Syntax'''
+
| p1t        = ''none''
: 00C3: enter_debugmode
+
}}
'''Parameter'''
 
: [''none'']
 
  
This opcode enables the debug mode flag. The game constantly resets this flag to zero, so to make of use of it, the opcode 00C3 must be placed in a loop for a continuous effect. To turn off the debug mode instantly, use the opcode [[00C4]]. The debug mode was presumably used to highlight the boundaries of the 2d and 3d areas the player must visit in missions. The picture shows a debug cube drawn at the coordinates where the game is expecting the player to be (opcode [[00F5]] with the sphere flag on).
+
This opcode enables the debug mode flag. The game constantly resets this flag to zero, so to make of use of it, the opcode 00C3 must be placed in a loop for a continuous effect. To turn off the debug mode instantly, use the opcode [[00C4]]. This opcode is primarily used to mark the locations of world or entity markers. Location check opcodes can create world markers but they are visually cylindrical while the locations are checked in rectangular or cubic coordinates. For many 2d location checks like [[0056]], it draws a square denoting the boundaries. For many 3d location checks like [[0057]], it draws a cube instead. The opcode is present in Vice City but the game never draws the cube or square, although data to draw them are still processed. This opcode was never called in the [[Main.scm|original scripts]] of GTA III or Vice City.
  
[[Category:OpCodes]]
+
This opcode is a [[List of unused opcodes|NOP]] in San Andreas.
 +
 
 +
<gallery>
 +
Debug_square.jpg|A debug square drawn along with [[0056]].
 +
Gta3_debug_cube.jpg|A debug cube drawn along with [[0057]].
 +
Gta3_debug_marker.jpg|The blip location is marked with pink lines.
 +
</gallery>
 +
 
 +
== Keywords ==
 +
enable, debug, mode, on

Latest revision as of 15:40, 13 December 2016

GTA III Vice City San Andreas DEBUG_ON


Description
Enables the debug mode
Syntax
00C3: enter_debugmode
Parameter
none

This opcode enables the debug mode flag. The game constantly resets this flag to zero, so to make of use of it, the opcode 00C3 must be placed in a loop for a continuous effect. To turn off the debug mode instantly, use the opcode 00C4. This opcode is primarily used to mark the locations of world or entity markers. Location check opcodes can create world markers but they are visually cylindrical while the locations are checked in rectangular or cubic coordinates. For many 2d location checks like 0056, it draws a square denoting the boundaries. For many 3d location checks like 0057, it draws a cube instead. The opcode is present in Vice City but the game never draws the cube or square, although data to draw them are still processed. This opcode was never called in the original scripts of GTA III or Vice City.

This opcode is a NOP in San Andreas.

Keywords

enable, debug, mode, on