Junior Adventures Network
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Info on ScummVM's Debugger

3 posters

Go down

Info on ScummVM's Debugger Empty Info on ScummVM's Debugger

Post by MrEightThreeOne Wed Oct 12, 2011 6:49 pm

Before we get into this, I want to clear one thing up: USE THE DEBUGGER AT YOUR OWN RISK. You are using a tool made for game developers, and not average users. You have the potential to screw the game up beyond repair using it. I AM NOT RESPONSIBLE FOR ANY DAMAGE YOU DO TO YOUR GAME. I don't want you coming up crying to me about your broken game due to your clumsiness with the debugger. It's a cool feature and all, but try not to go too far. With that out of the way...

The ScummVM debugger is an interesting tool. You can really change your game using it, doing things that were never meant to be done. To bring up the Debug Console in ScummVM, press Ctrl+D. Here are a list of commands I found off the ScummVM site:

Code:

continue, exit, quit = EXIT
restart = RESTART
actor
        <actornum> <command> <parameter>
        Use actornum=1000 to get number of actors
                COMMAND values:
                "animvar" ???
                "anim" ???
                "ignoreboxes" Allow walking anywhere
                "x" Set position
                "y" Set position
                "_elevation" Set position
                "costume" Set actor graphic appearance (use 'costume 1000' to get number of available costumes)
                "name" Show actor name
                "condmask" ???
       
actors  Display actors data

box    Display "walk-boxes" in text and graphical format.

matrix  Display walk-matrix ???

camera    Show camera position in format  "cur (%d,%d) - dest (%d,%d) - accel (%d,%d) -- last (%d,%d)"

room
  no parameter = show room
  <number> = go to %"number" room
 
objects Display objects in current room

object  <objectnum> <command> <parameter>
  COMMAND values:
        "pickup"
        "state"
        "name"
"pickup" BUG?
00497        if (argc == 3)
00498            _vm->addObjectToInventory(obj, _vm->_currentRoom);
00499        else
00500            _vm->addObjectToInventory(obj, atoi(argv[3]));


script
  "kill" <number> | "stop" <number>
  "run" <number> | "start" <number>
 
scr    ???

scripts  Display script data
 
importres
        <restype> <filename> <resnum>
        "scr"
     
drafts Command only works with Loom/LoomCD

loadgame <slotnum>

savegame <slotnum>

level Set/Display debug level

debug Set/display debug channels (???)

help

show ???
  "hex"
  "sta" (for STACK dumping)
hide ???
  "hex"
  "sta" (for STACK dumping)
imuse
  "panic" - Stop all music tracks
  "play" <number|"random">
  "stop" <number|"all">

So, as you can see, there's quite a few things, but I'll explain the things you'll probably end up using most.
Actors are almost always assigned to the characters. If you do "actors", you can see a list of all the actors currently on the screen. You can change their graphical appearance by typing "actor (#) costume (#)". This can yield crazy things, like being able to control another character. It works best in the classics and arcades, since the characters are more free roaming.
The "room" command can let you go to any room you want to. Every screen is a different room. Typing "room (#)" will teleport you to that room. This can allow to move freely as you choose, going to rooms you shouldn't be in. You may even end up on one of the developers' debugging rooms!
Finally, you can use "script" to run any of the scripts in-game. These trigger special events, like ending scenes. "Script (#) run" executes a script, while the "stop" command stops a running script.

These are the ones I know how to use. Feel free to reply about more stuff.
MrEightThreeOne
MrEightThreeOne
Admin

Posts : 242
Join date : 2011-10-10
Age : 29
Location : Woodinville, Washington

https://www.youtube.com/user/legoking831

Back to top Go down

Info on ScummVM's Debugger Empty Re: Info on ScummVM's Debugger

Post by Retrodude Sat Oct 15, 2011 5:19 pm

For extra fun, try switching different characters in the room by exchanging their costumes. Best thing I've ever done is making Fatty Bear skateboard everywhere by changing him to I think actor 2 or 3. It's epic!
Retrodude
Retrodude
Adventurer

Posts : 197
Join date : 2011-10-15
Age : 30
Location : Somewhere in the heart of suburbia.

https://www.youtube.com/user/JuniorAdventurer

Back to top Go down

Info on ScummVM's Debugger Empty Re: Info on ScummVM's Debugger

Post by LittleToonCat Mon Oct 17, 2011 6:36 am

If you want to see the fun for yourself, Watch the video I recorded.

LittleToonCat
LittleToonCat
Adventurer

Posts : 34
Join date : 2011-10-15
Age : 26

Back to top Go down

Info on ScummVM's Debugger Empty Re: Info on ScummVM's Debugger

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum