Search found 293 matches

by enaielei
Wed Dec 27, 2023 12:02 am
Forum: Ren'Py Questions and Announcements
Topic: Any idea to scale image map ???
Replies: 1
Views: 267

Re: Any idea to scale image map ???

Code: Select all

imagemap:
    ...
    at transform:
        zoom imagemap_scale
by enaielei
Tue Dec 26, 2023 6:18 am
Forum: Ren'Py Questions and Announcements
Topic: web updater error Json
Replies: 2
Views: 328

Re: web updater error Json

Looks like an issue in the json file. Make sure that it's a valid json file (not empty, either an array [] or a mapping {}).
by enaielei
Sun Dec 24, 2023 8:29 pm
Forum: Ren'Py Questions and Announcements
Topic: build.archive() not creating .rpa file.
Replies: 1
Views: 238

Re: build.archive() not creating .rpa file.

There's an example in the docs on how to archive the files. # Declare two archives. build.archive("scripts", "all") build.archive("images", "all") # Put script files into the scripts archive. build.classify("game/**.rpy", "scripts") build.c...
by enaielei
Sun Dec 24, 2023 9:29 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I pass a variable with actions to the action field of an imagebutton?
Replies: 4
Views: 342

Re: How do I pass a variable with actions to the action field of an imagebutton?

init Python -> init python
custom_function should be also defined before button_actions.
by enaielei
Mon Dec 18, 2023 10:34 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Handling an error
Replies: 4
Views: 18222

Re: Handling an error

https://www.renpy.org/doc/html/config.html#var-config.exception_handler Also, you can compare your saves' version to the current config.version or list of incompatible versions and identify yourself whether that save is compatible or not. define config.version = "2.0" define incompatible_...
by enaielei
Fri Dec 15, 2023 10:52 am
Forum: Ren'Py Questions and Announcements
Topic: Classes, define, default and save persistance clarity
Replies: 7
Views: 4015

Re: Classes, define, default and save persistance clarity

I used to do this workaround (or something similar).

Code: Select all

default AllChars = []

init python:
    class Char:
        def __init__(self):
            store.AllChars.append(self)

default c = Char()
by enaielei
Tue Dec 12, 2023 8:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Copying Save function to make Chapter Select
Replies: 7
Views: 4223

Re: Copying Save function to make Chapter Select

There's no limit for that. The way you display it on screens is what's limiting the players to see all the possible slots.
I will also add that you need to disable autosaving if you'll manage the autosave slots yourself.
by enaielei
Tue Dec 12, 2023 7:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Choieces and Remembering Choices
Replies: 2
Views: 3061

Re: Choieces and Remembering Choices

Next time utilize code blocks. Screenshot 2023-12-13 075510.png Use menu sets . default choices = set() label start: menu: set choices "Baseball and soccer fields" if len(choices) < 2: kevin "Heall yeah." jenn "I figured as much." "Fraternities and sororities house...
by enaielei
Tue Dec 12, 2023 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Copying Save function to make Chapter Select
Replies: 7
Views: 4223

Re: Copying Save function to make Chapter Select

Code: Select all

$ renpy.save("1-1", "Name of Chapter")
Why not specify "auto-1", "auto-2", etc. for the save slot?
You can leave the numbered pages to the players for their manual saves.
by enaielei
Wed Dec 06, 2023 7:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen Variable Changes When Clicking/Progressing [Solved]
Replies: 7
Views: 1338

Re: Screen Variable Changes When Clicking/Progressing

I tried using it, and it still is giving me the same results I tested it against textbutton clicks, so aside from the floating texts I have somewhere in the screen a textbutton that just prints something to the console. Clicking the button didn't reposition the floating texts. Also, I tested it aga...
by enaielei
Wed Dec 06, 2023 4:54 am
Forum: Ren'Py Questions and Announcements
Topic: Exporting / Importing script text
Replies: 4
Views: 824

Re: Exporting / Importing script text

Hi! :) If I understand correctly, method 1 will have the proofread files as a language option, but the text with all the typos and bad grammar will stay in the script.rpy, right? My idea was to avoid that and use tl for actual translations :) Yes you'll be only modifying the tl files and not the or...
by enaielei
Tue Dec 05, 2023 8:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Exporting / Importing script text
Replies: 4
Views: 824

Re: Exporting / Importing script text

There's no feature for this but you can utilize renpy's translation system as a workaround. 1. renpy launcher -> generate translations -> name the language, something like "proofread" 2. send the game/tl/proofread files to your proofreader 3. paste back the proofread files to game/tl/proof...
by enaielei
Tue Dec 05, 2023 2:58 am
Forum: Ren'Py Questions and Announcements
Topic: Choices in story to change preferences and button state
Replies: 3
Views: 781

Re: Choices in story to change preferences and button state

SetField, SetDict, SetVariable, Preference, etc. are all screen actions . These are classes that basically when called returns a callable object (like a function). And that returned object needs to be called again in order to take effect. Imagine it like this. Note that it's not really like this but...