-
Notifications
You must be signed in to change notification settings - Fork 10
/
Skylar.asl
40 lines (32 loc) · 1.09 KB
/
Skylar.asl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//Skylar & Plux: Adventure on Clover Island Load Remover by rythin
state("CloverIsland-Win64-Shipping") {
byte counter: 0x26458A0; //counts up to 255 and then back from 0, increasing by 1 every frame, pauses on freezes and load screens
}
startup {
vars.h = 0; //used for isLoading logic
vars.L = 0; //for some split logic dependant on loads
refreshRate = 15; //low refresh rate prevents lower framerates from affecting the timer
}
update {
//logic for determining when the game is loading
//this could be in isLoading, but i figured it may be useful in the future for autosplitting or some such
if (old.counter == current.counter) { //when the value stops updating
vars.h = current.counter; //set h to that value
Thread.Sleep(10); //wait 10ms
if (vars.h == current.counter) { //if the value is still the same
vars.L = 1;
}
else if (current.counter == vars.h + 1) { //sometimes the value can advance by 1 during loads
vars.L = 1;
}
else {
vars.L = 0;
}
}
else {
vars.L = 0;
}
}
isLoading {
return (vars.L == 1);
}