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.
To give an example, let's say the .exe image (i.e. the icon that's clicked to open the game) is the game's logo to start with. Then, when the player makes a specific choice while going through the game, the .exe image automatically changes to a picture of the MC's face.
If this can be done only after closing the game window, that would be fine, too! Automatic would be more ideal, but the ability to accomplish something even close to this is what's most important.
Any and all help is greatly appreciated!
EDIT: I'm also referring to and want to change the icon that shows on the dock/taskbar when the game is open.
The icon that shows up at the top left of the game window itself MIGHT be changeable since it comes from a different place, but this would probably require you to dig deep into the Ren’py Python to get hold of the required windowing objects.
The game I'm making is going to be a gift, so it's fine if it only works on Windows.
- Ren'Py Creator
- Posts: 15447
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
Code: Select all
python hide: data = renpy.file("new.exe").read() with open(os.path.join(config.basedir, "old.exe")) as f: f.write(data)
(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- Lemma-Class Veteran
- Posts: 2850
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
Which unfortunately, won't take effect until explorer.exe service has been shut down and restarted - something the user will definitely notice (it causes Windows to go completely blank for a second)
And if you do it incorrectly, you end up with this:
(This is my own PC, I'm too lazy to bother fixing it)
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Users browsing this forum: Google [Bot]