Tutorial Ren'Py Enabling Developer & Command Consoles In Ren'py

Quinnzoel

Newbie
Nov 12, 2017
54
65
to make it easier, if the option.rpy file does not exsist in the common folder download the one up top and drop it in the common folder. if there is an options.rpy already but no config.developer = True or config.developer = False statement in it, add config.developer = True right below another config.xxx statement (with same spaces) as long as it is below the python hide statement.

You might wish to download the 00_console.rpy file from here as well to make it easier.

Following this I am 100% so far at loading the dev console at all games I have tried and using the variable viewer to cheat my ass off in the console!

I keep the console & options files in the root of my game folder and drop them into every new renpy game that I play. (after looking for a legit options.rpy or 00options.rpy file of course)
I got this
File "renpy/common/00console.rpy", line 56: style property adjust_spacing is not known.
adjust_spacing False
 
U

User_10739

Guest
Guest
I got this
File "renpy/common/00console.rpy", line 56: style property adjust_spacing is not known.
adjust_spacing False
restore all files from zip/rar (or just the 00_console.rpy) and extract this into your renpy/common folder your console will be enabled as well as dev mode without having to edit any files. I keep my dirty_cheater.rpy file in my root directory and just drop it in the renpy/common folder of all renpy games that I play and cheat like a MF...
It's not the perfect way to do it but it works for me. You could also use Anne's dirty console or Sam's unren.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,849
15,972
how to learn commands
Technically speaking there's no command to learn. Opening the console and using the cheats given in the game's thread is the best way to do.

But you can still learn the basis :
Code:
variable_name
to see the actual value of the "variable_name" variable.
Code:
variable_name = 10
to assign a value (here "10") to a variable
Code:
variable_name += 1
variable_name -= 2
to add 1 or subtract 2, to a variable
Code:
help
To have a quick summary of the few command directly related to the console.

You can do more in the console, since every line is seen as a script line, but for this you need to learn Ren'py and/or Python, which is way more than what you need to just cheat.
 
  • Like
Reactions: cdoog999

Elijah Hu

Member
Feb 8, 2018
273
47
I am playing the PC Build of Renpy game called "Flute Of Shame", so Would someone mind telling me how do I fix the "An Exception Has Occured" Error of Renpy ? Besides, If Someone can tell me how do I fix the "An Exception Has Occured" Error of Renpy immediatel, that will be EXTREMELY FANTASTIC!
 

Some-Dude

Newbie
Oct 30, 2017
87
239
the H function and S for saving is gone for me ! what's going on? it happened in all of my Ren'py games !! they don't save pic with "S" or don't hide the text with "H" !! what do i do ? also the "V" for voice is gone !
 

a meme

Member
Sep 26, 2017
274
260
the H function and S for saving is gone for me ! what's going on? it happened in all of my Ren'py games !! they don't save pic with "S" or don't hide the text with "H" !! what do i do ? also the "V" for voice is gone !
Clicking your mousewheel should also hide the interface. Don't know about the rest or your problem.
 

L7Bear

Active Member
May 29, 2017
938
1,578
The game use a version 6.99.10, released in March 2016, while the actual 6.99.12 was first released in February 2017. But you're right, at this time the variables were sorted by the variable viewer.




Not possible with versions previous than 6.99.11 (or .12, don't remember exactly). The console is not scrollable in these versions, and dir() return way too much information. For the game used in example by @mirenzo, only half of the result will be hidden because of this. So you've two solutions, none are simple.

1) Clean the result of dir :
Code:
[e for e in dir() if not callable( getattr( store, e ) )]
You'll still have a lot of crap, but divide their number by 4.

2) Search directly where you're sure to have only variables :
Code:
sorted( renpy.python.store_dicts["store"].ever_been_changed )
Like it's the list of all the variables (in fact it's all the store's attributes, but it's exceptional to found someone who also alter Ren'py's functions) that have had their value changed at least once since the start of the game, you'll have to wait that a value change (like for the variable viewer). But in counter part, you'll be sure to have only the variables. So, for an average game, something like 25% of what a cleaned dir will give you, or 5% for a full dir.

