state("popcapgame1", "Steam") { int foodBank : "popcapgame1.exe", 0x1AC624, 0xB4, 0x38; int stage : "popcapgame1.exe", 0x1AC624, 0x3C, 0x28; sbyte normalModeStage : "popcapgame1.exe", 0x1AC624, 0xB4, 0x48; sbyte timeAttackModeStage : "popcapgame1.exe", 0x1AC624, 0xB4, 0x68; bool isInMenu : "popcapgame1.exe", 0x1AC624, 0x28, 0xE4; bool isInStageMap : "popcapgame1.exe", 0x1AC624, 0x84, 0xE4; string5 stageLoading : "popcapgame1.exe", 0x1AC624, 0x84, 0x10C, 0x50, 0x9C, 0x0; } state("FeedingFrenzy2", "unknown version") { int foodBank : "FeedingFrenzy2.exe", 0x1AC624, 0xB4, 0x38; int stage : "FeedingFrenzy2.exe", 0x1AC624, 0x3C, 0x28; sbyte normalModeStage : "FeedingFrenzy2.exe", 0x1AC624, 0xB4, 0x48; sbyte timeAttackModeStage : "FeedingFrenzy2.exe", 0x1AC624, 0xB4, 0x68; bool isInMenu : "FeedingFrenzy2.exe", 0x1AC624, 0x28, 0xE4; bool isInStageMap : "FeedingFrenzy2.exe", 0x1AC624, 0x84, 0xE4; string5 stageLoading : "FeedingFrenzy2.exe", 0x1AC624, 0x84, 0x10C, 0x50, 0x9C, 0x0; } startup { settings.Add("IndividualStage", false, "Individual Stage Split"); } init { if (modules.First().ModuleMemorySize > 1949000) { version = "Steam"; // 1949696 } else { version = "unknown version"; } } start { if (current.isInStageMap) { return ((current.normalModeStage != -1 || current.timeAttackModeStage != -1) && !current.stageLoading.Contains("Click")); } } split { // Stage Split if (current.stageLoading != old.stageLoading) { return true; } // Any% End if (current.stageLoading.Contains("60")) { return (current.foodBank > old.foodBank); } // Individual Stage End if (settings["IndividualStage"]) { return (current.stage > old.stage); } } reset { if (current.isInMenu) { return true; } }