Search found 6 matches
- Fri Jun 25, 2021 3:51 am
- Forum: Ren'Py Cookbook
- Topic: (Persistent) Ren'Py Achievements w/ Download link
- Replies: 7
- Views: 3289
Re: Using Ren'Py Achievements and making them persist
In the class "__init__" method, you may want to provide a "fit" property to the "Transform", as the default ("fill") will mess with aspect ratios. "contain" avoids messing with aspect ratio, will use 100 for the big dimension and keep the other one the corresponding ratio (a 200x150 image will be tr...
- Thu Jun 24, 2021 7:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Different builds from launcher and script
- Replies: 1
- Views: 718
Re: Different builds from launcher and script
Solution:
Set the following env variables:
Suggested in discord by @cobaltcore
Set the following env variables:
Code: Select all
SDL_AUDIODRIVER: dummy
SDL_VIDEODRIVER: dummy
- Thu Jun 24, 2021 7:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing a class argument within another argument in a text
- Replies: 5
- Views: 730
Re: Showing a class argument within another argument in a text
Did you write it like this?
And provided the description between curly brackets like shown?
Code: Select all
text "[slam.description]"Code: Select all
default slam = Ability("slam", "Slam","Slams an opponent, causing {adamage} damage.", 5000)- Thu Jun 24, 2021 2:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Showing a class argument within another argument in a text
- Replies: 5
- Views: 730
Re: Showing a class argument within another argument in a text
Probably the substitution (`[slam.damage]` -> `5000`) is done before the python execution that returns that format, so you will have to format it yourself: class Ability(object): def __init__(self, img, name, desc, adamage): self.img = img self.name = name self.desc = desc self.adamage = adamage @pr...
- Wed Jun 23, 2021 6:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Why are rollback & save so suuper slow, but ffwd is still fast?
- Replies: 4
- Views: 1017
Re: Why are rollback & save so suuper slow, but ffwd is still fast?
Probably has to do with forward just requiring to evaluate the next statement in the script while saving requires to collect all the values in all the variables and rollback requires to know what changed with the last step forward and reverting all that.
- Wed Jun 23, 2021 5:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Different builds from launcher and script
- Replies: 1
- Views: 718
[Solved] Different builds from launcher and script
I have been working in collaboration with a VN author in order to make continuous integration workflows that automatically create the required builds instead of having to do it manually. Simply speaking, whenever a new release is ready, he can press a button and all the different builds (different p...