Hi. Is it possible to to read binary data from a image file and store in MultiPersistent if it is not already present. I would also be iterating through MultiPersistent at start up, and write binary data found in MultiPersistent out to image files if the image files are not present.
The reason I am trying to do this weird stuff is that I'm wanting to make a series of small games where the player can earn achievement badges. New badges (image files) will appear in each subsequent game, but I would like all of the badges earned across all games to show up in any of the game galleries. Weird, I know.
Thanks in advance if anyone has an idea how to do something like this.
Possible to save image binary data in MultiPersistent?
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.
- deskrabbit
- Newbie
- Posts: 1
- Joined: Wed Jan 17, 2024 2:19 pm
- Contact:
- Ocelot
- Lemma-Class Veteran
- Posts: 2407
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Possible to save image binary data in MultiPersistent?
Technically you can do that: encode your data in bese64 and store it as string, store it as a list of bytes... Then you can transform it back to binary image file and and make it into image, but that will require a lot of work and will severely slow down startup process.
Instead I suggest to do what everyone does and simply update older games to include image files from other games.
Instead I suggest to do what everyone does and simply update older games to include image files from other games.
< < insert Rick Cook quote here > >
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot]