Skip to content

Commit e051fe6

Browse files
committed
Speed hacks, reduced wait music implemented
- Feature implementation credit: Vaxherd
1 parent 021cc71 commit e051fe6

File tree

11 files changed

+259
-138
lines changed

11 files changed

+259
-138
lines changed
3.5 KB
Binary file not shown.

DW2Randomizer/Form1.Designer.cs

Lines changed: 208 additions & 132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DW2Randomizer/Form1.cs

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,6 +2511,8 @@ private void btnRandomize_Click(object sender, EventArgs e)
25112511
renamePrincePrincess();
25122512
if (chkSpeedHacks.Checked)
25132513
speedUpBattles();
2514+
if (chkSpeedWaitMusic.Checked)
2515+
speedUpWaitMusic();
25142516
if (chkExperimental.Checked)
25152517
experimentalSpeedHacks();
25162518
skipPrologue();
@@ -4244,12 +4246,48 @@ private void randomizeStats(Random r1)
42444246

42454247
private void experimentalSpeedHacks()
42464248
{
4247-
romData[0x3fdac] = 0xea;
4248-
romData[0x3fdad] = 0xea;
4249-
romData[0x3fdae] = 0xea;
4249+
//romData[0x3fdac] = 0xea;
4250+
//romData[0x3fdad] = 0xea;
4251+
//romData[0x3fdae] = 0xea;
4252+
4253+
//romData[0x3c20e] = 0xea;
4254+
//romData[0x3c20f] = 0xea;
4255+
romData[0xb6ad] = 0x20;
4256+
romData[0xb6ae] = 0xD1;
4257+
romData[0xb6af] = 0xBF;
4258+
4259+
romData[0xbfe1] = 0x20;
4260+
romData[0xbfe2] = 0xDC;
4261+
romData[0xbfe3] = 0xC1;
4262+
romData[0xbfe4] = 0xA6;
4263+
romData[0xbfe5] = 0x7D;
4264+
romData[0xbfe6] = 0xE8;
4265+
romData[0xbfe7] = 0x60;
4266+
4267+
romData[0x3fdac] = 0x4C;
4268+
romData[0x3fdad] = 0x9F;
4269+
romData[0x3fdae] = 0xFD;
4270+
}
4271+
4272+
private void speedUpWaitMusic()
4273+
{
4274+
// Speed up fade in/out
4275+
romData[0x3c338] = 0x01;
4276+
4277+
// revive music
4278+
romData[0xd9b7] = romData[0xd9ca] = romData[0xd9d3] = romData[0xd9bb] = romData[0xd9cc] = romData[0xd9d8] = 0x01;
4279+
romData[0xd9be] = romData[0xd9c1] = romData[0xd9c4] = romData[0xd9ce] = 0x81;
42504280

4251-
romData[0x3c20e] = 0xea;
4252-
romData[0x3c20f] = 0xea;
4281+
// inn music
4282+
romData[0xd99e] = 0x01;
4283+
romData[0xd9a6] = 0x81;
4284+
4285+
// win music
4286+
romData[0xdb5b] = romData[0xdb5d] = romData[0xdb6e] = 0x01;
4287+
4288+
// level up music
4289+
romData[0xdb3c] = 0x01;
4290+
romData[0xdb40] = romData[0xdb45] = 0x81;
42534291
}
42544292

42554293
private void speedUpBattles()
@@ -4264,6 +4302,9 @@ private void speedUpBattles()
42644302
romData[0x3c526] = 1; // instead of 10, greatly reducing flashes done for spell casting, removing 20 frames every time a spell is cast.
42654303
romData[0x3fc49] = 1; // instead of 8, reducing transition from one character's move to another by 7 frames / transition.
42664304
romData[0x110cc] = 1; // instead of 8, reducing flashing of super monsters (Atlas, Bazuzu, etc.)
4305+
4306+
romData[0x3c5b4] = 1; // Instead of 60, speeding up running away by a ton.
4307+
romData[0x18a66] = 1; // Instead of 80, speeding up failure to equip something by a ton.
42674308
}
42684309

42694310
private void skipPrologue()
@@ -5087,6 +5128,7 @@ private void flagLoad()
50875128
chkTreasures.Checked = (txtFlags.Text.Contains("T"));
50885129
chkSpeedHacks.Checked = (txtFlags.Text.Contains("A"));
50895130
chkExperimental.Checked = (txtFlags.Text.Contains("a"));
5131+
chkSpeedWaitMusic.Checked = (txtFlags.Text.Contains("m"));
50905132

50915133
if (txtFlags.Text.Contains("r1")) radSlightIntensity.Checked = true;
50925134
if (txtFlags.Text.Contains("r2")) radModerateIntensity.Checked = true;
@@ -5138,6 +5180,8 @@ private void determineFlag()
51385180
flags += "A";
51395181
if (chkExperimental.Checked)
51405182
flags += "a";
5183+
if (chkSpeedWaitMusic.Checked)
5184+
flags += "m";
51415185

51425186
flags += (radSlightIntensity.Checked ? "r1" : radModerateIntensity.Checked ? "r2" : radHeavyIntensity.Checked ? "r3" : "r4");
51435187
flags += ((string)cboGPReq.SelectedItem == "75%" ? "g1" : (string)cboGPReq.SelectedItem == "50%" ? "g2" : (string)cboGPReq.SelectedItem == "33%" ? "g3" : "");
2.5 KB
Binary file not shown.
2 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
C:\bizhawk\dw2 test\Dragon Warrior II (U) [!].nes
22
C:\bizhawk\dw2 test\DW2Random_2049614052_RXGUuQWEMZLSHCTAr3g3x3e7.nes
33
2049614052
4-
RXGUuQWEMZLSHCTAr3g3x3e7
4+
RXGUuQWEMZLSHCTAamr3g3x3e7
55
Bran
66
Peta
77
N

DW2Randomizer/obj/Debug/DW2Randomizer.csproj.FileListAbsolute.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ C:\Users\Pete10th\Source\Repos\DW2Randomizer\DW2Randomizer\obj\Debug\DW2Randomiz
66
C:\Users\Pete10th\Source\Repos\DW2Randomizer\DW2Randomizer\obj\Debug\DW2Randomizer.csproj.GenerateResource.Cache
77
C:\Users\Pete10th\Source\Repos\DW2Randomizer\DW2Randomizer\obj\Debug\DW2Randomizer.exe
88
C:\Users\Pete10th\Source\Repos\DW2Randomizer\DW2Randomizer\obj\Debug\DW2Randomizer.pdb
9+
C:\Users\Pete10th\Source\Repos\DW2Randomizer\DW2Randomizer\obj\Debug\DW2Randomizer.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file not shown.
2.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)