Share your repls and programming experiences

← Back to all posts
ByteCycle 2.5 | Save File system for Python games
Zahan (19)

ByteCycle is a Save File maker for python games that is fully implementable and with easy set-up!

Comments
hotnewtop
Tacostorm2 (4)

FINALLY finished my game with your save/load system. Here it is! https://replit.com/@Tacostorm2/Aquaridise?c=28872

Zahan (19)

@Tacostorm2 It looks great! And its clear that took a lot of effort to put together with 1k lines of code. Love it and I would recommend other people to try it.

Brendan23 (137)

@Zahan ok. great! so can use any variable and save it?

Zahan (19)

@Brendan23 Yes the variables are completely configurable but if you are using a str or float make sure to do something like this:f.write("name = '"+ n + "'")

Edit: as a explainer the f.write("") command allows to write code inside a file so you have to make sure if you want to pull from that file it needs to be formatted right!

Now the name is being saved as a string that can be pulled out and printed

Zahan (19)

@Brendan23 Yep! Just remember to use the way I showed you for strings and floats!

Zahan (19)

At this point in time due to how replit works, after you reload your saves will not be there so to make them permanent just fork the post to be a copy of mine and they will stay there forever!

Also here is the logo for ByteCycle, tell me if you like it!

Tacostorm2 (4)

Noice! When I finish the project i'm working on, i'll implement this and credit you of course.

Zahan (19)

@Tacostorm2 Thanks so much, can you link your project once you are done?

Dunce (45)

@Zahan The logo looks really cool! And the project is coming along nicely.
I would recommended you use JSON files, instead of py files, though. If your interested you can learn about them here

Zahan (19)

@Dunce I have been looking into JSON files so I might use them in a later update

Zahan (19)

@Tacostorm2 Can you send me the link to your project?

Nanowrimoijk (58)

you could try incorporating repldb into this to make save files persist

Zahan (19)

@Nanowrimoijk If you could leave a link on what that is and how to do it I will consider

Nanowrimoijk (58)

@Zahan this little icon is repldb, I don't think uit has the documantation there for python yet, but here is the github link:
https://github.com/Codemonkey51/replit-db-client
It should have a link as to what it is in that tab.

Zahan (19)

@Nanowrimoijk Alright, I will try and figure it out for later!

Zahan (19)

UPDATE 2.6 IS OUT

AUTOSAVES!!!

You can now auto save with a simple count variable in your code!