Search found 8 matches

by Neyunse
Sun Oct 08, 2023 5:28 pm
Forum: Ren'Py Cookbook
Topic: [Updated] Continue button
Replies: 0
Views: 9620

[Updated] Continue button

Well, after publishing this post (https://lemmasoft.renai.us/forums/viewtopic.php?t=63397) I made some adjustments to the code, so here is an updated version. init python: class Continue(Action): """ :doc: menu_action Causes the last save to be loaded. The purpose of this is to load t...
by Neyunse
Thu Mar 24, 2022 4:14 pm
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 130
Views: 131892

Re: Simple minigames (Screen Language only).

Group battle game. define battle_narrator = Character(None, interact=False) screen battle_screen: vbox: xalign 0.01 yalign 0.05 spacing 5 for each_party_member in party_list: frame: size_group "party" xminimum 250 xmaximum 250 yminimum 75 vbox: text "[each_party_member[name]]" s...
by Neyunse
Mon Oct 25, 2021 4:28 pm
Forum: Ren'Py Cookbook
Topic: Continue button
Replies: 1
Views: 1795

Continue button

Well this code is based on this old publication...(https://lemmasoft.renai.us/forums/viewtopic.php?t=48154) And I thought you might be interested in this updated code. init +1 python: def Can_load(): lastsave=renpy.newest_slot() # get the newest slot CanLoad = renpy.can_load(lastsave, test=False) # ...
by Neyunse
Mon Oct 25, 2021 1:50 pm
Forum: Development of Ren'Py
Topic: Ren'Py Translator ToolKit
Replies: 48
Views: 34345

Re: Ren'Py Translator ToolKit

renpy-ttk-1.7.png The Ren'Py Translation ToolKit is a converter between the Ren'Py native translation format and a PO file, which is usable by editors such as Poedit . Here's The Question imported in it: poedit.png The .po translation file can be easily synchronized whenever you want, including in ...
by Neyunse
Thu Jan 21, 2021 10:59 am
Forum: Ren'Py Cookbook
Topic: Detects what type of Game Pad the player is using.
Replies: 4
Views: 1947

Re: Detects what type of Game Pad the player is using.

I'd suggest changing it to a conditional that checks if "PS4" or Xbox or Microsoft, etc is in the name. I was actually halfway through making such a thing a few days ago, so I'll finish it when I get time and report my findings, if I get a chance. I updated the code with your suggestion. :D
by Neyunse
Thu Jan 21, 2021 12:04 am
Forum: Ren'Py Cookbook
Topic: Detects what type of Game Pad the player is using.
Replies: 4
Views: 1947

Re: Detects what type of Game Pad the player is using.

This looks interesting. I've noticed though, that the same controller reports a different name on different operating systems through the game pad calibration screen. Will this affect anything? The truth is I don't know, I tried this on Windows 10. But the different names can be added in the if, I ...
by Neyunse
Wed Jan 20, 2021 7:09 pm
Forum: Ren'Py Cookbook
Topic: Detects what type of Game Pad the player is using.
Replies: 4
Views: 1947

Detects what type of Game Pad the player is using.

Hi! This is my first post here, I want to share with you this code I made. This code detects the type of joystick the player is using to play, it's a simple code and can be improved. In this case this detects if the joystick is from PS4 or XBOX, and if it is not from any of these brands it returns &...
by Neyunse
Fri Aug 17, 2018 7:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Can RenPy read the players data? (Name)
Replies: 9
Views: 6781

Re: Can RenPy read the players data? (Name)

to make it detect the name in windows in this way sorry for my English default player = os.environ.get('username') label start: python: if os.name == 'nt': import os for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'): player = os.environ.get(name) elif os.name == 'posix': import os for user in ('L...