diff --git a/sessions b/sessions index 3f88638..275de18 100644 --- a/sessions +++ b/sessions @@ -1 +1 @@ -55,1584288695,1584288795,SigoNitori's Race,4,none,sigonitori,5.00,0,5,true +61,1584295899,1584297456,SigoNitori's Race,4,none,trimead;sigonitori,5.00,0,5,true diff --git a/sigIRCv2.jar b/sigIRCv2.jar index 69eb5ff..58ddb87 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/modules/RabiRace/Profile.java b/src/sig/modules/RabiRace/Profile.java index d371b43..7b5e4f3 100644 --- a/src/sig/modules/RabiRace/Profile.java +++ b/src/sig/modules/RabiRace/Profile.java @@ -322,6 +322,7 @@ public class Profile { } catch (IOException e) { e.printStackTrace(); } + FileUtils.logToFile("["+System.currentTimeMillis()+"]Upload profile. "+"http://45.33.13.215/rabirace/send.php?key=playerdata&timekey="+RabiRaceModule.CLIENT_SERVER_READTIME+"&name="+sigIRC.nickname.toLowerCase()+"&data="+getDataString(), "debug.log"); //System.out.println(getDataString()); //String[] data = FileUtils.readFromFile(sigIRC.BASEDIR+"tmp"); diff --git a/src/sig/modules/RabiRace/SessionListWindow.java b/src/sig/modules/RabiRace/SessionListWindow.java index 2535ba8..f7d1328 100644 --- a/src/sig/modules/RabiRace/SessionListWindow.java +++ b/src/sig/modules/RabiRace/SessionListWindow.java @@ -208,6 +208,8 @@ public class SessionListWindow extends JFrame{ } count++; } + + FileUtils.logToFile("["+System.currentTimeMillis()+"]Updated sessions listing.", "debug.log"); //System.out.println("Selected is "+selected); //Try to find ID in list. } diff --git a/src/sig/modules/RabiRaceModule.java b/src/sig/modules/RabiRaceModule.java index 41350d2..96393e0 100644 --- a/src/sig/modules/RabiRaceModule.java +++ b/src/sig/modules/RabiRaceModule.java @@ -116,6 +116,10 @@ public class RabiRaceModule extends Module{ } private void Initialize() { + + File f = new File("debug.log"); + f.delete(); + CheckRabiRibiClient(); VerifyClientIsValid(); //If the client is not allowed to send data, we need to know that. @@ -124,6 +128,7 @@ public class RabiRaceModule extends Module{ scheduler.scheduleWithFixedDelay(()->{ CheckRabiRibiClient(); if (foundRabiRibi) { + FileUtils.logToFile("["+System.currentTimeMillis()+"]Start update cycle...", "debug.log"); myProfile.uploadProfile(); getSessionList(); getMessageUpdates(); @@ -131,6 +136,7 @@ public class RabiRaceModule extends Module{ firstCheck=true; if (mySession!=null) { RequestData("tmp.data","key=keepalivesession&session="+mySession.getID()); + FileUtils.logToFile("["+System.currentTimeMillis()+"]Requested data"+"key=keepalivesession&session="+mySession.getID(), "debug.log"); } } }, 5000, 5000, TimeUnit.MILLISECONDS); @@ -243,6 +249,7 @@ public class RabiRaceModule extends Module{ e.printStackTrace(); } String[] data = FileUtils.readFromFile(sigIRC.BASEDIR+"sigIRC/messages"); + FileUtils.logToFile("["+System.currentTimeMillis()+"]Message updates."+"http://45.33.13.215/rabirace/send.php?key=getupdates&timekey="+RabiRaceModule.CLIENT_SERVER_READTIME+"&name="+myProfile.username+" Data: "+Arrays.deepToString(data), "debug.log"); //boolean message_played=false; for (String s : data) { if (s.length()>0) { @@ -254,6 +261,7 @@ public class RabiRaceModule extends Module{ if (mySession!=null && mySession.isCoop()) { syncItems=true; } + FileUtils.logToFile("Add "+s+" to message queue.", "debug.log"); } } if (mySession!=null) { @@ -284,6 +292,7 @@ public class RabiRaceModule extends Module{ lastreadmapdata=Math.max(i,lastreadmapdata); } } + FileUtils.logToFile("["+System.currentTimeMillis()+"]MapUpdates:"+MapUpdatesRequired+" - "+byWhom, "debug.log"); if (MapUpdatesRequired>0) { if (MapUpdatesRequired==1) { @@ -422,6 +431,7 @@ public class RabiRaceModule extends Module{ } else { join_button.setButtonLabel("Leave Session"); } + FileUtils.logToFile("["+System.currentTimeMillis()+"]Retrieve session list."+"http://45.33.13.215/rabirace/send.php?key=getsessions", "debug.log"); window.UpdateSessionList(); } diff --git a/tmp_profile b/tmp_profile index 97afaad..b7ab618 100644 --- a/tmp_profile +++ b/tmp_profile @@ -1,36 +1,25 @@ SigoNitori 10 -1584288679 -106823 -0101110110000010001010100000000000000000000000000000000000000000 -1101010000000100000010000000000000000000000000000000000000000000 +1584297434 +168252 +0000000000000000001010100000000000000000000000000000000000000000 +1100000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0100000000000000000000000000000000000000000000000000000000000000 -0101000100100000000000000000000000000000000000000000000000000000 -2 -false +0000000000000000000000000000000000000000000000000000000000000000 1 +false +5 1 -19.066666 -11.553846 -1584288801 +4.1666665 +2.5846155 +1584297463 KEYITEMS: RIBBON;1 -HAMMER;1 -SLIDING_POWDER;1 CARROT_BOMB;1 -SPEED_BOOST;3 -RABI_SLIPPERS;1 -BUNNY_WHIRL;1 -SUNNY_BEAM;1 -BUNNY_STRIKE;1 -BUNNY_AMULET;1 BADGES: -BADGE_HEALTH_PLUS;2 -BADGE_DEF_GROW;1 -BADGE_ATK_TRADE;2 -BADGE_WEAKEN;1 +BADGE_DEF_TRADE;1 UPDATES: -1_1_0_0_1_1_1_0_0_1_0_0_0_0_0_0_0_0_0_0_0_0_0_0_1_1_0_1_0_0_0_0_0_0_1_0_0_0_0_0_0_0_1_0_0_0_0_0_0_0_0_1_0_0_0_1_0_0_0_0_0_0_0_0_0_1_1_1_0_0_1_1_1_1_1_1_0_0_1_0_0_1_0_0_0_0_0_0_0_0_0_0_1_0_0_1_0_1_0_0_0_1_0_0_0_0_0_0_0_0_0_1_0_0_0_0_0_1_1_0_0_1_1_0_0_0_1_0_1_0_0_0_1_0_0_0_0_0_0_0_0_0_0_0_0_0_1_1_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_1_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_1_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0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