Enabling Debug mode on YAGA games
3 posters
Enabling Debug mode on YAGA games
After days of experimenting, I figured out two different methods of how to enable debug mode on YAGA games.
Method 1: On your game directory, create a new file named HeDbg.py, and insert the following contents into the file and start the game.
Method 2: If you want the ability to toggle debug mode with an argument, this is the method for you. Create a new file named profiler.py, and insert the following to the file:
And then start the game with the '-p' argument, that'll force the game to read the file.
E.G.
PajamaLRS.exe -p
PuttPuttPBS.exe -p
Keyboard commands:
t = Toggle talkie text
i = Go to the inventory cheat screen if cheats are enabled
p = Show current cursor position on the title bar
s = Toggle music on/off
d = It does something clickpoint releated, but haven't figured out fully yet.
f = Show current FPS on the title bar
m = Go to the map screen if cheats are enabled
Interesting Fact: The text and music toggles saves as a game option, so if you enable it, it'll stay on even if the debug mode is disabled
Happy debugging!
Method 1: On your game directory, create a new file named HeDbg.py, and insert the following contents into the file and start the game.
- Code:
import globals
globals.DEBUG_BUILD = 1
globals.CHEATS_ENABLED = 1
Method 2: If you want the ability to toggle debug mode with an argument, this is the method for you. Create a new file named profiler.py, and insert the following to the file:
- Code:
import globals
class CProfiler:
def __init__(self):
globals.DEBUG_BUILD = 1
globals.CHEATS_ENABLED = 1
def Dump(self):
pass
And then start the game with the '-p' argument, that'll force the game to read the file.
E.G.
PajamaLRS.exe -p
PuttPuttPBS.exe -p
Keyboard commands:
t = Toggle talkie text
i = Go to the inventory cheat screen if cheats are enabled
p = Show current cursor position on the title bar
s = Toggle music on/off
d = It does something clickpoint releated, but haven't figured out fully yet.
f = Show current FPS on the title bar
m = Go to the map screen if cheats are enabled
Interesting Fact: The text and music toggles saves as a game option, so if you enable it, it'll stay on even if the debug mode is disabled
Happy debugging!
Last edited by hesecrets on Thu Jul 14, 2016 4:03 pm; edited 1 time in total (Reason for editing : Minor update for 'd' command)
LittleToonCat- Adventurer
- Posts : 34
Join date : 2011-10-15
Age : 26
Re: Enabling Debug mode on YAGA games
Holy... . I haven't tried this yet, but I'm gonna right away!
EDIT: FREAKING TEXT MODE :D
2: Also as it's python that's probably not the only thing the game can be made to do...
EDIT: FREAKING TEXT MODE :D
2: Also as it's python that's probably not the only thing the game can be made to do...
Re: Enabling Debug mode on YAGA games
GeorgeQGreg wrote:2: Also as it's python that's probably not the only thing the game can be made to do...
Yeah, technically, you can do pretty much anything with those exploits. Funny how they missed that.
LittleToonCat- Adventurer
- Posts : 34
Join date : 2011-10-15
Age : 26
Re: Enabling Debug mode on YAGA games
They probably didn't expect anyone to find it, like with all the SCUMM engine stuff. I'm not sure where you got the .py names from, but I think I have a guess where you got the variables from...
Re: Enabling Debug mode on YAGA games
That's a pretty cool discovery you made there. How'd you figure that out? Some aspects of this mode are rather buggy though. Not surprising, considering how rushed the Yaga engine's development clearly was.
Think I figured out the purpose of the D button. It highlights the current room's clickpoints. It's clear that very little time was spent developing this feature though. Some of the highlighting graphics are almost impossible to see, they don't disappear when moving to a different room, and pressing D a second time crashes the game.
Think I figured out the purpose of the D button. It highlights the current room's clickpoints. It's clear that very little time was spent developing this feature though. Some of the highlighting graphics are almost impossible to see, they don't disappear when moving to a different room, and pressing D a second time crashes the game.
SomeRandomHEFan- Adventurer
- Posts : 152
Join date : 2014-10-22
Re: Enabling Debug mode on YAGA games
Pressing D a second time is supposed to remove the graphics pressing it adds. Great, but they forgot to program the function for that...
Similar topics
» Windowed mode on startup for YAGA games
» The YAGA Junior Adventures - Debug rooms (OUTDATED METHOD) and (a little bit) more!
» Debug mode in Putt-Putt Travels Through Time
» History of YAGA and Python
» Something I found in Pajama Sam 1's debug
» The YAGA Junior Adventures - Debug rooms (OUTDATED METHOD) and (a little bit) more!
» Debug mode in Putt-Putt Travels Through Time
» History of YAGA and Python
» Something I found in Pajama Sam 1's debug
Permissions in this forum:
You cannot reply to topics in this forum
|
|