doublespeakgames / adarkroom

A Dark Room - A Minimalist Text Adventure
Mozilla Public License 2.0
7.08k stars 1.59k forks source link

Combat buttons not showing up properly #716

Open LittlePox opened 7 months ago

LittlePox commented 7 months ago

Load this progress file and embark your travel; randomly walk until you start a fight. You'll notice you can't eat cured meat although there are plenty of them; you can't use the shield button either. Sometimes you can't even punch; that's the only way you can do damage. save.txt

MikeRosoft commented 7 months ago

When I base64-decode the save file, I see the following:

"cooldown": {
    "eat": -558.5,
    "shld": -550.5,
    "leaveBtn": -555.5
},

Looks like the same bug that I am having: I am unable to use meds or eat meat in combat. Save file here; when I decode my save file, I get the following:

"cooldown": {
    "attack_iron-sword": -0.5,
    "attack_steel-sword": -0.5,
    "eat": -261.5,
    "meds": -242,
    "continue": -663.5,
    "loot_takeEverything": -442,
    "gatherButton": 53.5,
    "trapsButton": 85.5
},

Apparently something has gone wrong with the cooldowns. I could cheat by removing the broken cooldowns and re-encoding the JSON document back into base64; but it's likely that the error could occur again in the future.

keventhen4 commented 2 months ago

Is there any specific way to replicate this issue? Providing more info may help people fix this.