Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jaber Debug Console
#1
Jaber's Debug Console
Jaberwocky
Apr 14 2011

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given.

This is the greatest debug console you will ever see.
Why? Because I made it.

Features:
-Omnipresent
-Omnipotent
-Omniscient

No, seriously.
Omnipresent
It works anywhere at anytime from the title to battletests to your menus.

Omnipotent
It is an on-demand script call so it can do basically anything.

Omniscient
It has a special @routine variable. If it is nil, it does nothing. If it is not, it evals every frame.
Punch in:
@routine = '@textdata[0] = $game_variables[5].to_s; write("")'
OH SNAP CONSOLE NOW WORKS AS A DEBUG MONITOR
Use $console.writeline instead of p to non-intrusively debug your scripts, or use $console.log to log the debug lines to a file.
Set @debug_show to true and the console will stay visible when inactive so you can monitor any debug lines from your scripts as they happen.

HOLY SHIT JABER, SIGN ME UP
Setup is simple:
1. Delete the following from Scene_Map:

Code:
# If debug mode is ON and F9 key was pressed
    if $DEBUG and Input.press?(Input::F9)
      # Set debug calling flag
      $game_temp.debug_calling = true
    end

2. Paste '$console = Window_Console.new' after the '$game_system = Game_System.new' line in Scene_Title's main and battle_test methods.
3. Paste this above main:

The Script

4. You're done!

Using the console
Press F9 to open/close the console. Gameplay will be paused while it is opened.
Type 'show' at the start of the line to display the output from that line, e.g. 'show $game_actors[1].hp'
Left/Right arrows move the cursor left/right. Up/Down arrows access previously entered commands.
You can clear the console window by typing in 'clear_lines'
The console has support for all my keys except the numberpad. Insert, delete, home, end, etc. all work.

Screenshots
A.K.A. PICTURES OF TEXT ON TOP OF PICTURES (Click to enlarge)
[Image: 21ch4yc_th.png]


Changelog
1.02 - No longer requires replacing Input.update calls, thanks to Glitchfinder
1.01 - Replaced heavy outlines with shadowed text for better readability and less lag
[Image: rkv4oh.png]
}




Users browsing this thread: