Search found 94 matches

by Adrian_DVL
Thu Jul 30, 2020 9:32 am
Forum: Ren'Py Questions and Announcements
Topic: Action to end more than one consecutive replay
Replies: 1
Views: 276

Action to end more than one consecutive replay

Hi mates! So I have a few buttons that play three consecutive replays, like this: Replay("{0}pre4".format(girl.id)), Replay("gal{0}4".format(girl.id), locked=False), Replay("{0}4".format(girl.id)) And I have in my game menu the default button that comes with RenPy to end a replay: EndReplay(confirm=...
by Adrian_DVL
Wed May 06, 2020 9:25 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Centering all the lines in a text statement
Replies: 3
Views: 182

Re: Centering all the lines in a text statement

The reason they don't align is because renpy is treating them as a single text block. In order to have them center align you have to create a text element for each line, align them to center, and pack them in a vbox. Something like this: screen lines(line_list): vbox: for line in line_list: text li...
by Adrian_DVL
Wed May 06, 2020 8:05 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Centering all the lines in a text statement
Replies: 3
Views: 182

[Solved] Centering all the lines in a text statement

Hi guys! So I have objects in a class of which name I want to display in a text statement inside a screen, depending on which object is displayed, like this: text "[item.name]" xpos xt+115 ypos yt+8 xanchor 0.5 size 15 font "BRLNSR.ttf" at girlsbuttons And I get this. Each text next to the correspon...
by Adrian_DVL
Sun May 03, 2020 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

Alright, I can say I FINALLY did it! And it was just as simple as using the JSON. I've known since the beginning this was the best way to do this, but I wasn't sure about how to do it properly. Turns out that I was retrieving the json data in a wrong way. Now I just have it like this: def saveinfo(d...
by Adrian_DVL
Sun May 03, 2020 1:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

I'm seeing that the hours, minutes, and maxnums are not complex variables at all... if they're are just numbers then it should work. if not the encoder might throw an error as the data is not serializable, for that, i edited my code to prevent that error from happening, non-saveable data will not b...
by Adrian_DVL
Sun May 03, 2020 8:53 am
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

well, don't use old saves... after applying my suggestion, i suggest, deleting the persistent data and save files in the game directory and by going to launcher and pressing delete persistent. also make sure that you have removed all the variables that are not necessary or that was previously inclu...
by Adrian_DVL
Sun May 03, 2020 8:11 am
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

well, don't use old saves... after applying my suggestion, i suggest, deleting the persistent data and save files in the game directory and by going to launcher and pressing delete persistent. also make sure that you have removed all the variables that are not necessary or that was previously inclu...
by Adrian_DVL
Sun May 03, 2020 7:56 am
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

That should not happen, imo. The save name is dependent on the save name stored in each save file. I know there are already a lot of suggestions, but this is how I'll make something like this. This code should auto update the save_name variable before saving... Edit: just tested it, and its working...
by Adrian_DVL
Sun May 03, 2020 6:03 am
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

Guys, I've tried just by giving the variable save_name a string with all the variables and even a few interpolated images, but the outcome is just about the same as with Alex's code. Seems the problem here are the variables themselves, as they won't be stored and be displayed while in the main menu....
by Adrian_DVL
Sat May 02, 2020 4:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

... Looks like you ought to move all the sizing and other stuff to the 'save_slot' screen. In 'test_save_scr' then you can use your own variables, like $ store.save_name = name+", "+job+"|"+money+"|"+clef+"|"+hours+" h and "+minutes+" m in town"+"|"+metnum+"|"+maxnum+"|"+songs hbox: text "{size=16}...
by Adrian_DVL
Sat May 02, 2020 3:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

... Hm, in my sample 'save_name' variable is used as it usually used. So, as long as your 'save_name' variable is stored in save file it should show up in load screen properly. Check if you set it properly in "test_save_scr" screen (in my sample). Also, check the "file_slots" screen if you use the ...
by Adrian_DVL
Sat May 02, 2020 1:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

...My problem here is that "save_name" takes only one string and, as I said in my original post, I'd like to have some parts of the text aligned to the left, others to the center and others to the right. ... You could try to make such a system: Okay, I positioned all the elements how I wanted to, b...
by Adrian_DVL
Sat May 02, 2020 12:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

...My problem here is that "save_name" takes only one string and, as I said in my original post, I'd like to have some parts of the text aligned to the left, others to the center and others to the right. ... You could try to make such a system: I honestly don't know how you have a solution for ever...
by Adrian_DVL
Sat May 02, 2020 9:01 am
Forum: Ren'Py Questions and Announcements
Topic: Showing game stats on file slots?
Replies: 24
Views: 526

Re: Showing game stats on file slots?

Its not quite that simple, as the stats must be save independant. There's a way, I think, but it's not something I can recall from memory and must check my project files for an example. As you said, when I simply do text "[variable]" inside the button, the variable for the last saved slot repeats i...