Rabi Race Sync and update processes now do not clash.

master
sigonasr2 5 years ago
parent 2bd5806eca
commit fb83cfd850
  1. BIN
      sigIRCv2.jar
  2. 6
      src/sig/modules/RabiRaceModule.java

Binary file not shown.

@ -93,6 +93,7 @@ public class RabiRaceModule extends Module{
public HashMap<Integer,Integer> newmapdata = new HashMap<Integer,Integer>(); public HashMap<Integer,Integer> newmapdata = new HashMap<Integer,Integer>();
public static ScheduledExecutorService scheduler,scheduler2; public static ScheduledExecutorService scheduler,scheduler2;
int frames=0; int frames=0;
public static boolean regularupdatePerformed=false;
public static final int[] RESTRICTED_EVENTS = new int[] {256,257,260,262,264,265,266,267,268,269,271,272,278,279,284,289,290,295,296,307,315,316,322,323,324,331,333,344,345,371,377,379,385,386,387,399,412,427,428,451,452,464,465,484,516,517,518,519}; public static final int[] RESTRICTED_EVENTS = new int[] {256,257,260,262,264,265,266,267,268,269,271,272,278,279,284,289,290,295,296,307,315,316,322,323,324,331,333,344,345,371,377,379,385,386,387,399,412,427,428,451,452,464,465,484,516,517,518,519};
@ -188,12 +189,14 @@ public class RabiRaceModule extends Module{
private void RunRabiRaceUpdater() { private void RunRabiRaceUpdater() {
if (foundRabiRibi) { if (foundRabiRibi) {
UpdateMyProfile(); UpdateMyProfile();
regularupdatePerformed=true;
} }
} }
private void RunRabiRace() { private void RunRabiRace() {
CheckRabiRibiClient(); CheckRabiRibiClient();
if (foundRabiRibi) { if (foundRabiRibi &&
regularupdatePerformed) {
FileUtils.logToFile("["+System.currentTimeMillis()+"]Start update cycle...", "debug.log"); FileUtils.logToFile("["+System.currentTimeMillis()+"]Start update cycle...", "debug.log");
myProfile.uploadProfile(); myProfile.uploadProfile();
getSessionList(); getSessionList();
@ -204,6 +207,7 @@ public class RabiRaceModule extends Module{
RequestData("tmp.data","key=keepalivesession&session="+mySession.getID()); RequestData("tmp.data","key=keepalivesession&session="+mySession.getID());
FileUtils.logToFile("["+System.currentTimeMillis()+"]Requested data"+"key=keepalivesession&session="+mySession.getID(), "debug.log"); FileUtils.logToFile("["+System.currentTimeMillis()+"]Requested data"+"key=keepalivesession&session="+mySession.getID(), "debug.log");
} }
regularupdatePerformed=false;
} }
} }

Loading…
Cancel
Save