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

Kalmortha

New Member
Mar 9, 2019
3
7
Er... I just tried, and the console works fine, even when the game run as admin. Are you sure that you type SHIFT + o (it must be the lowercase "o") ?
Yeah I finaly got it running. Now I just need a mod so that a single crit will remove outfits instead of the two hit crit to do it. Thanks.
 

anne O'nymous

Well-Known Member
Modder
Respected User
Jun 10, 2017
2,201
2,454
Now I just need a mod so that a single crit will remove outfits instead of the two hit crit to do it.
It's not really useful. Not only the game is easy enough to not really need the effective advantage it gave, but you'll have really plenty of occasion to witness double critical hit for each one of the characters, boss included. The CG are marvelous and include the intermediary step, take the time to admire them while you play.
And if really you want to see them all naked, use to extract the CG from the .rpa file.
 
  • Like
Reactions: Kalmortha

fr12rebel

Active Member
Mar 6, 2018
187
39
Figured I'd add this for everyone so they can modify Ren'Py games.

To enable Developer Console:

OPTION 1:
Download the options.rpy file at

it goes into the /renpy game xxx../game/ folder.

OPTION 2:
in "renpy game xxx" folder enter /game folder. create file "options.rpy"
type this text in it --
init -1:
python hide:
config.developer = True
--save and exit.
*Important!!!!! second line needs 4 spaces before python hide:
Third line needs 8 spaces before config.developer = True*

Now to enable Console Commands:

Go to "Renpy game xxx"/ Renpy / Common / 00console.rpy
ctrl+f and enter config.console
Set config.console variable to True
Example..... config.console = True
Save file
in game press shift O (letter)
I tried this but if i do that i get an error:
 

Attachments

anne O'nymous

Well-Known Member
Modder
Respected User
Jun 10, 2017
2,201
2,454
I tried this but if i do that i get an error:
Ren'py have the particularity to be wrote in a way that he'll handle many errors without (too much) problems. This imply that some errors are only shown when the developer mode is enabled.
Congratulation, you found an error that was unknown of the dev, or that he didn't cared to solve (yet).
To correct this, just revert the step where you enabled the developer mode.
 

fr12rebel

Active Member
Mar 6, 2018
187
39
Ren'py have the particularity to be wrote in a way that he'll handle many errors without (too much) problems. This imply that some errors are only shown when the developer mode is enabled.
Congratulation, you found an error that was unknown of the dev, or that he didn't cared to solve (yet).
To correct this, just revert the step where you enabled the developer mode.

This is how it is at me. Can you help me with it ?. I have no clue for it.
 

Attachments

dave420

New Member
Jan 24, 2019
1
0
darn it doesnt work for me on DMD (dating my daughter) it has an Options.rpyc file already but its encrypted as it seems is there a way to decrypt? or can i do something else to get the console running?

if i put the downloaded options rpy in the game it just keeps crashing
 

Mavedick97

Member
Jan 17, 2019
43
11
darn it doesnt work for me on DMD (dating my daughter) it has an Options.rpyc file already but its encrypted as it seems is there a way to decrypt? or can i do something else to get the console running?

if i put the downloaded options rpy in the game it just keeps crashing

Bro games like DMD don't need to cracked by console. Just follow the walkthrough and you should get to see all content no problem..
Akabur games are more of a grinding type games which require console to edit the stats to unlock scenes. DMD doesn't have it's scenes locked, it's just a story playing on and you just have to make the right choice when it's time.
 

qwertyuiop0

New Member
Apr 29, 2018
1
1
I've been trying to enable dev mode in many games, but keep getting this exception. how to fix this? shift+o works, just shift+d does not.
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00keymap.rpy", line 307, in _developer
    renpy.show_screen("_developer")
Exception: Screen _developer is not known.
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00keymap.rpy", line 307, in _developer
    renpy.show_screen("_developer")
Exception: Screen _developer is not known.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "day22_00.rpyc", line 3996, in script
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\ast.py", line 1551, in execute
    choice = renpy.exports.menu(choices, self.set)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\exports.py", line 897, in menu
    rv = renpy.store.menu(items)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\exports.py", line 1084, in display_menu
    rv = renpy.ui.interact(mouse='menu', type=type, roll_forward=roll_forward)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\ui.py", line 289, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\display\core.py", line 2662, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\display\core.py", line 3467, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\display\layout.py", line 995, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\display\behavior.py", line 439, in event
    rv = run(action)
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\display\behavior.py", line 315, in run
    return action(*args, **kwargs)
  File "renpy/common/00keymap.rpy", line 307, in _developer
    renpy.show_screen("_developer")
  File "L:\#TG#\DMD.CH2-0.21.5-pc-mod\renpy\display\screen.py", line 1076, in show_screen
    raise Exception("Screen %s is not known.\n" % (name[0],))
Exception: Screen _developer is not known.

Windows-8-6.2.9200
Ren'Py 7.1.0.882
DMD Chapter 2 0.21.5
Sun May 12 07:58:13 2019
 

anakinana

New Member
Feb 15, 2019
3
2
I've this, when i use the console commands
unicodedecodeerror 'ascii' codec can't decode byte 0xa0 in position 0 ordinal not in range(128)
Can you help me?
thanks
maybe you enter a non-english character in a directory or filename? The zip format only really supports ascii.
 

anne O'nymous

Well-Known Member
Modder
Respected User
Jun 10, 2017
2,201
2,454
maybe you enter a non-english character in a directory or filename? The zip format only really supports ascii.
Er... Dark grey texts and black backgrounds aren't really friends. It's way better to let the forum deal by itself with the color of your text.
 

Terminationable

New Member
Feb 10, 2019
13
0
Hello! Use android to normally play this game! So pls can u give instructions on how to install it in any adult android game. Thank you.
 

Omicronzeta

New Member
Nov 14, 2017
5
2
OK ignorant question time.

Originally when I used the dir() command in RenPy it displayed a list of all variables, now it is displaying the first 20 variables and an ellipse (...)

Why did this change and how can I get it to go back to the original output?
 

anne O'nymous

Well-Known Member
Modder
Respected User
Jun 10, 2017
2,201
2,454
Why did this change and how can I get it to go back to the original output?
Because sometimes the value displayed are really long and overload the console's history.
You control this with long (full values) and short (shortened values) in the console.
Something useful to know, help give you a short help of the commands available in the console.
 
  • Like
Reactions: Omicronzeta