Add new sync restrictions.

master
sigonasr2 5 years ago
parent 63e10d1fe0
commit 6c2f718146
  1. BIN
      sigIRCv2.jar
  2. 2
      src/sig/modules/RabiRace/Profile.java
  3. 2
      src/sig/modules/RabiRaceModule.java
  4. 2
      src/sig/modules/RabiRibi/MemoryOffset.java

Binary file not shown.

@ -461,7 +461,7 @@ public class Profile {
nextval = data[i++];
map = Integer.parseInt(nextval);
nextval = data[i++];
System.out.println(nextval);
//System.out.println(nextval);
syncing = Boolean.parseBoolean(nextval);
lastWebUpdate = System.currentTimeMillis();
FileUtils.logToFile("["+System.currentTimeMillis()+"]Sync completed syccessfully.", "debug.log");

@ -400,7 +400,7 @@ public class RabiRaceModule extends Module{
String[] myevents = myProfile.eventStruct.split("_");
FileUtils.logToFile("["+System.currentTimeMillis()+"]"+myProfile.displayName+"'s events: "+Arrays.toString(myevents), "debug.log");
for (int i=0;i<Profile.EVENT_COUNT;i++) {
if (i!=1) { //Ignore syncing ribbon event.
if (i!=1 && i!=90 && i!=177) { //Ignore syncing ribbon event, irisu library event, and forgotten cave 2 event.
finalevents.append((events[i].compareTo(Integer.toString(readIntFromMemory(MemoryOffset.EVENT_START.getOffset()+i*4)))>0)?events[i]:readIntFromMemory(MemoryOffset.EVENT_START.getOffset()+i*4));
/*if (events[i].compareTo(Integer.toString(readIntFromMemory(MemoryOffset.EVENT_START.getOffset()+i*4)))>0) {
FileUtils.logToFile("["+System.currentTimeMillis()+"]Updated event "+i+" to value "+events[i], "debug.log");

@ -187,11 +187,9 @@ public enum MemoryOffset {
this.offset_v190=offset_v190;
this.offset_v199=offset_v199;
this.offset_v199t=offset_v199t;
//TODO CHANGE THIS IF PUBLIC VERSION CHANGES!
this.latest_offset = offset_v199t;
}
public long getOffset() {
return base_offset+latest_offset;
}

Loading…
Cancel
Save