Note that both methods, including your "dir only", give a limited view of the games variables since they all ignore any store other than the default one. They aren't this many, but there's games which use their own store, and here the variable viewer will give you what you search, but not these console tricks.
Thanks!
I wasn't having any luck with dir() in "View of Family-enhanced" as it seemed to be changing the dialogue box instead.
However, the following worked great
sorted( renpy.python.store_dicts["store"].ever_been_changed )
 

ReJoe

Member
Jun 7, 2017
379
437
Does anyone know a "page" command for Ren'py? In Windows the command for directory is dir /p which shows you a page at a time.

A different but similar request is when you use dir() some games don't have a scroll bar on the right side to move up or down. Just a single page view that doesn't show the complete directory of commands. I didn't know where else to post this, sorry if it's the wrong forum.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,849
15,972
Does anyone know a "page" command for Ren'py? In Windows the command for directory is dir /p which shows you a page at a time.
There isn't.


A different but similar request is when you use dir() some games don't have a scroll bar on the right side to move up or down. Just a single page view that doesn't show the complete directory of commands.
Then just use my . Getting ride of the missing scroll bar was, with the more accurate result of the values displayed, it's initial intent.
 
  • Like
Reactions: ReJoe

VL0rD

Member
Oct 29, 2016
404
141
hey guys for some reason the variable viewer option is not showing any variables... just a blank screen... console is working but variable viewer is not.... also used unren.bat to enable console still not working
 

coolboy88

Member
Jan 2, 2018
456
236
Are there any other link to download the ''options.rpy'' cuz zippyshare just keep popping up ads and not letting me download the file.
 

Brandon Le

New Member
Oct 14, 2017
12
0
I am having difficulty with the Sakura Dungeon game, pressing shift and D doesn't work on the game. Also, when I leave the game and open again it give me a script error
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,849
15,972
I am having difficulty with the Sakura Dungeon game, pressing shift and D doesn't work on the game.
What you did ? Just tried it and it works correctly. The variable's names are unreadable because of the font, but it work.


Also, when I leave the game and open again it give me a script error
Without the error it's difficult to say, but I'll take a guess : The error is for a duplicated label because you used un.rpyc and let the .rpy files in the folder. It's normal, just move the said .rpy files anywhere else, and it will work correctly.

[edit:Sorry, messed with the quotations]
 

Brandon Le

New Member
Oct 14, 2017
12
0
I added the options.rpy file to the game folder. Then, I went to .../Renpy/Common/00console.rpy and set the config.console variable to True via notepad. I wasn't able to change via notepad++
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,849
15,972
I added the options.rpy file to the game folder. Then, I went to .../Renpy/Common/00console.rpy and set the config.console variable to True via notepad. I wasn't able to change via notepad++
Well, there's something which gone wrong somewhere :/ Have you tried without editing a single file, using directly to enable the console ?
 

Brandon Le

New Member
Oct 14, 2017
12
0
Well, there's something which gone wrong somewhere :/ Have you tried without editing a single file, using directly to enable the console ?
Thank you, the unren helped enable the console. However, about the error I'm getting, it now starts to happen when I try to open a image from image picker it gives me this

I'm sorry, but an uncaught exception occurred.
While running game code:
TypeError: 'NoneType' object is not iterable
Full traceback:
File "renpy/common/_developer/developer.rpym", line 438, in script
python hide:
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\ast.py", line 806, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\python.py", line 1577, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/_developer/developer.rpym", line 487, in <module>
ui.interact()
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\ui.py", line 277, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\display\core.py", line 2425, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\display\core.py", line 3101, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\display\layout.py", line 905, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\display\layout.py", line 905, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\...\Downloads\myfiles\sakuradungeon\Sakura Dungeon v1.01\renpy\display\layout.py", line 905, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/common/_developer/developer.rpym", line 421, in event
x, y, w, h = self.rectangle()
File "renpy/common/_developer/developer.rpym", line 346, in rectangle
x1, y1 = self.point1
TypeError: 'NoneType' object is not iterable
Windows-8-6.2.9200
Ren'Py 6.99.10.1227
sakura_dungeon 1.01
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,849
15,972
However, about the error I'm getting, it now starts to happen when I try to open a image from image picker it gives me this

I'm sorry, but an uncaught exception occurred.
While running game code:
TypeError: 'NoneType' object is not iterable
Er... Look like a problem with the developer mode, but it's strange since it works for me :/