Resource icon

Chrispresso's Debug Console (CDC) 1.1.0

Welcome! I wanted to try out modding but found the debug console.... lacking. I decided to make one that I would use.
Current version 1.0.0

In order to bring it up hit Ctrl + D. Same command to hide/remove it.

Supports:
- Tab complete. If you're typing you can hit <tab> and autocomplete will appear. Press <tab> again to select, or use up/down arrow to navigate through. Hit <esc> to exit.
- Variable/function creation. You can store results in variables, define your own functions, etc.
- Anything that's part of "window" is brought in. By default this is most of what you'll need. You can run `Object.keys(window)` if you want to see everything.
- Moveable window. Simply click and hold the header and move the window around.
- Resizable window. Click and drag the bottom right corner to resize.
- Copy/Paste. Want to copy a cell? Simply left click it. When you left click it copies to a fake clipboard and logs it under UI.log as part of console.error so it will appear by default regardless of your log verbosity. Want to paste? Ctrl + V in the input and you can. Command + V might also work, but my mac wasn't allowing it, so you might want to still try Ctrl + V on mac.
- Cycle previous commands with Shift + up/down array.
- Local variables you create are automatically added to autocomplete.
- Ability to run and modify game content.
- Ability to "hide" cells. Simply right click any of the cells if they're too long and you can hide/minimize them
  • cdc-auto-complete.png
    cdc-auto-complete.png
    617.8 KB · Views: 504
  • declaring-vars.png
    declaring-vars.png
    582.5 KB · Views: 504
  • game-commands.png
    game-commands.png
    255.6 KB · Views: 503
  • Like
Reactions: WildW and notque
Author
chrispresso
Downloads
390
Views
2,086
First release
Last update

Ratings

5.00 star(s) 2 ratings

More resources from chrispresso

Latest updates

  1. Chrispresso's Debug Console (CDC) V1.1.0

    Version 1.1.0 features: - Added global inspection. Rather than just the completions I had...

Latest reviews

Incredible! I can't even type into the game's native debug console, so this is big.

Do you have any pointers for where to find most of the game functions? E.g. Player.get(0) or Units.restoreMovement(x) and so on
C
chrispresso
Glad you enjoy! You comment caused me to update it to 1.1.0 which should allow tab completion of anything that is exposed to the "window". If you want, you can simply hit <tab> and start to see a list of everything.

In terms of where to find - the easiest would be look to for capitalized objects in the outer most tab complete - i.e. within the window.
Understated description for a massive implementation. There's a thread in tutorials, scripting runtime information, that didn't make much sense to me until I browsed the files on this.

I thought the autocomplete was just command history but it's apparently the entire global context. I wondered where he got that from and then reread that thread. Oh, that's where. I posted a review earlier with a bit about a help command would be nice, but knowing where it came from that's not really needed. So I deleted that and posted a new review.

Excellent tool.
C
chrispresso
Glad you like it! I've updated it so you can tab complete anything. Hopefully this helps expose more game APIs
Back
Top Bottom