Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shortage of yellow key cards #23

Open
timsoftgit opened this issue Nov 28, 2019 · 4 comments
Open

shortage of yellow key cards #23

timsoftgit opened this issue Nov 28, 2019 · 4 comments

Comments

@timsoftgit
Copy link

I'm not sure if it is the intent of the game design, but it is possible to amass large quantities of some keys, and hearts (I had over 100 silver and gold keys), but there appears to be a shortage of yellow key cards. (this is in the paid data, so if there is a better place to raise the question let me know). If it is not intended to allow amassing so many keys, one example is greenlands 4, complete the first half. of the mission on that level, then for the second half, get silver and gold and bronze keys, and extra heart, then don't complete, but quit out of the level, and it will save the extra keys and hearts. repeat for as many as you want.
The down side of this effect, is in some levels you can use keys/cards, fail to complete, but the keys/cards are not restored, so you end up being unable to complete the game.

@stephenjsweeney
Copy link
Owner

stephenjsweeney commented Nov 29, 2019

This shouldn't be possible. The game should be persisting the stage state when you quit (after completing the stage once). So, if you pick up a key, quit, and then return, that key should now be gone.

The game also contains the exact number of keys and doors that are required.

When you're returning to a stage, where does Bob spawn in from? The same place as when you left or somewhere entirely different. Again, this doesn't sound as if the game is saving properly for you, for some reason.

This used to be a bug in a much older version (over a year ago), but that's been fixed. I've just tried to replicate the bug (on the latest code base) on a number of levels and can't repeat it.

@timsoftgit
Copy link
Author

he spawns from the place you were when you left. I observed it on the windows build (1.2)
I'll have to play it on linux and see if it behaves the same. (using the same build src from itch.io )

@stephenjsweeney
Copy link
Owner

stephenjsweeney commented Nov 29, 2019

It sounds like the Windows build is broken. It's a cross compile, so there's clearly something still not working correctly with it.

I've removed it from itch.io. People can always compile their own version.

Update: I discovered that, unlike Unix-based systems, Windows doesn't allow files to be renamed if the destination file already exists. This was breaking the Windows version of the game (and maybe some others). I've updated the game to v1.2.1 to delete the original save before replacing:

https://github.com/stephenjsweeney/blobwarsAttrition/blob/master/src/system/io.c#L203

@stephenjsweeney
Copy link
Owner

Updated to v1.2.2, to fix a regression caused by v1.2.1 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants