Search found 85 matches

by Chekhov
Sun Oct 06, 2019 1:25 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to show emails in receiving order?
Replies: 5
Views: 371

Re: How to show emails in receiving order?

You're going to have to figure out a way to record and use the order that the e-mails are received. You could either use a python list and store the order that they've been received, or you could build something a little more robust where you pass the contents of the mail to that list and then read ...
by Chekhov
Sat Oct 05, 2019 1:27 am
Forum: Ren'Py Questions and Announcements
Topic: How to make registered audio channel be controlled in game's preference menu?
Replies: 3
Views: 486

Re: How to make registered audio channel be controlled in game's preference menu?

I've never done it myself, but the settings for the sound effects seem to be set in the screens.rpy file: if config.has_music: label _("Music Volume") hbox: bar value Preference("music volume") if config.has_sound: label _("Sound Volume") hbox: bar value Preference("sound volume") if config.sample_s...
by Chekhov
Sat Oct 05, 2019 12:56 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Why do values change when you open the developer console?
Replies: 6
Views: 445

Re: Why do values change when you open the developer console?

Huh. I have no idea when Ren'Py was patched not to throw an error after an empty label -- logically, everything under a label should be indented and it definitely used to throw an error if not. (I am referring to the empty label start). In any case, the way you organized your code is difficult to p...
by Chekhov
Fri Oct 04, 2019 11:14 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Why do values change when you open the developer console?
Replies: 6
Views: 445

Re: Why do values change when you open the developer console?

Besides the fact that that code obviously won't run (indentation, organization, etc.) -- you're still in the same ren'py statement (call screen Continue) and opening the console boots you to the beginning of the statement. If you were in a loop (call screen, return and do stuff, call screen again) ...
by Chekhov
Fri Oct 04, 2019 8:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Why do values change when you open the developer console?
Replies: 6
Views: 445

[Solved] Why do values change when you open the developer console?

Here's a problem that has me stumped. I've tried to cleanup the code and only leave the relevant bits. Sorry if it's still a little on the long side. The weird thing that's happening is that when I open the developer console, some variables seem to change. (you can run this code without any images a...
by Chekhov
Sat Sep 14, 2019 3:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?
Replies: 2
Views: 297

Re: 'NoneType' object is not callable - Where am I calling a NoneType!?!?

action Function(update_char(active_char)) should be action Function(update_char,active_char) In first case Function get result of update_char(active_char) as callable, which is None and as result NoneType is not callable error. Ahh that fixes the error. It's not quite acting as intended though; the...
by Chekhov
Sat Sep 14, 2019 2:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?
Replies: 2
Views: 297

[Solved]'NoneType' object is not callable - Where am I calling a NoneType!?!?

The code was functioning exactly as expected, until I added the action to this button (and the function that it calls). I am in the testing phase of trying some new things, so I have a couple of interactive elements (like this button) as well as a "continue" button at the bottom, which cycles betwee...
by Chekhov
Fri Sep 13, 2019 4:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Showing variables correctly in an action - string
Replies: 4
Views: 270

Re: Showing variables correctly in an action - string

Try action Notify(_("You clicked tile {}, {}").format(x,y)) edit: I didn't see your response before me XD The two for loops create an isometric grid of tiles. I don't know how to correctly show the variables inside the string on the last line. define boardsize = [5,8] define showcoordinates = False...
by Chekhov
Fri Sep 13, 2019 2:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Showing variables correctly in an action - string
Replies: 4
Views: 270

[Solved]Showing variables correctly in an action - string

The two for loops create an isometric grid of tiles. I don't know how to correctly show the variables inside the string on the last line. define boardsize = [5,8] define showcoordinates = False screen Gameboard(): fixed: xpos 300 ypos 400 for y in range(boardsize[0]): for x in range(boardsize[1]): f...
by Chekhov
Fri Sep 13, 2019 4:49 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to use a FOR loop to display tiles in screen language?
Replies: 6
Views: 349

Re: Is it possible to use a FOR loop to display tiles in screen language?

I would advise calculating both the x and y for each image individually and just have all of those as separate items in a single fixed. A basic example that just does a checkerboard of 50x50 squares... screen Gameboard(): fixed: xpos 200 ypos 100 for y in xrange(8): for x in xrange(8): add Solid('#...
by Chekhov
Fri Sep 13, 2019 3:59 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to use a FOR loop to display tiles in screen language?
Replies: 6
Views: 349

Re: Is it possible to use a FOR loop to display tiles in screen language?

I can't use grids for it as I'm doing some other manipulation that precludes it (for example, it's more isometric rather than perfectly aligned squares). I just gave a code example to show the mismatch of trying to use screen language inside a python block; it's a common problem I run into and I thi...
by Chekhov
Fri Sep 13, 2019 3:35 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to use a FOR loop to display tiles in screen language?
Replies: 6
Views: 349

[Solved] Is it possible to use a FOR loop to display tiles in screen language?

Let's say I wanted to create a chessboard inside the screen language, and for whatever reason, I wanted to display each tile separately rather than a pre-created background that shows a chessboard. screen Gameboard(): fixed: xpos 300 ypos 400 python: for y in xrange(8): for x in xrange(8): fixed: xy...
by Chekhov
Fri Sep 13, 2019 3:13 am
Forum: Ren'Py Questions and Announcements
Topic: Do I need to define all the attributes in a class?
Replies: 10
Views: 354

Re: Do I need to define all the attributes in a class?

I'm pretty sure it's a mistake to give the same name to a class as the instance of a class. Then the program might look for the class's might, but the class has no might attribute, it's just the instances that do. So instead of doing: character = Character() use john = Character() You're also making...
by Chekhov
Thu Sep 12, 2019 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to remove the border and background fill of a frame/vbox?
Replies: 4
Views: 281

Re: Is it possible to remove the border and background fill of a frame/vbox?

NVM! I figured it out. Just put the xpos and ypos after the vbox instead. Thanks!
by Chekhov
Thu Sep 12, 2019 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Is it possible to remove the border and background fill of a frame/vbox?
Replies: 4
Views: 281

Re: Is it possible to remove the border and background fill of a frame/vbox?

trooper6 wrote:
Thu Sep 12, 2019 8:28 am
Also, you don’t need to use a frame at all.
How would I set the position without a frame?