Amelia Blackwell
hacker

@AmeliaBlackwell (914)
17 year old girl from the UK who loves making games & generators :) check out my fishing game and poem maker, my 2 biggest projects so far!
The Fishing Game
posted to Share by AmeliaBlackwell

@Monokuma007 should be fixed, it just happens when the accounts file gets full

🏆GAME JAM WINNERS INSIDE 🏆
posted to Announcements by katyadee

@Mavrick yep i'm excited!

The Fishing Game
posted to Share by AmeliaBlackwell

@JustARatherRidi Okay you've persuaded me, I'll try my best :)

The Fishing Game
posted to Share by AmeliaBlackwell

@Mavrick Thank you! It's pretty cool that I won the prize for the most upvotes, I never would have thought this many people would have liked it!

Cash Panda: Trash Tycoon
posted to Share by theducvu

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!

The Fishing Game
posted to Share by AmeliaBlackwell

@Mavrick ahhh wow!!!

The Fishing Game
posted to Share by AmeliaBlackwell

@Hamloid oh that's cool!!! I'd have to save that to the file as well though. It's a great idea though and shouldn't be too hard I'll have a try later

The Fishing Game
posted to Share by AmeliaBlackwell

@Mavrick ahhh i know!! Its crazy i never thought people would like it so much

The Fishing Game
posted to Share by AmeliaBlackwell

@ethanheys hahahaha

The Fishing Game
posted to Share by AmeliaBlackwell

@JennieLiao thank you so much!!! Glad you like it :)

The Fishing Game
posted to Share by AmeliaBlackwell

@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.

The Fishing Game
posted to Share by AmeliaBlackwell

@JohnBerliner I saved your password as "pass"

Three Ways
posted to Share by Equation

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

The Fishing Game
posted to Share by AmeliaBlackwell

@Galamphin Thank you!!! that would be so cool, I love both those games :) I will need to learn some more code though haha

The Fishing Game
posted to Share by AmeliaBlackwell

@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.

The Fishing Game
posted to Share by AmeliaBlackwell

@CalsonLee You mean raise the prices of all the rods and lower the power of the golden rod?

The Fishing Game
posted to Share by AmeliaBlackwell

@FakeName4 Adding you to the highscores! thanks a lot, glad you enjoyed. maybe try again? ;)

The Fishing Game
posted to Share by AmeliaBlackwell

@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 :)

The Fishing Game
posted to Share by AmeliaBlackwell

@SPENCERPAINE ahhh wow!!! Enjoy finding the mythicals :)

The Fishing Game
posted to Share by AmeliaBlackwell

@JustARatherRidi Thanks very much! Glad you like it! Yeah, I just kind of assumed people wouldn't exploit that. I guess I should definitely fix it though. I wouldn't know how to do that, though...

The Fishing Game
posted to Share by AmeliaBlackwell
The Fishing Game
posted to Share by AmeliaBlackwell

@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.

The Fishing Game
posted to Share by AmeliaBlackwell

@sj42 the accounts file needs restoring to a back up. Sorry, your account probably won't be retrievable. Sorry, i need to work on this I'm just busy with schoolwork.

The Fishing Game
posted to Share by AmeliaBlackwell

@Sparkster sure! :)

The Fishing Game
posted to Share by AmeliaBlackwell

@17ivanovk should be fixed

The Fishing Game
posted to Share by AmeliaBlackwell

@AquaMarine0421 thank you! You just upvote the post by clicking the little arrow at the top left by the name. No worries since i won anyway hahaha

The Fishing Game
posted to Share by AmeliaBlackwell
The Fishing Game
posted to Share by AmeliaBlackwell

@Mavrick Yikes it's a trend now

The Fishing Game
posted to Share by AmeliaBlackwell

@cats_ur_cool77 yes, what username was the account the had the log in problems?

The Fishing Game
posted to Share by AmeliaBlackwell

@cats_ur_cool77 ahaha cool!! <3