Skip to content

[Enhancement] DuckStation Cheat Code Convertor (PlayStation) #4702

@Spikestuff

Description

@Spikestuff

I will butcher all the explanation I will let you know that now.
So we're already able to convert normal GameShark codes into something readable for BizHawk, but not these DuckStation codes.

I'm going to use Crash Team Racing (NTSC-U) as the example here, other games have their own codes and their own "problems".
But for CTR we have a "simple" code for hiding the HUD, in DuckStation that's:

A70365AA 10402400
A704C816 10432400
A704CA76 10432400

So personally I naïvely thought it would be: 0x0365AA 2400 since that's how it would work with GameShark codes.
I was further from the information that I ever would be when I misread the second two codes (despite being on the right path).

There's a major documentation about it on GameHacking wiki: https://wiki.gamehacking.org/Duckstation

The information provided by the wiki is...

A7XXXXXX YYYYZZZZ - 16-Bit If Equal To Write with Restore, if 0x80XXXXXX==0xYYYY, Poke 0x80XXXXXX with 0xZZZZ

Which would create the GameShark code of:

D00365AA 1040
800365AA 2400
D004C816 1043
8004C816 2400
D004CA76 1043
8004CA76 2400

For our case it really just translates out to:

800365AA 2400
8004C816 2400
8004CA76 2400

And works as a regular GameShark code for BizHawk's case.
This is like the bare explanation of it as I did get assistance about how to convert it into a usable state.

ctr-hud ctr-nohud

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions