Difference between revisions of "00C3"
(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}} | ||
− | + | {{OpCode | |
− | {{Icon| | + | | games = {{Icon|t}} |
− | + | | command = DEBUG_ON | |
− | + | | description = Enables the debug mode | |
− | + | | syntax1 = 00C3: enter_debugmode | |
− | + | | p1t = ''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 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. |
− | [[ | + | 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
- 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