Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bug Report #4: 

Say goodbye to save file security... I have too much free time on my hands so I thought I would hunt for some edge cases, and a quick trip to cyberchef ensured I never needed to actually play this game again, so here you are.

- Years are stored internally as integers, but are displayed as characters. A year value of 2 displays as 2022. A year value of 30 displays as 2030(which presumably redraws the second 2 in 2020. This is defeated by -30, which displays as 20-30. When the year count goes up, it simply receives the old ++, and may still display incorrectly.This is also true for days, day -2 displays as 0-2, but on the end day check, if the number is found to be negative, it is automatically reset to 0 and counts normally.

- Currency displays unhelpfully as forcefully rounded scientific notation at very high values(Which could happen in the normal game).

- On multiple occasions of stress testing values that you claimed affected # of customers per day to very high values(expecting high customer yields), the game just stopped trying and only spawned the starting customer for the entire day cycle.(Problematic for normal users if they spam start day and close early enough)

- You can artificially load corrupted registers where the customer can be served from a non-intended tile(Just calculate it ingame, that's two basic addition calls more)

The files weren't, meant to be super secure, they were primarily meant to be densely filled with saved info and be shorter. 

Javascript isn't type-safe, (meaning numbers and strings are somewhat interchangeable) so years have a type change isn't a big deal. 

I'll work on better Currency displays for higher values for the next patch.

Popularity is based on an inverse formula (not sure if that's the right term). But it looks something like:

timeBetweenCustomers = 1000-populatarty

So very high numbers may be an issue. I'll rework this down the line.

Personally, I think purposely corrupted saved files are less of an issue & kinda fun to abuse in other games, so this is probably gonna be left in the code unless I get extra time.

Also, let me just say thank you for helping bug test my game. I'll send a patch out with some fixes tonight.