Enabling Debug mode on YAGA games

View previous topic View next topic Go down

Enabling Debug mode on YAGA games

Post by hesecrets on Wed Jul 13, 2016 1:59 pm

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.

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! Sam: Flashlight


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)

hesecrets
Player

Posts : 23
Join date : 2011-10-15
Age : 19

View user profile

Back to top Go down

Re: Enabling Debug mode on YAGA games

Post by GeorgeQGreg on Thu Jul 14, 2016 3:15 pm

Holy...  Freddi: Cheering . 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... Sam: Thinking

_________________
Door: What is the best computer programming language?

Sam: C.

Door: THAT'S ABSOLUTELY CORRECT!

GeorgeQGreg
Adventurer

Posts : 754
Join date : 2011-10-15
Age : 20
Location : Canada

View user profile http://www.youtube.com/user/Obscurenforeign

Back to top Go down

Re: Enabling Debug mode on YAGA games

Post by hesecrets on Thu Jul 14, 2016 3:31 pm

GeorgeQGreg wrote:2: Also as it's python that's probably not the only thing the game can be made to do... Sam: Thinking

Yeah, technically, you can do pretty much anything with those exploits. Funny how they missed that.

hesecrets
Player

Posts : 23
Join date : 2011-10-15
Age : 19

View user profile

Back to top Go down

Re: Enabling Debug mode on YAGA games

Post by GeorgeQGreg on Thu Jul 14, 2016 3:55 pm

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...

_________________
Door: What is the best computer programming language?

Sam: C.

Door: THAT'S ABSOLUTELY CORRECT!

GeorgeQGreg
Adventurer

Posts : 754
Join date : 2011-10-15
Age : 20
Location : Canada

View user profile http://www.youtube.com/user/Obscurenforeign

Back to top Go down

Re: Enabling Debug mode on YAGA games

Post by SomeRandomHEFan on Sat Jul 16, 2016 8:43 am

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.

SomeRandomHEFan
Player

Posts : 17
Join date : 2014-10-22

View user profile

Back to top Go down

Re: Enabling Debug mode on YAGA games

Post by GeorgeQGreg on Sat Jul 16, 2016 1:00 pm

Pressing D a second time is supposed to remove the graphics pressing it adds. Great, but they forgot to program the function for that...

_________________
Door: What is the best computer programming language?

Sam: C.

Door: THAT'S ABSOLUTELY CORRECT!

GeorgeQGreg
Adventurer

Posts : 754
Join date : 2011-10-15
Age : 20
Location : Canada

View user profile http://www.youtube.com/user/Obscurenforeign

Back to top Go down

Re: Enabling Debug mode on YAGA games

Post by Sponsored content Today at 8:47 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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