Search found 23 matches

by Tess
Fri Oct 28, 2022 8:14 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: iter() returned non-iterator of type 'RevertableList'
Replies: 5
Views: 103

Re: TypeError: iter() returned non-iterator of type 'RevertableList'

Oh yeah, I'm on Ren'Py 7.5. I haven't been able to use the game with 8 so far because pydub doesn't seem to mesh with it for some reason: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=65523 I looked into it though, and realized I have to use next instead of __next__ in Python 2. Changed it t...
by Tess
Fri Oct 28, 2022 3:19 pm
Forum: Development of Ren'Py
Topic: Can't export the game
Replies: 1
Views: 68

Re: Can't export the game

Does it give you an error message or does it just say it had an error?

Also, I wonder what Force Recompiling then trying to export again would do.
by Tess
Fri Oct 28, 2022 11:35 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: iter() returned non-iterator of type 'RevertableList'
Replies: 5
Views: 103

Re: TypeError: iter() returned non-iterator of type 'RevertableList'

I've been a bit confused on what *args actually creates. Using

Code: Select all

[unit for unit in units]
is working great so far though!

However, when I change __iter__ and __call__ to return self rather than self.team, the error updates to "iter() returned non-iterator type Party"
by Tess
Thu Oct 27, 2022 8:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] TypeError: iter() returned non-iterator of type 'RevertableList'
Replies: 5
Views: 103

[SOLVED] TypeError: iter() returned non-iterator of type 'RevertableList'

I'm trying to make a class that can be iterated over like a list, but I'm not sure how to properly implement __iter__ and __next__. class Party(): """A group of units that fight on the same team, either friend or foe.""" def __init__(self,*units): """Takes Unit instances and makes a list of them in ...
by Tess
Wed Oct 26, 2022 2:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Do I need to crop imagebuttons? (solved)
Replies: 2
Views: 82

Re: Do I need to crop imagebuttons?

If the button itself is 1920X1080, you can give the imagebutton an xysize to scale it down in the game. It takes a tuple with integers for absolute number of pixels or floats between 0.0 and 1.0 for size relative to the screen (for example: xsize (0.3,0.5) sets the button to 30% of the screen's widt...
by Tess
Sun Oct 23, 2022 10:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to call RenPy distribute from the command line
Replies: 6
Views: 168

Re: How to call RenPy distribute from the command line

I had a really good discussion with someone over here about how to do Ren'Py commands from the terminal: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=65466 If you're on Windows, I believe you can go to your Ren'Py directory and type: lib/py2-windows-i686/python.exe renpy.py -h to get a list...
by Tess
Thu Oct 20, 2022 10:19 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you change bar increment/decrement value when using keyboard?
Replies: 2
Views: 134

Re: How do you change bar increment/decrement value when using keyboard?

This is what I came up with: #At the beginning of the screens file init python: def set_music_volume(vol): preferences.set_volume("music",vol) #In the preferences screen if config.has_music: label _("Music Volume") default music_volume = 1.0 hbox: bar adjustment ui.adjustment(value=music_volume,rang...
by Tess
Thu Oct 20, 2022 9:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How do you know if a button is visible or not? How can you get a count of QuickSaves?
Replies: 2
Views: 149

Re: How do you know if a button is visible or not? How can you get a count of QuickSaves?

Testing out a new project, it looks like the Q. Load button doesn't hide itself when you have no quick saves, it just greys out. Maybe it's blending in with your textbox or background? If it isn't the stuff behind it and the quick load button is truly going away, could you post your quick screen cod...
by Tess
Tue Oct 18, 2022 3:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Pydub fails to import in Ren'Py 8 but not Ren'Py 7.5
Replies: 0
Views: 146

Pydub fails to import in Ren'Py 8 but not Ren'Py 7.5

I have a game that uses Ren'Py Animalese that works fine when launched from Ren'Py 7.5. However, when I try to run the same game with no changes from Ren'Py 8, it gives the error "no module named pydub". I tried running pip3 install pydub on my computer, and all that did was change the error to "no ...
by Tess
Tue Oct 18, 2022 10:43 am
Forum: Ren'Py Questions and Announcements
Topic: Easy GUI Design?
Replies: 3
Views: 208

Re: Easy GUI Design?

There is the action editor, which lets you mess with things in a much more visual way. You'll still have to go into the code a little, but it'll make that job a bit easier. Download Action Editor: https://github.com/kyouryuukunn/renpy-ActionEditor Action Editor Guide: https://www.youtube.com/watch?v...
by Tess
Mon Oct 17, 2022 12:00 am
Forum: Ren'Py Questions and Announcements
Topic: How to check if any items in a list is in another list
Replies: 2
Views: 162

Re: How to check if any items in a list is in another list

I haven't tested this since I'm on my phone, but I think this'll work: If [category for category in char_gift_like if category in gift_item1["category"]]: #They like your gift! :) else: #They think it's ok... Empty lists will be read as False in if statements, so you can just check it directly.
by Tess
Sat Oct 15, 2022 4:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Expanding an object in an hbox without moving other items
Replies: 2
Views: 205

[SOLVED] Expanding an object in an hbox without moving other items

I have a series of buttons I'd like to put in an hbox and right now the transform they're all connected to sets their zoom based on whether they're idle, hovered, or selected. Simplified example: transform expand_button(member): fit "contain" on idle: Overshoot 0.25 zoom 1.0 on hover: Overshoot 0.25...
by Tess
Fri Oct 14, 2022 8:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] If statement in menu??
Replies: 4
Views: 251

Re: If statement in menu??

A little clunky I'll admit, but I think this'll work. default option2 = True #Can be defined anywhere, just make sure it comes before the try label label try: $question = "I guess you're new around here, what do you want to do?" if option2 else "Ok, now what do you want to do?" menu tavern1: "[quest...
by Tess
Sat Oct 08, 2022 11:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Force Recompile from Terminal
Replies: 6
Views: 305

Re: Force Recompile from Terminal

It worked!! Thank you so, so much for all your help. I'm having a TON of fun experimenting with all the different options that are there.