Skip to content

Commit

Permalink
instant_ending: Turn each death into a used continue instead.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nmlgc committed Mar 23, 2017
1 parent b2b46be commit 9f97a04
Show file tree
Hide file tree
Showing 16 changed files with 81 additions and 15 deletions.
30 changes: 15 additions & 15 deletions instant_ending/files.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"global.js": 3405867638,
"global.js": 2851179968,
"patch.js": 4162927855,
"th06.js": 3386456457,
"th06.v1.00.js": 1077685884,
"th06.v1.02h.js": 151479896,
"th06.v1.00.js": 4113798322,
"th06.v1.02h.js": 187691200,
"th06/ecldata1.ecl": 763279557,
"th06/ecldata2.ecl": 763279557,
"th06/ecldata3.ecl": 763279557,
"th06/ecldata4.ecl": 763279557,
"th06/ecldata5.ecl": 763279557,
"th06/ecldata6.ecl": 763279557,
"th07.js": 2994128587,
"th07.v1.00.js": 35490338,
"th07.v1.00b.js": 3815250801,
"th07.js": 2379439137,
"th07.v1.00.js": 2847899184,
"th07.v1.00b.js": 3947242927,
"th09.v1.00a.js": 552627174,
"th09.v1.50a.js": 1531916002,
"th10.v1.00a.js": 215852422,
"th10.v1.00a.js": 2572868146,
"th10/st01_00.msg": 3231840920,
"th10/st01_01.msg": 3231840920,
"th10/stage01.ecl": 2043589963,
"th11.v1.00a.js": 3765940916,
"th11.v1.00a.js": 3928446296,
"th11/st01_00a.msg": 3471427747,
"th11/st01_00b.msg": 3471427747,
"th11/st01_00c.msg": 3471427747,
"th11/st01_01a.msg": 3471427747,
"th11/st01_01b.msg": 3471427747,
"th11/st01_01c.msg": 3471427747,
"th11/stage01.ecl": 2043589963,
"th12.v1.00a.js": 3199741384,
"th12.v1.00b.js": 3739523203,
"th12.v1.00a.js": 2053011456,
"th12.v1.00b.js": 2989143476,
"th128.v1.00a.js": 3356264127,
"th128/st_a1.msg": 4009716713,
"th128/st_a1_1.ecl": 3247164060,
Expand All @@ -48,16 +48,16 @@
"th128/st_c1_2.msg": 1594179563,
"th128/st_c2_2.ecl": 3247164060,
"th128/st_c2_2.msg": 1594179563,
"th13.v1.00a.js": 1074405477,
"th13.v1.00b.js": 1624223197,
"th13.v1.00c.js": 1837056064,
"th13.v1.00a.js": 448596096,
"th13.v1.00b.js": 1912215997,
"th13.v1.00c.js": 3794383421,
"th13/st01.ecl": 1934639967,
"th13/st01a.msg": 1715219887,
"th13/st01b.msg": 1715219887,
"th13/st01c.msg": 1715219887,
"th13/st01d.msg": 1715219887,
"th14.v1.00a.js": 902932685,
"th14.v1.00b.js": 1076468721,
"th14.v1.00a.js": 250859443,
"th14.v1.00b.js": 991587300,
"th14/st01.ecl": 235943435,
"th14/st01a.msg": 1715219887,
"th14/st01b.msg": 1715219887,
Expand Down
3 changes: 3 additions & 0 deletions instant_ending/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"zero_lives": {
"code": "00000000",
"title": "Set lives to zero"
},
"deaths_to_continues": {
"title": "Turn each death into a used continue instead"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th06.v1.00.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"binhacks": {
"zero_lives": {
"addr": "Rx3695e"
},
"deaths_to_continues": {
"addr": "Rx28aa2",
"code": "0fb605 98d46900 40 a2 98d46900 a3 80bc6900 a3 84bc6900 9090"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th06.v1.02h.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"binhacks": {
"zero_lives": {
"addr": "Rx36de7"
},
"deaths_to_continues": {
"addr": "Rx28dd9",
"code": "0fb605 b8d46900 40 a2 b8d46900 a3 a0bc6900 a3 a4bc6900 9090"
}
}
}
7 changes: 7 additions & 0 deletions instant_ending/th07.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"zero_lives": {
"code": "31 c0 9090",
"title": "Set lives to zero"
},
"deaths_to_continues": {
"code": "fe40 20"
},
"skip_continue": {
"code": "eb 09",
"title": "Call the normal death function for 0 lives as well"
}
}
}
6 changes: 6 additions & 0 deletions instant_ending/th07.v1.00.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"binhacks": {
"zero_lives": {
"addr": "Rx2d0f7"
},
"deaths_to_continues": {
"addr": "Rx2bcf1"
},
"skip_continue": {
"addr": "Rx3e10f"
}
}
}
6 changes: 6 additions & 0 deletions instant_ending/th07.v1.00b.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"binhacks": {
"zero_lives": {
"addr": "Rx2ea0d"
},
"deaths_to_continues": {
"addr": "Rx2d602"
},
"skip_continue": {
"addr": "Rx4115f"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th10.v1.00a.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
},
"zero_lives": {
"addr": "Rx17955"
},
"deaths_to_continues": {
"addr": "Rx26a1c"
"code": "ff05 904c4700",
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th11.v1.00a.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
},
"zero_lives": {
"addr": "Rx1f948"
},
"deaths_to_continues": {
"addr": "Rx327f0"
"code": "ff05 3c574a00",
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th12.v1.00a.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"binhacks": {
"zero_lives": {
"addr": "Rx21d1d"
},
"deaths_to_continues": {
"addr": "Rx381e7",
"code": "ff05 c40c4b00"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th12.v1.00b.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"binhacks": {
"zero_lives": {
"addr": "Rx21d3d"
},
"deaths_to_continues": {
"addr": "Rx381e7",
"code": "ff05 c40c4b00"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th13.v1.00a.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"binhacks": {
"zero_lives": {
"addr": "Rx2bb78"
},
"deaths_to_continues": {
"addr": "Rx448d2",
"code": "ff05 c8d74b00"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th13.v1.00b.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"binhacks": {
"zero_lives": {
"addr": "Rx2bc48"
},
"deaths_to_continues": {
"addr": "Rx44a82",
"code": "ff05 c8e74b00"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th13.v1.00c.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
},
"zero_lives": {
"addr": "Rx2bc18"
},
"deaths_to_continues": {
"addr": "Rx44a52",
"code": "ff05 c8e74b00"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th14.v1.00a.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
},
"zero_lives": {
"addr": "Rx35d32"
},
"deaths_to_continues": {
"addr": "Rx4f617",
"code": "ff05 18784f00"
}
}
}
4 changes: 4 additions & 0 deletions instant_ending/th14.v1.00b.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
},
"zero_lives": {
"addr": "Rx35d42"
},
"deaths_to_continues": {
"addr": "Rx4f617",
"code": "ff05 38584f00"
}
}
}

0 comments on commit 9f97a04

Please sign in to comment.