Search found 231 matches

by rames44
Mon Jul 27, 2020 6:04 pm
Forum: Development of Ren'Py
Topic: Having RTL enabled causes {w} tag to crash game
Replies: 3
Views: 1078

Re: Having RTL enabled causes {w} tag to crash game

I would suggest that you file a bug report over on GitHub describing this - I'm betting PyTom will get it fixed reasonably quickly, and/or perhaps give you a workaround.
by rames44
Thu Jul 16, 2020 12:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to name screen with variable?
Replies: 6
Views: 295

Re: Possible to name screen with variable?

AFAIK, no. But you can have a single screen alter its contents based on the value of variables...
by rames44
Thu Jul 02, 2020 12:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Menu buttons have individual styles
Replies: 3
Views: 309

Re: Menu buttons have individual styles

It’s also possible to include arguments to menu items. https://www.renpy.org/doc/html/menus.html#menu-arguments https://www.renpy.org/doc/html/screen_special.html#choice In theory, you could modify the choice screen so that it looked for an argument and changed the style of the individual choice acc...
by rames44
Thu Jul 02, 2020 12:25 pm
Forum: Development of Ren'Py
Topic: Language 'None' dialogue translation
Replies: 3
Views: 1265

Re: Language 'None' dialogue translation

I can’t speak to the “None” issue, but you could probably have done what you wanted by adding an “English” translation that modified the critical lines and have your patch set that as the default. Might have required tweaking the language selection code, of course.
by rames44
Wed Jul 01, 2020 10:06 am
Forum: Ren'Py Questions and Announcements
Topic: Smoother movement transition for custom displayable / UDD
Replies: 3
Views: 494

Re: Smoother movement transition for custom displayable / UDD

The renpy.timeout() function is documented at on the page describing UDD's: https://www.renpy.org/doc/html/udd.html (Down at the bottom.) Doing the "where is it now" calculations inside redraw "feels correct" to me - basically, since redrawing can happen at any time, asynchronously from receiving ev...
by rames44
Wed Jun 24, 2020 12:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Smoother movement transition for custom displayable / UDD
Replies: 3
Views: 494

Re: Smoother movement transition for custom displayable / UDD

Well, first I’m not sure why you’re creating the Transform, since all you use from it is it’s position, which you pass into it. Probably not a big deal, bun unnecessary processing. Second, and more important, your “event” and “render” methods are going to get called at irregular intervals, but you’r...
by rames44
Fri Jun 12, 2020 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: changing appearance of a choice menu
Replies: 1
Views: 206

Re: changing appearance of a choice menu

The choice screen and the styles its components use are located inside the screens.rpy file. You can go in there and edit the screen definition and the styles to your heart’s content. This does require some understanding of screen language and style language, both of which are documented on the Ren’...
by rames44
Thu Jun 11, 2020 12:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there any anti-cheat code
Replies: 24
Views: 1627

Re: Is there any anti-cheat code

Essentially, you can make this harder for the casual player by being tricky about how you store your data, having multiple copies, using checksums and the like, but, at the end of the day, you can’t completely prevent it. People can recover your Ren’py code with decompilers that are out there, analy...
by rames44
Thu Jun 11, 2020 12:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable in Speech not Working | Inventory
Replies: 4
Views: 227

Re: Variable in Speech not Working | Inventory

If you use a “dollar line” to set a variable that doesn’t have a “default” statement, it WILL put it in the store, but only if that line is executed during game play. Basically, you can think of that as meaning “if it’s inside a label.“ And it doesn’t get set unless the player actually traverses tha...
by rames44
Wed Jun 10, 2020 12:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Weird inconsistent error when displaying information with square brackets
Replies: 12
Views: 313

Re: Weird inconsistent error when displaying information with square brackets

Your best bet is to put together the absolutely minimum script/game you can that demonstrates the problem and give it to PyTom With that, he should be able to debug it. But having a (non) working sample takes lots of guesswork out of that process for him.
by rames44
Tue Jun 09, 2020 12:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Image Gallery: Disable Click to Advance
Replies: 4
Views: 307

Re: Image Gallery: Disable Click to Advance

Well, it’s possible you could take code for the built-in gallery screen and modify it to your needs. (Should be in screens.rpy) You can suppress default key function by adding a “key” statement to a screen.
by rames44
Mon Jun 08, 2020 12:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple password system.
Replies: 3
Views: 307

Re: Multiple password system.

Also, note that the use of parentheses creates a Python “tuple,” which is probably not what you want. You probably want a list (square brackets) or a set (curly braces).
by rames44
Mon Jun 08, 2020 12:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Image Gallery: Disable Click to Advance
Replies: 4
Views: 307

Re: Image Gallery: Disable Click to Advance

This behavior is be design, so you’re probably going to have to create your own code.

How were you planning on having the player advance to the next image, or leave the gallery?
by rames44
Mon Jun 08, 2020 12:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Weird inconsistent error when displaying information with square brackets
Replies: 12
Views: 313

Re: Weird inconsistent error when displaying information with square brackets

This is probably a Ren’py parsing quirk. Given what you’ve put in, Name _should_ be treated as a variable, not a string.

But this may not, effectively, be valid Ren’py syntax - there are limits to what it’s designed to interpolate. So the fact that it worked at all may be the bug.
by rames44
Wed May 20, 2020 12:47 pm
Forum: Ren'Py Questions and Announcements
Topic: Day/Night/Weather-System with im.ColorMatrix-Shaders?
Replies: 7
Views: 405

Re: Day/Night/Weather-System with im.ColorMatrix-Shaders?

@gas you are absolutely correct that this approach CAN be avoided by preprocessing the image to create multiple images. No question about it. And that approach almost certainly is more run-time efficient, since images just have to be loaded, not loaded and the processed. Of course, whether the chang...