state("tlou-ii", "v1.1.10411.0746") //161869824 { double IGT: "tlou-ii.exe", 0x09395260, 0x80, 0xBA8; string18 chapter: "tlou-ii.exe", 0x09341A30, 0x2C; string15 chapterreset: "tlou-ii.exe", 0x09341A30, 0x2C; } state("tlou-ii", "v1.2.10416.0553") //BECA4C2311BE02CF0062C7A21519B935 { double IGT: "tlou-ii.exe", 0x093952E0, 0x80, 0xBA8; string18 chapter: "tlou-ii.exe", 0x09341F80, 0x2C; string15 chapterreset: "tlou-ii.exe", 0x09341F80, 0x2C; // Jackson string8 prologue: "tlou-ii.exe", 0x09341F80, 0x36; string9 wakingup: "tlou-ii.exe", 0x09341F80, 0x36; string12 theoverlook: "tlou-ii.exe", 0x09341F80, 0x36; string6 patrol: "tlou-ii.exe", 0x09341F80, 0x36; string9 thehorde: "tlou-ii.exe", 0x09341F80, 0x36; string10 thechalet: "tlou-ii.exe", 0x09341F80, 0x36; string10 packingup: "tlou-ii.exe", 0x09341F80, 0x36; // Seattle Day 1 Ellie string8 thegate: "tlou-ii.exe", 0x09341F80, 0x3C; string8 downtown: "tlou-ii.exe", 0x09341F80, 0x3C; string21 eastbrookelementary: "tlou-ii.exe", 0x09341F80, 0x3C; string12 capitolhill: "tlou-ii.exe", 0x09341F80, 0x3C; string10 channel13: "tlou-ii.exe", 0x09341F80, 0x3C; string11 thetunnels: "tlou-ii.exe", 0x09341F80, 0x3C; string11 thetheater: "tlou-ii.exe", 0x09341F80, 0x3C; string17 thebirthdaygift: "tlou-ii.exe", 0x09341F80, 0x3C; // Seattle Day 2 Ellie string9 hillcrest: "tlou-ii.exe", 0x09341F80, 0x3C; string15 findingstrings: "tlou-ii.exe", 0x09341F80, 0x3C; string14 theseraphites: "tlou-ii.exe", 0x09341F80, 0x3C; string19 stmaryhospital: "tlou-ii.exe", 0x09341F80, 0x3C; // Seattle Day 3 Ellie string20 roadtotheaquarium: "tlou-ii.exe", 0x09341F80, 0x3C; string16 thefloodedcity: "tlou-ii.exe", 0x09341F80, 0x3C; string12 infiltration: "tlou-ii.exe", 0x09341F80, 0x3C; // The Park string15 trackinglesson: "tlou-ii.exe", 0x09341F80, 0x37; // Seattle Day 1 Abby string11 thestadium: "tlou-ii.exe", 0x09341F80, 0x3C; string7 onfoot: "tlou-ii.exe", 0x09341F80, 0x3C; string16 theforwardbase: "tlou-ii.exe", 0x09341F80, 0x3C; string12 theaquarium: "tlou-ii.exe", 0x09341F80, 0x3C; string17 hostileterritory: "tlou-ii.exe", 0x09341F80, 0x3C; string12 wintervisit: "tlou-ii.exe", 0x09341F80, 0x3C; string10 theforest: "tlou-ii.exe", 0x09341F80, 0x3C; string9 thecoast: "tlou-ii.exe", 0x09341F80, 0x3C; // Seattle Day 2 Abby string19 returntothecoast: "tlou-ii.exe", 0x09341F80, 0x3C; string12 theshortcut: "tlou-ii.exe", 0x09341F80, 0x3C; string11 thedescent: "tlou-ii.exe", 0x09341F80, 0x3C; string11 groundzero: "tlou-ii.exe", 0x09341F80, 0x3C; string22 returntotheaquarium: "tlou-ii.exe", 0x09341F80, 0x3C; // Seattle Day 3 Abby string10 themarina: "tlou-ii.exe", 0x09341F80, 0x3C; string10 theisland: "tlou-ii.exe", 0x09341F80, 0x3C; string10 theescape: "tlou-ii.exe", 0x09341F80, 0x3C; string17 theconfrontation: "tlou-ii.exe", 0x09341F80, 0x3C; // The Farm string8 thefarm: "tlou-ii.exe", 0x09341F80, 0x37; // Santa Barbara string14 constance: "tlou-ii.exe", 0x09341F80, 0x3C; string15 pushinginland: "tlou-ii.exe", 0x09341F80, 0x3C; string10 theresort: "tlou-ii.exe", 0x09341F80, 0x3C; string9 thebeach: "tlou-ii.exe", 0x09341F80, 0x3C; // The Farm string8 epilogue: "tlou-ii.exe", 0x09341F80, 0x37; } state("tlou-ii", "v1.3.10430.0406") //161878016 { double IGT: "tlou-ii.exe", 0x09397360, 0x80, 0xBA8; string18 chapter: "tlou-ii.exe", 0x09343FE0, 0x2C; string15 chapterreset: "tlou-ii.exe", 0x09343FE0, 0x2C; // Jackson string8 prologue: "tlou-ii.exe", 0x09343FE0, 0x36; string9 wakingup: "tlou-ii.exe", 0x09343FE0, 0x36; string12 theoverlook: "tlou-ii.exe", 0x09343FE0, 0x36; string6 patrol: "tlou-ii.exe", 0x09343FE0, 0x36; string9 thehorde: "tlou-ii.exe", 0x09343FE0, 0x36; string10 thechalet: "tlou-ii.exe", 0x09343FE0, 0x36; string10 packingup: "tlou-ii.exe", 0x09343FE0, 0x36; // Seattle Day 1 Ellie string8 thegate: "tlou-ii.exe", 0x09343FE0, 0x3C; string8 downtown: "tlou-ii.exe", 0x09343FE0, 0x3C; string21 eastbrookelementary: "tlou-ii.exe", 0x09343FE0, 0x3C; string12 capitolhill: "tlou-ii.exe", 0x09343FE0, 0x3C; string10 channel13: "tlou-ii.exe", 0x09343FE0, 0x3C; string11 thetunnels: "tlou-ii.exe", 0x09343FE0, 0x3C; string11 thetheater: "tlou-ii.exe", 0x09343FE0, 0x3C; string17 thebirthdaygift: "tlou-ii.exe", 0x09343FE0, 0x3C; // Seattle Day 2 Ellie string9 hillcrest: "tlou-ii.exe", 0x09343FE0, 0x3C; string15 findingstrings: "tlou-ii.exe", 0x09343FE0, 0x3C; string14 theseraphites: "tlou-ii.exe", 0x09343FE0, 0x3C; string19 stmaryhospital: "tlou-ii.exe", 0x09343FE0, 0x3C; // Seattle Day 3 Ellie string20 roadtotheaquarium: "tlou-ii.exe", 0x09343FE0, 0x3C; string16 thefloodedcity: "tlou-ii.exe", 0x09343FE0, 0x3C; string12 infiltration: "tlou-ii.exe", 0x09343FE0, 0x3C; // The Park string15 trackinglesson: "tlou-ii.exe", 0x09343FE0, 0x37; // Seattle Day 1 Abby string11 thestadium: "tlou-ii.exe", 0x09343FE0, 0x3C; string7 onfoot: "tlou-ii.exe", 0x09343FE0, 0x3C; string16 theforwardbase: "tlou-ii.exe", 0x09343FE0, 0x3C; string12 theaquarium: "tlou-ii.exe", 0x09343FE0, 0x3C; string17 hostileterritory: "tlou-ii.exe", 0x09343FE0, 0x3C; string12 wintervisit: "tlou-ii.exe", 0x09343FE0, 0x3C; string10 theforest: "tlou-ii.exe", 0x09343FE0, 0x3C; string9 thecoast: "tlou-ii.exe", 0x09343FE0, 0x3C; // Seattle Day 2 Abby string19 returntothecoast: "tlou-ii.exe", 0x09343FE0, 0x3C; string12 theshortcut: "tlou-ii.exe", 0x09343FE0, 0x3C; string11 thedescent: "tlou-ii.exe", 0x09343FE0, 0x3C; string11 groundzero: "tlou-ii.exe", 0x09343FE0, 0x3C; string22 returntotheaquarium: "tlou-ii.exe", 0x09343FE0, 0x3C; // Seattle Day 3 Abby string10 themarina: "tlou-ii.exe", 0x09343FE0, 0x3C; string10 theisland: "tlou-ii.exe", 0x09343FE0, 0x3C; string10 theescape: "tlou-ii.exe", 0x09343FE0, 0x3C; string17 theconfrontation: "tlou-ii.exe", 0x09343FE0, 0x3C; // The Farm string8 thefarm: "tlou-ii.exe", 0x09343FE0, 0x37; // Santa Barbara string14 constance: "tlou-ii.exe", 0x09343FE0, 0x3C; string15 pushinginland: "tlou-ii.exe", 0x09343FE0, 0x3C; string10 theresort: "tlou-ii.exe", 0x09343FE0, 0x3C; string9 thebeach: "tlou-ii.exe", 0x09343FE0, 0x3C; // The Farm string8 epilogue: "tlou-ii.exe", 0x09343FE0, 0x37; } state("tlou-ii", "v1.4.10515.0636") //161902592 { double IGT: "tlou-ii.exe", 0x0939C360, 0x80, 0xBA8; string18 chapter: "tlou-ii.exe", 0x09348FE0, 0x2C; string15 chapterreset: "tlou-ii.exe", 0x09348FE0, 0x2C; // Jackson string8 prologue: "tlou-ii.exe", 0x09348FE0, 0x36; string9 wakingup: "tlou-ii.exe", 0x09348FE0, 0x36; string12 theoverlook: "tlou-ii.exe", 0x09348FE0, 0x36; string6 patrol: "tlou-ii.exe", 0x09348FE0, 0x36; string9 thehorde: "tlou-ii.exe", 0x09348FE0, 0x36; string10 thechalet: "tlou-ii.exe", 0x09348FE0, 0x36; string10 packingup: "tlou-ii.exe", 0x09348FE0, 0x36; // Seattle Day 1 Ellie string8 thegate: "tlou-ii.exe", 0x09348FE0, 0x3C; string8 downtown: "tlou-ii.exe", 0x09348FE0, 0x3C; string21 eastbrookelementary: "tlou-ii.exe", 0x09348FE0, 0x3C; string12 capitolhill: "tlou-ii.exe", 0x09348FE0, 0x3C; string10 channel13: "tlou-ii.exe", 0x09348FE0, 0x3C; string11 thetunnels: "tlou-ii.exe", 0x09348FE0, 0x3C; string11 thetheater: "tlou-ii.exe", 0x09348FE0, 0x3C; string17 thebirthdaygift: "tlou-ii.exe", 0x09348FE0, 0x3C; // Seattle Day 2 Ellie string9 hillcrest: "tlou-ii.exe", 0x09348FE0, 0x3C; string15 findingstrings: "tlou-ii.exe", 0x09348FE0, 0x3C; string14 theseraphites: "tlou-ii.exe", 0x09348FE0, 0x3C; string19 stmaryhospital: "tlou-ii.exe", 0x09348FE0, 0x3C; // Seattle Day 3 Ellie string20 roadtotheaquarium: "tlou-ii.exe", 0x09348FE0, 0x3C; string16 thefloodedcity: "tlou-ii.exe", 0x09348FE0, 0x3C; string12 infiltration: "tlou-ii.exe", 0x09348FE0, 0x3C; // The Park string15 trackinglesson: "tlou-ii.exe", 0x09348FE0, 0x37; // Seattle Day 1 Abby string11 thestadium: "tlou-ii.exe", 0x09348FE0, 0x3C; string7 onfoot: "tlou-ii.exe", 0x09348FE0, 0x3C; string16 theforwardbase: "tlou-ii.exe", 0x09348FE0, 0x3C; string12 theaquarium: "tlou-ii.exe", 0x09348FE0, 0x3C; string17 hostileterritory: "tlou-ii.exe", 0x09348FE0, 0x3C; string12 wintervisit: "tlou-ii.exe", 0x09348FE0, 0x3C; string10 theforest: "tlou-ii.exe", 0x09348FE0, 0x3C; string9 thecoast: "tlou-ii.exe", 0x09348FE0, 0x3C; // Seattle Day 2 Abby string19 returntothecoast: "tlou-ii.exe", 0x09348FE0, 0x3C; string12 theshortcut: "tlou-ii.exe", 0x09348FE0, 0x3C; string11 thedescent: "tlou-ii.exe", 0x09348FE0, 0x3C; string11 groundzero: "tlou-ii.exe", 0x09348FE0, 0x3C; string22 returntotheaquarium: "tlou-ii.exe", 0x09348FE0, 0x3C; // Seattle Day 3 Abby string10 themarina: "tlou-ii.exe", 0x09348FE0, 0x3C; string10 theisland: "tlou-ii.exe", 0x09348FE0, 0x3C; string10 theescape: "tlou-ii.exe", 0x09348FE0, 0x3C; string17 theconfrontation: "tlou-ii.exe", 0x09348FE0, 0x3C; // The Farm string8 thefarm: "tlou-ii.exe", 0x09348FE0, 0x37; // Santa Barbara string14 constance: "tlou-ii.exe", 0x09348FE0, 0x3C; string15 pushinginland: "tlou-ii.exe", 0x09348FE0, 0x3C; string10 theresort: "tlou-ii.exe", 0x09348FE0, 0x3C; string9 thebeach: "tlou-ii.exe", 0x09348FE0, 0x3C; // The Farm string8 epilogue: "tlou-ii.exe", 0x09348FE0, 0x37; } state("tlou-ii", "v1.6.10721.105") //161906688 { double IGT: "tlou-ii.exe", 0x0939D430, 0x80, 0xBB8; string18 chapter: "tlou-ii.exe", 0x0934C370, 0x2C; string15 chapterreset: "tlou-ii.exe", 0x0934C370, 0x2C; // Jackson string8 prologue: "tlou-ii.exe", 0x0934C370, 0x36; string9 wakingup: "tlou-ii.exe", 0x0934C370, 0x36; string12 theoverlook: "tlou-ii.exe", 0x0934C370, 0x36; string6 patrol: "tlou-ii.exe", 0x0934C370, 0x36; string9 thehorde: "tlou-ii.exe", 0x0934C370, 0x36; string10 thechalet: "tlou-ii.exe", 0x0934C370, 0x36; string10 packingup: "tlou-ii.exe", 0x0934C370, 0x36; // Seattle Day 1 Ellie string8 thegate: "tlou-ii.exe", 0x0934C370, 0x3C; string8 downtown: "tlou-ii.exe", 0x0934C370, 0x3C; string21 eastbrookelementary: "tlou-ii.exe", 0x0934C370, 0x3C; string12 capitolhill: "tlou-ii.exe", 0x0934C370, 0x3C; string10 channel13: "tlou-ii.exe", 0x0934C370, 0x3C; string11 thetunnels: "tlou-ii.exe", 0x0934C370, 0x3C; string11 thetheater: "tlou-ii.exe", 0x0934C370, 0x3C; string17 thebirthdaygift: "tlou-ii.exe", 0x0934C370, 0x3C; // Seattle Day 2 Ellie string9 hillcrest: "tlou-ii.exe", 0x0934C370, 0x3C; string15 findingstrings: "tlou-ii.exe", 0x0934C370, 0x3C; string14 theseraphites: "tlou-ii.exe", 0x0934C370, 0x3C; string19 stmaryhospital: "tlou-ii.exe", 0x0934C370, 0x3C; // Seattle Day 3 Ellie string20 roadtotheaquarium: "tlou-ii.exe", 0x0934C370, 0x3C; string16 thefloodedcity: "tlou-ii.exe", 0x0934C370, 0x3C; string12 infiltration: "tlou-ii.exe", 0x0934C370, 0x3C; // The Park string15 trackinglesson: "tlou-ii.exe", 0x0934C370, 0x37; // Seattle Day 1 Abby string11 thestadium: "tlou-ii.exe", 0x0934C370, 0x3C; string7 onfoot: "tlou-ii.exe", 0x0934C370, 0x3C; string16 theforwardbase: "tlou-ii.exe", 0x0934C370, 0x3C; string12 theaquarium: "tlou-ii.exe", 0x0934C370, 0x3C; string17 hostileterritory: "tlou-ii.exe", 0x0934C370, 0x3C; string12 wintervisit: "tlou-ii.exe", 0x0934C370, 0x3C; string10 theforest: "tlou-ii.exe", 0x0934C370, 0x3C; string9 thecoast: "tlou-ii.exe", 0x0934C370, 0x3C; // Seattle Day 2 Abby string19 returntothecoast: "tlou-ii.exe", 0x0934C370, 0x3C; string12 theshortcut: "tlou-ii.exe", 0x0934C370, 0x3C; string11 thedescent: "tlou-ii.exe", 0x0934C370, 0x3C; string11 groundzero: "tlou-ii.exe", 0x0934C370, 0x3C; string22 returntotheaquarium: "tlou-ii.exe", 0x0934C370, 0x3C; // Seattle Day 3 Abby string10 themarina: "tlou-ii.exe", 0x0934C370, 0x3C; string10 theisland: "tlou-ii.exe", 0x0934C370, 0x3C; string10 theescape: "tlou-ii.exe", 0x0934C370, 0x3C; string17 theconfrontation: "tlou-ii.exe", 0x0934C370, 0x3C; // The Farm string8 thefarm: "tlou-ii.exe", 0x0934C370, 0x37; // Santa Barbara string14 constance: "tlou-ii.exe", 0x0934C370, 0x3C; string15 pushinginland: "tlou-ii.exe", 0x0934C370, 0x3C; string10 theresort: "tlou-ii.exe", 0x0934C370, 0x3C; string9 thebeach: "tlou-ii.exe", 0x0934C370, 0x3C; // The Farm string8 epilogue: "tlou-ii.exe", 0x0934C370, 0x37; } startup { vars.totalGameTime = 0; Assembly.Load(File.ReadAllBytes("Components/asl-help")).CreateInstance("Basic"); if (timer.CurrentTimingMethod == TimingMethod.RealTime) // Asks user to change to game time if LiveSplit is currently set to Real Time. { var timingMessage = MessageBox.Show ( "This game uses Time without Loads (Game Time) as the main timing method.\n"+ "LiveSplit is currently set to show Real Time (RTA).\n"+ "Would you like to set the timing method to Game Time?", "LiveSplit | The Last of Us Part II Remastered", MessageBoxButtons.YesNo,MessageBoxIcon.Question ); if (timingMessage == DialogResult.Yes) { timer.CurrentTimingMethod = TimingMethod.GameTime; } } refreshRate = 120; } init { vars.hasRunStarted = false; vars.lastValidIGT = 0.0; vars.adjustedTime = 0.0; print(modules.First().ModuleMemorySize.ToString()); timer.IsGameTimePaused = false; string md5 = ""; try { md5 = (string)vars.Helper.GetMD5Hash(); } catch { // Failed to open file for MD5 computation. } switch (md5) { case "BECA4C2311BE02CF0062C7A21519B935": version = "v1.2.10416.0553"; break; default: switch ((int)vars.Helper.GetMemorySize()) { case (161869824): version = "v1.1.10411.0746"; break; case (161878016): version = "v1.3.10430.0406"; break; case (161902592): version = "v1.4.10515.0636"; break; case (161906688): version = "v1.6.10721.105"; break; } break; } } update { if (timer.CurrentTime.RealTime != null && timer.CurrentTime.RealTime.Value.TotalSeconds <= 0.005) { vars.hasRunStarted = false; vars.adjustedTime = 0.0; vars.lastValidIGT = 0.0; return; } if (!vars.hasRunStarted && current.IGT > 0) { vars.hasRunStarted = true; } if (vars.hasRunStarted) { if (current.IGT > old.IGT) { vars.adjustedTime += current.IGT - old.IGT; vars.lastValidIGT = current.IGT; } if (current.IGT < old.IGT) { vars.lastValidIGT = 0.0; } timer.IsGameTimePaused = current.IGT <= old.IGT; } else { timer.IsGameTimePaused = true; } } reset { vars.hasRunStarted = false; } start { return current.chapter == "Jackson - Prologue" && current.IGT != 0 || current.chapter == "The Park - Trackin" && current.IGT != 0 || current.chapter == "Flashback - Tracki" && current.IGT != 0; } split { return current.chapter != old.chapter; } exit { timer.IsGameTimePaused = true; } isLoading { return true; } gameTime { return TimeSpan.FromSeconds(vars.adjustedTime); }