@VulcanWM I knew there was something off with that date lmao
Edit: i made the same mistake twice ??? maybe i came from the future
this is really good, made it to 62! maybe add a "press enter to run" text on the starting page so stupid people like me don't try and click the run button because they didn't read the post properly haha
Wow, the graphics are so cool! I love the market. It must have taken you ages to make this.. I'd probably recommend fewer types of trash just because it's a bit overwhelming at the start. the blog feature is cool too!
@Mavrick thank you very much! Of course. So at the start od each game each user has to make a username and password which creates the player object, using the username and password and the starting stats (day 1, 0 gold, 10 bait, empty inventory ect). This object is used and updated over each in game day. At the end of each day all the attributes of the player object are written to the accounts.txt file, seperated by special characters. You will need to make sure your code only overwrites the account in current use by checking the usernames. All data must be strings so I have a printing inventory function - inventory is an object with an attribute containing all the objects inside the inventory, so each object is written as its name and quantity, seperated by different special characters. (1 account per line)
When logging back in, the accounts file is read. The username and password must match a line of the accounts file. If they do a player object is created using the details within the accounts file. Objects like inventories are reconverted from their string data back into the object. Then the game continues using this player object.
I hope you understood that. It's easier than it sounds. If you have a problem please ask.
@dleboulaire Thank you so much! I wouldn't really say it has a graphical interface, but I used the "termcolour" module for the coloured text. I also used replit.clear() from the "replit" module to clear the screen, which is really useful. hope that helps.
@DashL Yay I'm so glad you like it!! thanks so much! What do you think about the idea that once you enter b to go to the shop, you can enter something like "bait convert xxxx" to sell all your fish and buy x bait? Yeah I know it's a bit long winded to get through the shop. Ideally I'd make buttons and stuff but I'd rather keep it simple and text based :)
@KatyaDelaney @SaptarshiHalder @Sparkster right so this is really weird because it works on my account, but I made an account for my brother and it doesn't work on that account. It must be to do with saving to the file. I honestly don't understand why and I'm going to ask in repl.it help because I hope it's a repl.it problem and not a problem with my coding. I'm really sorry. If you guys can remember your stats then let me know and I'll try and manually put your accounts back in to the system.
Hahahahaha got this excuse
I'm a little caught up, I have to go eat my girlfriend at five