Search found 86 matches

by Adabelitoo
Tue Feb 06, 2024 5:21 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to show the MC's name and the slot page-number on file slots?
Replies: 8
Views: 777

Re: How to show the MC's name and the slot page-number on file slots?

Thanks! It all works now. Is it possible to make it not show "None" (or replace it with " ") when there is no saved game in that slot or the key does not exist? Because this way I have "None" in all empty files. Lastly, I have managed to remove everything from my empty ...
by Adabelitoo
Tue Feb 06, 2024 2:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to show the MC's name and the slot page-number on file slots?
Replies: 8
Views: 777

Re: How to show the MC's name and the slot page-number on file slots?

Thanks for replaying. Page and slot number are implicit and available, you don't have to save them. How can I show them on the save slots? Any other information you want to save, you just pass via a Json callback described here: https://www.renpy.org/doc/html/config.html#var-config.save_json_callbac...
by Adabelitoo
Tue Feb 06, 2024 2:54 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to show the MC's name and the slot page-number on file slots?
Replies: 8
Views: 777

Re: How to show the MC's name and the slot page-number on file slots?

Thanks for replaying. First of all, to save the player's name and display it for each save operation, you can use persistent variables in Ren'Py. For example, you could prompt the player for their name at the beginning of the game and then save it in a persistent variable: How early are we talking a...
by Adabelitoo
Tue Feb 06, 2024 1:27 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to show the MC's name and the slot page-number on file slots?
Replies: 8
Views: 777

[Solved] How to show the MC's name and the slot page-number on file slots?

I'm trying to customize the save/load slots and make them show the player's name, the page and slot number, the custom save name, the save's date, and finally the game's name and version. On the other hand, if the file slot is empty, I want it to show nothing at all except for the page and slot numb...
by Adabelitoo
Mon Feb 05, 2024 3:39 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How to copy text with a button?
Replies: 4
Views: 450

Re: How to copy text with a button?

m_from_space wrote: Mon Feb 05, 2024 3:32 am You have to use Renpy 7.7 or 8.2 for that. It's a new function.
I had 8.1 so I thought the version wouldn't be an issue, now it works. Thank you for everything.
by Adabelitoo
Mon Feb 05, 2024 3:15 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How to copy text with a button?
Replies: 4
Views: 450

Re: How to copy text with a button?

Thanks for replying.
m_from_space wrote: Mon Feb 05, 2024 3:00 am The "s" is the string you want to copy to the clipboard. ;)
I thought that was the case but it didn't work. I even copy-pasted your code but I get NameError: name 'CopyToClipboard' is not defined
by Adabelitoo
Sun Feb 04, 2024 11:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How to copy text with a button?
Replies: 4
Views: 450

[Solved]How to copy text with a button?

I want to make an imagebutton to copy a link instead of opening it. I searched and found CopyToClipboard(s) as an action but I couldn't make it work (also I don't understand what the "s" is for). Also I'd like to add that function to the Quick Menu so people can report typos by copying the...
by Adabelitoo
Wed Jan 04, 2023 8:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to check if a variable has a specific number in a specific part of it?
Replies: 6
Views: 316

Re: Is it possible to check if a variable has a specific number in a specific part of it?

Am I checking if said path is 1 or 0 just by writing "if paths[X]"? or should I write something like "if paths[X] == 1"? Let me overcomplicate the issue just to be sure I get this. Imagine the player can quit a path halfway and finish it later, so now I need 0 for not starting th...
by Adabelitoo
Wed Jan 04, 2023 6:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to check if a variable has a specific number in a specific part of it?
Replies: 6
Views: 316

Is it possible to check if a variable has a specific number in a specific part of it?

Sorry if the tittle makes no sense but I have no idea how to phrase it better than that. In my game, the protagonist can go through 5 differnt paths and he must go through all of them but not all of them will be available at the same time and I need to keep track of what paths the player already wen...
by Adabelitoo
Mon Jul 18, 2022 1:25 am
Forum: Ren'Py Questions and Announcements
Topic: Textbuttons (and probably other buttons) appear inside a black box
Replies: 6
Views: 396

Re: Textbuttons (and probably other buttons) appear inside a black box

I found the solution to both the textbutton and the main menu. The problem wasn't in the code but in the smart upscaled images from my old game which replaced/filled transparent spaces with black color The main menu issue was this: screen main_menu(): tag menu style_prefix "main_menu" add ...
by Adabelitoo
Sun Jul 17, 2022 4:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbuttons (and probably other buttons) appear inside a black box
Replies: 6
Views: 396

Re: Textbuttons (and probably other buttons) appear inside a black box

My GUI has imagebuttons instead of textbuttons (I'm talking about the main menu, if you go to Preferences you still have the usual textbuttons you can find anywhere) but still think about the basic main menu when you create a new project, you can add an image to the menu so its "background"...
by Adabelitoo
Sun Jul 17, 2022 6:45 am
Forum: Ren'Py Questions and Announcements
Topic: Textbuttons (and probably other buttons) appear inside a black box
Replies: 6
Views: 396

Re: Textbuttons (and probably other buttons) appear inside a black box

I mean this https://ibb.co/FVWgzcZ If I do i + Shift on the "Problem:" text it shows Screen spcreen, Vbox and Text'{font=fonts/... , each of them with their own style option, but doing i + Shift over the black box and/or the text (thus hovering the textbutton) only shows Screen spcreen and...
by Adabelitoo
Fri Jul 15, 2022 8:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Renpy 8.0.1 Exception: Properties are not allowed here.
Replies: 2
Views: 327

Re: Renpy 8.0.1 Exception: Properties are not allowed here.

The error comes from zorder 99. Remove all the lines containing it, and the code should run fine. Sorry for not replaying, I did this and it worked, but I think this can bring me issues in other parts of the game so I'm trying to get to that part to check if it indeed has problems, but to get there...
by Adabelitoo
Fri Jul 15, 2022 8:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbuttons (and probably other buttons) appear inside a black box
Replies: 6
Views: 396

Textbuttons (and probably other buttons) appear inside a black box

I wanted to change my game from 1280x720 to 1920x1080 so I took the chance and updated RenPy from 7.3.5.606 to 8.0.1.22070801 (the recommended version) and created a new project. I copy-pasted most of the old code into new .rpy files from the new project. When I start the game the first thing to sho...