Difference between revisions of "00C3"

From GTAMods Wiki
Jump to navigation Jump to search
(more explanation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{Research}}
 
{{Research}}
[[File:gta3_debug_cube.jpg|thumb|A debug cube draw example]]
+
{{OpCode
[[File:gta3_debug_marker.jpg|thumb|The blip location is marked with pink lines]]
+
| games      = {{Icon|t}}
{{Icon|3}} '''DEBUG_ON'''
+
| command    = DEBUG_ON
<hr />
+
| description = Enables the debug mode
'''Description'''
+
| syntax1    = 00C3: enter_debugmode
: Enables the debug mode
+
| p1t        = ''none''
'''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]]. The debug mode was presumably used to highlight the boundaries of zones of interest which the player must visit in missions. The top 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). The bottom picture illustrates another effect of the debug mode: highlighting the blip location.
+
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