open-goal / jak-project

Reviving the language that brought us the Jak & Daxter Series
https://opengoal.dev
ISC License
2.73k stars 165 forks source link

Jak 2 [PC Cheats] - enemy health bars not unlocking #3508

Open Zedb0T opened 1 month ago

Zedb0T commented 1 month ago

Acknowledgements

Describe the Bug

User reported this in the discord, logging it here. When they load slot 1 with 170 civilian kills for whatever reason the cheat does not unlock. If they load slot 2 it unlocks. The save files are in the linked thread(get-count-for-enemy (-> *pc-settings* stats kill-stats) 'civilian) 170 #xaa 0.0000 #<invalid object #xaa>

https://discord.com/channels/756287461377703987/1236109065520939059

How To Reproduce

Reproduction steps unknown - Can reproduce it on my machine with their provided saves.

Does this problem occur on original hardware or PCSX2?

Yes, it's unique to OpenGOAL

Expected Behavior

Health bar cheat should unlock when (>= (get-count-for-enemy (-> *pc-settings* stats kill-stats) 'civilian) (-> *pc-cheat-state* kill-civvie-target))

Environment Information

Computer

Game Version

NTSC 1.0 (black label)

Have you set the game to something other than 60fps?

No

NolanHewitt commented 1 month ago

I've encountered this, getting an additional 40 kills or so seems to reunlock it.

Zedb0T commented 1 month ago

In the example I provided the user had 170 civilian kills.

NolanHewitt commented 1 month ago

I mean 40 additional kills after loading a save where it was previously unlocked. It seems like it isn’t remembering how many civilian kills you have when you load a game in the first save lock, but can tell when you get 40 kills again. Something might be resetting that counter to 0 on loading.