Hello! Does anyone know if it's possible for Ren'py to read/display the user's Steam name? (Assuming they're playing the game on Steam, of course).
i.e., would it be possible to display "Hi, [steamuser]!" (Kind of like how Doki Doki Literature Club uses the player's Windows login name.)
Using the player's Steam name?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- plaster
- Regular
- Posts: 89
- Joined: Thu Jul 11, 2013 1:03 am
- Tumblr: plasterbrain
- Soundcloud: plasterbrain
- Location: Chicago
- Contact:
Re: Using the player's Steam name?
Just from glancing at how the achievement API is set up, it looks like you'd have to do something like
I haven't tested this, but _renpysteam will only be importable if the Steamworks API is integrated, which I think involves having the steamworks sdk downloaded and the RENPY_STEAM_SDK environment variable set to find it but idk ¯\_(ツ)_/¯
Code: Select all
try:
import _renpysteam as steam
$ player_name = steam.get_persona_name()
except:
$ player_name = _("Player")
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot]