Search found 232 matches

by rames44
Tue Jan 29, 2019 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action subroutine
Replies: 4
Views: 437

Re: Imagebutton action subroutine

You almost got it

Code: Select all

SetVariable("number_of_day", number_of_day + 1)
First argument is the name of the variable as a string, the second is the new value you want assigned if the action is run
by rames44
Sat Jan 12, 2019 12:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Stopping ESC from going to unwanted screens
Replies: 5
Views: 381

Re: Stopping ESC from going to unwanted screens

Remove the default mapping of the ESC key from the keymap?
by rames44
Sat Jan 12, 2019 12:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Game "Loop" and ui.interact
Replies: 2
Views: 272

Re: Game "Loop" and ui.interact

Seems to me that that is a kind of artificial way to make a screen modal and wait for a click. Why not just “call” the screen, and have the clickable elements just Return() when it’s time to continue? You could still use a variable to decide what screen to call next, but you don’t have to show/hide ...
by rames44
Fri Jan 11, 2019 9:09 pm
Forum: Ren'Py Questions and Announcements
Topic: dump_styles??
Replies: 1
Views: 145

dump_styles??

https://www.renpy.org/doc/html/developer_tools.html mentions the "Shift+Y Style Dumping" feature. I cannot for the life of me get this feature to work. The dump_styles keymap entry is empty. I've tried adding 'Y' to it, added config.developer=True, and nothing seems to make it operate. Looking at th...
by rames44
Fri Jan 11, 2019 1:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Android Build Failure
Replies: 8
Views: 795

Re: Android Build Failure

Just so people know what’s going on here, Gradle runs using Java. When the Java Virtual Machine (JVM) starts up, it has a “don’t ever use more than this amount of memory” setting. In this case, the default setting was too low, and the process was running out of memory. The gradle.porperties file men...
by rames44
Mon Dec 31, 2018 12:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Handling Chinese characters within a list of English text
Replies: 4
Views: 304

Re: Handling Chinese characters within a list of English text

Also, a nit - you probably do NOT want those strings inside a _t() macro, since they probably shouldn’t be translated (being names, not text)
by rames44
Sat Dec 29, 2018 1:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Making Choice Options having the same size
Replies: 5
Views: 330

Re: Making Choice Options having the same size

Well, the grid command takes a width and height. The examples show those as integer constants, but you should be able to use variables. The width is obviously going to be 2. Thus, the height is going to be half the number of elements, rounded up in the case of an odd number. You then iterate thru th...
by rames44
Sat Dec 29, 2018 12:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Questions about disabling/bypassing menus and auto-saving!
Replies: 11
Views: 601

Re: Questions about disabling/bypassing menus and auto-saving!

Keyboard and mouse shortcuts are controlled by the “keymap”. Basically, you want to remove entries from it. Manipulating the keymap is documented here: https://www.renpy.org/doc/html/keymap.html I actually did see that page, but I'm not quite certain I understand it. I assumed I'd be able to find "...
by rames44
Fri Dec 28, 2018 1:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to change the font of a text like this?
Replies: 3
Views: 272

Re: Is it possible to change the font of a text like this?

...if, of course, the font file is directly in the “games” folder. If it’s in a subfolder you need to provide /the/path/to/the/font.ttf
by rames44
Fri Dec 28, 2018 1:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Making Choice Options having the same size
Replies: 5
Views: 330

Re: Making Choice Options having the same size

Instead of using multiple vbox’s, have you considered putting your choices in a grid? A grid sizes all its children to the size of the largest item. You’d have to dynamically calculate the number of rows and handle the case of an odd number of selections, but that might be a solution for you.
by rames44
Fri Dec 28, 2018 1:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to change a game's .exe image based on variables within the game?
Replies: 4
Views: 445

Re: Is it possible to change a game's .exe image based on variables within the game?

The icon you click to launch the game: No, I don’t think this is possible. That image is built into the exe - “compiled in” when you build your distribution. Modifying it requires a change to the physical executable. In theory, you could build a .lnk file that POINTED to your executable and which ha...
by rames44
Fri Dec 28, 2018 1:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Questions about disabling/bypassing menus and auto-saving!
Replies: 11
Views: 601

Re: Questions about disabling/bypassing menus and auto-saving!

Keyboard and mouse shortcuts are controlled by the “keymap”. Basically, you want to remove entries from it.

Manipulating the keymap is documented here: https://www.renpy.org/doc/html/keymap.html
by rames44
Mon Dec 24, 2018 1:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] renpy.random.randint is picking the same variable every time? How to fix it?
Replies: 8
Views: 679

Re: [Solved] renpy.random.randint is picking the same variable every time? How to fix it?

Well, one way to do it would be a custom Displayable.
https://www.renpy.org/doc/html/udd.html
You have pretty much complete control as to what’s displayed. This one would be a pretty simple one to code.
by rames44
Fri Dec 14, 2018 1:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] renpy.random.randint is picking the same variable every time? How to fix it?
Replies: 8
Views: 679

Re: [Solved] renpy.random.randint is picking the same variable every time? How to fix it?

In your original code, I very strongly suspect that Ren’py only evaluated the call to random once - at the point where it processed the ATL logic and transformed it into the internal Python classes that it uses under the hood. In other words, when Ren’py tunes your rpy file into an rpyc file, it eva...
by rames44
Fri Dec 14, 2018 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: ADD and IMAGE
Replies: 6
Views: 379

Re: ADD and IMAGE

You’re always better off using “newer” than “older” when you can. Unfortunately, there are a lot of VERY old tutorials and examples out on the web, and Ren’py has evolved. So I always recommend that when people find examples “out there,” that they check them against the latest documentation and upda...