TheSpiderwickChronicles.asl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. state("Spiderwick")
  2. {
  3. int cutscenes : 0xAE4DB0;
  4. int cinematics : 0x32C4A8;
  5. int loading1 : 0xA356B8;
  6. string25 playarea : 0xA57F68;
  7. string20 chapter : 0x2E47A5;
  8. //string20 levels : 0xA57F88; just keeping in case I want to add it back
  9. }
  10. startup
  11. {
  12. settings.Add("chapters", false, "Chapter Splits");
  13. vars.Chapters = new Dictionary<string,string>
  14. {
  15. {"Chapter1","Chapter 1"},
  16. {"Chapter2","Chapter 2"},
  17. {"Chapter3","Chapter 3"},
  18. {"Chapter4","Chapter 4"},
  19. {"Chapter5","Chapter 5"},
  20. {"Chapter6","Chapter 6"},
  21. {"Chapter7","Chapter 7"},
  22. {"Chapter8","Chapter 8"},
  23. };
  24. foreach (var Tag in vars.missions)
  25. {
  26. settings.Add(Tag.Key, true, Tag.Value, "missions");
  27. };
  28. if (timer.CurrentTimingMethod == TimingMethod.RealTime) // stolen from dude simulator 3, basically asks the runner to set their livesplit to game time
  29. {
  30. var timingMessage = MessageBox.Show
  31. (
  32. "This game uses Time without Loads (Game Time) as the main timing method.\n"+
  33. "LiveSplit is currently set to show Real Time (RTA).\n"+
  34. "Would you like to set the timing method to Game Time? This will make verification easier",
  35. "LiveSplit | The Spiderwick Chronicles",
  36. MessageBoxButtons.YesNo,MessageBoxIcon.Question
  37. );
  38. if (timingMessage == DialogResult.Yes)
  39. {
  40. timer.CurrentTimingMethod = TimingMethod.GameTime;
  41. }
  42. }
  43. }
  44. start
  45. {
  46. return ((current.playarea != "shell") && (old.playarea == "shell"));
  47. }
  48. split
  49. {
  50. return ((current.chapter != old.chapter) && (settings[(current.chapter)]));
  51. }
  52. reset
  53. {
  54. return (current.playarea =="shell");
  55. }
  56. isLoading
  57. {
  58. return (current.loading1 == 1);
  59. }