Skip to content

Commit 9f97a04

Browse files
committed
instant_ending: Turn each death into a used continue instead.
Much more efficient and consistent than trying to automatically select "Continue" on every Game Over menu, and then finding yet another hack for TH10, TH11, and TH12 to either allow "real" continues on Stage 1 (they're equivalent to game restarts) or start in Stage 2. It even bypasses score registration! With these hacks, setting the start lives to zero technically isn't even necessary – in fact, this even requires more complicated binhacks for TH06 and TH07, which have two separate functions for "death with ≥1 lives" and "death/continue with 0 lives". However: • I already wrote those first hacks • They do pave the way for the eventual cheat patch (#8) • Displaying zero lives does make the automatic continue functionality appear more thorough to testers.
1 parent b2b46be commit 9f97a04

16 files changed

+81
-15
lines changed

instant_ending/files.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
2-
"global.js": 3405867638,
2+
"global.js": 2851179968,
33
"patch.js": 4162927855,
44
"th06.js": 3386456457,
5-
"th06.v1.00.js": 1077685884,
6-
"th06.v1.02h.js": 151479896,
5+
"th06.v1.00.js": 4113798322,
6+
"th06.v1.02h.js": 187691200,
77
"th06/ecldata1.ecl": 763279557,
88
"th06/ecldata2.ecl": 763279557,
99
"th06/ecldata3.ecl": 763279557,
1010
"th06/ecldata4.ecl": 763279557,
1111
"th06/ecldata5.ecl": 763279557,
1212
"th06/ecldata6.ecl": 763279557,
13-
"th07.js": 2994128587,
14-
"th07.v1.00.js": 35490338,
15-
"th07.v1.00b.js": 3815250801,
13+
"th07.js": 2379439137,
14+
"th07.v1.00.js": 2847899184,
15+
"th07.v1.00b.js": 3947242927,
1616
"th09.v1.00a.js": 552627174,
1717
"th09.v1.50a.js": 1531916002,
18-
"th10.v1.00a.js": 215852422,
18+
"th10.v1.00a.js": 2572868146,
1919
"th10/st01_00.msg": 3231840920,
2020
"th10/st01_01.msg": 3231840920,
2121
"th10/stage01.ecl": 2043589963,
22-
"th11.v1.00a.js": 3765940916,
22+
"th11.v1.00a.js": 3928446296,
2323
"th11/st01_00a.msg": 3471427747,
2424
"th11/st01_00b.msg": 3471427747,
2525
"th11/st01_00c.msg": 3471427747,
2626
"th11/st01_01a.msg": 3471427747,
2727
"th11/st01_01b.msg": 3471427747,
2828
"th11/st01_01c.msg": 3471427747,
2929
"th11/stage01.ecl": 2043589963,
30-
"th12.v1.00a.js": 3199741384,
31-
"th12.v1.00b.js": 3739523203,
30+
"th12.v1.00a.js": 2053011456,
31+
"th12.v1.00b.js": 2989143476,
3232
"th128.v1.00a.js": 3356264127,
3333
"th128/st_a1.msg": 4009716713,
3434
"th128/st_a1_1.ecl": 3247164060,
@@ -48,16 +48,16 @@
4848
"th128/st_c1_2.msg": 1594179563,
4949
"th128/st_c2_2.ecl": 3247164060,
5050
"th128/st_c2_2.msg": 1594179563,
51-
"th13.v1.00a.js": 1074405477,
52-
"th13.v1.00b.js": 1624223197,
53-
"th13.v1.00c.js": 1837056064,
51+
"th13.v1.00a.js": 448596096,
52+
"th13.v1.00b.js": 1912215997,
53+
"th13.v1.00c.js": 3794383421,
5454
"th13/st01.ecl": 1934639967,
5555
"th13/st01a.msg": 1715219887,
5656
"th13/st01b.msg": 1715219887,
5757
"th13/st01c.msg": 1715219887,
5858
"th13/st01d.msg": 1715219887,
59-
"th14.v1.00a.js": 902932685,
60-
"th14.v1.00b.js": 1076468721,
59+
"th14.v1.00a.js": 250859443,
60+
"th14.v1.00b.js": 991587300,
6161
"th14/st01.ecl": 235943435,
6262
"th14/st01a.msg": 1715219887,
6363
"th14/st01b.msg": 1715219887,

instant_ending/global.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"zero_lives": {
88
"code": "00000000",
99
"title": "Set lives to zero"
10+
},
11+
"deaths_to_continues": {
12+
"title": "Turn each death into a used continue instead"
1013
}
1114
}
1215
}

instant_ending/th06.v1.00.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"binhacks": {
33
"zero_lives": {
44
"addr": "Rx3695e"
5+
},
6+
"deaths_to_continues": {
7+
"addr": "Rx28aa2",
8+
"code": "0fb605 98d46900 40 a2 98d46900 a3 80bc6900 a3 84bc6900 9090"
59
}
610
}
711
}

instant_ending/th06.v1.02h.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"binhacks": {
33
"zero_lives": {
44
"addr": "Rx36de7"
5+
},
6+
"deaths_to_continues": {
7+
"addr": "Rx28dd9",
8+
"code": "0fb605 b8d46900 40 a2 b8d46900 a3 a0bc6900 a3 a4bc6900 9090"
59
}
610
}
711
}

instant_ending/th07.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
"zero_lives": {
44
"code": "31 c0 9090",
55
"title": "Set lives to zero"
6+
},
7+
"deaths_to_continues": {
8+
"code": "fe40 20"
9+
},
10+
"skip_continue": {
11+
"code": "eb 09",
12+
"title": "Call the normal death function for 0 lives as well"
613
}
714
}
815
}

instant_ending/th07.v1.00.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"binhacks": {
33
"zero_lives": {
44
"addr": "Rx2d0f7"
5+
},
6+
"deaths_to_continues": {
7+
"addr": "Rx2bcf1"
8+
},
9+
"skip_continue": {
10+
"addr": "Rx3e10f"
511
}
612
}
713
}

instant_ending/th07.v1.00b.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"binhacks": {
33
"zero_lives": {
44
"addr": "Rx2ea0d"
5+
},
6+
"deaths_to_continues": {
7+
"addr": "Rx2d602"
8+
},
9+
"skip_continue": {
10+
"addr": "Rx4115f"
511
}
612
}
713
}

instant_ending/th10.v1.00a.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
},
66
"zero_lives": {
77
"addr": "Rx17955"
8+
},
9+
"deaths_to_continues": {
10+
"addr": "Rx26a1c"
11+
"code": "ff05 904c4700",
812
}
913
}
1014
}

instant_ending/th11.v1.00a.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
},
66
"zero_lives": {
77
"addr": "Rx1f948"
8+
},
9+
"deaths_to_continues": {
10+
"addr": "Rx327f0"
11+
"code": "ff05 3c574a00",
812
}
913
}
1014
}

instant_ending/th12.v1.00a.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"binhacks": {
33
"zero_lives": {
44
"addr": "Rx21d1d"
5+
},
6+
"deaths_to_continues": {
7+
"addr": "Rx381e7",
8+
"code": "ff05 c40c4b00"
59
}
610
}
711
}

0 commit comments

Comments
 (0)