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

Enabling Debug mode on YAGA games

3 posters

Go down

Enabling Debug mode on YAGA games Empty Enabling Debug mode on YAGA games

Post by LittleToonCat 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)
LittleToonCat
LittleToonCat
Adventurer

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

Back to top Go down

Enabling Debug mode on YAGA games Empty Re: Enabling Debug mode on YAGA games

Post by Onfy 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
Onfy
Onfy
Admin

Posts : 828
Join date : 2011-10-15
Age : 27
Location : Canada

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

Back to top Go down

Enabling Debug mode on YAGA games Empty Re: Enabling Debug mode on YAGA games

Post by LittleToonCat 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.
LittleToonCat
LittleToonCat
Adventurer

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

Back to top Go down

Enabling Debug mode on YAGA games Empty Re: Enabling Debug mode on YAGA games

Post by Onfy 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...
Onfy
Onfy
Admin

Posts : 828
Join date : 2011-10-15
Age : 27
Location : Canada

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

Back to top Go down

Enabling Debug mode on YAGA games Empty Re: Enabling Debug mode on YAGA games

Post by SomeRandomHEFan 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
Adventurer

Posts : 152
Join date : 2014-10-22

Back to top Go down

Enabling Debug mode on YAGA games Empty Re: Enabling Debug mode on YAGA games

Post by Onfy 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...
Onfy
Onfy
Admin

Posts : 828
Join date : 2011-10-15
Age : 27
Location : Canada

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

Back to top Go down

Enabling Debug mode on YAGA games Empty Re: Enabling Debug mode on YAGA games

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