GC 4EX: more unlocks, fast/slow (#120)

This commit is contained in:
yume39 2020-02-16 04:43:36 +00:00 committed by GitHub
parent 520e41549d
commit e27120e36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@
new Patcher("game.exe", "game.exe (4.52)", [
// for in memory patching, add 0x400c00 to file offsets to get virtual addresses
{
name: "Unlock all difficulties",
name: "Unlock all song difficulties",
patches: [
// non-extra
{offset: 0x298e0, off: [0x55, 0x8b, 0xec, 0x51, 0x89, 0x4d], on: [0xb8, 0xff, 0x00, 0x00, 0x00, 0xc3]},
@ -22,6 +22,29 @@
{offset: 0x220d30, off: [0x55, 0x8b, 0xec, 0x51, 0x89, 0x4d, 0xfc, 0x8b, 0x4d, 0xfc, 0x81, 0xc1, 0xd4, 0x07, 0x00, 0x00, 0xe8, 0x5b, 0x0f, 0xdf, 0xff, 0x3b, 0x45, 0x08, 0x73, 0x04, 0x33, 0xc0, 0xeb, 0x14, 0x8b, 0x45, 0x08, 0x50, 0x8b, 0x4d, 0xfc, 0x81, 0xc1, 0xd4, 0x07, 0x00, 0x00, 0xe8, 0x60, 0xb7, 0xe1], on: [0x8b, 0x44, 0x24, 0x04, 0x8b, 0x15, 0x54, 0xa5, 0x7d, 0x00, 0x8b, 0x0d, 0x50, 0xa5, 0x7d, 0x00, 0x3b, 0x02, 0x74, 0x0d, 0x81, 0xc2, 0xb4, 0x00, 0x00, 0x00, 0x49, 0x75, 0xf3, 0x31, 0xc0, 0xeb, 0x0b, 0x31, 0xc0, 0x83, 0x7a, 0x2c, 0x00, 0x0f, 0x95, 0xc0, 0x01, 0xc0, 0xc2, 0x04, 0x00]},
],
},
{
name: "Unlimited plays",
patches: [
{offset: 0x2356e0, off: [0x55, 0x8b, 0xec, 0x51], on: [0x33, 0xc0, 0x40, 0xc3]},
],
},
{
name: "Unlock all avatars, titles, navigators, skins, and sound effects",
patches: [
// unlock
{offset: 0x2214e0, off: [0x55, 0x8b, 0xec, 0x83], on: [0x33, 0xc0, 0x40, 0xc3]},
// allow selection
{offset: 0x1bc9fc, off: [0xe8, 0x4f, 0x95, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1bb51f, off: [0xe8, 0x2c, 0xaa, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1bf2fb, off: [0xe8, 0x50, 0x6c, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1c3b48, off: [0xe8, 0x03, 0x24, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1c3f71, off: [0xe8, 0xda, 0x1f, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1c3fc7, off: [0xe8, 0x84, 0x1f, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1c1d1f, off: [0xe8, 0x2c, 0x42, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1c4c54, off: [0xe8, 0xf7, 0x12, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
{offset: 0x1c1c4f, off: [0xe8, 0xfc, 0x42, 0xe5, 0xff], on: [0xb8, 0x01, 0x00, 0x00, 0x00]},
],
},
{
name: "Hide in-game tutorial prompts",
patches: [
@ -40,6 +63,31 @@
{offset: 0x1ac8c0, off: [0x74, 0x33], on: [0x90, 0x90]},
],
},
{
name: "Fast/slow indicator",
type: "union",
offset: 0x2266e0,
patches: [
{
name: "Default",
patch: [0x55, 0x8b, 0xec, 0x83, 0xec],
},
{
name: "Show fast/slow near avatar",
patch: [0x33, 0xc0, 0x40, 0xc3, 0x90],
},
{
name: "Show fast/slow near judgement text",
patch: [0x33, 0xc0, 0x40, 0x40, 0xc3],
},
],
},
{
name: "Show fast/slow even on GREAT judgement",
patches: [
{offset: 0x243e7f, off: [0x74, 0x11], on: [0x90, 0x90]},
],
},
]),
new Patcher("stage_param.dat", "stage_param.dat (4.52)", [
{