Skip to content

Commit

Permalink
Workaround for Chapter 1 splitting right after starting (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
ners-xd authored Nov 30, 2024
1 parent 8d8fb35 commit 163f73c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Deltarune.asl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ state("DELTARUNE", "Demo v1.08/v1.09")
float kingPos : 0x6F1394, 0x4, 0x140, 0x68, 0x3C, 0x8, 0xB0;

string32 sound : 0x4E0794, 0x58, 0xC0, 0x40, 0x0; // Full path to the current sound (highest priority)
string128 text : 0x6FCE4C, 0x8, 0x144, 0x24, 0x10, 0x5A0, 0x0, 0x0, 0x0; // Current textbox text, formatting included
string128 text : 0x6FCE4C, 0x8, 0x144, 0x24, 0x10, 0x5A0, 0x0, 0x0, 0x0; // obj_writer.mystring
string256 song : 0x4DFF58, 0x0, 0x44, 0x0; // Full path to the current song
}

Expand Down Expand Up @@ -252,8 +252,8 @@ init
: scan(2, "8B 3D ?? ?? ?? ?? 2B EF");

vars.ptrRoomID = vars.x64
? scan(12, "E8 ?? ?? ?? ?? E8 ?? ?? ?? ?? 89 3D ?? ?? ?? ??")
: scan(2, "FF 35 ?? ?? ?? ?? E8 ?? ?? ?? ?? 83 C4 04 50 68");
? scan(6, "48 ?? ?? ?? 3B 35 ?? ?? ?? ?? 41 ?? ?? ?? 49 ?? ?? E8 ?? ?? ?? ?? FF")
: scan(2, "FF 35 ?? ?? ?? ?? E8 ?? ?? ?? ?? 83 C4 04 50 68");

vars.getRoomName = (Func<string>)(() =>
{
Expand Down Expand Up @@ -467,7 +467,7 @@ update
print("[DELTARUNE] All Chapters: Chapter " + ch + " started, timer resumed");
timer.IsGameTimePaused = false;
}
vars.forceSplit = settings["AC_Continue"];
vars.forceSplit = (settings["AC_Continue"] && timer.CurrentTime.RealTime > TimeSpan.FromSeconds(0)); // Workaround for Chapter 1 splitting right after starting
}
}

Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"Mauswheel",
"Meca",
"monsterhp",
"mystring",
"Narry",
"NERS",
"Pipis",
Expand Down

0 comments on commit 163f73c

Please sign in to comment.