Garage-Collective / Dark-And-Under

Dark & Under game for Arduboy.
BSD 3-Clause "New" or "Revised" License
32 stars 16 forks source link

Health Underflow Trivializes Challenge #28

Closed televandalist closed 1 year ago

televandalist commented 1 year ago

I made an achievement set for the game a while back and turns out there's a health underflow trick that people have been using to exploit the set. I could protect against this in the achievement logic to prevent using it intentionally, but I feel there would be a lot of false positives from people actually trying to defend, which would result in the set getting a bunch of tickets.

The most recent wall comment: For anyone trying to master this game, specifically if you're trying to get the sturdiest shield achievement, the items you're carrying stay with you after death and into the next run, your experience points too, and if you block (use the shield icon during battle), you can't die. You'll go from 1 to 0 then roll over back to 50, basically giving yourself a free full heal. The game's easy once you know that.

I checked the RAM while doing this and the health value at $062C would go from 0x00 and rollback to 0x32 while defending with the shield. :(

Anyway, for now I can just nerf the points the set is worth, but it would be neat to see a fix for this. I'm not sure if you guys are actively maintaining the project, but I figured it'd be worth a shot to bring it to your attention.

Thanks

Edit: the version of the game I'm using is from https://community.arduboy.com/t/dark-under-a-dungeon-crawler/4637 which matches the md5 checksum of the most recent build on here: 0f43defeddea8b5fc033722080d24820

Pharap commented 1 year ago

The fact there are 'achievements' for D&U is news to me. Hard to believe it's already been 5 years since release.


@filmote, I've prepared a fix for the problem, see #29. It's currently untested.