From afb966445b6401878fc22c19129f54b413854d21 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Wed, 24 Feb 2010 23:54:37 -0500 Subject: [PATCH] Finished up just about everything. --- client317/src/rs/client.java | 6 +- client508/src/Applet_Sub1.java | 59 +- client508/src/Class107.java | 10 +- client508/src/Class11.java | 6 +- client508/src/Class127.java | 2 +- client508/src/Class13_Sub1.java | 6 +- client508/src/Class17.java | 8 +- client508/src/Class1_Sub5.java | 2 +- client508/src/Class1_Sub6_Sub1.java | 2 +- client508/src/Class1_Sub6_Sub2.java | 2 +- client508/src/Class20.java | 2 +- client508/src/Class21_Sub1.java | 18 +- client508/src/Class21renamed.java | 14 +- client508/src/Class32.java | 2 +- client508/src/Class35.java | 4 +- client508/src/Class43.java | 2 +- client508/src/Class49.java | 4 +- client508/src/Class58.java | 2 +- client508/src/Class59.java | 2 +- client508/src/Class68_Sub13.java | 2 +- client508/src/Class68_Sub13_Sub10.java | 2 +- client508/src/Class68_Sub13_Sub11.java | 10 +- client508/src/Class68_Sub13_Sub13.java | 8 +- client508/src/Class68_Sub13_Sub19.java | 2 +- client508/src/Class68_Sub13_Sub26.java | 2 +- client508/src/Class68_Sub13_Sub33.java | 2 +- client508/src/Class68_Sub13_Sub34.java | 6 +- client508/src/Class68_Sub13_Sub37.java | 2 +- client508/src/Class68_Sub13_Sub38.java | 2 +- client508/src/Class68_Sub13_Sub7.java | 4 +- client508/src/Class68_Sub13_Sub9.java | 4 +- client508/src/Class68_Sub17.java | 4 +- client508/src/Class68_Sub20_Sub11.java | 2 +- client508/src/Class68_Sub20_Sub5.java | 2 +- client508/src/Class68_Sub20_Sub8.java | 8 +- client508/src/Class68_Sub28_Sub1.java | 54 +- client508/src/Class68_Sub4.java | 7 +- client508/src/Class71.java | 14 +- client508/src/Class72.java | 4 +- client508/src/Class72_Sub1.java | 2 +- client508/src/Class75.java | 59 +- client508/src/Class75_Sub1_Sub1.java | 6 +- client508/src/Class90.java | 4 +- client508/src/GameSocket.java | 4 +- client508/src/ISAACRandomGen.java | 2 +- client508/src/Login.java | 14 +- client508/src/PacketParser.java | 10 +- client508/src/PlayerDefinition.java | 6 +- client508/src/RuntimeException_Sub1.java | 374 --- client508/src/SignLink.java | 521 ++-- client508/src/Sprite.java | 2382 +++++++++-------- client508/src/Sprite_Sub1.java | 32 +- client508/src/client.java | 228 +- src/org/moparscape/userver/Server.java | 2 +- .../userver/v317/JaggrabServer.java | 27 +- .../userver/v508/OndemandServer.java | 45 +- .../userver/v508/OndemandServer443.java | 2 +- 57 files changed, 1932 insertions(+), 2082 deletions(-) delete mode 100644 client508/src/RuntimeException_Sub1.java diff --git a/client317/src/rs/client.java b/client317/src/rs/client.java index 374f14f..d1606c3 100755 --- a/client317/src/rs/client.java +++ b/client317/src/rs/client.java @@ -10329,8 +10329,10 @@ public class client extends RSApplet { aBoolean1159 = false; aBoolean1160 = false; anInt1171 = 1; - myUsername = "mopar"; - myPassword = "bob"; +// myUsername = "mopar"; +// myPassword = "bob"; + myUsername = ""; + myPassword = ""; genericLoadingError = false; reportAbuseInterfaceID = -1; aClass19_1179 = new NodeList(); diff --git a/client508/src/Applet_Sub1.java b/client508/src/Applet_Sub1.java index f61697d..22b0d55 100644 --- a/client508/src/Applet_Sub1.java +++ b/client508/src/Applet_Sub1.java @@ -15,7 +15,6 @@ import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.lang.reflect.Method; import java.net.URL; -import java.io.*; public abstract class Applet_Sub1 extends Applet implements Runnable, FocusListener, WindowListener { @@ -99,23 +98,23 @@ public abstract class Applet_Sub1 extends Applet String string = SignLink.javaVendor.toLowerCase(); if (string.indexOf("sun") == -1 && (string.indexOf("apple") ^ 0xffffffff) == 0) { if (string.indexOf("ibm") != -1 && (SignLink.javaVersion == null || SignLink.javaVersion.equals("1.4.2"))) { - error(690, "wrongjava"); + error_fatal(690, "wrongjava"); return; } } else { String string_0_ = SignLink.javaVersion; if (string_0_.equals("1.1") || string_0_.startsWith("1.1.") || string_0_.equals("1.2") || string_0_.startsWith("1.2.")) { - error(690, "wrongjava"); + error_fatal(690, "wrongjava"); return; } Class109.anInt1839 = 5; } } - if (Class75_Sub1_Sub1.aSignLink_4589.anApplet1042 != null) { + if (Class75_Sub1_Sub1.signlink.anApplet1042 != null) { Method method = SignLink.setFocusCycleRoot; if (method != null) try { - method.invoke((Class75_Sub1_Sub1.aSignLink_4589.anApplet1042), + method.invoke((Class75_Sub1_Sub1.signlink.anApplet1042), new Object[]{Boolean.TRUE}); } catch (Throwable throwable) { /* empty */ @@ -134,17 +133,17 @@ public abstract class Applet_Sub1 extends Applet i++) method30((byte) -71); method25(-16633); - Canvas_Sub1.method46(Class75_Sub1_Sub1.aSignLink_4589, + Canvas_Sub1.method46(Class75_Sub1_Sub1.signlink, Class86.aCanvas1585, (byte) -108); } } catch (Exception exception) { Class71.method1339(null, exception, 38); - error(690, "crash"); + error_fatal(690, "crash"); } method20(true, 1000); } - public void error(int i, String string) { + public void error_fatal(int i, String string) { anInt20++; if (!aBoolean6) { aBoolean6 = true; @@ -233,7 +232,7 @@ public abstract class Applet_Sub1 extends Applet if (Class69.anApplet_Sub1_1241 != null) { Class68_Sub20_Sub7.anInt4255++; if ((Class68_Sub20_Sub7.anInt4255 ^ 0xffffffff) <= -4) - error(690, "alreadyloaded"); + error_fatal(690, "alreadyloaded"); else getAppletContext().showDocument(getDocumentBase(), "_self"); @@ -250,15 +249,15 @@ public abstract class Applet_Sub1 extends Applet /* empty */ } if (i < -1) { - if (Class75_Sub1_Sub1.aSignLink_4589 == null) - Class85.aSignLink_1553 = Class75_Sub1_Sub1.aSignLink_4589 = new SignLink(false, this, i_4_, null, 0); - Class75_Sub1_Sub1.aSignLink_4589.method558((byte) -95, 1, + if (Class75_Sub1_Sub1.signlink == null) + Class85.aSignLink_1553 = Class75_Sub1_Sub1.signlink = new SignLink(false, this, i_4_, null, 0); + Class75_Sub1_Sub1.signlink.method558((byte) -95, 1, this); } } } catch (Exception exception) { Class71.method1339(null, exception, 38); - error(690, "crash"); + error_fatal(690, "crash"); } } @@ -275,8 +274,8 @@ public abstract class Applet_Sub1 extends Applet return; PlayerDefinition.aBoolean2185 = true; } - if (Class75_Sub1_Sub1.aSignLink_4589.anApplet1042 != null) - Class75_Sub1_Sub1.aSignLink_4589.anApplet1042.destroy(); + if (Class75_Sub1_Sub1.signlink.anApplet1042 != null) + Class75_Sub1_Sub1.signlink.anApplet1042.destroy(); try { method29(-121); } catch (Exception exception) { @@ -289,9 +288,9 @@ public abstract class Applet_Sub1 extends Applet } catch (Exception exception) { /* empty */ } - if (Class75_Sub1_Sub1.aSignLink_4589 != null) + if (Class75_Sub1_Sub1.signlink != null) try { - Class75_Sub1_Sub1.aSignLink_4589.method566(0); + Class75_Sub1_Sub1.signlink.method566(0); } catch (Exception exception) { /* empty */ } @@ -327,8 +326,8 @@ public abstract class Applet_Sub1 extends Applet Insets insets = Class108.aFrame1832.getInsets(); Class108.aFrame1832.setSize((insets.left + (Class68_Sub20_Sub17.anInt4437 + insets.right)), (Class21renamed.anInt479 - -insets.top + insets.bottom)); - Class85.aSignLink_1553 = Class75_Sub1_Sub1.aSignLink_4589 = new SignLink(true, null, i_12_, string, i_10_); - Class75_Sub1_Sub1.aSignLink_4589.method558((byte) -36, 1, this); + Class85.aSignLink_1553 = Class75_Sub1_Sub1.signlink = new SignLink(true, null, i_12_, string, i_10_); + Class75_Sub1_Sub1.signlink.method558((byte) -36, 1, this); if (i_9_ >= 86) break; getDocumentBase(); @@ -348,8 +347,8 @@ public abstract class Applet_Sub1 extends Applet anInt14++; if (Class108.aFrame1832 != null) return null; - if (Class75_Sub1_Sub1.aSignLink_4589 != null && this != Class75_Sub1_Sub1.aSignLink_4589.anApplet1042) - return Class75_Sub1_Sub1.aSignLink_4589.anApplet1042.getDocumentBase(); + if (Class75_Sub1_Sub1.signlink != null && this != Class75_Sub1_Sub1.signlink.anApplet1042) + return Class75_Sub1_Sub1.signlink.anApplet1042.getDocumentBase(); return super.getDocumentBase(); } @@ -367,7 +366,7 @@ public abstract class Applet_Sub1 extends Applet public static void method24(SignLink class55) { anInt8++; - Class85.aSignLink_1553 = Class75_Sub1_Sub1.aSignLink_4589 = class55; + Class85.aSignLink_1553 = Class75_Sub1_Sub1.signlink = class55; } public void method25(int i) { @@ -424,7 +423,7 @@ public abstract class Applet_Sub1 extends Applet } if (string.endsWith("192.168.1.")) return true; - error(690, "invalidhost"); + error_fatal(690, "invalidhost"); return false; } @@ -447,8 +446,8 @@ public abstract class Applet_Sub1 extends Applet anInt19++; if (Class108.aFrame1832 != null) return null; - if (Class75_Sub1_Sub1.aSignLink_4589 != null && Class75_Sub1_Sub1.aSignLink_4589.anApplet1042 != this) - return Class75_Sub1_Sub1.aSignLink_4589.anApplet1042.getCodeBase(); + if (Class75_Sub1_Sub1.signlink != null && Class75_Sub1_Sub1.signlink.anApplet1042 != this) + return Class75_Sub1_Sub1.signlink.anApplet1042.getCodeBase(); return super.getCodeBase(); } @@ -490,8 +489,8 @@ public abstract class Applet_Sub1 extends Applet anInt24++; if (Class108.aFrame1832 != null) return null; - if (Class75_Sub1_Sub1.aSignLink_4589 != null && this != Class75_Sub1_Sub1.aSignLink_4589.anApplet1042) - return Class75_Sub1_Sub1.aSignLink_4589.anApplet1042.getParameter(string); + if (Class75_Sub1_Sub1.signlink != null && this != Class75_Sub1_Sub1.signlink.anApplet1042) + return Class75_Sub1_Sub1.signlink.anApplet1042.getParameter(string); return super.getParameter(string); } @@ -506,7 +505,7 @@ public abstract class Applet_Sub1 extends Applet if (Class108.aFrame1832 != null) container = Class108.aFrame1832; else - container = Class75_Sub1_Sub1.aSignLink_4589.anApplet1042; + container = Class75_Sub1_Sub1.signlink.anApplet1042; else container = Class1_Sub2.aFrame2429; anInt23++; @@ -563,8 +562,8 @@ public abstract class Applet_Sub1 extends Applet anInt21++; if (Class108.aFrame1832 != null) return null; - if (Class75_Sub1_Sub1.aSignLink_4589 != null && this != Class75_Sub1_Sub1.aSignLink_4589.anApplet1042) - return Class75_Sub1_Sub1.aSignLink_4589.anApplet1042.getAppletContext(); + if (Class75_Sub1_Sub1.signlink != null && this != Class75_Sub1_Sub1.signlink.anApplet1042) + return Class75_Sub1_Sub1.signlink.anApplet1042.getAppletContext(); return super.getAppletContext(); } diff --git a/client508/src/Class107.java b/client508/src/Class107.java index bd7f6d0..bb555c6 100644 --- a/client508/src/Class107.java +++ b/client508/src/Class107.java @@ -79,16 +79,16 @@ public class Class107 } } - public static RuntimeException_Sub1 method1652(Throwable throwable, + public static GameException method1652(Throwable throwable, String string) { anInt1812++; - RuntimeException_Sub1 runtimeexception_sub1; - if (throwable instanceof RuntimeException_Sub1) { - runtimeexception_sub1 = (RuntimeException_Sub1) throwable; + GameException runtimeexception_sub1; + if (throwable instanceof GameException) { + runtimeexception_sub1 = (GameException) throwable; runtimeexception_sub1.aString2239 += ' ' + (String) string; } else runtimeexception_sub1 - = new RuntimeException_Sub1(throwable, string); + = new GameException(throwable, string); return runtimeexception_sub1; } diff --git a/client508/src/Class11.java b/client508/src/Class11.java index 730f391..8c6c633 100644 --- a/client508/src/Class11.java +++ b/client508/src/Class11.java @@ -57,7 +57,7 @@ public class Class11 else if (Class108.aFrame1832 != null) container = Class108.aFrame1832; else - container = Class75_Sub1_Sub1.aSignLink_4589.anApplet1042; + container = Class75_Sub1_Sub1.signlink.anApplet1042; anInt188++; Class68_Sub20_Sub17.anInt4437 = container.getSize().width; Class21renamed.anInt479 = container.getSize().height; @@ -90,8 +90,8 @@ public class Class11 Class36.aLong644 = Class36.method438(17161) + (long) i; ISAACRandomGen.aLong1480 = Class36.method438(17161) - -(long) i; if (i == 0 && PlayerDefinition.connection != null - && ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -31 - || RuntimeException_Sub1.anInt2231 == 25)) + && ((GameException.anInt2231 ^ 0xffffffff) == -31 + || GameException.anInt2231 == 25)) Class68_Sub20_Sub6.method1071((byte) -118); } diff --git a/client508/src/Class127.java b/client508/src/Class127.java index a035e4c..2c615b8 100644 --- a/client508/src/Class127.java +++ b/client508/src/Class127.java @@ -113,7 +113,7 @@ public class Class127 if (i != Class68_Sub13_Sub10.anInt3597) { try { Class103.aRSString_1771.method1604((Class75_Sub1_Sub1 - .aSignLink_4589 + .signlink .anApplet1042), (byte) -123); return true; diff --git a/client508/src/Class13_Sub1.java b/client508/src/Class13_Sub1.java index d816bd0..fce6a74 100644 --- a/client508/src/Class13_Sub1.java +++ b/client508/src/Class13_Sub1.java @@ -35,7 +35,7 @@ public class Class13_Sub1 extends Class13 sprite = (Sprite) GameSocket.aClass68_Sub20_Sub10_1144; anInt2625++; - int[] is = sprite.anIntArray4615; + int[] is = sprite.pixels; int i_1_ = is.length; for (int i_2_ = 0; (i_2_ ^ 0xffffffff) > (i_1_ ^ 0xffffffff); i_2_++) is[i_2_] = 1; @@ -327,8 +327,8 @@ public class Class13_Sub1 extends Class13 method252(47); anInt2620++; Class49.method524(16322); - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -31 - || RuntimeException_Sub1.anInt2231 == 25) { + if ((GameException.anInt2231 ^ 0xffffffff) == -31 + || GameException.anInt2231 == 25) { Class75_Sub2.anInt3313++; if (Class75_Sub2.anInt3313 >= 50 || bool) { Class75_Sub2.anInt3313 = 0; diff --git a/client508/src/Class17.java b/client508/src/Class17.java index ded7814..9149fb5 100644 --- a/client508/src/Class17.java +++ b/client508/src/Class17.java @@ -24,8 +24,8 @@ public class Class17 { aBoolean284 = true; } anInt282++; - if (i != RuntimeException_Sub1.anInt2231) { - if (RuntimeException_Sub1.anInt2231 == 0) { + if (i != GameException.anInt2231) { + if (GameException.anInt2231 == 0) { Class68_Sub20_Sub2.method1044((byte) -79); } if ((i ^ 0xffffffff) == -41) { @@ -51,7 +51,7 @@ public class Class17 { } else { Class13_Sub1.method253(20); } - boolean bool_1_ = (RuntimeException_Sub1.anInt2231 == 5 || (RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -11 || (RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -29); + boolean bool_1_ = (GameException.anInt2231 == 5 || (GameException.anInt2231 ^ 0xffffffff) == -11 || (GameException.anInt2231 ^ 0xffffffff) == -29); if (!bool_1_ != !bool) { if (bool) { Class101.anInt1745 = Class68_Sub13_Sub15.anInt3681; @@ -69,7 +69,7 @@ public class Class17 { Class50.method530(true, false); } } - RuntimeException_Sub1.anInt2231 = i; + GameException.anInt2231 = i; } } diff --git a/client508/src/Class1_Sub5.java b/client508/src/Class1_Sub5.java index 591d67b..3ff5688 100644 --- a/client508/src/Class1_Sub5.java +++ b/client508/src/Class1_Sub5.java @@ -213,7 +213,7 @@ public class Class1_Sub5 extends Animable Login.aClass113_1512 .method1678((long) class45.anInt792, -63)); if (class68_sub3 != null) - RuntimeException_Sub1 + GameException .method1796(113, class68_sub3.anInt2803, i); } if ((i ^ 0xffffffff) == -1 diff --git a/client508/src/Class1_Sub6_Sub1.java b/client508/src/Class1_Sub6_Sub1.java index 8b6e1a8..6b7fe09 100644 --- a/client508/src/Class1_Sub6_Sub1.java +++ b/client508/src/Class1_Sub6_Sub1.java @@ -37,7 +37,7 @@ public class Class1_Sub6_Sub1 extends Class1_Sub6 if (Class68_Sub20_Sub13_Sub2.aBoolean4629 && class80.aBoolean1448) { Class1_Sub3 class1_sub3_8_ - = (RuntimeException_Sub1.method1793 + = (GameException.method1793 (anInt2537, i, anInt2582, class1_sub3, class117_7_ == null ? anInt2522 : anInt2555, class117_7_ != null ? class117_7_ : class117, diff --git a/client508/src/Class1_Sub6_Sub2.java b/client508/src/Class1_Sub6_Sub2.java index 2abe8d0..e424451 100644 --- a/client508/src/Class1_Sub6_Sub2.java +++ b/client508/src/Class1_Sub6_Sub2.java @@ -249,7 +249,7 @@ public class Class1_Sub6_Sub2 extends Class1_Sub6 || (Class68_Sub13_Sub11.method753 (aClass126_3410.anInt2201, -103).aBoolean1448))) { Class1_Sub3 class1_sub3_40_ - = (RuntimeException_Sub1.method1793 + = (GameException.method1793 (anInt2537, i, anInt2582, class1_sub3, class117_39_ != null ? anInt2555 : anInt2522, class117_39_ != null ? class117_39_ : class117, diff --git a/client508/src/Class20.java b/client508/src/Class20.java index 34550cc..ef12d11 100644 --- a/client508/src/Class20.java +++ b/client508/src/Class20.java @@ -60,7 +60,7 @@ public class Class20 anInt410++; Class68_Sub6.aClass68_Sub20_Sub1_2847 = Class90.method1509(class21, 0, (byte) 58, class21_0_, - RuntimeException_Sub1.anInt2241); + GameException.anInt2241); Class68_Sub13_Sub4.aClass68_Sub20_Sub1_3511 = Class90.method1509(class21, 0, (byte) 67, class21_0_, Class50.anInt986); diff --git a/client508/src/Class21_Sub1.java b/client508/src/Class21_Sub1.java index d981545..b058271 100644 --- a/client508/src/Class21_Sub1.java +++ b/client508/src/Class21_Sub1.java @@ -51,7 +51,7 @@ public class Class21_Sub1 extends Class21renamed if (is == null || is.length <= 2) { aBooleanArray2717[i_1_] = false; if (aBoolean2704 || bool) - RuntimeException_Sub1.method1798(bool, + GameException.method1798(bool, anIntArray468[i_1_], anInt2697, (byte) 2, i_1_, this, @@ -67,7 +67,7 @@ public class Class21_Sub1 extends Class21renamed || i_3_ != anIntArray474[i_1_]) { aBooleanArray2717[i_1_] = false; if (aBoolean2704 || bool) - RuntimeException_Sub1.method1798(bool, + GameException.method1798(bool, anIntArray468[i_1_], anInt2697, (byte) 2, i_1_, this, @@ -82,7 +82,7 @@ public class Class21_Sub1 extends Class21renamed if (aBoolean2696) throw new RuntimeException(); if (is == null) { - RuntimeException_Sub1.method1798(true, anInt2701, 255, + GameException.method1798(true, anInt2701, 255, (byte) 0, anInt2697, this, (byte) 22); return; @@ -91,7 +91,7 @@ public class Class21_Sub1 extends Class21renamed PacketParser.aCRC32_1872.update(is, 0, is.length); int i_4_ = (int) PacketParser.aCRC32_1872.getValue(); if ((anInt2701 ^ 0xffffffff) != (i_4_ ^ 0xffffffff)) { - RuntimeException_Sub1.method1798(true, anInt2701, 255, + GameException.method1798(true, anInt2701, 255, (byte) 0, anInt2697, this, (byte) 22); return; @@ -101,14 +101,14 @@ public class Class21_Sub1 extends Class21renamed class68_sub14 = new Stream(RSString.method1612(is, true)); } catch (RuntimeException runtimeexception) { - RuntimeException_Sub1.method1798(true, anInt2701, 255, + GameException.method1798(true, anInt2701, 255, (byte) 0, anInt2697, this, (byte) 22); return; } int i_5_ = class68_sub14.readUnsignedByte(-6677); if ((i_5_ ^ 0xffffffff) != -6 && i_5_ != 6) { - RuntimeException_Sub1.method1798(true, anInt2701, 255, + GameException.method1798(true, anInt2701, 255, (byte) 0, anInt2697, this, (byte) 22); return; @@ -117,7 +117,7 @@ public class Class21_Sub1 extends Class21renamed if (i_5_ >= 6) i_6_ = class68_sub14.readDWord(); if ((i_6_ ^ 0xffffffff) != (anInt2708 ^ 0xffffffff)) { - RuntimeException_Sub1.method1798(true, anInt2701, 255, + GameException.method1798(true, anInt2701, 255, (byte) 0, anInt2697, this, (byte) 22); return; @@ -205,7 +205,7 @@ public class Class21_Sub1 extends Class21renamed if (aUnknown_2713 != null) Class60.method586(aUnknown_2713, this, 1, anInt2697); else - RuntimeException_Sub1.method1798(true, anInt2701, 255, (byte) 0, + GameException.method1798(true, anInt2701, 255, (byte) 0, anInt2697, this, (byte) 22); if (i_15_ <= 76) aLongArray2703 = null; @@ -340,7 +340,7 @@ public class Class21_Sub1 extends Class21renamed if (this.method346(i_61_, 0)) { if (aUnknown_2699 == null || aBooleanArray2717 == null || !aBooleanArray2717[i_61_]) - RuntimeException_Sub1.method1798(true, anIntArray468[i_61_], + GameException.method1798(true, anIntArray468[i_61_], anInt2697, (byte) 2, i_61_, this, (byte) 22); else diff --git a/client508/src/Class21renamed.java b/client508/src/Class21renamed.java index 1181c62..9397cdd 100644 --- a/client508/src/Class21renamed.java +++ b/client508/src/Class21renamed.java @@ -690,7 +690,7 @@ public abstract class Class21renamed Class103.anInt1774 = 0; Class68_Sub13_Sub21.anInt3798 = 0; Animable.anInt55 = 0; - RuntimeException_Sub1.anInt2245 = 0; + GameException.anInt2245 = 0; Class1_Sub7.anInt2615 = 0; Class68_Sub13_Sub37.anInt4074 = 0; Class68_Sub17.anInt3032 = 0; @@ -880,7 +880,7 @@ public abstract class Class21renamed Class11.anInt189 = 0; Class112.anInt1882 = 0; Stream.anInt2986 = 0; - RuntimeException_Sub1.anInt2234 = 0; + GameException.anInt2234 = 0; Class72_Sub1.anInt3270 = 0; Class75_Sub1_Sub1.anInt4576 = 0; Stream.anInt2997 = 0; @@ -1153,7 +1153,7 @@ public abstract class Class21renamed anInt460 = 0; PacketParser.anInt1873 = 0; Class68_Sub9.anInt2899 = 0; - RuntimeException_Sub1.anInt2235 = 0; + GameException.anInt2235 = 0; Class36.anInt645 = 0; Class9.anInt171 = 0; Class68_Sub13_Sub11.anInt3607 = 0; @@ -1222,7 +1222,7 @@ public abstract class Class21renamed Class68_Sub13_Sub19.anInt3751 = 0; Class44.anInt751 = 0; Class53.anInt1021 = 0; - RuntimeException_Sub1.anInt2237 = 0; + GameException.anInt2237 = 0; Class68_Sub13_Sub8.anInt3562 = 0; Class1_Sub7.anInt2610 = 0; Class68_Sub13_Sub9.anInt3573 = 0; @@ -1278,7 +1278,7 @@ public abstract class Class21renamed Class45.anInt809 = 0; Class68_Sub20_Sub6.anInt4238 = 0; Class68_Sub13_Sub15.anInt3693 = 0; - RuntimeException_Sub1.anInt2233 = 0; + GameException.anInt2233 = 0; Class30.anInt547 = 0; Class71.anInt1295 = 0; Class116.anInt2001 = 0; @@ -1698,7 +1698,7 @@ public abstract class Class21renamed Class68_Sub28_Sub1.anInt4486 = 0; Class13_Sub4.anInt2684 = 0; Class32.anInt561 = 0; - RuntimeException_Sub1.anInt2242 = 0; + GameException.anInt2242 = 0; Class68_Sub29.anInt3245 = 0; Class68_Sub13_Sub36.anInt4045 = 0; Class11.anInt190 = 0; @@ -1740,7 +1740,7 @@ public abstract class Class21renamed Class72_Sub1.anInt3280 = 0; Class86.anInt1581 = 0; Class68_Sub20_Sub13.anInt4356 = 0; - RuntimeException_Sub1.anInt2238 = 0; + GameException.anInt2238 = 0; Class68_Sub6.anInt2837 = 0; Class105.anInt1796 = 0; Class68_Sub13_Sub20.anInt3762 = 0; diff --git a/client508/src/Class32.java b/client508/src/Class32.java index 285ee4f..d5ea91c 100644 --- a/client508/src/Class32.java +++ b/client508/src/Class32.java @@ -72,7 +72,7 @@ public class Class32 Class71.method1340(-1, i_2_); int i_5_ = -12 / ((i_3_ - 65) / 56); if (Class68_Sub13_Sub10.anInt3595 != -1) - RuntimeException_Sub1.method1796(99, Class68_Sub13_Sub10.anInt3595, + GameException.method1796(99, Class68_Sub13_Sub10.anInt3595, 1); return class68_sub3; } diff --git a/client508/src/Class35.java b/client508/src/Class35.java index 2bd6258..a50accd 100644 --- a/client508/src/Class35.java +++ b/client508/src/Class35.java @@ -187,7 +187,7 @@ public class Class35 != (i_15_ ^ 0xffffffff))) { Sprite sprite = new Sprite(i_16_, i_15_); - Class79.method1432(sprite.anIntArray4615, + Class79.method1432(sprite.pixels, i_16_, i_15_); Class68_Sub29.method1323(0, 0, Class103.anInt1768, 0, 0, i_16_, 1391070128, i_15_, @@ -404,7 +404,7 @@ public class Class35 anInt607++; Class113.anInt1912 = class21.method335(Class90.aRSString_2355, (byte) -103); - RuntimeException_Sub1.anInt2241 + GameException.anInt2241 = class21.method335(Class7.aRSString_123, (byte) -117); Class50.anInt986 = class21.method335(Class37.aRSString_650, (byte) -112); diff --git a/client508/src/Class43.java b/client508/src/Class43.java index dda6c0b..0baf256 100644 --- a/client508/src/Class43.java +++ b/client508/src/Class43.java @@ -67,7 +67,7 @@ public class Class43 Class84.method1476(i + 96, null); Class90.anIntArray2345 = new int[32768]; Class68_Sub20.anIntArray3090 = new int[32768]; - RuntimeException_Sub1.aSprite_2246 + GameException.aSprite_2246 = new Sprite(128, 254); } diff --git a/client508/src/Class49.java b/client508/src/Class49.java index b883070..ed0ea5a 100644 --- a/client508/src/Class49.java +++ b/client508/src/Class49.java @@ -80,7 +80,7 @@ public class Class49 { Class88.anInt1602++; } if (Class68_Sub13_Sub27.anInt3914 == 1) { - Class13_Sub2.aClass31_2657 = (Class75_Sub1_Sub1.aSignLink_4589.newJagSocket(Class68_Sub9.serverAddress, (byte) 113, Class103.port)); + Class13_Sub2.aClass31_2657 = (Class75_Sub1_Sub1.signlink.newJagSocket(Class68_Sub9.serverAddress, (byte) 113, Class103.port)); Class68_Sub13_Sub27.anInt3914 = 2; } if ((Class68_Sub13_Sub27.anInt3914 ^ 0xffffffff) == -3) { @@ -89,7 +89,7 @@ public class Class49 { if (Class13_Sub2.aClass31_2657.anInt555 != 1) return; PlayerDefinition.connection = new GameSocket(((Socket) Class13_Sub2.aClass31_2657.playerDefSocket), - Class75_Sub1_Sub1.aSignLink_4589); + Class75_Sub1_Sub1.signlink); Class13_Sub2.aClass31_2657 = null; PlayerDefinition.connection.queueBytes( Class21renamed.stream.currentOffset, diff --git a/client508/src/Class58.java b/client508/src/Class58.java index 92bb6a0..31c4c0e 100644 --- a/client508/src/Class58.java +++ b/client508/src/Class58.java @@ -365,7 +365,7 @@ public class Class58 if (Class76.aClass52_1354 != null) break; Class76.aClass52_1354 - = new Class52(Class75_Sub1_Sub1.aSignLink_4589, + = new Class52(Class75_Sub1_Sub1.signlink, Class68_Sub20_Sub13_Sub2.method1166 (2, (new RSString[] { Class88.method1492(-1), diff --git a/client508/src/Class59.java b/client508/src/Class59.java index d8a113c..4f288af 100644 --- a/client508/src/Class59.java +++ b/client508/src/Class59.java @@ -46,7 +46,7 @@ public class Class59 aRSString_1112 = Class112.method1668(43, "mapdots"); anInt1109 = 0; aRSString_1108 = aRSString_1110; - aRSString_1111 = Class112.method1668(43, "Clientscript error in: "); + aRSString_1111 = Class112.method1668(43, "Clientscript error_fatal in: "); aShortArray1107 = new short[] { -4160, -4163, -8256, -8259, 22461 }; } } diff --git a/client508/src/Class68_Sub13.java b/client508/src/Class68_Sub13.java index d6dbcde..ff694d3 100644 --- a/client508/src/Class68_Sub13.java +++ b/client508/src/Class68_Sub13.java @@ -66,7 +66,7 @@ public abstract class Class68_Sub13 extends Class68 if (i_0_ < 118) aClass92_Sub1Array2921 = null; Class68_Sub13_Sub11.anInt3620 = i; - RuntimeException_Sub1.aClass21_2236 = null; + GameException.aClass21_2236 = null; } public int method693(byte i) { diff --git a/client508/src/Class68_Sub13_Sub10.java b/client508/src/Class68_Sub13_Sub10.java index 4c5f287..cf465c1 100644 --- a/client508/src/Class68_Sub13_Sub10.java +++ b/client508/src/Class68_Sub13_Sub10.java @@ -154,7 +154,7 @@ public class Class68_Sub13_Sub10 extends Class68_Sub13 Class68_Sub13_Sub15.anInt3687, Class33.anInt588, (byte) -107); if (anInt3595 != -1) - RuntimeException_Sub1.method1796(116, anInt3595, 1); + GameException.method1796(116, anInt3595, 1); } static { diff --git a/client508/src/Class68_Sub13_Sub11.java b/client508/src/Class68_Sub13_Sub11.java index 2ee6a7a..f08ec12 100644 --- a/client508/src/Class68_Sub13_Sub11.java +++ b/client508/src/Class68_Sub13_Sub11.java @@ -128,15 +128,15 @@ public class Class68_Sub13_Sub11 extends Class68_Sub13 public static void method747(RSString class100, byte i) { anInt3624++; Class26.aRSString_521 = class100; - if (Class75_Sub1_Sub1.aSignLink_4589.anApplet1042 != null) { + if (Class75_Sub1_Sub1.signlink.anApplet1042 != null) { try { RSString class100_19_ = (Class68_Sub13_Sub7.aRSString_3551.method1610 - (Class75_Sub1_Sub1.aSignLink_4589.anApplet1042, + (Class75_Sub1_Sub1.signlink.anApplet1042, (byte) -31)); RSString class100_20_ = (Class68_Sub13_Sub16.aRSString_3694.method1610 - (Class75_Sub1_Sub1.aSignLink_4589.anApplet1042, + (Class75_Sub1_Sub1.signlink.anApplet1042, (byte) -31)); RSString class100_21_ = (Class68_Sub20_Sub13_Sub2.method1166 @@ -168,7 +168,7 @@ public class Class68_Sub13_Sub11 extends Class68_Sub13 Class68_Sub20.aRSString_3091 }) .method1599 ((byte) -45, - Class75_Sub1_Sub1.aSignLink_4589.anApplet1042); + Class75_Sub1_Sub1.signlink.anApplet1042); } catch (Throwable throwable) { /* empty */ } @@ -391,7 +391,7 @@ public class Class68_Sub13_Sub11 extends Class68_Sub13 if (class48 != null) return class48; byte[] is = (Class66.aClass21_1203.method338 - (RuntimeException_Sub1.method1795(i_51_, 72), i ^ 0x51, + (GameException.method1795(i_51_, 72), i ^ 0x51, Class68_Sub20_Sub8.method1094(i_51_, 654593194))); class48 = new Class48(); if (is != null) diff --git a/client508/src/Class68_Sub13_Sub13.java b/client508/src/Class68_Sub13_Sub13.java index b48e92e..8197eba 100644 --- a/client508/src/Class68_Sub13_Sub13.java +++ b/client508/src/Class68_Sub13_Sub13.java @@ -67,7 +67,7 @@ public class Class68_Sub13_Sub13 extends Class68_Sub13 = new Sprite(36, 32); if (i_0_ > -123) method759(-88, 64); - Class79.method1432(sprite_11_.anIntArray4615, 36, + Class79.method1432(sprite_11_.pixels, 36, 32); Class62.method612(); Class62.method603(16, 16); @@ -91,14 +91,14 @@ public class Class68_Sub13_Sub13 extends Class68_Sub13 sprite_11_.method1118(1); if ((i_3_ ^ 0xffffffff) <= -3) sprite_11_.method1118(16777215); - Class79.method1432(sprite_11_.anIntArray4615, 36, + Class79.method1432(sprite_11_.pixels, 36, 32); } if ((i ^ 0xffffffff) != -1) sprite_11_.method1123(i); if ((class19.anInt385 ^ 0xffffffff) == 0) { if ((class19.anInt339 ^ 0xffffffff) != 0) { - Class79.method1432(sprite.anIntArray4615, 36, + Class79.method1432(sprite.pixels, 36, 32); sprite_11_.method1103(0, 0); sprite_11_ = sprite; @@ -198,7 +198,7 @@ public class Class68_Sub13_Sub13 extends Class68_Sub13 Class70.anInt1287 = 1; anInt3653++; if (i == 16777215) - RuntimeException_Sub1.aClass21_2236 = null; + GameException.aClass21_2236 = null; } public boolean method761(int i) { diff --git a/client508/src/Class68_Sub13_Sub19.java b/client508/src/Class68_Sub13_Sub19.java index 6c51496..7b5f103 100644 --- a/client508/src/Class68_Sub13_Sub19.java +++ b/client508/src/Class68_Sub13_Sub19.java @@ -301,7 +301,7 @@ public class Class68_Sub13_Sub19 extends Class68_Sub13 = (Class68_Sub20_Sub13_Sub2.method1166 (2, (new RSString[] - { RuntimeException_Sub1.aRSString_2232, + { GameException.aRSString_2232, class93.aRSString_1670, Class68_Sub20_Sub11.aRSString_4333, class100, Class13_Sub1.aRSString_2624, diff --git a/client508/src/Class68_Sub13_Sub26.java b/client508/src/Class68_Sub13_Sub26.java index 6257928..daab018 100644 --- a/client508/src/Class68_Sub13_Sub26.java +++ b/client508/src/Class68_Sub13_Sub26.java @@ -87,7 +87,7 @@ public class Class68_Sub13_Sub26 extends Class68_Sub13 64); sprite.method1129(); anInt3882 = sprite.anInt4309; - anIntArray3872 = sprite.anIntArray4615; + anIntArray3872 = sprite.pixels; anInt3881 = sprite.anInt4311; return true; } diff --git a/client508/src/Class68_Sub13_Sub33.java b/client508/src/Class68_Sub13_Sub33.java index 5ed055e..511a9c7 100644 --- a/client508/src/Class68_Sub13_Sub33.java +++ b/client508/src/Class68_Sub13_Sub33.java @@ -72,7 +72,7 @@ public class Class68_Sub13_Sub33 extends Class68_Sub13 i_21_++) { if (i_20_ == Class119.anIntArray2089[i_21_] && is[i_21_] != null) { - RuntimeException_Sub1.method1797 + GameException.method1797 (i_12_, bool, 8 * (0x7 & i_19_), 8 * i_13_, i_17_, (i_18_ & 0x7) * 8, is[i_21_], i_16_, diff --git a/client508/src/Class68_Sub13_Sub34.java b/client508/src/Class68_Sub13_Sub34.java index dd2e1f2..c47c4b9 100644 --- a/client508/src/Class68_Sub13_Sub34.java +++ b/client508/src/Class68_Sub13_Sub34.java @@ -144,7 +144,7 @@ public class Class68_Sub13_Sub34 extends Class68_Sub13 if ((Class70.anInt1287 ^ 0xffffffff) == -3) { if (client.aClass68_Sub12_2379 == null) { client.aClass68_Sub12_2379 - = Class68_Sub12.method686((RuntimeException_Sub1 + = Class68_Sub12.method686((GameException .aClass21_2236), (Class68_Sub20_Sub15 .anInt4403), @@ -165,7 +165,7 @@ public class Class68_Sub13_Sub34 extends Class68_Sub13 Class1_Sub2.aClass68_Sub28_Sub1_2433.method1259 (Class52.aBoolean998, true, client.aClass68_Sub12_2379); - RuntimeException_Sub1.aClass21_2236 = null; + GameException.aClass21_2236 = null; client.aClass68_Sub12_2379 = null; Class70.anInt1287 = 0; Class93.aClass14_1667 = null; @@ -175,7 +175,7 @@ public class Class68_Sub13_Sub34 extends Class68_Sub13 } catch (Exception exception) { exception.printStackTrace(); Class1_Sub2.aClass68_Sub28_Sub1_2433.method1249(73); - RuntimeException_Sub1.aClass21_2236 = null; + GameException.aClass21_2236 = null; client.aClass68_Sub12_2379 = null; Class70.anInt1287 = 0; Class93.aClass14_1667 = null; diff --git a/client508/src/Class68_Sub13_Sub37.java b/client508/src/Class68_Sub13_Sub37.java index ab3493e..f9ed572 100644 --- a/client508/src/Class68_Sub13_Sub37.java +++ b/client508/src/Class68_Sub13_Sub37.java @@ -261,7 +261,7 @@ public class Class68_Sub13_Sub37 extends Class68_Sub13 if ((class100.method1590((byte) -97) ^ 0xffffffff) < -7) return (Class68_Sub20_Sub13_Sub2.method1166 (2, (new RSString[] - { RuntimeException_Sub1.aRSString_2240, + { GameException.aRSString_2240, class100.method1607(0, (byte) -74, (class100.method1590((byte) -99) + -4)), diff --git a/client508/src/Class68_Sub13_Sub38.java b/client508/src/Class68_Sub13_Sub38.java index 1945311..4b9c747 100644 --- a/client508/src/Class68_Sub13_Sub38.java +++ b/client508/src/Class68_Sub13_Sub38.java @@ -117,7 +117,7 @@ public class Class68_Sub13_Sub38 extends Class68_Sub13 public static void method899(int i, Class21renamed class21, boolean bool, int i_10_, int i_11_, boolean bool_12_) { - RuntimeException_Sub1.aClass21_2236 = class21; + GameException.aClass21_2236 = class21; Class70.anInt1287 = 1; Class68_Sub13_Sub11.anInt3620 = 10000; Class68_Sub20_Sub15.anInt4403 = i; diff --git a/client508/src/Class68_Sub13_Sub7.java b/client508/src/Class68_Sub13_Sub7.java index 5ac7250..610a287 100644 --- a/client508/src/Class68_Sub13_Sub7.java +++ b/client508/src/Class68_Sub13_Sub7.java @@ -132,7 +132,7 @@ public class Class68_Sub13_Sub7 extends Class68_Sub13 int i_5_ = 0; if (class21.method360(Class113.anInt1912, 0)) i_5_++; - if (class21.method360(RuntimeException_Sub1.anInt2241, 0)) + if (class21.method360(GameException.anInt2241, 0)) i_5_++; if (class21.method360(Class50.anInt986, 0)) i_5_++; @@ -140,7 +140,7 @@ public class Class68_Sub13_Sub7 extends Class68_Sub13 i_5_++; if (i < 43) method726((byte) -13, null); - if (class21_4_.method360(RuntimeException_Sub1.anInt2241, 0)) + if (class21_4_.method360(GameException.anInt2241, 0)) i_5_++; if (class21_4_.method360(Class50.anInt986, 0)) i_5_++; diff --git a/client508/src/Class68_Sub13_Sub9.java b/client508/src/Class68_Sub13_Sub9.java index 5724143..1f8cbe6 100644 --- a/client508/src/Class68_Sub13_Sub9.java +++ b/client508/src/Class68_Sub13_Sub9.java @@ -160,7 +160,7 @@ public class Class68_Sub13_Sub9 extends Class68_Sub13 Class1_Sub2.aClass68_Sub28_Sub1_2433.method1249(98); Class1_Sub2.aClass68_Sub28_Sub1_2433.method1246(true); client.aClass68_Sub12_2379 = null; - if (RuntimeException_Sub1.aClass21_2236 != null) + if (GameException.aClass21_2236 != null) Class70.anInt1287 = 2; else Class70.anInt1287 = 0; @@ -175,7 +175,7 @@ public class Class68_Sub13_Sub9 extends Class68_Sub13 client.aClass68_Sub12_2379 = null; Class93.aClass14_1667 = null; Class70.anInt1287 = 0; - RuntimeException_Sub1.aClass21_2236 = null; + GameException.aClass21_2236 = null; break; } break; diff --git a/client508/src/Class68_Sub17.java b/client508/src/Class68_Sub17.java index 0562901..1cba4f3 100644 --- a/client508/src/Class68_Sub17.java +++ b/client508/src/Class68_Sub17.java @@ -26,12 +26,12 @@ public class Class68_Sub17 extends Class68 method991(-70, false, 8, -46, 86); Class68_Sub13_Sub36.method887(22050, 2, Class74.aBoolean1324, 81); Class68_Sub13_Sub36.aClass35_4035 - = Class55.method1717(Class75_Sub1_Sub1.aSignLink_4589, (byte) 104, + = Class55.method1717(Class75_Sub1_Sub1.signlink, (byte) 104, Class86.aCanvas1585, 22050, 0); Class68_Sub13_Sub36.aClass35_4035 .method425(false, Class54.aClass68_Sub28_Sub1_1028); Animable.aClass35_66 - = Class55.method1717(Class75_Sub1_Sub1.aSignLink_4589, (byte) 104, + = Class55.method1717(Class75_Sub1_Sub1.signlink, (byte) 104, Class86.aCanvas1585, 2048, 1); Animable.aClass35_66.method425(false, Class80.aClass68_Sub28_Sub4_1418); } diff --git a/client508/src/Class68_Sub20_Sub11.java b/client508/src/Class68_Sub20_Sub11.java index 0f81b99..cf332f9 100644 --- a/client508/src/Class68_Sub20_Sub11.java +++ b/client508/src/Class68_Sub20_Sub11.java @@ -46,7 +46,7 @@ public class Class68_Sub20_Sub11 extends Class68_Sub20 anInt4329++; synchronized (Class63.anObject1169) { if (Class9.anInt169 == 0) - Class75_Sub1_Sub1.aSignLink_4589.method558((byte) -58, 5, + Class75_Sub1_Sub1.signlink.method558((byte) -58, 5, new Class87()); Class9.anInt169 = i; } diff --git a/client508/src/Class68_Sub20_Sub5.java b/client508/src/Class68_Sub20_Sub5.java index 5d2403f..c215103 100644 --- a/client508/src/Class68_Sub20_Sub5.java +++ b/client508/src/Class68_Sub20_Sub5.java @@ -68,6 +68,6 @@ public class Class68_Sub20_Sub5 extends Class68_Sub20 anInt4225 = 0; anInt4229 = 0; aRSString_4228 = (Class112.method1668 - (43, "Clientscript error )2 check log for details")); + (43, "Clientscript error_fatal )2 check log for details")); } } diff --git a/client508/src/Class68_Sub20_Sub8.java b/client508/src/Class68_Sub20_Sub8.java index e81a1ca..0c2e920 100644 --- a/client508/src/Class68_Sub20_Sub8.java +++ b/client508/src/Class68_Sub20_Sub8.java @@ -148,7 +148,7 @@ public class Class68_Sub20_Sub8 extends Class68_Sub20 } if ((i_7_ ^ 0xffffffff) == -8) { Class21renamed.stream.createFrame(152); - RuntimeException_Sub1.anInt2242++; + GameException.anInt2242++; Class21renamed.stream.writeWordBigEndianA((byte) 19, i_9_); Class21renamed.stream.writeWordA(i_8_, -49); Class21renamed.stream.writeDWord_v1((byte) -102, i_6_); @@ -689,7 +689,7 @@ public class Class68_Sub20_Sub8 extends Class68_Sub20 Class21renamed.stream.createFrame(113); Class21renamed.stream.writeDWord( i_6_); - RuntimeException_Sub1.anInt2235++; + GameException.anInt2235++; Class45 class45 = Class68_Sub20_Sub15.method1170(i_6_, (byte) -80); if (class45.anIntArrayArray908 != null @@ -811,7 +811,7 @@ public class Class68_Sub20_Sub8 extends Class68_Sub20 } int i_11_ = -68 % ((i - -6) / 56); if ((i_7_ ^ 0xffffffff) == -29) { - RuntimeException_Sub1.anInt2235++; + GameException.anInt2235++; Class21renamed.stream.createFrame(113); Class21renamed.stream.writeDWord( i_6_); @@ -1083,7 +1083,7 @@ public class Class68_Sub20_Sub8 extends Class68_Sub20 if ((class45.anInt808 ^ 0xffffffff) < -1) bool = Class54.method554(class45, 29905); if (bool) { - RuntimeException_Sub1.anInt2235++; + GameException.anInt2235++; Class21renamed.stream.createFrame(113); Class21renamed.stream .writeDWord( i_6_); diff --git a/client508/src/Class68_Sub28_Sub1.java b/client508/src/Class68_Sub28_Sub1.java index 96d0626..3591b4a 100644 --- a/client508/src/Class68_Sub28_Sub1.java +++ b/client508/src/Class68_Sub28_Sub1.java @@ -2222,7 +2222,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { int i_225_ = Class68_Sub13.anIntArray2924[--i_85_]; RSString password = Class68_Sub15.stringArray[1 + i_89_]; RSString username = Class68_Sub15.stringArray[i_89_]; - if (RuntimeException_Sub1.anInt2231 == 10) { + if (GameException.anInt2231 == 10) { if (Class32.anInt574 == 0 && Class68_Sub13_Sub27.anInt3914 == 0) { Class16.method283(password, i ^ 0x4a, username, i_225_); } @@ -2241,7 +2241,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { } if ((i_87_ ^ 0xffffffff) == -5604) { i_85_ -= 4; - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -11) { + if ((GameException.anInt2231 ^ 0xffffffff) == -11) { if ((Class32.anInt574 ^ 0xffffffff) == -1 && (Class68_Sub13_Sub27.anInt3914 ^ 0xffffffff) == -1) { Class97.method1560(Class68_Sub13.anIntArray2924[i_85_], Class68_Sub13.anIntArray2924[1 + i_85_], true, Class68_Sub13.anIntArray2924[2 + i_85_], Class68_Sub13.anIntArray2924[3 + i_85_]); } @@ -2250,7 +2250,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { } if (i_87_ == 5604) { i_89_--; - if (RuntimeException_Sub1.anInt2231 == 10) { + if (GameException.anInt2231 == 10) { if ((Class32.anInt574 ^ 0xffffffff) == -1 && (Class68_Sub13_Sub27.anInt3914 ^ 0xffffffff) == -1) { ISAACRandomGen.method1456(-3, Class68_Sub15.stringArray[i_89_].toLong(10908)); } @@ -2260,7 +2260,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { if (i_87_ == 5605) { i_89_ -= 2; i_85_ -= 4; - if (RuntimeException_Sub1.anInt2231 == 10) { + if (GameException.anInt2231 == 10) { if ((Class32.anInt574 ^ 0xffffffff) == -1 && (Class68_Sub13_Sub27.anInt3914 ^ 0xffffffff) == -1) { Class74.method1384(Class68_Sub15.stringArray[i_89_].toLong(i ^ 0x2ae0), Class68_Sub13.anIntArray2924[i_85_], i ^ 0x28, Class68_Sub13.anIntArray2924[1 + i_85_], Class68_Sub15.stringArray[i_89_ + 1], Class68_Sub13.anIntArray2924[3 + i_85_], Class68_Sub13.anIntArray2924[i_85_ + 2]); } @@ -2557,7 +2557,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { Class62.method614(0.6F); } Class68_Sub19.method1001((byte) -67); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2566,52 +2566,52 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { Class59.method585((byte) 51); client.method34((byte) -68); Class107.method1654(-13401); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6003) { Class68_Sub20_Sub2.aBoolean4188 = Class68_Sub13.anIntArray2924[--i_85_] == 1; Class107.method1654(i + -13525); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6005) { ISAACRandomGen.aBoolean1487 = Class68_Sub13.anIntArray2924[--i_85_] == 1; client.method34((byte) -120); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6006) { Class1_Sub2.aBoolean2432 = Class68_Sub13.anIntArray2924[--i_85_] == 1; ((Class90) Class62.anInterface4_1159).method1518((byte) -97, !Class1_Sub2.aBoolean2432); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6007) { RSString.aBoolean2262 = Class68_Sub13.anIntArray2924[--i_85_] == 1; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6008) { Class68_Sub13_Sub2.aBoolean3460 = Class68_Sub13.anIntArray2924[--i_85_] == 1; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6009) { Class68_Sub22.aBoolean3149 = (Class68_Sub13.anIntArray2924[--i_85_] ^ 0xffffffff) == -2; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if ((i_87_ ^ 0xffffffff) == -6011) { Class68_Sub20_Sub13_Sub2.aBoolean4629 = (Class68_Sub13.anIntArray2924[--i_85_] ^ 0xffffffff) == -2; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2621,7 +2621,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { i_235_ = 0; } Class68_Sub13_Sub26.anInt3876 = i_235_; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2640,19 +2640,19 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { Class62.method614(0.6F); } client.method34((byte) -103); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6014) { Class68_Sub6.aBoolean2838 = (Class68_Sub13.anIntArray2924[--i_85_] ^ 0xffffffff) == -2; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if ((i_87_ ^ 0xffffffff) == -6016) { Class43.aBoolean741 = (Class68_Sub13.anIntArray2924[--i_85_] ^ 0xffffffff) == -2; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2662,14 +2662,14 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { i_236_ = 0; } Class69.anInt1245 = i_236_; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } if (i_87_ == 6017) { Class74.aBoolean1324 = (Class68_Sub13.anIntArray2924[--i_85_] ^ 0xffffffff) == -2; Class68_Sub17.method990((byte) 124); - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2682,7 +2682,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { i_237_ = 127; } Class106.anInt1801 = i_237_; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2706,7 +2706,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { } Class68_Sub13_Sub25.anInt3855 = i_238_; } - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2719,7 +2719,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { i_239_ = 127; } Class68_Sub20_Sub15.anInt4399 = i_239_; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class108.aBoolean1830 = false; break; } @@ -2730,7 +2730,7 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { } if (i_87_ == 6022) { Class68_Sub13_Sub21.aBoolean3793 = (Class68_Sub13.anIntArray2924[--i_85_] ^ 0xffffffff) == -2; - Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.aSignLink_4589); + Class68_Sub20_Sub10.method1115(true, Class75_Sub1_Sub1.signlink); Class11.method233(0, -97); break; } @@ -2825,9 +2825,9 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { } else if (class100_245_.method1589(Class97.aRSString_1719, i + -96)) { class100 = class100.method1615(Class97.aRSString_1719.method1590((byte) -108), true); i_246_ = 8; - } else if (class100_245_.method1589(RuntimeException_Sub1.aRSString_2230, 109)) { + } else if (class100_245_.method1589(GameException.aRSString_2230, 109)) { i_246_ = 9; - class100 = class100.method1615(RuntimeException_Sub1.aRSString_2230.method1590((byte) -103), true); + class100 = class100.method1615(GameException.aRSString_2230.method1590((byte) -103), true); } else if (class100_245_.method1589(Class124.aRSString_2143, 42)) { i_246_ = 10; class100 = class100.method1615(Class124.aRSString_2143.method1590((byte) -96), true); @@ -2856,9 +2856,9 @@ public class Class68_Sub28_Sub1 extends Class68_Sub28 { } else if (class100_245_.method1589(Class97.aRSString_1716, 66)) { class100 = class100.method1615(Class97.aRSString_1716.method1590((byte) -98), true); i_246_ = 8; - } else if (class100_245_.method1589(RuntimeException_Sub1.aRSString_2243, i + -73)) { + } else if (class100_245_.method1589(GameException.aRSString_2243, i + -73)) { i_246_ = 9; - class100 = class100.method1615(RuntimeException_Sub1.aRSString_2243.method1590((byte) -103), true); + class100 = class100.method1615(GameException.aRSString_2243.method1590((byte) -103), true); } else if (class100_245_.method1589(Class124.aRSString_2163, i ^ 0x5)) { class100 = class100.method1615(Class124.aRSString_2163.method1590((byte) -120), true); i_246_ = 10; diff --git a/client508/src/Class68_Sub4.java b/client508/src/Class68_Sub4.java index d0a6f5c..439ad50 100644 --- a/client508/src/Class68_Sub4.java +++ b/client508/src/Class68_Sub4.java @@ -127,8 +127,11 @@ public class Class68_Sub4 extends Class68 int i_22_ = (int) (Math.random() * 100.0); if (i_22_ >= 50 || i_21_ <= 10 || i_21_ >= 118) Class68_Sub20.anIntArray3090[i_21_ - -i_20_] = 0; - else - Class68_Sub20.anIntArray3090[i_20_ + i_21_] = 255; + else{ + // this stops the fire from being rendered: + // orig: Class68_Sub20.anIntArray3090[i_20_ + i_21_] = 255; + Class68_Sub20.anIntArray3090[i_20_ + i_21_] = 0; + } } } if (i_11_ != 60) diff --git a/client508/src/Class71.java b/client508/src/Class71.java index 8ebbf1f..9ca8992 100644 --- a/client508/src/Class71.java +++ b/client508/src/Class71.java @@ -42,8 +42,8 @@ public class Class71 int i_9_ = Class68_Sub20.anIntArray3090[i_2_++]; int i_10_ = Class79.anIntArray1402[i_0_ + i_4_++]; if ((i_9_ ^ 0xffffffff) == -1) - RuntimeException_Sub1 - .aSprite_2246.anIntArray4615 + GameException + .aSprite_2246.pixels [i_5_++] = i_10_; else { @@ -54,8 +54,8 @@ public class Class71 if ((i_12_ ^ 0xffffffff) < -256) i_12_ = 255; i_9_ = Class68_Sub25.anIntArray3172[i_9_]; - RuntimeException_Sub1 - .aSprite_2246.anIntArray4615 + GameException + .aSprite_2246.pixels [i_5_++] = (((Class120.method1740 ((Class120.method1740(65280, i_9_) * i_11_ @@ -73,12 +73,12 @@ public class Class71 } } for (int i_13_ = 0; i_7_ > i_13_; i_13_++) - RuntimeException_Sub1.aSprite_2246 - .anIntArray4615[i_5_++] + GameException.aSprite_2246 + .pixels[i_5_++] = Class79.anIntArray1402[i_4_++ + i_0_]; i_4_ += Class79.anInt1401 - 128; } - RuntimeException_Sub1.aSprite_2246 + GameException.aSprite_2246 .method1108(i_0_, i); } } diff --git a/client508/src/Class72.java b/client508/src/Class72.java index 78ed3af..5070bc9 100644 --- a/client508/src/Class72.java +++ b/client508/src/Class72.java @@ -92,7 +92,7 @@ public abstract class Class72 container = Class108.aFrame1832; else container - = Class75_Sub1_Sub1.aSignLink_4589.anApplet1042; + = Class75_Sub1_Sub1.signlink.anApplet1042; } else container = Class1_Sub2.aFrame2429; int i_6_ = 0; @@ -276,7 +276,7 @@ public abstract class Class72 } else { if (i != -5720) aClass65_1305 = null; - RuntimeException_Sub1.method1798(true, 0, 255, (byte) 0, 255, null, + GameException.method1798(true, 0, 255, (byte) 0, 255, null, (byte) 22); Class68_Sub20.aClass21_Sub1Array3081[i_39_] = class21_sub1; } diff --git a/client508/src/Class72_Sub1.java b/client508/src/Class72_Sub1.java index cdfed21..636af04 100644 --- a/client508/src/Class72_Sub1.java +++ b/client508/src/Class72_Sub1.java @@ -210,7 +210,7 @@ public class Class72_Sub1 extends Class72 Class52.aRSString_1005 = Class106.aRSString_1808; Class84.aRSString_1536 = Class68_Sub28_Sub2.aRSString_4550; Class72.aRSString_1306 = Class68_Sub13_Sub7.aRSString_3552; - RuntimeException_Sub1.aRSString_2243 + GameException.aRSString_2243 = Class68_Sub13_Sub2.aRSString_3458; Class76.aRSString_1347 = Class14.aRSString_243; Class68_Sub13_Sub5.aRSString_3517 = Class128.aRSString_2225; diff --git a/client508/src/Class75.java b/client508/src/Class75.java index deaab89..9551b82 100644 --- a/client508/src/Class75.java +++ b/client508/src/Class75.java @@ -2,47 +2,44 @@ * Visit http://jode.sourceforge.net/ */ -public class Class75 -{ +public class Class75 { public static int anInt1339; public static RSString aRSString_1340 - = Class112.method1668(43, "Mitglieder)2Welt"); + = Class112.method1668(43, "Mitglieder)2Welt"); public static RSString aRSString_1341; public static RSString aRSString_1342 - = Class112.method1668(43, " from your ignore list first)3"); + = Class112.method1668(43, " from your ignore list first)3"); public static Class16 aClass16_1343; public static Class65 aClass65_1344; - + public static void method1385(byte i) { - aClass65_1344 = null; - if (i <= 43) - method1385((byte) 71); - aRSString_1342 = null; - aClass16_1343 = null; - aRSString_1341 = null; - aRSString_1340 = null; + aClass65_1344 = null; + if (i <= 43) + method1385((byte) 71); + aRSString_1342 = null; + aClass16_1343 = null; + aRSString_1341 = null; + aRSString_1340 = null; } - + public static void method1386(int i, Class21renamed class21) { - if (i != -10509) - method1386(111, null); - anInt1339++; - if (!Class33.aBoolean587) { - Class79.method1418(); - Class96.aClass68_Sub20_Sub10_1700 - = Class128.method1789(class21, i + 33972, Class17.anInt279); - Class96.aClass68_Sub20_Sub10_1700.method1108(-95, 0); - Class15.aClass92_251 - = Class67.method642(class21, Class68_Sub13_Sub14.anInt3670, - -30509); - Class15.aClass92_251 - .method1527(382 - Class15.aClass92_251.anInt1659 / 2, 18); - Class33.aBoolean587 = true; - } + if (i != -10509) + method1386(111, null); + anInt1339++; + if (!Class33.aBoolean587) { + Class79.method1418(); + Class96.aClass68_Sub20_Sub10_1700 + = Class128.method1789(class21, i + 33972, Class17.anInt279); + Class96.aClass68_Sub20_Sub10_1700.method1108(-95, 0); + //xxx render logo (while cache is loading): +// Class15.aClass92_251 = Class67.method642(class21, Class68_Sub13_Sub14.anInt3670, -30509); +// Class15.aClass92_251.method1527(382 - Class15.aClass92_251.anInt1659 / 2, 18); + Class33.aBoolean587 = true; + } } - + static { - aRSString_1341 = aRSString_1342; - aClass16_1343 = new Class16(); + aRSString_1341 = aRSString_1342; + aClass16_1343 = new Class16(); } } diff --git a/client508/src/Class75_Sub1_Sub1.java b/client508/src/Class75_Sub1_Sub1.java index bace430..379ed70 100644 --- a/client508/src/Class75_Sub1_Sub1.java +++ b/client508/src/Class75_Sub1_Sub1.java @@ -17,10 +17,10 @@ public class Class75_Sub1_Sub1 extends Class75_Sub1 public static Class21renamed aClass21_4586; public static RSString aRSString_4587; public static Login aLogin_4588; - public static SignLink aSignLink_4589; + public static SignLink signlink; public static int anInt4590; public static Class21renamed aClass21_4591; - + public static boolean method1391(boolean bool, Class68_Sub1[][][] class68_sub1s, int i, int i_0_, int i_1_, byte i_2_) { @@ -529,7 +529,7 @@ public class Class75_Sub1_Sub1 extends Class75_Sub1 aRSString_4581 = null; aClass21_4591 = null; aClass21_4586 = null; - aSignLink_4589 = null; + signlink = null; aRSString_4587 = null; aLogin_4588 = null; } diff --git a/client508/src/Class90.java b/client508/src/Class90.java index 3930fc1..9f9fe26 100644 --- a/client508/src/Class90.java +++ b/client508/src/Class90.java @@ -143,7 +143,7 @@ public class Class90 implements Interface4 if (!Class14.method265(-110)) break; } - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -31) { + if ((GameException.anInt2231 ^ 0xffffffff) == -31) { Class50.method531(false, 141, Class21renamed.stream); synchronized (Class14.aClass84_241.anObject1543) { if (!Class68_Sub13_Sub33.aBoolean4000) @@ -333,7 +333,7 @@ public class Class90 implements Interface4 Class108.aBoolean1830 = true; } Class114.method1692(0); - if (RuntimeException_Sub1.anInt2231 == 30) { + if (GameException.anInt2231 == 30) { Class68_Sub13_Sub32.method864(0); Class68_Sub29.method1321((byte) -110); Class68_Sub20_Sub13.anInt4368++; diff --git a/client508/src/GameSocket.java b/client508/src/GameSocket.java index 531be5d..7deefdb 100644 --- a/client508/src/GameSocket.java +++ b/client508/src/GameSocket.java @@ -439,7 +439,7 @@ public class GameSocket implements Runnable { Class49.method524(16322); Class34.method414(-28968); PacketStream.method971(137); - if (Class108.aFrame1832 != null && PlayerDefinition.connection != null && RuntimeException_Sub1.anInt2231 == 25) { + if (Class108.aFrame1832 != null && PlayerDefinition.connection != null && GameException.anInt2231 == 25) { Class21renamed.stream.createFrame(22); Class21renamed.stream.writeDWord(1057001181); Class68_Sub13_Sub39.anInt4107++; @@ -471,7 +471,7 @@ public class GameSocket implements Runnable { } } } - if (RuntimeException_Sub1.anInt2231 != 28) { + if (GameException.anInt2231 != 28) { Class17.method296(30, (byte) -77); if (PlayerDefinition.connection != null) { Class21renamed.stream.createFrame(60); diff --git a/client508/src/ISAACRandomGen.java b/client508/src/ISAACRandomGen.java index 6a6791c..8ed6106 100644 --- a/client508/src/ISAACRandomGen.java +++ b/client508/src/ISAACRandomGen.java @@ -418,7 +418,7 @@ public class ISAACRandomGen if (Class68_Sub13_Sub10.anInt3597 != 0) { try { if (((Boolean) (Class68_Sub20_Sub15.aRSString_4390.method1604 - (Class75_Sub1_Sub1.aSignLink_4589.anApplet1042, + (Class75_Sub1_Sub1.signlink.anApplet1042, (byte) -123))) .booleanValue()) return false; diff --git a/client508/src/Login.java b/client508/src/Login.java index 2f2ad9e..32995ef 100644 --- a/client508/src/Login.java +++ b/client508/src/Login.java @@ -85,7 +85,7 @@ public class Login { aRSString_1522 = null; } if (Class32.anInt574 == 1) { - Class13_Sub2.aClass31_2657 = (Class75_Sub1_Sub1.aSignLink_4589.newJagSocket(Class68_Sub9.serverAddress, (byte) 116, Class103.port)); + Class13_Sub2.aClass31_2657 = (Class75_Sub1_Sub1.signlink.newJagSocket(Class68_Sub9.serverAddress, (byte) 116, Class103.port)); Class32.anInt574 = 2; } if (Class32.anInt574 == 2) { @@ -95,7 +95,7 @@ public class Login { if (Class13_Sub2.aClass31_2657.anInt555 != 1) { return; } - PlayerDefinition.connection = new GameSocket(((Socket) Class13_Sub2.aClass31_2657.playerDefSocket), Class75_Sub1_Sub1.aSignLink_4589); + PlayerDefinition.connection = new GameSocket(((Socket) Class13_Sub2.aClass31_2657.playerDefSocket), Class75_Sub1_Sub1.signlink); Class13_Sub2.aClass31_2657 = null; long l = (Class72_Sub1.aLong3285 = Class68_Sub28_Sub2.username.toLong(10908)); @@ -163,11 +163,11 @@ public class Login { Class21renamed.stream.writeString((byte) -9, Class68_Sub28_Sub2.password); Class21renamed.stream.doKeys(false, Class68_Sub4.aBigInteger2814, Class68_Sub22.aBigInteger3136); Class112.extraStream.currentOffset = 0; - if (RuntimeException_Sub1.anInt2231 == 40) { - System.out.println("RuntimeException_Sub1.anInt2231 == 40"); + if (GameException.anInt2231 == 40) { + System.out.println("GameException.anInt2231 == 40"); Class112.extraStream.writeByte(18); } else { - System.out.println("RuntimeException_Sub1.anInt2231 != 40"); + System.out.println("GameException.anInt2231 != 40"); Class112.extraStream.writeByte(16); } int thisword = (151 + Class21renamed.stream.currentOffset + Class13_Sub1.method250(Class26.aRSString_521, -106)); @@ -328,13 +328,13 @@ public class Login { Class25.anInt517 = Class68_Sub13_Sub8.inStream.readUnsignedByte(-6677); if (Class25.anInt517 != 1) { try { - Class68_Sub20_Sub8.aRSString_4282.method1604((Class75_Sub1_Sub1.aSignLink_4589.anApplet1042), (byte) -123); + Class68_Sub20_Sub8.aRSString_4282.method1604((Class75_Sub1_Sub1.signlink.anApplet1042), (byte) -123); } catch (Throwable throwable) { /* empty */ } } else { try { - Class68_Sub4.aRSString_2829.method1604((Class75_Sub1_Sub1.aSignLink_4589.anApplet1042), (byte) -123); + Class68_Sub4.aRSString_2829.method1604((Class75_Sub1_Sub1.signlink.anApplet1042), (byte) -123); } catch (Throwable throwable) { /* empty */ } diff --git a/client508/src/PacketParser.java b/client508/src/PacketParser.java index f5c0e5e..e3ed874 100644 --- a/client508/src/PacketParser.java +++ b/client508/src/PacketParser.java @@ -84,7 +84,7 @@ public class PacketParser Class105.anInt1794 = i; Class52.aBoolean998 = bool; Class67.anInt1217 = i_16_; - RuntimeException_Sub1.aClass21_2236 = class21; + GameException.aClass21_2236 = class21; anInt1871++; Class70.anInt1287 = 1; } @@ -261,7 +261,7 @@ public class PacketParser } if ((Class49.anInt962 ^ 0xffffffff) == -211) { if (Class68_Sub13_Sub10.anInt3595 != -1) - RuntimeException_Sub1 + GameException .method1796(89, Class68_Sub13_Sub10.anInt3595, 0); Class49.anInt962 = -1; return true; @@ -953,7 +953,7 @@ public class PacketParser return true; } if ((Class49.anInt962 ^ 0xffffffff) == -140) { - Class12.method238(Class75_Sub1_Sub1.aSignLink_4589, Class68_Sub13_Sub8.inStream, Class106.anInt1804, (byte) 101); + Class12.method238(Class75_Sub1_Sub1.signlink, Class68_Sub13_Sub8.inStream, Class106.anInt1804, (byte) 101); Class49.anInt962 = -1; return true; } @@ -1290,7 +1290,7 @@ public class PacketParser if (Class49.anInt962 == 172) { int i_156_ = Class68_Sub13_Sub8.inStream.readDWord(); Class68_Sub10.aClass31_2914 - = Class75_Sub1_Sub1.aSignLink_4589.method563(i_156_, i + 26354); + = Class75_Sub1_Sub1.signlink.method563(i_156_, i + 26354); Class49.anInt962 = -1; return true; } @@ -1558,7 +1558,7 @@ public class PacketParser Class68_Sub13_Sub27.method838(-1, true, class45); } if ((Class68_Sub13_Sub10.anInt3595 ^ 0xffffffff) != 0) - RuntimeException_Sub1 + GameException .method1796(i + 26449, Class68_Sub13_Sub10.anInt3595, 1); Class49.anInt962 = -1; return true; diff --git a/client508/src/PlayerDefinition.java b/client508/src/PlayerDefinition.java index 517f2c5..4aed997 100644 --- a/client508/src/PlayerDefinition.java +++ b/client508/src/PlayerDefinition.java @@ -461,11 +461,11 @@ public class PlayerDefinition throws IOException { anInt2193++; String string; - if (!(throwable instanceof RuntimeException_Sub1)) + if (!(throwable instanceof GameException)) string = ""; else { - RuntimeException_Sub1 runtimeexception_sub1 - = (RuntimeException_Sub1) throwable; + GameException runtimeexception_sub1 + = (GameException) throwable; throwable = runtimeexception_sub1.aThrowable2247; string = runtimeexception_sub1.aString2239 + " | "; } diff --git a/client508/src/RuntimeException_Sub1.java b/client508/src/RuntimeException_Sub1.java deleted file mode 100644 index ebb8a41..0000000 --- a/client508/src/RuntimeException_Sub1.java +++ /dev/null @@ -1,374 +0,0 @@ -/* RuntimeException_Sub1 - Decompiled by JODE - * Visit http://jode.sourceforge.net/ - */ - -public class RuntimeException_Sub1 extends RuntimeException -{ - public static RSString aRSString_2230; - public static int anInt2231; - public static RSString aRSString_2232; - public static int anInt2233; - public static int anInt2234; - public static int anInt2235; - public static Class21renamed aClass21_2236; - public static int anInt2237; - public static int anInt2238; - public String aString2239; - public static RSString aRSString_2240 - = Class112.method1668(43, " "); - public static int anInt2241; - public static int anInt2242; - public static RSString aRSString_2243; - public static RSString aRSString_2244; - public static int anInt2245; - public static Sprite aSprite_2246; - public Throwable aThrowable2247; - - public static Class1_Sub3 method1793 - (int i, int i_0_, int i_1_, Class1_Sub3 class1_sub3, int i_2_, - Class55 class117, int i_3_, int i_4_, int i_5_, int i_6_, int i_7_, - int i_8_, int i_9_, boolean bool) { - try { - long l = (((long) i_8_ << -1663761184) - + (long) ((i_3_ << -1502276232) + (i_7_ << -743990992) - + i_6_) - + ((long) i_4_ << 1875380208)); - anInt2238++; - Class1_Sub3 class1_sub3_10_ - = (Class1_Sub3) Class121.aClass98_2100.method1570(14366, l); - if (class1_sub3_10_ == null) { - int i_11_; - if ((i_6_ ^ 0xffffffff) == -2) - i_11_ = 9; - else if ((i_6_ ^ 0xffffffff) != -3) { - if (i_6_ == 3) - i_11_ = 15; - else if ((i_6_ ^ 0xffffffff) == -5) - i_11_ = 18; - else - i_11_ = 21; - } else - i_11_ = 12; - int i_12_ = 3; - int[] is = { 64, 96, 128 }; - int[][] is_13_ = new int[i_12_][i_11_]; - Class1_Sub4 class1_sub4 - = new Class1_Sub4(1 - -(i_11_ * i_12_), - -i_11_ + 2 * i_11_ * i_12_, 0); - int i_14_ = class1_sub4.method131(0, 0, 0); - for (int i_15_ = 0; i_12_ > i_15_; i_15_++) { - int i_16_ = is[i_15_]; - int i_17_ = is[i_15_]; - for (int i_18_ = 0; i_18_ < i_11_; i_18_++) { - int i_19_ = (i_18_ << -939650869) / i_11_; - int i_20_ - = (i_5_ - -(i_17_ * Class62.anIntArray1155[i_19_]) - >> -780014224); - int i_21_ - = (i - -(i_16_ * Class62.anIntArray1167[i_19_]) - >> 100362896); - is_13_[i_15_][i_18_] - = class1_sub4.method131(i_20_, 0, i_21_); - } - } - for (int i_22_ = 0; - (i_12_ ^ 0xffffffff) < (i_22_ ^ 0xffffffff); i_22_++) { - int i_23_ = (128 + 256 * i_22_) / i_12_; - int i_24_ = -i_23_ + 256; - short i_25_ = (short) ((((i_24_ * (i_8_ & 0x380) - + (0x380 & i_4_) * i_23_) - & 0x38000) - + (((i_4_ & 0xfc00) * i_23_ - + (0xfc00 & i_8_) * i_24_) - & 0xfc0000) - + (((0x7f & i_4_) * i_23_ - + (0x7f & i_8_) * i_24_) - & 0x7f00)) - >> -1732730136); - byte i_26_ - = (byte) (i_23_ * i_3_ + i_7_ * i_24_ >> -480210520); - for (int i_27_ = 0; i_11_ > i_27_; i_27_++) { - if ((i_22_ ^ 0xffffffff) != -1) { - class1_sub4.method136(is_13_[-1 + i_22_][i_27_], - (is_13_[-1 + i_22_] - [(1 + i_27_) % i_11_]), - (is_13_[i_22_] - [(1 + i_27_) % i_11_]), - (byte) 1, i_25_, i_26_); - class1_sub4.method136(is_13_[-1 + i_22_][i_27_], - (is_13_[i_22_] - [(i_27_ - -1) % i_11_]), - is_13_[i_22_][i_27_], - (byte) 1, i_25_, i_26_); - } else - class1_sub4.method136(i_14_, - (is_13_[0] - [(i_27_ + 1) % i_11_]), - is_13_[0][i_27_], (byte) 1, - i_25_, i_26_); - } - } - class1_sub3_10_ - = class1_sub4.method127(64, 768, -50, -10, -50); - Class121.aClass98_2100.method1568(class1_sub3_10_, 127, l); - } - int i_28_ = 64 * i_6_ + -1; - int i_29_ = -i_28_; - int i_30_ = -i_28_; - int i_31_ = i_28_; - int i_32_ = i_28_; - int i_33_ = class1_sub3.method89(); - if (bool) { - if (i_0_ > 640 && (i_0_ ^ 0xffffffff) > -1409) - i_32_ += 128; - if ((i_0_ ^ 0xffffffff) < -129 && (i_0_ ^ 0xffffffff) > -897) - i_29_ -= 128; - if ((i_0_ ^ 0xffffffff) < -1665 || i_0_ < 384) - i_30_ -= 128; - if ((i_0_ ^ 0xffffffff) < -1153 && (i_0_ ^ 0xffffffff) > -1921) - i_31_ += 128; - } - if (i_33_ < i_29_) - i_33_ = i_29_; - int i_34_ = class1_sub3.method84(); - if ((i_34_ ^ 0xffffffff) < (i_31_ ^ 0xffffffff)) - i_34_ = i_31_; - int i_35_ = class1_sub3.method75(); - if ((i_35_ ^ 0xffffffff) > (i_30_ ^ 0xffffffff)) - i_35_ = i_30_; - Class68_Sub20_Sub17 class68_sub20_sub17 = null; - int i_36_ = class1_sub3.method87(); - if (class117 != null) { - i_2_ = class117.anIntArray2035[i_2_]; - class68_sub20_sub17 - = Class35.method432(i_2_ >> 1541839728, (byte) -96); - i_2_ &= 0xffff; - } - int i_37_ = 125 % ((-7 - i_9_) / 52); - if ((i_32_ ^ 0xffffffff) > (i_36_ ^ 0xffffffff)) - i_36_ = i_32_; - if (class68_sub20_sub17 == null) { - class1_sub3_10_ = class1_sub3_10_.method81(true, true); - class1_sub3_10_.method72((-i_33_ + i_34_) / 2, 128, - (i_36_ - i_35_) / 2); - class1_sub3_10_.method92((i_33_ + i_34_) / 2, 0, - (i_35_ - -i_36_) / 2); - } else { - class1_sub3_10_ - = class1_sub3_10_.method81(!class68_sub20_sub17 - .method1180(true, i_2_), - true); - class1_sub3_10_.method72((-i_33_ + i_34_) / 2, 128, - (i_36_ - i_35_) / 2); - class1_sub3_10_.method92((i_33_ + i_34_) / 2, 0, - (i_36_ + i_35_) / 2); - class1_sub3_10_.method76(class68_sub20_sub17, i_2_); - } - if ((i_0_ ^ 0xffffffff) != -1) - class1_sub3_10_.method90(i_0_); - Class1_Sub3_Sub1 class1_sub3_sub1 - = (Class1_Sub3_Sub1) class1_sub3_10_; - if (i_1_ != Class1_Sub6_Sub2.method163(i_5_ - -i_33_, - GameSocket.anInt1149, - i_35_ + i, false) - || Class1_Sub6_Sub2.method163(i_34_ + i_5_, GameSocket.anInt1149, - i_36_ + i, false) != i_1_) { - for (int i_38_ = 0; class1_sub3_sub1.anInt3355 > i_38_; - i_38_++) - class1_sub3_sub1.anIntArray3334[i_38_] - += (Class1_Sub6_Sub2.method163 - (class1_sub3_sub1.anIntArray3354[i_38_] + i_5_, - GameSocket.anInt1149, - i + class1_sub3_sub1.anIntArray3343[i_38_], - false)) + -i_1_; - class1_sub3_sub1.aBoolean3345 = false; - } - return class1_sub3_10_; - } catch (RuntimeException runtimeexception) { - throw Class107.method1652(runtimeexception, - ("ua.A(" + i + ',' + i_0_ + ',' + i_1_ - + ',' - + (class1_sub3 != null ? "{...}" - : "null") - + ',' + i_2_ + ',' - + (class117 != null ? "{...}" : "null") - + ',' + i_3_ + ',' + i_4_ + ',' + i_5_ - + ',' + i_6_ + ',' + i_7_ + ',' + i_8_ - + ',' + i_9_ + ',' + bool + ')')); - } - } - - public static void method1794(int i) { - aRSString_2230 = null; - aRSString_2244 = null; - aRSString_2232 = null; - aRSString_2243 = null; - aSprite_2246 = null; - aClass21_2236 = null; - if (i != 64) - method1798(false, 79, 66, (byte) 113, 45, null, (byte) 12); - aRSString_2240 = null; - } - - public static int method1795(int i, int i_39_) { - anInt2237++; - if (i_39_ <= 44) - anInt2241 = 118; - return 0x3ff & i; - } - - public static void method1796(int i, int i_40_, int i_41_) { - if (i >= 65) { - anInt2233++; - if (Class68_Sub13_Sub25.method824(i_40_, (byte) -2)) - Class1_Sub5.method142(i_41_, - (Class68_Sub13_Sub36 - .aClass45ArrayArray4040[i_40_]), - 16); - } - } - - public static void method1797(int i, boolean bool, int i_42_, int i_43_, - int i_44_, int i_45_, byte[] is, int i_46_, - GroundData[] class38s, int i_47_, int i_48_) { - try { - anInt2245++; - int i_49_ = -1; - if (i_47_ < 67) - aSprite_2246 = null; - Stream class68_sub14 = new Stream(is); - for (;;) { - int i_50_ = class68_sub14.method937(true); - if ((i_50_ ^ 0xffffffff) == -1) - break; - int i_51_ = 0; - i_49_ += i_50_; - for (;;) { - int i_52_ = class68_sub14.method912(255); - if ((i_52_ ^ 0xffffffff) == -1) - break; - i_51_ += -1 + i_52_; - int i_53_ = (i_51_ & 0xfc8) >> -740717850; - int i_54_ = i_51_ >> 210097612; - int i_55_ = class68_sub14.readUnsignedByte(-6677); - int i_56_ = i_51_ & 0x3f; - int i_57_ = i_55_ >> -964823422; - int i_58_ = i_55_ & 0x3; - if (i_54_ == i_46_ && i_45_ <= i_53_ - && (8 + i_45_ ^ 0xffffffff) < (i_53_ ^ 0xffffffff) - && i_56_ >= i_42_ - && (i_42_ - -8 ^ 0xffffffff) < (i_56_ ^ 0xffffffff)) { - Class116 class116 = Class1_Sub5.method140(110, i_49_); - int i_59_ - = i_43_ + Class3.method183(i_58_, i_56_ & 0x7, - class116.anInt1988, - i_53_ & 0x7, - class116.anInt1987, - -120, i_44_); - int i_60_ - = (i_48_ - - -Class68_Sub27.method1219(i_58_, - class116.anInt1988, - i_44_, i_56_ & 0x7, - class116.anInt1987, - 0x7 & i_53_, - (byte) -128)); - if (i_59_ > 0 && i_60_ > 0 - && (i_59_ ^ 0xffffffff) > -104 && i_60_ < 103) { - GroundData class38 = null; - if (!bool) { - int i_61_ = i; - if (((Class64.aByteArrayArrayArray1178[1] - [i_59_][i_60_]) & 0x2 - ^ 0xffffffff) - == -3) - i_61_--; - if ((i_61_ ^ 0xffffffff) <= -1) - class38 = class38s[i_61_]; - } - Class68_Sub20_Sub17.method1181(class38, 1, bool, - i_60_, - (0x3 - & i_58_ - -i_44_), - i_59_, i_57_, i, i, - !bool, i_49_); - } - } - } - } - } catch (RuntimeException runtimeexception) { - throw Class107.method1652(runtimeexception, - ("ua.D(" + i + ',' + bool + ',' + i_42_ - + ',' + i_43_ + ',' + i_44_ + ',' - + i_45_ + ',' - + (is != null ? "{...}" : "null") + ',' - + i_46_ + ',' - + (class38s != null ? "{...}" : "null") - + ',' + i_47_ + ',' + i_48_ + ')')); - } - } - - public static void method1798(boolean bool, int i, int i_62_, byte i_63_, - int i_64_, Class21_Sub1 class21_sub1, - byte i_65_) { - long l = (long) (i_64_ + (i_62_ << 598658928)); - anInt2234++; - Class68_Sub20_Sub15 class68_sub20_sub15 - = (Class68_Sub20_Sub15) Class123.aClass113_2123.method1678(l, -58); - if (i_65_ == 22 && class68_sub20_sub15 == null) { - class68_sub20_sub15 - = ((Class68_Sub20_Sub15) - Class68_Sub20_Sub13.aClass113_4366.method1678(l, -47)); - if (class68_sub20_sub15 == null) { - class68_sub20_sub15 - = ((Class68_Sub20_Sub15) - Stream.aClass113_3008.method1678(l, 73)); - if (class68_sub20_sub15 != null) { - if (bool) { - class68_sub20_sub15.method1005((byte) 73); - Class123.aClass113_2123 - .method1677((byte) 123, class68_sub20_sub15, l); - Class56.anInt1067++; - Class128.anInt2227--; - } - } else { - if (!bool) { - class68_sub20_sub15 - = ((Class68_Sub20_Sub15) - PacketParser.aClass113_1874.method1678(l, -100)); - if (class68_sub20_sub15 != null) - return; - } - class68_sub20_sub15 = new Class68_Sub20_Sub15(); - class68_sub20_sub15.aClass21_Sub1_4394 = class21_sub1; - class68_sub20_sub15.anInt4392 = i; - class68_sub20_sub15.aByte4391 = i_63_; - if (bool) { - Class123.aClass113_2123 - .method1677((byte) 119, class68_sub20_sub15, l); - Class56.anInt1067++; - } else { - Class68_Sub7.aClass128_2854 - .method1787(125, class68_sub20_sub15); - Stream.aClass113_3008 - .method1677((byte) 127, class68_sub20_sub15, l); - Class128.anInt2227++; - } - } - } - } - } - - public RuntimeException_Sub1(Throwable throwable, String string) { - aThrowable2247 = throwable; - aString2239 = string; - } - - static { - aRSString_2232 = Class112.method1668(43, "http:)4)4"); - aRSString_2244 = Class112.method1668(43, "glow1:"); - aRSString_2230 = aRSString_2244; - anInt2231 = 0; - aRSString_2243 = aRSString_2244; - } -} diff --git a/client508/src/SignLink.java b/client508/src/SignLink.java index 11bb321..a24175e 100644 --- a/client508/src/SignLink.java +++ b/client508/src/SignLink.java @@ -1,9 +1,9 @@ /* SignLink - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ + import java.applet.Applet; -import java.awt.EventQueue; -import java.awt.Toolkit; +import java.awt.*; import java.io.DataInputStream; import java.io.File; import java.lang.reflect.Method; @@ -11,8 +11,7 @@ import java.net.InetAddress; import java.net.Socket; import java.net.URL; -public class SignLink implements Runnable -{ +public class SignLink implements Runnable { public static String javaVendor; public Thread aThread1037; public JagSocket aClass31_1038 = null; @@ -36,145 +35,145 @@ public class SignLink implements Runnable public EventQueue anEventQueue1056; public Class2 aClass2_1057; public static String javaVersion; - + public JagSocket newJagSocket(int i, Object object, int i_0_, int i_1_, - int i_2_) { - JagSocket jagSocket = new JagSocket(); - jagSocket.port = i_0_; - jagSocket.hostname = object; - jagSocket.priority = i; + int i_2_) { + JagSocket jagSocket = new JagSocket(); + jagSocket.port = i_0_; + jagSocket.hostname = object; + jagSocket.priority = i; //System.out.println("newJagSocket: jagSocket.port:"+jagSocket.port+" jagSocket.hostname:"+jagSocket.hostname+" jagSocket.priority:"+jagSocket.priority); - synchronized (this) { - if (aClass31_1038 == null) - aClass31_1038 = aClass31_1048 = jagSocket; - else { - aClass31_1038.aClass31_557 = jagSocket; - aClass31_1038 = jagSocket; - } - this.notify(); - int i_3_ = 20 / ((i_1_ - -48) / 48); - } - return jagSocket; + synchronized (this) { + if (aClass31_1038 == null) + aClass31_1038 = aClass31_1048 = jagSocket; + else { + aClass31_1038.aClass31_557 = jagSocket; + aClass31_1038 = jagSocket; + } + this.notify(); + int i_3_ = 20 / ((i_1_ - -48) / 48); + } + return jagSocket; } - + public JagSocket method557(Class var_class, byte i) { - if (i > -81) - anInterface1_1050 = null; - return newJagSocket(13, var_class, 0, -101, 0); + if (i > -81) + anInterface1_1050 = null; + return newJagSocket(13, var_class, 0, -101, 0); } - + public JagSocket method558(byte i, int i_4_, Runnable runnable) { - if (i >= -28) - method557(null, (byte) -110); - return newJagSocket(2, runnable, i_4_, -123, 0); + if (i >= -28) + method557(null, (byte) -110); + return newJagSocket(2, runnable, i_4_, -123, 0); } - + public JagSocket newJagSocket(String hostname, byte i, int port) { - if (i < 107) - method563(-9, 4); - return newJagSocket(1, hostname, port, -107, 0); + if (i < 107) + method563(-9, 4); + return newJagSocket(1, hostname, port, -107, 0); } - + public JagSocket method560(Class var_class, int i) { - if (i < 12) - return null; - return newJagSocket(11, var_class, 0, 88, 0); + if (i < 12) + return null; + return newJagSocket(11, var_class, 0, 88, 0); } - + public void run() { - for (;;) { - JagSocket class31; - synchronized (this) { - for (;;) { - if (aBoolean1055) - return; - if (aClass31_1048 != null) { - class31 = aClass31_1048; - aClass31_1048 = aClass31_1048.aClass31_557; - if (aClass31_1048 == null) - aClass31_1038 = null; - break; - } - try { - this.wait(); - } catch (InterruptedException interruptedexception) { - /* empty */ - } - } - } - try { - int i = class31.priority; - if ((i ^ 0xffffffff) == -2) - class31.playerDefSocket - = new Socket(InetAddress.getByName((String) - (class31 - .hostname)), - class31.port); - else if (i == 2) { - Thread thread = new Thread((Runnable) class31.hostname); - thread.setDaemon(true); - thread.start(); - thread.setPriority(class31.port); - class31.playerDefSocket = thread; - } else if (i != 4) { - if (i != 8) { - if (i != 9) - throw new Exception(); - Object[] objects = (Object[]) class31.hostname; - class31.playerDefSocket - = ((Class) objects[0]) - .getDeclaredField((String) objects[1]); - } else { - Object[] objects = (Object[]) class31.hostname; - class31.playerDefSocket - = (((Class) objects[0]).getDeclaredMethod - ((String) objects[1], (Class[]) objects[2])); - } - } else - class31.playerDefSocket - = new DataInputStream(((URL) class31.hostname) - .openStream()); - class31.anInt555 = 1; - } catch (Throwable throwable) { - class31.anInt555 = 2; - } - } + for (; ;) { + JagSocket class31; + synchronized (this) { + for (; ;) { + if (aBoolean1055) + return; + if (aClass31_1048 != null) { + class31 = aClass31_1048; + aClass31_1048 = aClass31_1048.aClass31_557; + if (aClass31_1048 == null) + aClass31_1038 = null; + break; + } + try { + this.wait(); + } catch (InterruptedException interruptedexception) { + /* empty */ + } + } + } + try { + int i = class31.priority; + if ((i ^ 0xffffffff) == -2) + class31.playerDefSocket + = new Socket(InetAddress.getByName((String) + (class31 + .hostname)), + class31.port); + else if (i == 2) { + Thread thread = new Thread((Runnable) class31.hostname); + thread.setDaemon(true); + thread.start(); + thread.setPriority(class31.port); + class31.playerDefSocket = thread; + } else if (i != 4) { + if (i != 8) { + if (i != 9) + throw new Exception(); + Object[] objects = (Object[]) class31.hostname; + class31.playerDefSocket + = ((Class) objects[0]) + .getDeclaredField((String) objects[1]); + } else { + Object[] objects = (Object[]) class31.hostname; + class31.playerDefSocket + = (((Class) objects[0]).getDeclaredMethod + ((String) objects[1], (Class[]) objects[2])); + } + } else + class31.playerDefSocket + = new DataInputStream(((URL) class31.hostname) + .openStream()); + class31.anInt555 = 1; + } catch (Throwable throwable) { + class31.anInt555 = 2; + } + } } - + public JagSocket method561(int i, String string, Class var_class) { - if (i != 30810) - return null; - return newJagSocket(9, new Object[] { var_class, string }, 0, -104, 0); + if (i != 30810) + return null; + return newJagSocket(9, new Object[]{var_class, string}, 0, -104, 0); } - + public JagSocket method562(URL url, int i) { - if (i != 0) - run(); - return newJagSocket(4, url, 0, 12, 0); + if (i != 0) + run(); + return newJagSocket(4, url, 0, 12, 0); } - + public JagSocket method563(int i, int i_6_) { - if (i_6_ != 0) - aFile1043 = null; - return newJagSocket(3, null, i, i_6_ + 28, 0); + if (i_6_ != 0) + aFile1043 = null; + return newJagSocket(3, null, i, i_6_ + 28, 0); } - + public JagSocket method564(Class[] var_classes, int i, String string, - Class var_class) { - if (i != 0) - findcachedir(-119, null, 20, -51); - return newJagSocket(8, new Object[] { var_class, string, var_classes }, 0, - -98, 0); + Class var_class) { + if (i != 0) + findcachedir(-119, null, 20, -51); + return newJagSocket(8, new Object[]{var_class, string, var_classes}, 0, + -98, 0); } - - public void findcachedir(int i, String string, int i_7_, int i_8_) { - System.out.println("findcachedir called"); - i = 32; - String[] cacheDirs = { client.cacheDir }; - for (int dirId = 0; dirId < cacheDirs.length; dirId++) { + + public void findcachedir(int storeID, String sub_file, int i_7_, int i_8_) { + //System.out.println("findcachedir called"); + storeID = 32; + String[] cacheDirs = {client.cacheDir}; + for (int dirId = 0; dirId < cacheDirs.length; dirId++) { try { File file = new File(cacheDirs[dirId]); - System.out.println("findcachedir"+file.getAbsolutePath()); + //System.out.println("findcachedir" + file.getAbsolutePath()); if (!file.exists()) { boolean bool = file.mkdir(); if (!bool) { @@ -209,9 +208,9 @@ public class SignLink implements Runnable aClass2_1045 = new Class2(mainCache, "rw", 104857600L); aClass2Array1039 = new Class2[i_8_]; for (int id = 0; id < i_8_; id++) { - aClass2Array1039[id] = (new Class2 (new File(file, ("main_file_cache.idx" + id)), "rw", 1048576L)); + aClass2Array1039[id] = (new Class2(new File(file, ("main_file_cache.idx" + id)), "rw", 1048576L)); } - aClass2_1057 = (new Class2 (new File(file, "main_file_cache.idx255"), "rw", 1048576L)); + aClass2_1057 = (new Class2(new File(file, "main_file_cache.idx255"), "rw", 1048576L)); aFile1043 = aFile1052 = file; } catch (Exception exception) { System.out.println("Unable to find cache files."); @@ -220,7 +219,7 @@ public class SignLink implements Runnable for (int id = 0; id < i_8_; id++) aClass2Array1039[id].method175(-8143); aClass2_1057.method175(-8143); - } catch (Exception exception_18_) { + } catch (Exception exception_18_) { } aFile1043 = aFile1052 = null; aClass2Array1039 = null; @@ -232,73 +231,73 @@ public class SignLink implements Runnable if (aClass2_1041 != null && aFile1052 != null) return; } - if (aFile1052 == null) - throw new RuntimeException(); + if (aFile1052 == null) + throw new RuntimeException(); } - + public void method566(int i) { - synchronized (this) { - if (i != 0) - method560(null, -14); - aBoolean1055 = true; - this.notifyAll(); - } - try { - aThread1037.join(); - } catch (InterruptedException interruptedexception) { - /* empty */ - } - if (aClass2_1045 != null) { - try { - aClass2_1045.method175(i + -8143); - } catch (java.io.IOException ioexception) { - /* empty */ - } - } - if (aClass2_1057 != null) { - try { - aClass2_1057.method175(-8143); - } catch (java.io.IOException ioexception) { - /* empty */ - } - } - if (aClass2Array1039 != null) { - for (int i_19_ = 0; i_19_ < aClass2Array1039.length; i_19_++) { - if (aClass2Array1039[i_19_] != null) { - try { - aClass2Array1039[i_19_].method175(-8143); - } catch (java.io.IOException ioexception) { - /* empty */ - } - } - } - } - do { - if (aClass2_1041 != null) { - try { - aClass2_1041.method175(-8143); - } catch (java.io.IOException ioexception) { - break; - } - break; - } - } while (false); + synchronized (this) { + if (i != 0) + method560(null, -14); + aBoolean1055 = true; + this.notifyAll(); + } + try { + aThread1037.join(); + } catch (InterruptedException interruptedexception) { + /* empty */ + } + if (aClass2_1045 != null) { + try { + aClass2_1045.method175(i + -8143); + } catch (java.io.IOException ioexception) { + /* empty */ + } + } + if (aClass2_1057 != null) { + try { + aClass2_1057.method175(-8143); + } catch (java.io.IOException ioexception) { + /* empty */ + } + } + if (aClass2Array1039 != null) { + for (int i_19_ = 0; i_19_ < aClass2Array1039.length; i_19_++) { + if (aClass2Array1039[i_19_] != null) { + try { + aClass2Array1039[i_19_].method175(-8143); + } catch (java.io.IOException ioexception) { + /* empty */ + } + } + } + } + do { + if (aClass2_1041 != null) { + try { + aClass2_1041.method175(-8143); + } catch (java.io.IOException ioexception) { + break; + } + break; + } + } while (false); } - + public Interface1 method567(int i) { - if (i != 0) - return null; - return anInterface1_1050; + if (i != 0) + return null; + return anInterface1_1050; } - + public JagSocket method568(boolean bool, String string) { - if (bool != true) - return null; - return newJagSocket(12, string, 0, -124, 0); + if (bool != true) + return null; + return newJagSocket(12, string, 0, -124, 0); } - + public SignLink(boolean signed, Applet applet, int i, String string, - int i_20_) { + int i_20_) { // app: SignLink(boolean true, Applet null, int 32, String runescape, int 27) // applet: SignLink(boolean false, Applet client[panel0,0,0,0x0,invalid,layout=java.awt.FlowLayout], int 33, String null, int 0) // System.out.println("SignLink(boolean "+signed+", Applet "+applet+", int "+i+", String "+string+", int "+i_20_+")"); @@ -308,84 +307,84 @@ public class SignLink implements Runnable i = 32; i_20_ = 27; // xxx to here - aClass2_1041 = null; - aFile1052 = null; - aClass31_1048 = null; - anApplet1042 = null; - aClass2_1045 = null; - aBoolean1055 = false; - aClass2_1057 = null; - javaVersion = "1.1"; - anApplet1042 = applet; - javaVendor = "Unknown"; - try { - javaVendor = System.getProperty("java.vendor"); - javaVersion = System.getProperty("java.version"); - } catch (Exception exception) { - /* empty */ - } - try { - osName = System.getProperty("os.name"); - } catch (Exception exception) { - osName = "Unknown"; - } - osNameLowercase = osName.toLowerCase(); - try { - osArch = System.getProperty("os.arch").toLowerCase(); - } catch (Exception exception) { - osArch = ""; - } - try { - osVersion = System.getProperty("os.version").toLowerCase(); - } catch (Exception exception) { - osVersion = ""; - } - try { - userHome = System.getProperty("user.home"); - if (userHome != null) - userHome += "/"; - } catch (Exception exception) { - /* empty */ - } - if (userHome == null) - userHome = "~/"; - try { - anEventQueue1056 - = Toolkit.getDefaultToolkit().getSystemEventQueue(); - } catch (Throwable throwable) { - /* empty */ - } - try { - if (applet == null) - setFocusTraversalKeysEnabled - = (Class.forName("java.awt.Component").getDeclaredMethod - ("setFocusTraversalKeysEnabled", - new Class[] { Boolean.TYPE })); - else - setFocusTraversalKeysEnabled = (applet.getClass().getMethod - ("setFocusTraversalKeysEnabled", - new Class[] { Boolean.TYPE })); - } catch (Exception exception) { - /* empty */ - } - try { - if (applet == null) - setFocusCycleRoot - = (Class.forName("java.awt.Container").getDeclaredMethod - ("setFocusCycleRoot", new Class[] { Boolean.TYPE })); - else - setFocusCycleRoot = applet.getClass().getMethod("setFocusCycleRoot", - (new Class[] - { Boolean.TYPE })); - } catch (Exception exception) { - /* empty */ - } - if (signed) - findcachedir(i, string, 34, i_20_); - aBoolean1055 = false; - aThread1037 = new Thread(this); - aThread1037.setPriority(10); - aThread1037.setDaemon(true); - aThread1037.start(); + aClass2_1041 = null; + aFile1052 = null; + aClass31_1048 = null; + anApplet1042 = null; + aClass2_1045 = null; + aBoolean1055 = false; + aClass2_1057 = null; + javaVersion = "1.1"; + anApplet1042 = applet; + javaVendor = "Unknown"; + try { + javaVendor = System.getProperty("java.vendor"); + javaVersion = System.getProperty("java.version"); + } catch (Exception exception) { + /* empty */ + } + try { + osName = System.getProperty("os.name"); + } catch (Exception exception) { + osName = "Unknown"; + } + osNameLowercase = osName.toLowerCase(); + try { + osArch = System.getProperty("os.arch").toLowerCase(); + } catch (Exception exception) { + osArch = ""; + } + try { + osVersion = System.getProperty("os.version").toLowerCase(); + } catch (Exception exception) { + osVersion = ""; + } + try { + userHome = System.getProperty("user.home"); + if (userHome != null) + userHome += "/"; + } catch (Exception exception) { + /* empty */ + } + if (userHome == null) + userHome = "~/"; + try { + anEventQueue1056 + = Toolkit.getDefaultToolkit().getSystemEventQueue(); + } catch (Throwable throwable) { + /* empty */ + } + try { + if (applet == null) + setFocusTraversalKeysEnabled + = (Class.forName("java.awt.Component").getDeclaredMethod + ("setFocusTraversalKeysEnabled", + new Class[]{Boolean.TYPE})); + else + setFocusTraversalKeysEnabled = (applet.getClass().getMethod + ("setFocusTraversalKeysEnabled", + new Class[]{Boolean.TYPE})); + } catch (Exception exception) { + /* empty */ + } + try { + if (applet == null) + setFocusCycleRoot + = (Class.forName("java.awt.Container").getDeclaredMethod + ("setFocusCycleRoot", new Class[]{Boolean.TYPE})); + else + setFocusCycleRoot = applet.getClass().getMethod("setFocusCycleRoot", + (new Class[] + {Boolean.TYPE})); + } catch (Exception exception) { + /* empty */ + } + if (signed) + findcachedir(i, string, 34, i_20_); + aBoolean1055 = false; + aThread1037 = new Thread(this); + aThread1037.setPriority(10); + aThread1037.setDaemon(true); + aThread1037.start(); } } diff --git a/client508/src/Sprite.java b/client508/src/Sprite.java index ef3411e..039831d 100644 --- a/client508/src/Sprite.java +++ b/client508/src/Sprite.java @@ -2,1230 +2,1284 @@ * Visit http://jode.sourceforge.net/ */ -public class Sprite extends Class68_Sub20_Sub10 -{ - public int[] anIntArray4615; +import java.io.ByteArrayOutputStream; +import java.security.MessageDigest; + +public class Sprite extends Class68_Sub20_Sub10 { + public int[] pixels; public void method1117() { - int[] is = new int[anInt4309 * anInt4311]; - int i = 0; - for (int i_0_ = anInt4311 - 1; i_0_ >= 0; i_0_--) { - for (int i_1_ = 0; i_1_ < anInt4309; i_1_++) - is[i++] = anIntArray4615[i_1_ + i_0_ * anInt4309]; - } - anIntArray4615 = is; - anInt4303 = anInt4313 - anInt4311 - anInt4303; + int[] is = new int[anInt4309 * anInt4311]; + int i = 0; + for (int i_0_ = anInt4311 - 1; i_0_ >= 0; i_0_--) { + for (int i_1_ = 0; i_1_ < anInt4309; i_1_++) + is[i++] = pixels[i_1_ + i_0_ * anInt4309]; + } + pixels = is; + anInt4303 = anInt4313 - anInt4311 - anInt4303; } - + public void method1103(int i, int i_2_) { - i += anInt4315; - i_2_ += anInt4303; - int i_3_ = i + i_2_ * Class79.anInt1401; - int i_4_ = 0; - int i_5_ = anInt4311; - int i_6_ = anInt4309; - int i_7_ = Class79.anInt1401 - i_6_; - int i_8_ = 0; - if (i_2_ < Class79.anInt1403) { - int i_9_ = Class79.anInt1403 - i_2_; - i_5_ -= i_9_; - i_2_ = Class79.anInt1403; - i_4_ += i_9_ * i_6_; - i_3_ += i_9_ * Class79.anInt1401; - } - if (i_2_ + i_5_ > Class79.anInt1404) - i_5_ -= i_2_ + i_5_ - Class79.anInt1404; - if (i < Class79.anInt1400) { - int i_10_ = Class79.anInt1400 - i; - i_6_ -= i_10_; - i = Class79.anInt1400; - i_4_ += i_10_; - i_3_ += i_10_; - i_8_ += i_10_; - i_7_ += i_10_; - } - if (i + i_6_ > Class79.anInt1398) { - int i_11_ = i + i_6_ - Class79.anInt1398; - i_6_ -= i_11_; - i_8_ += i_11_; - i_7_ += i_11_; - } - if (i_6_ > 0 && i_5_ > 0) - method1122(Class79.anIntArray1402, anIntArray4615, 0, i_4_, i_3_, - i_6_, i_5_, i_7_, i_8_); + i += anInt4315; + i_2_ += anInt4303; + int i_3_ = i + i_2_ * Class79.anInt1401; + int i_4_ = 0; + int i_5_ = anInt4311; + int i_6_ = anInt4309; + int i_7_ = Class79.anInt1401 - i_6_; + int i_8_ = 0; + if (i_2_ < Class79.anInt1403) { + int i_9_ = Class79.anInt1403 - i_2_; + i_5_ -= i_9_; + i_2_ = Class79.anInt1403; + i_4_ += i_9_ * i_6_; + i_3_ += i_9_ * Class79.anInt1401; + } + if (i_2_ + i_5_ > Class79.anInt1404) + i_5_ -= i_2_ + i_5_ - Class79.anInt1404; + if (i < Class79.anInt1400) { + int i_10_ = Class79.anInt1400 - i; + i_6_ -= i_10_; + i = Class79.anInt1400; + i_4_ += i_10_; + i_3_ += i_10_; + i_8_ += i_10_; + i_7_ += i_10_; + } + if (i + i_6_ > Class79.anInt1398) { + int i_11_ = i + i_6_ - Class79.anInt1398; + i_6_ -= i_11_; + i_8_ += i_11_; + i_7_ += i_11_; + } + if (i_6_ > 0 && i_5_ > 0) + method1122(Class79.anIntArray1402, pixels, 0, i_4_, i_3_, + i_6_, i_5_, i_7_, i_8_); } - + public void method1108(int i, int i_12_) { - i += anInt4315; - i_12_ += anInt4303; - int i_13_ = i + i_12_ * Class79.anInt1401; - int i_14_ = 0; - int i_15_ = anInt4311; - int i_16_ = anInt4309; - int i_17_ = Class79.anInt1401 - i_16_; - int i_18_ = 0; - if (i_12_ < Class79.anInt1403) { - int i_19_ = Class79.anInt1403 - i_12_; - i_15_ -= i_19_; - i_12_ = Class79.anInt1403; - i_14_ += i_19_ * i_16_; - i_13_ += i_19_ * Class79.anInt1401; - } - if (i_12_ + i_15_ > Class79.anInt1404) - i_15_ -= i_12_ + i_15_ - Class79.anInt1404; - if (i < Class79.anInt1400) { - int i_20_ = Class79.anInt1400 - i; - i_16_ -= i_20_; - i = Class79.anInt1400; - i_14_ += i_20_; - i_13_ += i_20_; - i_18_ += i_20_; - i_17_ += i_20_; - } - if (i + i_16_ > Class79.anInt1398) { - int i_21_ = i + i_16_ - Class79.anInt1398; - i_16_ -= i_21_; - i_18_ += i_21_; - i_17_ += i_21_; - } - if (i_16_ > 0 && i_15_ > 0) - method1128(Class79.anIntArray1402, anIntArray4615, i_14_, i_13_, - i_16_, i_15_, i_17_, i_18_); + i += anInt4315; + i_12_ += anInt4303; + int i_13_ = i + i_12_ * Class79.anInt1401; + int i_14_ = 0; + int i_15_ = anInt4311; + int i_16_ = anInt4309; + int i_17_ = Class79.anInt1401 - i_16_; + int i_18_ = 0; + if (i_12_ < Class79.anInt1403) { + int i_19_ = Class79.anInt1403 - i_12_; + i_15_ -= i_19_; + i_12_ = Class79.anInt1403; + i_14_ += i_19_ * i_16_; + i_13_ += i_19_ * Class79.anInt1401; + } + if (i_12_ + i_15_ > Class79.anInt1404) + i_15_ -= i_12_ + i_15_ - Class79.anInt1404; + if (i < Class79.anInt1400) { + int i_20_ = Class79.anInt1400 - i; + i_16_ -= i_20_; + i = Class79.anInt1400; + i_14_ += i_20_; + i_13_ += i_20_; + i_18_ += i_20_; + i_17_ += i_20_; + } + if (i + i_16_ > Class79.anInt1398) { + int i_21_ = i + i_16_ - Class79.anInt1398; + i_16_ -= i_21_; + i_18_ += i_21_; + i_17_ += i_21_; + } + if (i_16_ > 0 && i_15_ > 0) + method1128(Class79.anIntArray1402, pixels, i_14_, i_13_, + i_16_, i_15_, i_17_, i_18_); } - + public void method1118(int i) { - int[] is = new int[anInt4309 * anInt4311]; - int i_22_ = 0; - for (int i_23_ = 0; i_23_ < anInt4311; i_23_++) { - for (int i_24_ = 0; i_24_ < anInt4309; i_24_++) { - int i_25_ = anIntArray4615[i_22_]; - if (i_25_ == 0) { - if (i_24_ > 0 && anIntArray4615[i_22_ - 1] != 0) - i_25_ = i; - else if (i_23_ > 0 - && anIntArray4615[i_22_ - anInt4309] != 0) - i_25_ = i; - else if (i_24_ < anInt4309 - 1 - && anIntArray4615[i_22_ + 1] != 0) - i_25_ = i; - else if (i_23_ < anInt4311 - 1 - && anIntArray4615[i_22_ + anInt4309] != 0) - i_25_ = i; - } - is[i_22_++] = i_25_; - } - } - anIntArray4615 = is; + int[] is = new int[anInt4309 * anInt4311]; + int i_22_ = 0; + for (int i_23_ = 0; i_23_ < anInt4311; i_23_++) { + for (int i_24_ = 0; i_24_ < anInt4309; i_24_++) { + int i_25_ = pixels[i_22_]; + if (i_25_ == 0) { + if (i_24_ > 0 && pixels[i_22_ - 1] != 0) + i_25_ = i; + else if (i_23_ > 0 + && pixels[i_22_ - anInt4309] != 0) + i_25_ = i; + else if (i_24_ < anInt4309 - 1 + && pixels[i_22_ + 1] != 0) + i_25_ = i; + else if (i_23_ < anInt4311 - 1 + && pixels[i_22_ + anInt4309] != 0) + i_25_ = i; + } + is[i_22_++] = i_25_; + } + } + pixels = is; } - + public void method1119(int i, int i_26_, int i_27_, int i_28_, int i_29_, - int i_30_, int i_31_, int i_32_, int[] is, - int[] is_33_) { - try { - int i_34_ = -i_27_ / 2; - int i_35_ = -i_28_ / 2; - int i_36_ = (int) (Math.sin((double) i_31_ / 326.11) * 65536.0); - int i_37_ = (int) (Math.cos((double) i_31_ / 326.11) * 65536.0); - i_36_ = i_36_ * i_32_ >> 8; - i_37_ = i_37_ * i_32_ >> 8; - int i_38_ = (i_29_ << 16) + (i_35_ * i_36_ + i_34_ * i_37_); - int i_39_ = (i_30_ << 16) + (i_35_ * i_37_ - i_34_ * i_36_); - int i_40_ = i + i_26_ * Class79.anInt1401; - for (i_26_ = 0; i_26_ < i_28_; i_26_++) { - int i_41_ = is[i_26_]; - int i_42_ = i_40_ + i_41_; - int i_43_ = i_38_ + i_37_ * i_41_; - int i_44_ = i_39_ - i_36_ * i_41_; - for (i = -is_33_[i_26_]; i < 0; i++) { - int i_45_ = (anIntArray4615 - [(i_43_ >> 16) + (i_44_ >> 16) * anInt4309]); - if (i_45_ != 0) - Class79.anIntArray1402[i_42_++] = i_45_; - else - i_42_++; - i_43_ += i_37_; - i_44_ -= i_36_; - } - i_38_ += i_36_; - i_39_ += i_37_; - i_40_ += Class79.anInt1401; - } - } catch (Exception exception) { - /* empty */ - } + int i_30_, int i_31_, int i_32_, int[] is, + int[] is_33_) { + try { + int i_34_ = -i_27_ / 2; + int i_35_ = -i_28_ / 2; + int i_36_ = (int) (Math.sin((double) i_31_ / 326.11) * 65536.0); + int i_37_ = (int) (Math.cos((double) i_31_ / 326.11) * 65536.0); + i_36_ = i_36_ * i_32_ >> 8; + i_37_ = i_37_ * i_32_ >> 8; + int i_38_ = (i_29_ << 16) + (i_35_ * i_36_ + i_34_ * i_37_); + int i_39_ = (i_30_ << 16) + (i_35_ * i_37_ - i_34_ * i_36_); + int i_40_ = i + i_26_ * Class79.anInt1401; + for (i_26_ = 0; i_26_ < i_28_; i_26_++) { + int i_41_ = is[i_26_]; + int i_42_ = i_40_ + i_41_; + int i_43_ = i_38_ + i_37_ * i_41_; + int i_44_ = i_39_ - i_36_ * i_41_; + for (i = -is_33_[i_26_]; i < 0; i++) { + int i_45_ = (pixels + [(i_43_ >> 16) + (i_44_ >> 16) * anInt4309]); + if (i_45_ != 0) + Class79.anIntArray1402[i_42_++] = i_45_; + else + i_42_++; + i_43_ += i_37_; + i_44_ -= i_36_; + } + i_38_ += i_36_; + i_39_ += i_37_; + i_40_ += Class79.anInt1401; + } + } catch (Exception exception) { + /* empty */ + } } - + public void method1107(int i, int i_46_, int i_47_, int i_48_, int i_49_, - int i_50_) { - if (i_50_ != 0) { - i -= anInt4315 << 4; - i_46_ -= anInt4303 << 4; - double d = (double) (i_49_ & 0xffff) * 9.587379924285257E-5; - int i_51_ = (int) Math.floor(Math.sin(d) * (double) i_50_ + 0.5); - int i_52_ = (int) Math.floor(Math.cos(d) * (double) i_50_ + 0.5); - int i_53_ = -i * i_52_ + -i_46_ * i_51_; - int i_54_ = i * i_51_ + -i_46_ * i_52_; - int i_55_ = ((anInt4309 << 4) - i) * i_52_ + -i_46_ * i_51_; - int i_56_ = -((anInt4309 << 4) - i) * i_51_ + -i_46_ * i_52_; - int i_57_ = -i * i_52_ + ((anInt4311 << 4) - i_46_) * i_51_; - int i_58_ = i * i_51_ + ((anInt4311 << 4) - i_46_) * i_52_; - int i_59_ = (((anInt4309 << 4) - i) * i_52_ - + ((anInt4311 << 4) - i_46_) * i_51_); - int i_60_ = (-((anInt4309 << 4) - i) * i_51_ - + ((anInt4311 << 4) - i_46_) * i_52_); - int i_61_; - int i_62_; - if (i_53_ < i_55_) { - i_61_ = i_53_; - i_62_ = i_55_; - } else { - i_61_ = i_55_; - i_62_ = i_53_; - } - if (i_57_ < i_61_) - i_61_ = i_57_; - if (i_59_ < i_61_) - i_61_ = i_59_; - if (i_57_ > i_62_) - i_62_ = i_57_; - if (i_59_ > i_62_) - i_62_ = i_59_; - int i_63_; - int i_64_; - if (i_54_ < i_56_) { - i_63_ = i_54_; - i_64_ = i_56_; - } else { - i_63_ = i_56_; - i_64_ = i_54_; - } - if (i_58_ < i_63_) - i_63_ = i_58_; - if (i_60_ < i_63_) - i_63_ = i_60_; - if (i_58_ > i_64_) - i_64_ = i_58_; - if (i_60_ > i_64_) - i_64_ = i_60_; - i_61_ >>= 12; - i_62_ = i_62_ + 4095 >> 12; - i_63_ >>= 12; - i_64_ = i_64_ + 4095 >> 12; - i_61_ += i_47_; - i_62_ += i_47_; - i_63_ += i_48_; - i_64_ += i_48_; - i_61_ >>= 4; - i_62_ = i_62_ + 15 >> 4; - i_63_ >>= 4; - i_64_ = i_64_ + 15 >> 4; - if (i_61_ < Class79.anInt1400) - i_61_ = Class79.anInt1400; - if (i_62_ > Class79.anInt1398) - i_62_ = Class79.anInt1398; - if (i_63_ < Class79.anInt1403) - i_63_ = Class79.anInt1403; - if (i_64_ > Class79.anInt1404) - i_64_ = Class79.anInt1404; - i_62_ = i_61_ - i_62_; - if (i_62_ < 0) { - i_64_ = i_63_ - i_64_; - if (i_64_ < 0) { - int i_65_ = i_63_ * Class79.anInt1401 + i_61_; - double d_66_ = 1.6777216E7 / (double) i_50_; - int i_67_ = (int) Math.floor(Math.sin(d) * d_66_ + 0.5); - int i_68_ = (int) Math.floor(Math.cos(d) * d_66_ + 0.5); - int i_69_ = (i_61_ << 4) + 8 - i_47_; - int i_70_ = (i_63_ << 4) + 8 - i_48_; - int i_71_ = (i << 8) - (i_70_ * i_67_ >> 4); - int i_72_ = (i_46_ << 8) + (i_70_ * i_68_ >> 4); - if (i_68_ == 0) { - if (i_67_ == 0) { - int i_73_ = i_64_; - while (i_73_ < 0) { - int i_74_ = i_65_; - int i_75_ = i_71_; - int i_76_ = i_72_; - int i_77_ = i_62_; - if (i_75_ >= 0 && i_76_ >= 0 - && i_75_ - (anInt4309 << 12) < 0 - && i_76_ - (anInt4311 << 12) < 0) { - for (/**/; i_77_ < 0; i_77_++) { - int i_78_ - = (anIntArray4615 - [((i_76_ >> 12) * anInt4309 - + (i_75_ >> 12))]); - if (i_78_ != 0) - Class79.anIntArray1402[i_74_++] - = i_78_; - else - i_74_++; - } - } - i_73_++; - i_65_ += Class79.anInt1401; - } - } else if (i_67_ < 0) { - int i_79_ = i_64_; - while (i_79_ < 0) { - int i_80_ = i_65_; - int i_81_ = i_71_; - int i_82_ = i_72_ + (i_69_ * i_67_ >> 4); - int i_83_ = i_62_; - if (i_81_ >= 0 - && i_81_ - (anInt4309 << 12) < 0) { - int i_84_; - if ((i_84_ = i_82_ - (anInt4311 << 12)) - >= 0) { - i_84_ = (i_67_ - i_84_) / i_67_; - i_83_ += i_84_; - i_82_ += i_67_ * i_84_; - i_80_ += i_84_; - } - if ((i_84_ = (i_82_ - i_67_) / i_67_) - > i_83_) - i_83_ = i_84_; - for (/**/; i_83_ < 0; i_83_++) { - int i_85_ - = (anIntArray4615 - [((i_82_ >> 12) * anInt4309 - + (i_81_ >> 12))]); - if (i_85_ != 0) - Class79.anIntArray1402[i_80_++] - = i_85_; - else - i_80_++; - i_82_ += i_67_; - } - } - i_79_++; - i_71_ -= i_67_; - i_65_ += Class79.anInt1401; - } - } else { - int i_86_ = i_64_; - while (i_86_ < 0) { - int i_87_ = i_65_; - int i_88_ = i_71_; - int i_89_ = i_72_ + (i_69_ * i_67_ >> 4); - int i_90_ = i_62_; - if (i_88_ >= 0 - && i_88_ - (anInt4309 << 12) < 0) { - if (i_89_ < 0) { - int i_91_ - = (i_67_ - 1 - i_89_) / i_67_; - i_90_ += i_91_; - i_89_ += i_67_ * i_91_; - i_87_ += i_91_; - } - int i_92_; - if ((i_92_ = (1 + i_89_ - (anInt4311 << 12) - - i_67_) / i_67_) - > i_90_) - i_90_ = i_92_; - for (/**/; i_90_ < 0; i_90_++) { - int i_93_ - = (anIntArray4615 - [((i_89_ >> 12) * anInt4309 - + (i_88_ >> 12))]); - if (i_93_ != 0) - Class79.anIntArray1402[i_87_++] - = i_93_; - else - i_87_++; - i_89_ += i_67_; - } - } - i_86_++; - i_71_ -= i_67_; - i_65_ += Class79.anInt1401; - } - } - } else if (i_68_ < 0) { - if (i_67_ == 0) { - int i_94_ = i_64_; - while (i_94_ < 0) { - int i_95_ = i_65_; - int i_96_ = i_71_ + (i_69_ * i_68_ >> 4); - int i_97_ = i_72_; - int i_98_ = i_62_; - if (i_97_ >= 0 - && i_97_ - (anInt4311 << 12) < 0) { - int i_99_; - if ((i_99_ = i_96_ - (anInt4309 << 12)) - >= 0) { - i_99_ = (i_68_ - i_99_) / i_68_; - i_98_ += i_99_; - i_96_ += i_68_ * i_99_; - i_95_ += i_99_; - } - if ((i_99_ = (i_96_ - i_68_) / i_68_) - > i_98_) - i_98_ = i_99_; - for (/**/; i_98_ < 0; i_98_++) { - int i_100_ - = (anIntArray4615 - [((i_97_ >> 12) * anInt4309 - + (i_96_ >> 12))]); - if (i_100_ != 0) - Class79.anIntArray1402[i_95_++] - = i_100_; - else - i_95_++; - i_96_ += i_68_; - } - } - i_94_++; - i_72_ += i_68_; - i_65_ += Class79.anInt1401; - } - } else if (i_67_ < 0) { - int i_101_ = i_64_; - while (i_101_ < 0) { - int i_102_ = i_65_; - int i_103_ = i_71_ + (i_69_ * i_68_ >> 4); - int i_104_ = i_72_ + (i_69_ * i_67_ >> 4); - int i_105_ = i_62_; - int i_106_; - if ((i_106_ = i_103_ - (anInt4309 << 12)) - >= 0) { - i_106_ = (i_68_ - i_106_) / i_68_; - i_105_ += i_106_; - i_103_ += i_68_ * i_106_; - i_104_ += i_67_ * i_106_; - i_102_ += i_106_; - } - if ((i_106_ = (i_103_ - i_68_) / i_68_) - > i_105_) - i_105_ = i_106_; - if ((i_106_ = i_104_ - (anInt4311 << 12)) - >= 0) { - i_106_ = (i_67_ - i_106_) / i_67_; - i_105_ += i_106_; - i_103_ += i_68_ * i_106_; - i_104_ += i_67_ * i_106_; - i_102_ += i_106_; - } - if ((i_106_ = (i_104_ - i_67_) / i_67_) - > i_105_) - i_105_ = i_106_; - for (/**/; i_105_ < 0; i_105_++) { - int i_107_ = (anIntArray4615 - [((i_104_ >> 12) * anInt4309 - + (i_103_ >> 12))]); - if (i_107_ != 0) - Class79.anIntArray1402[i_102_++] - = i_107_; - else - i_102_++; - i_103_ += i_68_; - i_104_ += i_67_; - } - i_101_++; - i_71_ -= i_67_; - i_72_ += i_68_; - i_65_ += Class79.anInt1401; - } - } else { - int i_108_ = i_64_; - while (i_108_ < 0) { - int i_109_ = i_65_; - int i_110_ = i_71_ + (i_69_ * i_68_ >> 4); - int i_111_ = i_72_ + (i_69_ * i_67_ >> 4); - int i_112_ = i_62_; - int i_113_; - if ((i_113_ = i_110_ - (anInt4309 << 12)) - >= 0) { - i_113_ = (i_68_ - i_113_) / i_68_; - i_112_ += i_113_; - i_110_ += i_68_ * i_113_; - i_111_ += i_67_ * i_113_; - i_109_ += i_113_; - } - if ((i_113_ = (i_110_ - i_68_) / i_68_) - > i_112_) - i_112_ = i_113_; - if (i_111_ < 0) { - i_113_ = (i_67_ - 1 - i_111_) / i_67_; - i_112_ += i_113_; - i_110_ += i_68_ * i_113_; - i_111_ += i_67_ * i_113_; - i_109_ += i_113_; - } - if ((i_113_ = (1 + i_111_ - (anInt4311 << 12) - - i_67_) / i_67_) - > i_112_) - i_112_ = i_113_; - for (/**/; i_112_ < 0; i_112_++) { - int i_114_ = (anIntArray4615 - [((i_111_ >> 12) * anInt4309 - + (i_110_ >> 12))]); - if (i_114_ != 0) - Class79.anIntArray1402[i_109_++] - = i_114_; - else - i_109_++; - i_110_ += i_68_; - i_111_ += i_67_; - } - i_108_++; - i_71_ -= i_67_; - i_72_ += i_68_; - i_65_ += Class79.anInt1401; - } - } - } else if (i_67_ == 0) { - int i_115_ = i_64_; - while (i_115_ < 0) { - int i_116_ = i_65_; - int i_117_ = i_71_ + (i_69_ * i_68_ >> 4); - int i_118_ = i_72_; - int i_119_ = i_62_; - if (i_118_ >= 0 - && i_118_ - (anInt4311 << 12) < 0) { - if (i_117_ < 0) { - int i_120_ = (i_68_ - 1 - i_117_) / i_68_; - i_119_ += i_120_; - i_117_ += i_68_ * i_120_; - i_116_ += i_120_; - } - int i_121_; - if ((i_121_ = (1 + i_117_ - (anInt4309 << 12) - - i_68_) / i_68_) - > i_119_) - i_119_ = i_121_; - for (/**/; i_119_ < 0; i_119_++) { - int i_122_ = (anIntArray4615 - [((i_118_ >> 12) * anInt4309 - + (i_117_ >> 12))]); - if (i_122_ != 0) - Class79.anIntArray1402[i_116_++] - = i_122_; - else - i_116_++; - i_117_ += i_68_; - } - } - i_115_++; - i_72_ += i_68_; - i_65_ += Class79.anInt1401; - } - } else if (i_67_ < 0) { - int i_123_ = i_64_; - while (i_123_ < 0) { - int i_124_ = i_65_; - int i_125_ = i_71_ + (i_69_ * i_68_ >> 4); - int i_126_ = i_72_ + (i_69_ * i_67_ >> 4); - int i_127_ = i_62_; - if (i_125_ < 0) { - int i_128_ = (i_68_ - 1 - i_125_) / i_68_; - i_127_ += i_128_; - i_125_ += i_68_ * i_128_; - i_126_ += i_67_ * i_128_; - i_124_ += i_128_; - } - int i_129_; - if ((i_129_ = (1 + i_125_ - (anInt4309 << 12) - - i_68_) / i_68_) - > i_127_) - i_127_ = i_129_; - if ((i_129_ = i_126_ - (anInt4311 << 12)) >= 0) { - i_129_ = (i_67_ - i_129_) / i_67_; - i_127_ += i_129_; - i_125_ += i_68_ * i_129_; - i_126_ += i_67_ * i_129_; - i_124_ += i_129_; - } - if ((i_129_ = (i_126_ - i_67_) / i_67_) > i_127_) - i_127_ = i_129_; - for (/**/; i_127_ < 0; i_127_++) { - int i_130_ - = (anIntArray4615 - [(i_126_ >> 12) * anInt4309 + (i_125_ - >> 12)]); - if (i_130_ != 0) - Class79.anIntArray1402[i_124_++] = i_130_; - else - i_124_++; - i_125_ += i_68_; - i_126_ += i_67_; - } - i_123_++; - i_71_ -= i_67_; - i_72_ += i_68_; - i_65_ += Class79.anInt1401; - } - } else { - int i_131_ = i_64_; - while (i_131_ < 0) { - int i_132_ = i_65_; - int i_133_ = i_71_ + (i_69_ * i_68_ >> 4); - int i_134_ = i_72_ + (i_69_ * i_67_ >> 4); - int i_135_ = i_62_; - if (i_133_ < 0) { - int i_136_ = (i_68_ - 1 - i_133_) / i_68_; - i_135_ += i_136_; - i_133_ += i_68_ * i_136_; - i_134_ += i_67_ * i_136_; - i_132_ += i_136_; - } - int i_137_; - if ((i_137_ = (1 + i_133_ - (anInt4309 << 12) - - i_68_) / i_68_) - > i_135_) - i_135_ = i_137_; - if (i_134_ < 0) { - i_137_ = (i_67_ - 1 - i_134_) / i_67_; - i_135_ += i_137_; - i_133_ += i_68_ * i_137_; - i_134_ += i_67_ * i_137_; - i_132_ += i_137_; - } - if ((i_137_ = (1 + i_134_ - (anInt4311 << 12) - - i_67_) / i_67_) - > i_135_) - i_135_ = i_137_; - for (/**/; i_135_ < 0; i_135_++) { - int i_138_ - = (anIntArray4615 - [(i_134_ >> 12) * anInt4309 + (i_133_ - >> 12)]); - if (i_138_ != 0) - Class79.anIntArray1402[i_132_++] = i_138_; - else - i_132_++; - i_133_ += i_68_; - i_134_ += i_67_; - } - i_131_++; - i_71_ -= i_67_; - i_72_ += i_68_; - i_65_ += Class79.anInt1401; - } - } - } - } - } + int i_50_) { + if (i_50_ != 0) { + i -= anInt4315 << 4; + i_46_ -= anInt4303 << 4; + double d = (double) (i_49_ & 0xffff) * 9.587379924285257E-5; + int i_51_ = (int) Math.floor(Math.sin(d) * (double) i_50_ + 0.5); + int i_52_ = (int) Math.floor(Math.cos(d) * (double) i_50_ + 0.5); + int i_53_ = -i * i_52_ + -i_46_ * i_51_; + int i_54_ = i * i_51_ + -i_46_ * i_52_; + int i_55_ = ((anInt4309 << 4) - i) * i_52_ + -i_46_ * i_51_; + int i_56_ = -((anInt4309 << 4) - i) * i_51_ + -i_46_ * i_52_; + int i_57_ = -i * i_52_ + ((anInt4311 << 4) - i_46_) * i_51_; + int i_58_ = i * i_51_ + ((anInt4311 << 4) - i_46_) * i_52_; + int i_59_ = (((anInt4309 << 4) - i) * i_52_ + + ((anInt4311 << 4) - i_46_) * i_51_); + int i_60_ = (-((anInt4309 << 4) - i) * i_51_ + + ((anInt4311 << 4) - i_46_) * i_52_); + int i_61_; + int i_62_; + if (i_53_ < i_55_) { + i_61_ = i_53_; + i_62_ = i_55_; + } else { + i_61_ = i_55_; + i_62_ = i_53_; + } + if (i_57_ < i_61_) + i_61_ = i_57_; + if (i_59_ < i_61_) + i_61_ = i_59_; + if (i_57_ > i_62_) + i_62_ = i_57_; + if (i_59_ > i_62_) + i_62_ = i_59_; + int i_63_; + int i_64_; + if (i_54_ < i_56_) { + i_63_ = i_54_; + i_64_ = i_56_; + } else { + i_63_ = i_56_; + i_64_ = i_54_; + } + if (i_58_ < i_63_) + i_63_ = i_58_; + if (i_60_ < i_63_) + i_63_ = i_60_; + if (i_58_ > i_64_) + i_64_ = i_58_; + if (i_60_ > i_64_) + i_64_ = i_60_; + i_61_ >>= 12; + i_62_ = i_62_ + 4095 >> 12; + i_63_ >>= 12; + i_64_ = i_64_ + 4095 >> 12; + i_61_ += i_47_; + i_62_ += i_47_; + i_63_ += i_48_; + i_64_ += i_48_; + i_61_ >>= 4; + i_62_ = i_62_ + 15 >> 4; + i_63_ >>= 4; + i_64_ = i_64_ + 15 >> 4; + if (i_61_ < Class79.anInt1400) + i_61_ = Class79.anInt1400; + if (i_62_ > Class79.anInt1398) + i_62_ = Class79.anInt1398; + if (i_63_ < Class79.anInt1403) + i_63_ = Class79.anInt1403; + if (i_64_ > Class79.anInt1404) + i_64_ = Class79.anInt1404; + i_62_ = i_61_ - i_62_; + if (i_62_ < 0) { + i_64_ = i_63_ - i_64_; + if (i_64_ < 0) { + int i_65_ = i_63_ * Class79.anInt1401 + i_61_; + double d_66_ = 1.6777216E7 / (double) i_50_; + int i_67_ = (int) Math.floor(Math.sin(d) * d_66_ + 0.5); + int i_68_ = (int) Math.floor(Math.cos(d) * d_66_ + 0.5); + int i_69_ = (i_61_ << 4) + 8 - i_47_; + int i_70_ = (i_63_ << 4) + 8 - i_48_; + int i_71_ = (i << 8) - (i_70_ * i_67_ >> 4); + int i_72_ = (i_46_ << 8) + (i_70_ * i_68_ >> 4); + if (i_68_ == 0) { + if (i_67_ == 0) { + int i_73_ = i_64_; + while (i_73_ < 0) { + int i_74_ = i_65_; + int i_75_ = i_71_; + int i_76_ = i_72_; + int i_77_ = i_62_; + if (i_75_ >= 0 && i_76_ >= 0 + && i_75_ - (anInt4309 << 12) < 0 + && i_76_ - (anInt4311 << 12) < 0) { + for (/**/; i_77_ < 0; i_77_++) { + int i_78_ + = (pixels + [((i_76_ >> 12) * anInt4309 + + (i_75_ >> 12))]); + if (i_78_ != 0) + Class79.anIntArray1402[i_74_++] + = i_78_; + else + i_74_++; + } + } + i_73_++; + i_65_ += Class79.anInt1401; + } + } else if (i_67_ < 0) { + int i_79_ = i_64_; + while (i_79_ < 0) { + int i_80_ = i_65_; + int i_81_ = i_71_; + int i_82_ = i_72_ + (i_69_ * i_67_ >> 4); + int i_83_ = i_62_; + if (i_81_ >= 0 + && i_81_ - (anInt4309 << 12) < 0) { + int i_84_; + if ((i_84_ = i_82_ - (anInt4311 << 12)) + >= 0) { + i_84_ = (i_67_ - i_84_) / i_67_; + i_83_ += i_84_; + i_82_ += i_67_ * i_84_; + i_80_ += i_84_; + } + if ((i_84_ = (i_82_ - i_67_) / i_67_) + > i_83_) + i_83_ = i_84_; + for (/**/; i_83_ < 0; i_83_++) { + int i_85_ + = (pixels + [((i_82_ >> 12) * anInt4309 + + (i_81_ >> 12))]); + if (i_85_ != 0) + Class79.anIntArray1402[i_80_++] + = i_85_; + else + i_80_++; + i_82_ += i_67_; + } + } + i_79_++; + i_71_ -= i_67_; + i_65_ += Class79.anInt1401; + } + } else { + int i_86_ = i_64_; + while (i_86_ < 0) { + int i_87_ = i_65_; + int i_88_ = i_71_; + int i_89_ = i_72_ + (i_69_ * i_67_ >> 4); + int i_90_ = i_62_; + if (i_88_ >= 0 + && i_88_ - (anInt4309 << 12) < 0) { + if (i_89_ < 0) { + int i_91_ + = (i_67_ - 1 - i_89_) / i_67_; + i_90_ += i_91_; + i_89_ += i_67_ * i_91_; + i_87_ += i_91_; + } + int i_92_; + if ((i_92_ = (1 + i_89_ - (anInt4311 << 12) + - i_67_) / i_67_) + > i_90_) + i_90_ = i_92_; + for (/**/; i_90_ < 0; i_90_++) { + int i_93_ + = (pixels + [((i_89_ >> 12) * anInt4309 + + (i_88_ >> 12))]); + if (i_93_ != 0) + Class79.anIntArray1402[i_87_++] + = i_93_; + else + i_87_++; + i_89_ += i_67_; + } + } + i_86_++; + i_71_ -= i_67_; + i_65_ += Class79.anInt1401; + } + } + } else if (i_68_ < 0) { + if (i_67_ == 0) { + int i_94_ = i_64_; + while (i_94_ < 0) { + int i_95_ = i_65_; + int i_96_ = i_71_ + (i_69_ * i_68_ >> 4); + int i_97_ = i_72_; + int i_98_ = i_62_; + if (i_97_ >= 0 + && i_97_ - (anInt4311 << 12) < 0) { + int i_99_; + if ((i_99_ = i_96_ - (anInt4309 << 12)) + >= 0) { + i_99_ = (i_68_ - i_99_) / i_68_; + i_98_ += i_99_; + i_96_ += i_68_ * i_99_; + i_95_ += i_99_; + } + if ((i_99_ = (i_96_ - i_68_) / i_68_) + > i_98_) + i_98_ = i_99_; + for (/**/; i_98_ < 0; i_98_++) { + int i_100_ + = (pixels + [((i_97_ >> 12) * anInt4309 + + (i_96_ >> 12))]); + if (i_100_ != 0) + Class79.anIntArray1402[i_95_++] + = i_100_; + else + i_95_++; + i_96_ += i_68_; + } + } + i_94_++; + i_72_ += i_68_; + i_65_ += Class79.anInt1401; + } + } else if (i_67_ < 0) { + int i_101_ = i_64_; + while (i_101_ < 0) { + int i_102_ = i_65_; + int i_103_ = i_71_ + (i_69_ * i_68_ >> 4); + int i_104_ = i_72_ + (i_69_ * i_67_ >> 4); + int i_105_ = i_62_; + int i_106_; + if ((i_106_ = i_103_ - (anInt4309 << 12)) + >= 0) { + i_106_ = (i_68_ - i_106_) / i_68_; + i_105_ += i_106_; + i_103_ += i_68_ * i_106_; + i_104_ += i_67_ * i_106_; + i_102_ += i_106_; + } + if ((i_106_ = (i_103_ - i_68_) / i_68_) + > i_105_) + i_105_ = i_106_; + if ((i_106_ = i_104_ - (anInt4311 << 12)) + >= 0) { + i_106_ = (i_67_ - i_106_) / i_67_; + i_105_ += i_106_; + i_103_ += i_68_ * i_106_; + i_104_ += i_67_ * i_106_; + i_102_ += i_106_; + } + if ((i_106_ = (i_104_ - i_67_) / i_67_) + > i_105_) + i_105_ = i_106_; + for (/**/; i_105_ < 0; i_105_++) { + int i_107_ = (pixels + [((i_104_ >> 12) * anInt4309 + + (i_103_ >> 12))]); + if (i_107_ != 0) + Class79.anIntArray1402[i_102_++] + = i_107_; + else + i_102_++; + i_103_ += i_68_; + i_104_ += i_67_; + } + i_101_++; + i_71_ -= i_67_; + i_72_ += i_68_; + i_65_ += Class79.anInt1401; + } + } else { + int i_108_ = i_64_; + while (i_108_ < 0) { + int i_109_ = i_65_; + int i_110_ = i_71_ + (i_69_ * i_68_ >> 4); + int i_111_ = i_72_ + (i_69_ * i_67_ >> 4); + int i_112_ = i_62_; + int i_113_; + if ((i_113_ = i_110_ - (anInt4309 << 12)) + >= 0) { + i_113_ = (i_68_ - i_113_) / i_68_; + i_112_ += i_113_; + i_110_ += i_68_ * i_113_; + i_111_ += i_67_ * i_113_; + i_109_ += i_113_; + } + if ((i_113_ = (i_110_ - i_68_) / i_68_) + > i_112_) + i_112_ = i_113_; + if (i_111_ < 0) { + i_113_ = (i_67_ - 1 - i_111_) / i_67_; + i_112_ += i_113_; + i_110_ += i_68_ * i_113_; + i_111_ += i_67_ * i_113_; + i_109_ += i_113_; + } + if ((i_113_ = (1 + i_111_ - (anInt4311 << 12) + - i_67_) / i_67_) + > i_112_) + i_112_ = i_113_; + for (/**/; i_112_ < 0; i_112_++) { + int i_114_ = (pixels + [((i_111_ >> 12) * anInt4309 + + (i_110_ >> 12))]); + if (i_114_ != 0) + Class79.anIntArray1402[i_109_++] + = i_114_; + else + i_109_++; + i_110_ += i_68_; + i_111_ += i_67_; + } + i_108_++; + i_71_ -= i_67_; + i_72_ += i_68_; + i_65_ += Class79.anInt1401; + } + } + } else if (i_67_ == 0) { + int i_115_ = i_64_; + while (i_115_ < 0) { + int i_116_ = i_65_; + int i_117_ = i_71_ + (i_69_ * i_68_ >> 4); + int i_118_ = i_72_; + int i_119_ = i_62_; + if (i_118_ >= 0 + && i_118_ - (anInt4311 << 12) < 0) { + if (i_117_ < 0) { + int i_120_ = (i_68_ - 1 - i_117_) / i_68_; + i_119_ += i_120_; + i_117_ += i_68_ * i_120_; + i_116_ += i_120_; + } + int i_121_; + if ((i_121_ = (1 + i_117_ - (anInt4309 << 12) + - i_68_) / i_68_) + > i_119_) + i_119_ = i_121_; + for (/**/; i_119_ < 0; i_119_++) { + int i_122_ = (pixels + [((i_118_ >> 12) * anInt4309 + + (i_117_ >> 12))]); + if (i_122_ != 0) + Class79.anIntArray1402[i_116_++] + = i_122_; + else + i_116_++; + i_117_ += i_68_; + } + } + i_115_++; + i_72_ += i_68_; + i_65_ += Class79.anInt1401; + } + } else if (i_67_ < 0) { + int i_123_ = i_64_; + while (i_123_ < 0) { + int i_124_ = i_65_; + int i_125_ = i_71_ + (i_69_ * i_68_ >> 4); + int i_126_ = i_72_ + (i_69_ * i_67_ >> 4); + int i_127_ = i_62_; + if (i_125_ < 0) { + int i_128_ = (i_68_ - 1 - i_125_) / i_68_; + i_127_ += i_128_; + i_125_ += i_68_ * i_128_; + i_126_ += i_67_ * i_128_; + i_124_ += i_128_; + } + int i_129_; + if ((i_129_ = (1 + i_125_ - (anInt4309 << 12) + - i_68_) / i_68_) + > i_127_) + i_127_ = i_129_; + if ((i_129_ = i_126_ - (anInt4311 << 12)) >= 0) { + i_129_ = (i_67_ - i_129_) / i_67_; + i_127_ += i_129_; + i_125_ += i_68_ * i_129_; + i_126_ += i_67_ * i_129_; + i_124_ += i_129_; + } + if ((i_129_ = (i_126_ - i_67_) / i_67_) > i_127_) + i_127_ = i_129_; + for (/**/; i_127_ < 0; i_127_++) { + int i_130_ + = (pixels + [(i_126_ >> 12) * anInt4309 + (i_125_ + >> 12)]); + if (i_130_ != 0) + Class79.anIntArray1402[i_124_++] = i_130_; + else + i_124_++; + i_125_ += i_68_; + i_126_ += i_67_; + } + i_123_++; + i_71_ -= i_67_; + i_72_ += i_68_; + i_65_ += Class79.anInt1401; + } + } else { + int i_131_ = i_64_; + while (i_131_ < 0) { + int i_132_ = i_65_; + int i_133_ = i_71_ + (i_69_ * i_68_ >> 4); + int i_134_ = i_72_ + (i_69_ * i_67_ >> 4); + int i_135_ = i_62_; + if (i_133_ < 0) { + int i_136_ = (i_68_ - 1 - i_133_) / i_68_; + i_135_ += i_136_; + i_133_ += i_68_ * i_136_; + i_134_ += i_67_ * i_136_; + i_132_ += i_136_; + } + int i_137_; + if ((i_137_ = (1 + i_133_ - (anInt4309 << 12) + - i_68_) / i_68_) + > i_135_) + i_135_ = i_137_; + if (i_134_ < 0) { + i_137_ = (i_67_ - 1 - i_134_) / i_67_; + i_135_ += i_137_; + i_133_ += i_68_ * i_137_; + i_134_ += i_67_ * i_137_; + i_132_ += i_137_; + } + if ((i_137_ = (1 + i_134_ - (anInt4311 << 12) + - i_67_) / i_67_) + > i_135_) + i_135_ = i_137_; + for (/**/; i_135_ < 0; i_135_++) { + int i_138_ + = (pixels + [(i_134_ >> 12) * anInt4309 + (i_133_ + >> 12)]); + if (i_138_ != 0) + Class79.anIntArray1402[i_132_++] = i_138_; + else + i_132_++; + i_133_ += i_68_; + i_134_ += i_67_; + } + i_131_++; + i_71_ -= i_67_; + i_72_ += i_68_; + i_65_ += Class79.anInt1401; + } + } + } + } + } } - + public void method1120() { - int[] is = new int[anInt4309 * anInt4311]; - int i = 0; - for (int i_139_ = 0; i_139_ < anInt4311; i_139_++) { - for (int i_140_ = anInt4309 - 1; i_140_ >= 0; i_140_--) - is[i++] = anIntArray4615[i_140_ + i_139_ * anInt4309]; - } - anIntArray4615 = is; - anInt4315 = anInt4305 - anInt4309 - anInt4315; + int[] is = new int[anInt4309 * anInt4311]; + int i = 0; + for (int i_139_ = 0; i_139_ < anInt4311; i_139_++) { + for (int i_140_ = anInt4309 - 1; i_140_ >= 0; i_140_--) + is[i++] = pixels[i_140_ + i_139_ * anInt4309]; + } + pixels = is; + anInt4315 = anInt4305 - anInt4309 - anInt4315; } - + public void method1121(int i, int i_141_, int i_142_, int i_143_, - int i_144_, int i_145_, double d, int i_146_) { - try { - int i_147_ = -i_142_ / 2; - int i_148_ = -i_143_ / 2; - int i_149_ = (int) (Math.sin(d) * 65536.0); - int i_150_ = (int) (Math.cos(d) * 65536.0); - i_149_ = i_149_ * i_146_ >> 8; - i_150_ = i_150_ * i_146_ >> 8; - int i_151_ = (i_144_ << 16) + (i_148_ * i_149_ + i_147_ * i_150_); - int i_152_ = (i_145_ << 16) + (i_148_ * i_150_ - i_147_ * i_149_); - int i_153_ = i + i_141_ * Class79.anInt1401; - for (i_141_ = 0; i_141_ < i_143_; i_141_++) { - int i_154_ = i_153_; - int i_155_ = i_151_; - int i_156_ = i_152_; - for (i = -i_142_; i < 0; i++) { - int i_157_ - = (anIntArray4615 - [(i_155_ >> 16) + (i_156_ >> 16) * anInt4309]); - if (i_157_ != 0) - Class79.anIntArray1402[i_154_++] = i_157_; - else - i_154_++; - i_155_ += i_150_; - i_156_ -= i_149_; - } - i_151_ += i_149_; - i_152_ += i_150_; - i_153_ += Class79.anInt1401; - } - } catch (Exception exception) { - /* empty */ - } + int i_144_, int i_145_, double d, int i_146_) { + try { + int i_147_ = -i_142_ / 2; + int i_148_ = -i_143_ / 2; + int i_149_ = (int) (Math.sin(d) * 65536.0); + int i_150_ = (int) (Math.cos(d) * 65536.0); + i_149_ = i_149_ * i_146_ >> 8; + i_150_ = i_150_ * i_146_ >> 8; + int i_151_ = (i_144_ << 16) + (i_148_ * i_149_ + i_147_ * i_150_); + int i_152_ = (i_145_ << 16) + (i_148_ * i_150_ - i_147_ * i_149_); + int i_153_ = i + i_141_ * Class79.anInt1401; + for (i_141_ = 0; i_141_ < i_143_; i_141_++) { + int i_154_ = i_153_; + int i_155_ = i_151_; + int i_156_ = i_152_; + for (i = -i_142_; i < 0; i++) { + int i_157_ + = (pixels + [(i_155_ >> 16) + (i_156_ >> 16) * anInt4309]); + if (i_157_ != 0) + Class79.anIntArray1402[i_154_++] = i_157_; + else + i_154_++; + i_155_ += i_150_; + i_156_ -= i_149_; + } + i_151_ += i_149_; + i_152_ += i_150_; + i_153_ += Class79.anInt1401; + } + } catch (Exception exception) { + /* empty */ + } } - + public static void method1122(int[] is, int[] is_158_, int i, int i_159_, - int i_160_, int i_161_, int i_162_, - int i_163_, int i_164_) { - int i_165_ = -(i_161_ >> 2); - i_161_ = -(i_161_ & 0x3); - for (int i_166_ = -i_162_; i_166_ < 0; i_166_++) { - for (int i_167_ = i_165_; i_167_ < 0; i_167_++) { - i = is_158_[i_159_++]; - if (i != 0) - is[i_160_++] = i; - else - i_160_++; - i = is_158_[i_159_++]; - if (i != 0) - is[i_160_++] = i; - else - i_160_++; - i = is_158_[i_159_++]; - if (i != 0) - is[i_160_++] = i; - else - i_160_++; - i = is_158_[i_159_++]; - if (i != 0) - is[i_160_++] = i; - else - i_160_++; - } - for (int i_168_ = i_161_; i_168_ < 0; i_168_++) { - i = is_158_[i_159_++]; - if (i != 0) - is[i_160_++] = i; - else - i_160_++; - } - i_160_ += i_163_; - i_159_ += i_164_; - } + int i_160_, int i_161_, int i_162_, + int i_163_, int i_164_) { + int i_165_ = -(i_161_ >> 2); + i_161_ = -(i_161_ & 0x3); + for (int i_166_ = -i_162_; i_166_ < 0; i_166_++) { + for (int i_167_ = i_165_; i_167_ < 0; i_167_++) { + i = is_158_[i_159_++]; + if (i != 0) + is[i_160_++] = i; + else + i_160_++; + i = is_158_[i_159_++]; + if (i != 0) + is[i_160_++] = i; + else + i_160_++; + i = is_158_[i_159_++]; + if (i != 0) + is[i_160_++] = i; + else + i_160_++; + i = is_158_[i_159_++]; + if (i != 0) + is[i_160_++] = i; + else + i_160_++; + } + for (int i_168_ = i_161_; i_168_ < 0; i_168_++) { + i = is_158_[i_159_++]; + if (i != 0) + is[i_160_++] = i; + else + i_160_++; + } + i_160_ += i_163_; + i_159_ += i_164_; + } } - + public void method1123(int i) { - for (int i_169_ = anInt4311 - 1; i_169_ > 0; i_169_--) { - int i_170_ = i_169_ * anInt4309; - for (int i_171_ = anInt4309 - 1; i_171_ > 0; i_171_--) { - if (anIntArray4615[i_171_ + i_170_] == 0 - && anIntArray4615[i_171_ + i_170_ - 1 - anInt4309] != 0) - anIntArray4615[i_171_ + i_170_] = i; - } - } + for (int i_169_ = anInt4311 - 1; i_169_ > 0; i_169_--) { + int i_170_ = i_169_ * anInt4309; + for (int i_171_ = anInt4309 - 1; i_171_ > 0; i_171_--) { + if (pixels[i_171_ + i_170_] == 0 + && pixels[i_171_ + i_170_ - 1 - anInt4309] != 0) + pixels[i_171_ + i_170_] = i; + } + } } - + public static void method1124(int[] is, int[] is_172_, int i, int i_173_, - int i_174_, int i_175_, int i_176_, - int i_177_, int i_178_, int i_179_, - int i_180_, int i_181_) { - int i_182_ = i_173_; - for (int i_183_ = -i_178_; i_183_ < 0; i_183_++) { - int i_184_ = (i_174_ >> 16) * i_181_; - for (int i_185_ = -i_177_; i_185_ < 0; i_185_++) { - i = is_172_[(i_173_ >> 16) + i_184_]; - if (i != 0) - is[i_175_++] = i; - else - i_175_++; - i_173_ += i_179_; - } - i_174_ += i_180_; - i_173_ = i_182_; - i_175_ += i_176_; - } + int i_174_, int i_175_, int i_176_, + int i_177_, int i_178_, int i_179_, + int i_180_, int i_181_) { + int i_182_ = i_173_; + for (int i_183_ = -i_178_; i_183_ < 0; i_183_++) { + int i_184_ = (i_174_ >> 16) * i_181_; + for (int i_185_ = -i_177_; i_185_ < 0; i_185_++) { + i = is_172_[(i_173_ >> 16) + i_184_]; + if (i != 0) + is[i_175_++] = i; + else + i_175_++; + i_173_ += i_179_; + } + i_174_ += i_180_; + i_173_ = i_182_; + i_175_ += i_176_; + } } - + public void method1125(int i) { - if (anInt4309 != anInt4305 || anInt4311 != anInt4313) { - int i_186_ = i; - if (i_186_ > anInt4315) - i_186_ = anInt4315; - int i_187_ = i; - if (i_187_ + anInt4315 + anInt4309 > anInt4305) - i_187_ = anInt4305 - anInt4315 - anInt4309; - int i_188_ = i; - if (i_188_ > anInt4303) - i_188_ = anInt4303; - int i_189_ = i; - if (i_189_ + anInt4303 + anInt4311 > anInt4313) - i_189_ = anInt4313 - anInt4303 - anInt4311; - int i_190_ = anInt4309 + i_186_ + i_187_; - int i_191_ = anInt4311 + i_188_ + i_189_; - int[] is = new int[i_190_ * i_191_]; - for (int i_192_ = 0; i_192_ < anInt4311; i_192_++) { - for (int i_193_ = 0; i_193_ < anInt4309; i_193_++) - is[(i_192_ + i_188_) * i_190_ + (i_193_ + i_186_)] - = anIntArray4615[i_192_ * anInt4309 + i_193_]; - } - anIntArray4615 = is; - anInt4309 = i_190_; - anInt4311 = i_191_; - anInt4315 -= i_186_; - anInt4303 -= i_188_; - } + if (anInt4309 != anInt4305 || anInt4311 != anInt4313) { + int i_186_ = i; + if (i_186_ > anInt4315) + i_186_ = anInt4315; + int i_187_ = i; + if (i_187_ + anInt4315 + anInt4309 > anInt4305) + i_187_ = anInt4305 - anInt4315 - anInt4309; + int i_188_ = i; + if (i_188_ > anInt4303) + i_188_ = anInt4303; + int i_189_ = i; + if (i_189_ + anInt4303 + anInt4311 > anInt4313) + i_189_ = anInt4313 - anInt4303 - anInt4311; + int i_190_ = anInt4309 + i_186_ + i_187_; + int i_191_ = anInt4311 + i_188_ + i_189_; + int[] is = new int[i_190_ * i_191_]; + for (int i_192_ = 0; i_192_ < anInt4311; i_192_++) { + for (int i_193_ = 0; i_193_ < anInt4309; i_193_++) + is[(i_192_ + i_188_) * i_190_ + (i_193_ + i_186_)] + = pixels[i_192_ * anInt4309 + i_193_]; + } + pixels = is; + anInt4309 = i_190_; + anInt4311 = i_191_; + anInt4315 -= i_186_; + anInt4303 -= i_188_; + } } - + public void method1126() { - Class79.method1432(anIntArray4615, anInt4309, anInt4311); + Class79.method1432(pixels, anInt4309, anInt4311); } - + public void method1105(int i, int i_194_, int i_195_, int i_196_, - int i_197_) { - if (i_195_ > 0 && i_196_ > 0) { - int i_198_ = anInt4309; - int i_199_ = anInt4311; - int i_200_ = 0; - int i_201_ = 0; - int i_202_ = anInt4305; - int i_203_ = anInt4313; - int i_204_ = (i_202_ << 16) / i_195_; - int i_205_ = (i_203_ << 16) / i_196_; - if (anInt4315 > 0) { - int i_206_ = ((anInt4315 << 16) + i_204_ - 1) / i_204_; - i += i_206_; - i_200_ += i_206_ * i_204_ - (anInt4315 << 16); - } - if (anInt4303 > 0) { - int i_207_ = ((anInt4303 << 16) + i_205_ - 1) / i_205_; - i_194_ += i_207_; - i_201_ += i_207_ * i_205_ - (anInt4303 << 16); - } - if (i_198_ < i_202_) - i_195_ = ((i_198_ << 16) - i_200_ + i_204_ - 1) / i_204_; - if (i_199_ < i_203_) - i_196_ = ((i_199_ << 16) - i_201_ + i_205_ - 1) / i_205_; - int i_208_ = i + i_194_ * Class79.anInt1401; - int i_209_ = Class79.anInt1401 - i_195_; - if (i_194_ + i_196_ > Class79.anInt1404) - i_196_ -= i_194_ + i_196_ - Class79.anInt1404; - if (i_194_ < Class79.anInt1403) { - int i_210_ = Class79.anInt1403 - i_194_; - i_196_ -= i_210_; - i_208_ += i_210_ * Class79.anInt1401; - i_201_ += i_205_ * i_210_; - } - if (i + i_195_ > Class79.anInt1398) { - int i_211_ = i + i_195_ - Class79.anInt1398; - i_195_ -= i_211_; - i_209_ += i_211_; - } - if (i < Class79.anInt1400) { - int i_212_ = Class79.anInt1400 - i; - i_195_ -= i_212_; - i_208_ += i_212_; - i_200_ += i_204_ * i_212_; - i_209_ += i_212_; - } - method1131(Class79.anIntArray1402, anIntArray4615, 0, i_200_, - i_201_, i_208_, i_209_, i_195_, i_196_, i_204_, i_205_, - i_198_, i_197_); - } + int i_197_) { + if (i_195_ > 0 && i_196_ > 0) { + int i_198_ = anInt4309; + int i_199_ = anInt4311; + int i_200_ = 0; + int i_201_ = 0; + int i_202_ = anInt4305; + int i_203_ = anInt4313; + int i_204_ = (i_202_ << 16) / i_195_; + int i_205_ = (i_203_ << 16) / i_196_; + if (anInt4315 > 0) { + int i_206_ = ((anInt4315 << 16) + i_204_ - 1) / i_204_; + i += i_206_; + i_200_ += i_206_ * i_204_ - (anInt4315 << 16); + } + if (anInt4303 > 0) { + int i_207_ = ((anInt4303 << 16) + i_205_ - 1) / i_205_; + i_194_ += i_207_; + i_201_ += i_207_ * i_205_ - (anInt4303 << 16); + } + if (i_198_ < i_202_) + i_195_ = ((i_198_ << 16) - i_200_ + i_204_ - 1) / i_204_; + if (i_199_ < i_203_) + i_196_ = ((i_199_ << 16) - i_201_ + i_205_ - 1) / i_205_; + int i_208_ = i + i_194_ * Class79.anInt1401; + int i_209_ = Class79.anInt1401 - i_195_; + if (i_194_ + i_196_ > Class79.anInt1404) + i_196_ -= i_194_ + i_196_ - Class79.anInt1404; + if (i_194_ < Class79.anInt1403) { + int i_210_ = Class79.anInt1403 - i_194_; + i_196_ -= i_210_; + i_208_ += i_210_ * Class79.anInt1401; + i_201_ += i_205_ * i_210_; + } + if (i + i_195_ > Class79.anInt1398) { + int i_211_ = i + i_195_ - Class79.anInt1398; + i_195_ -= i_211_; + i_209_ += i_211_; + } + if (i < Class79.anInt1400) { + int i_212_ = Class79.anInt1400 - i; + i_195_ -= i_212_; + i_208_ += i_212_; + i_200_ += i_204_ * i_212_; + i_209_ += i_212_; + } + method1131(Class79.anIntArray1402, pixels, 0, i_200_, + i_201_, i_208_, i_209_, i_195_, i_196_, i_204_, i_205_, + i_198_, i_197_); + } } - + public void method1127(int i, int i_213_, int[] is, int[] is_214_) { - if (Class79.anInt1404 - Class79.anInt1403 != is.length) - throw new IllegalStateException(); - i += anInt4315; - i_213_ += anInt4303; - int i_215_ = 0; - int i_216_ = anInt4311; - int i_217_ = anInt4309; - int i_218_ = Class79.anInt1401 - i_217_; - int i_219_ = 0; - int i_220_ = i + i_213_ * Class79.anInt1401; - if (i_213_ < Class79.anInt1403) { - int i_221_ = Class79.anInt1403 - i_213_; - i_216_ -= i_221_; - i_213_ = Class79.anInt1403; - i_215_ += i_221_ * i_217_; - i_220_ += i_221_ * Class79.anInt1401; - } - if (i_213_ + i_216_ > Class79.anInt1404) - i_216_ -= i_213_ + i_216_ - Class79.anInt1404; - if (i < Class79.anInt1400) { - int i_222_ = Class79.anInt1400 - i; - i_217_ -= i_222_; - i = Class79.anInt1400; - i_215_ += i_222_; - i_220_ += i_222_; - i_219_ += i_222_; - i_218_ += i_222_; - } - if (i + i_217_ > Class79.anInt1398) { - int i_223_ = i + i_217_ - Class79.anInt1398; - i_217_ -= i_223_; - i_219_ += i_223_; - i_218_ += i_223_; - } - if (i_217_ > 0 && i_216_ > 0) { - int i_224_ = i - Class79.anInt1400; - int i_225_ = i_213_ - Class79.anInt1403; - for (int i_226_ = i_225_; i_226_ < i_225_ + i_216_; i_226_++) { - int i_227_ = is[i_226_]; - int i_228_ = is_214_[i_226_]; - int i_229_ = i_217_; - if (i_224_ > i_227_) { - int i_230_ = i_224_ - i_227_; - if (i_230_ >= i_228_) { - i_215_ += i_217_ + i_219_; - i_220_ += i_217_ + i_218_; - continue; - } - i_228_ -= i_230_; - } else { - int i_231_ = i_227_ - i_224_; - if (i_231_ >= i_217_) { - i_215_ += i_217_ + i_219_; - i_220_ += i_217_ + i_218_; - continue; - } - i_215_ += i_231_; - i_229_ -= i_231_; - i_220_ += i_231_; - } - int i_232_ = 0; - if (i_229_ < i_228_) - i_228_ = i_229_; - else - i_232_ = i_229_ - i_228_; - for (int i_233_ = -i_228_; i_233_ < 0; i_233_++) { - int i_234_ = anIntArray4615[i_215_++]; - if (i_234_ != 0) - Class79.anIntArray1402[i_220_++] = i_234_; - else - i_220_++; - } - i_215_ += i_232_ + i_219_; - i_220_ += i_232_ + i_218_; - } - } + if (Class79.anInt1404 - Class79.anInt1403 != is.length) + throw new IllegalStateException(); + i += anInt4315; + i_213_ += anInt4303; + int i_215_ = 0; + int i_216_ = anInt4311; + int i_217_ = anInt4309; + int i_218_ = Class79.anInt1401 - i_217_; + int i_219_ = 0; + int i_220_ = i + i_213_ * Class79.anInt1401; + if (i_213_ < Class79.anInt1403) { + int i_221_ = Class79.anInt1403 - i_213_; + i_216_ -= i_221_; + i_213_ = Class79.anInt1403; + i_215_ += i_221_ * i_217_; + i_220_ += i_221_ * Class79.anInt1401; + } + if (i_213_ + i_216_ > Class79.anInt1404) + i_216_ -= i_213_ + i_216_ - Class79.anInt1404; + if (i < Class79.anInt1400) { + int i_222_ = Class79.anInt1400 - i; + i_217_ -= i_222_; + i = Class79.anInt1400; + i_215_ += i_222_; + i_220_ += i_222_; + i_219_ += i_222_; + i_218_ += i_222_; + } + if (i + i_217_ > Class79.anInt1398) { + int i_223_ = i + i_217_ - Class79.anInt1398; + i_217_ -= i_223_; + i_219_ += i_223_; + i_218_ += i_223_; + } + if (i_217_ > 0 && i_216_ > 0) { + int i_224_ = i - Class79.anInt1400; + int i_225_ = i_213_ - Class79.anInt1403; + for (int i_226_ = i_225_; i_226_ < i_225_ + i_216_; i_226_++) { + int i_227_ = is[i_226_]; + int i_228_ = is_214_[i_226_]; + int i_229_ = i_217_; + if (i_224_ > i_227_) { + int i_230_ = i_224_ - i_227_; + if (i_230_ >= i_228_) { + i_215_ += i_217_ + i_219_; + i_220_ += i_217_ + i_218_; + continue; + } + i_228_ -= i_230_; + } else { + int i_231_ = i_227_ - i_224_; + if (i_231_ >= i_217_) { + i_215_ += i_217_ + i_219_; + i_220_ += i_217_ + i_218_; + continue; + } + i_215_ += i_231_; + i_229_ -= i_231_; + i_220_ += i_231_; + } + int i_232_ = 0; + if (i_229_ < i_228_) + i_228_ = i_229_; + else + i_232_ = i_229_ - i_228_; + for (int i_233_ = -i_228_; i_233_ < 0; i_233_++) { + int i_234_ = pixels[i_215_++]; + if (i_234_ != 0) + Class79.anIntArray1402[i_220_++] = i_234_; + else + i_220_++; + } + i_215_ += i_232_ + i_219_; + i_220_ += i_232_ + i_218_; + } + } } - + public static void method1128(int[] is, int[] is_235_, int i, int i_236_, - int i_237_, int i_238_, int i_239_, - int i_240_) { - for (int i_241_ = -i_238_; i_241_ < 0; i_241_++) { - int i_242_ = i_236_ + i_237_ - 3; - while (i_236_ < i_242_) { - is[i_236_++] = is_235_[i++]; - is[i_236_++] = is_235_[i++]; - is[i_236_++] = is_235_[i++]; - is[i_236_++] = is_235_[i++]; - } - i_242_ += 3; - while (i_236_ < i_242_) - is[i_236_++] = is_235_[i++]; - i_236_ += i_239_; - i += i_240_; - } + int i_237_, int i_238_, int i_239_, + int i_240_) { + for (int i_241_ = -i_238_; i_241_ < 0; i_241_++) { + int i_242_ = i_236_ + i_237_ - 3; + while (i_236_ < i_242_) { + is[i_236_++] = is_235_[i++]; + is[i_236_++] = is_235_[i++]; + is[i_236_++] = is_235_[i++]; + is[i_236_++] = is_235_[i++]; + } + i_242_ += 3; + while (i_236_ < i_242_) + is[i_236_++] = is_235_[i++]; + i_236_ += i_239_; + i += i_240_; + } } - + public void method1129() { - if (anInt4309 != anInt4305 || anInt4311 != anInt4313) { - int[] is = new int[anInt4305 * anInt4313]; - for (int i = 0; i < anInt4311; i++) { - for (int i_243_ = 0; i_243_ < anInt4309; i_243_++) - is[(i + anInt4303) * anInt4305 + (i_243_ + anInt4315)] - = anIntArray4615[i * anInt4309 + i_243_]; - } - anIntArray4615 = is; - anInt4309 = anInt4305; - anInt4311 = anInt4313; - anInt4315 = 0; - anInt4303 = 0; - } + if (anInt4309 != anInt4305 || anInt4311 != anInt4313) { + int[] is = new int[anInt4305 * anInt4313]; + for (int i = 0; i < anInt4311; i++) { + for (int i_243_ = 0; i_243_ < anInt4309; i_243_++) + is[(i + anInt4303) * anInt4305 + (i_243_ + anInt4315)] + = pixels[i * anInt4309 + i_243_]; + } + pixels = is; + anInt4309 = anInt4305; + anInt4311 = anInt4313; + anInt4315 = 0; + anInt4303 = 0; + } } - + public void method1130(int i, int i_244_, int i_245_) { - for (int i_246_ = 0; i_246_ < anIntArray4615.length; i_246_++) { - int i_247_ = anIntArray4615[i_246_]; - if (i_247_ != 0) { - int i_248_ = i_247_ >> 16 & 0xff; - i_248_ += i; - if (i_248_ < 1) - i_248_ = 1; - else if (i_248_ > 255) - i_248_ = 255; - int i_249_ = i_247_ >> 8 & 0xff; - i_249_ += i_244_; - if (i_249_ < 1) - i_249_ = 1; - else if (i_249_ > 255) - i_249_ = 255; - int i_250_ = i_247_ & 0xff; - i_250_ += i_245_; - if (i_250_ < 1) - i_250_ = 1; - else if (i_250_ > 255) - i_250_ = 255; - anIntArray4615[i_246_] - = (i_248_ << 16) + (i_249_ << 8) + i_250_; - } - } + for (int i_246_ = 0; i_246_ < pixels.length; i_246_++) { + int i_247_ = pixels[i_246_]; + if (i_247_ != 0) { + int i_248_ = i_247_ >> 16 & 0xff; + i_248_ += i; + if (i_248_ < 1) + i_248_ = 1; + else if (i_248_ > 255) + i_248_ = 255; + int i_249_ = i_247_ >> 8 & 0xff; + i_249_ += i_244_; + if (i_249_ < 1) + i_249_ = 1; + else if (i_249_ > 255) + i_249_ = 255; + int i_250_ = i_247_ & 0xff; + i_250_ += i_245_; + if (i_250_ < 1) + i_250_ = 1; + else if (i_250_ > 255) + i_250_ = 255; + pixels[i_246_] + = (i_248_ << 16) + (i_249_ << 8) + i_250_; + } + } } - + public void method1112(int i, int i_251_, int i_252_, int i_253_) { - if (i_252_ == 256) - method1103(i, i_251_); - else { - i += anInt4315; - i_251_ += anInt4303; - int i_254_ = i + i_251_ * Class79.anInt1401; - int i_255_ = 0; - int i_256_ = anInt4311; - int i_257_ = anInt4309; - int i_258_ = Class79.anInt1401 - i_257_; - int i_259_ = 0; - if (i_251_ < Class79.anInt1403) { - int i_260_ = Class79.anInt1403 - i_251_; - i_256_ -= i_260_; - i_251_ = Class79.anInt1403; - i_255_ += i_260_ * i_257_; - i_254_ += i_260_ * Class79.anInt1401; - } - if (i_251_ + i_256_ > Class79.anInt1404) - i_256_ -= i_251_ + i_256_ - Class79.anInt1404; - if (i < Class79.anInt1400) { - int i_261_ = Class79.anInt1400 - i; - i_257_ -= i_261_; - i = Class79.anInt1400; - i_255_ += i_261_; - i_254_ += i_261_; - i_259_ += i_261_; - i_258_ += i_261_; - } - if (i + i_257_ > Class79.anInt1398) { - int i_262_ = i + i_257_ - Class79.anInt1398; - i_257_ -= i_262_; - i_259_ += i_262_; - i_258_ += i_262_; - } - if (i_257_ > 0 && i_256_ > 0) - method1134(Class79.anIntArray1402, anIntArray4615, 0, i_255_, - i_254_, i_257_, i_256_, i_258_, i_259_, i_252_, - i_253_); - } + if (i_252_ == 256) + method1103(i, i_251_); + else { + i += anInt4315; + i_251_ += anInt4303; + int i_254_ = i + i_251_ * Class79.anInt1401; + int i_255_ = 0; + int i_256_ = anInt4311; + int i_257_ = anInt4309; + int i_258_ = Class79.anInt1401 - i_257_; + int i_259_ = 0; + if (i_251_ < Class79.anInt1403) { + int i_260_ = Class79.anInt1403 - i_251_; + i_256_ -= i_260_; + i_251_ = Class79.anInt1403; + i_255_ += i_260_ * i_257_; + i_254_ += i_260_ * Class79.anInt1401; + } + if (i_251_ + i_256_ > Class79.anInt1404) + i_256_ -= i_251_ + i_256_ - Class79.anInt1404; + if (i < Class79.anInt1400) { + int i_261_ = Class79.anInt1400 - i; + i_257_ -= i_261_; + i = Class79.anInt1400; + i_255_ += i_261_; + i_254_ += i_261_; + i_259_ += i_261_; + i_258_ += i_261_; + } + if (i + i_257_ > Class79.anInt1398) { + int i_262_ = i + i_257_ - Class79.anInt1398; + i_257_ -= i_262_; + i_259_ += i_262_; + i_258_ += i_262_; + } + if (i_257_ > 0 && i_256_ > 0) + method1134(Class79.anIntArray1402, pixels, 0, i_255_, + i_254_, i_257_, i_256_, i_258_, i_259_, i_252_, + i_253_); + } } - + public static void method1131(int[] is, int[] is_263_, int i, int i_264_, - int i_265_, int i_266_, int i_267_, - int i_268_, int i_269_, int i_270_, - int i_271_, int i_272_, int i_273_) { - int i_274_ = 256 - i_273_; - int i_275_ = i_264_; - for (int i_276_ = -i_269_; i_276_ < 0; i_276_++) { - int i_277_ = (i_265_ >> 16) * i_272_; - for (int i_278_ = -i_268_; i_278_ < 0; i_278_++) { - i = is_263_[(i_264_ >> 16) + i_277_]; - if (i != 0) { - int i_279_ = is[i_266_]; - is[i_266_++] = ((((i & 0xff00ff) * i_273_ - + (i_279_ & 0xff00ff) * i_274_) - & ~0xff00ff) - + (((i & 0xff00) * i_273_ - + (i_279_ & 0xff00) * i_274_) - & 0xff0000)) >> 8; - } else - i_266_++; - i_264_ += i_270_; - } - i_265_ += i_271_; - i_264_ = i_275_; - i_266_ += i_267_; - } + int i_265_, int i_266_, int i_267_, + int i_268_, int i_269_, int i_270_, + int i_271_, int i_272_, int i_273_) { + int i_274_ = 256 - i_273_; + int i_275_ = i_264_; + for (int i_276_ = -i_269_; i_276_ < 0; i_276_++) { + int i_277_ = (i_265_ >> 16) * i_272_; + for (int i_278_ = -i_268_; i_278_ < 0; i_278_++) { + i = is_263_[(i_264_ >> 16) + i_277_]; + if (i != 0) { + int i_279_ = is[i_266_]; + is[i_266_++] = ((((i & 0xff00ff) * i_273_ + + (i_279_ & 0xff00ff) * i_274_) + & ~0xff00ff) + + (((i & 0xff00) * i_273_ + + (i_279_ & 0xff00) * i_274_) + & 0xff0000)) >> 8; + } else + i_266_++; + i_264_ += i_270_; + } + i_265_ += i_271_; + i_264_ = i_275_; + i_266_ += i_267_; + } } - + public void method1132(int i, int i_280_, int i_281_, int i_282_, - int i_283_, int i_284_, int i_285_, int i_286_, - int[] is, int[] is_287_) { - try { - int i_288_ = -i_281_ / 2; - int i_289_ = -i_282_ / 2; - int i_290_ = (int) (Math.sin((double) i_285_ / 326.11) * 65536.0); - int i_291_ = (int) (Math.cos((double) i_285_ / 326.11) * 65536.0); - i_290_ = i_290_ * i_286_ >> 8; - i_291_ = i_291_ * i_286_ >> 8; - int i_292_ = (i_283_ << 16) + (i_289_ * i_290_ + i_288_ * i_291_); - int i_293_ = (i_284_ << 16) + (i_289_ * i_291_ - i_288_ * i_290_); - int i_294_ = i + i_280_ * Class79.anInt1401; - for (i_280_ = 0; i_280_ < i_282_; i_280_++) { - int i_295_ = is[i_280_]; - int i_296_ = i_294_ + i_295_; - int i_297_ = i_292_ + i_291_ * i_295_; - int i_298_ = i_293_ - i_290_ * i_295_; - for (i = -is_287_[i_280_]; i < 0; i++) { - Class79.anIntArray1402[i_296_++] - = (anIntArray4615 - [(i_297_ >> 16) + (i_298_ >> 16) * anInt4309]); - i_297_ += i_291_; - i_298_ -= i_290_; - } - i_292_ += i_290_; - i_293_ += i_291_; - i_294_ += Class79.anInt1401; - } - } catch (Exception exception) { - /* empty */ - } + int i_283_, int i_284_, int i_285_, int i_286_, + int[] is, int[] is_287_) { + try { + int i_288_ = -i_281_ / 2; + int i_289_ = -i_282_ / 2; + int i_290_ = (int) (Math.sin((double) i_285_ / 326.11) * 65536.0); + int i_291_ = (int) (Math.cos((double) i_285_ / 326.11) * 65536.0); + i_290_ = i_290_ * i_286_ >> 8; + i_291_ = i_291_ * i_286_ >> 8; + int i_292_ = (i_283_ << 16) + (i_289_ * i_290_ + i_288_ * i_291_); + int i_293_ = (i_284_ << 16) + (i_289_ * i_291_ - i_288_ * i_290_); + int i_294_ = i + i_280_ * Class79.anInt1401; + for (i_280_ = 0; i_280_ < i_282_; i_280_++) { + int i_295_ = is[i_280_]; + int i_296_ = i_294_ + i_295_; + int i_297_ = i_292_ + i_291_ * i_295_; + int i_298_ = i_293_ - i_290_ * i_295_; + for (i = -is_287_[i_280_]; i < 0; i++) { + Class79.anIntArray1402[i_296_++] + = (pixels + [(i_297_ >> 16) + (i_298_ >> 16) * anInt4309]); + i_297_ += i_291_; + i_298_ -= i_290_; + } + i_292_ += i_290_; + i_293_ += i_291_; + i_294_ += Class79.anInt1401; + } + } catch (Exception exception) { + /* empty */ + } } - + public static void method1133(int[] is, int[] is_299_, int i, int i_300_, - int i_301_, int i_302_, int i_303_, - int i_304_, int i_305_, int i_306_) { - int i_307_ = 256 - i_306_; - for (int i_308_ = -i_303_; i_308_ < 0; i_308_++) { - for (int i_309_ = -i_302_; i_309_ < 0; i_309_++) { - i = is_299_[i_300_++]; - if (i != 0) { - int i_310_ = is[i_301_]; - is[i_301_++] = ((((i & 0xff00ff) * i_306_ - + (i_310_ & 0xff00ff) * i_307_) - & ~0xff00ff) - + (((i & 0xff00) * i_306_ - + (i_310_ & 0xff00) * i_307_) - & 0xff0000)) >> 8; - } else - i_301_++; - } - i_301_ += i_304_; - i_300_ += i_305_; - } + int i_301_, int i_302_, int i_303_, + int i_304_, int i_305_, int i_306_) { + int i_307_ = 256 - i_306_; + for (int i_308_ = -i_303_; i_308_ < 0; i_308_++) { + for (int i_309_ = -i_302_; i_309_ < 0; i_309_++) { + i = is_299_[i_300_++]; + if (i != 0) { + int i_310_ = is[i_301_]; + is[i_301_++] = ((((i & 0xff00ff) * i_306_ + + (i_310_ & 0xff00ff) * i_307_) + & ~0xff00ff) + + (((i & 0xff00) * i_306_ + + (i_310_ & 0xff00) * i_307_) + & 0xff0000)) >> 8; + } else + i_301_++; + } + i_301_ += i_304_; + i_300_ += i_305_; + } } - + public static void method1134 - (int[] is, int[] is_311_, int i, int i_312_, int i_313_, int i_314_, - int i_315_, int i_316_, int i_317_, int i_318_, int i_319_) { - int i_320_ = 256 - i_318_; - int i_321_ = (i_319_ & 0xff00ff) * i_320_ & ~0xff00ff; - int i_322_ = (i_319_ & 0xff00) * i_320_ & 0xff0000; - i_319_ = (i_321_ | i_322_) >>> 8; - for (int i_323_ = -i_315_; i_323_ < 0; i_323_++) { - for (int i_324_ = -i_314_; i_324_ < 0; i_324_++) { - i = is_311_[i_312_++]; - if (i != 0) { - i_321_ = (i & 0xff00ff) * i_318_ & ~0xff00ff; - i_322_ = (i & 0xff00) * i_318_ & 0xff0000; - is[i_313_++] = ((i_321_ | i_322_) >>> 8) + i_319_; - } else - i_313_++; - } - i_313_ += i_316_; - i_312_ += i_317_; - } + (int[] is, int[] is_311_, int i, int i_312_, int i_313_, int i_314_, + int i_315_, int i_316_, int i_317_, int i_318_, int i_319_) { + int i_320_ = 256 - i_318_; + int i_321_ = (i_319_ & 0xff00ff) * i_320_ & ~0xff00ff; + int i_322_ = (i_319_ & 0xff00) * i_320_ & 0xff0000; + i_319_ = (i_321_ | i_322_) >>> 8; + for (int i_323_ = -i_315_; i_323_ < 0; i_323_++) { + for (int i_324_ = -i_314_; i_324_ < 0; i_324_++) { + i = is_311_[i_312_++]; + if (i != 0) { + i_321_ = (i & 0xff00ff) * i_318_ & ~0xff00ff; + i_322_ = (i & 0xff00) * i_318_ & 0xff0000; + is[i_313_++] = ((i_321_ | i_322_) >>> 8) + i_319_; + } else + i_313_++; + } + i_313_ += i_316_; + i_312_ += i_317_; + } } - + public void method1110(int i, int i_325_, int i_326_) { - i += anInt4315; - i_325_ += anInt4303; - int i_327_ = i + i_325_ * Class79.anInt1401; - int i_328_ = 0; - int i_329_ = anInt4311; - int i_330_ = anInt4309; - int i_331_ = Class79.anInt1401 - i_330_; - int i_332_ = 0; - if (i_325_ < Class79.anInt1403) { - int i_333_ = Class79.anInt1403 - i_325_; - i_329_ -= i_333_; - i_325_ = Class79.anInt1403; - i_328_ += i_333_ * i_330_; - i_327_ += i_333_ * Class79.anInt1401; - } - if (i_325_ + i_329_ > Class79.anInt1404) - i_329_ -= i_325_ + i_329_ - Class79.anInt1404; - if (i < Class79.anInt1400) { - int i_334_ = Class79.anInt1400 - i; - i_330_ -= i_334_; - i = Class79.anInt1400; - i_328_ += i_334_; - i_327_ += i_334_; - i_332_ += i_334_; - i_331_ += i_334_; - } - if (i + i_330_ > Class79.anInt1398) { - int i_335_ = i + i_330_ - Class79.anInt1398; - i_330_ -= i_335_; - i_332_ += i_335_; - i_331_ += i_335_; - } - if (i_330_ > 0 && i_329_ > 0) - method1133(Class79.anIntArray1402, anIntArray4615, 0, i_328_, - i_327_, i_330_, i_329_, i_331_, i_332_, i_326_); + i += anInt4315; + i_325_ += anInt4303; + int i_327_ = i + i_325_ * Class79.anInt1401; + int i_328_ = 0; + int i_329_ = anInt4311; + int i_330_ = anInt4309; + int i_331_ = Class79.anInt1401 - i_330_; + int i_332_ = 0; + if (i_325_ < Class79.anInt1403) { + int i_333_ = Class79.anInt1403 - i_325_; + i_329_ -= i_333_; + i_325_ = Class79.anInt1403; + i_328_ += i_333_ * i_330_; + i_327_ += i_333_ * Class79.anInt1401; + } + if (i_325_ + i_329_ > Class79.anInt1404) + i_329_ -= i_325_ + i_329_ - Class79.anInt1404; + if (i < Class79.anInt1400) { + int i_334_ = Class79.anInt1400 - i; + i_330_ -= i_334_; + i = Class79.anInt1400; + i_328_ += i_334_; + i_327_ += i_334_; + i_332_ += i_334_; + i_331_ += i_334_; + } + if (i + i_330_ > Class79.anInt1398) { + int i_335_ = i + i_330_ - Class79.anInt1398; + i_330_ -= i_335_; + i_332_ += i_335_; + i_331_ += i_335_; + } + if (i_330_ > 0 && i_329_ > 0) + method1133(Class79.anIntArray1402, pixels, 0, i_328_, + i_327_, i_330_, i_329_, i_331_, i_332_, i_326_); } - /* xxx sprite class, i think - public Sprite(int i, int i_336_, int i_337_, int i_338_, - int i_339_, int i_340_, int[] is) { - anInt4305 = i; - anInt4313 = i_336_; - anInt4315 = i_337_; - anInt4303 = i_338_; - anInt4309 = i_339_; - anInt4311 = i_340_; - anIntArray4615 = is; + + public static byte[] toByteArray(int[] values) { + try { + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + for (int i : values) { + byte[] b = new byte[]{(byte) (i >>> 24), (byte) (i >>> 16), (byte) (i >>> 8), (byte) i}; + bos.write(b, 0, b.length); + } + bos.close(); + return bos.toByteArray(); + } catch (Exception e) { + e.printStackTrace(); + } + return null; } - */ + + public static String getMD5(byte[] data) { + try { + MessageDigest digest = MessageDigest.getInstance("MD5"); + digest.update(data); + String md5 = ""; + for (byte b : digest.digest()) { + md5 += byteToHex(b, true); + } + return md5; + } catch (Exception e) { + e.printStackTrace(); + } + return ""; + } + + private static final char[] hex = "0123456789ABCDEF".toCharArray(); + + private static String byteToHex(byte b, boolean forceLeadingZero) { + StringBuilder out = new StringBuilder(); + int ub = b & 0xff; + if (ub / 16 > 0 || forceLeadingZero) + out.append(hex[ub / 16]); + out.append(hex[ub % 16]); + return out.toString(); + } + + /* xxx sprite class, i think + public Sprite(int i, int i_336_, int i_337_, int i_338_, + int i_339_, int i_340_, int[] is) { + anInt4305 = i; + anInt4313 = i_336_; + anInt4315 = i_337_; + anInt4303 = i_338_; + anInt4309 = i_339_; + anInt4311 = i_340_; + pixels = is; + } + */ + public Sprite(int i, int i_336_, int i_337_, int i_338_, int w, int h, int[] is) { + // String hash = getMD5(toByteArray(is)); + //System.out.println("hash: "+hash); anInt4305 = i; anInt4313 = i_336_; anInt4315 = i_337_; anInt4303 = i_338_; anInt4309 = w; anInt4311 = h; - //System.out.println("new sprite w:"+w+" h:"+h+" i:"+i+" i_336_:"+i_336_+" i_337_:"+i_337_+" i_338_:"+i_338_); - if(client.bgImage != null && w == 956 && h == 503){ - System.out.println("LOADING CUSTOM BG IMAGE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); - anIntArray4615 = client.bgImage; - }else - anIntArray4615 = is; + pixels = is; + //System.out.println("new sprite w:" + w + " h:" + h + " i:" + i + " i_336_:" + i_336_ + " i_337_:" + i_337_ + " i_338_:" + i_338_); + // background: new sprite w:956 h:503 i:956 i_336_:503 i_337_:0 i_338_:0 + if (w == 956 && h == 503 && client.bgImage != null) { +// System.out.println("LOADING CUSTOM BG IMAGE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); + pixels = client.bgImage; + } + // logo (at login screen, after cache is loaded): new sprite w:348 h:114 i:360 i_336_:123 i_337_:6 i_338_:5 + if (w == 348 && h == 114 && i_337_ == 6 && i_338_ == 5) { //LOGO + // System.out.println("LOADING NO LOGO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); + pixels = new int[w * h]; + } } - + public void method1113(int i, int i_341_, int i_342_, int i_343_) { - if (i_342_ > 0 && i_343_ > 0) { - int i_344_ = anInt4309; - int i_345_ = anInt4311; - int i_346_ = 0; - int i_347_ = 0; - int i_348_ = anInt4305; - int i_349_ = anInt4313; - int i_350_ = (i_348_ << 16) / i_342_; - int i_351_ = (i_349_ << 16) / i_343_; - if (anInt4315 > 0) { - int i_352_ = ((anInt4315 << 16) + i_350_ - 1) / i_350_; - i += i_352_; - i_346_ += i_352_ * i_350_ - (anInt4315 << 16); - } - if (anInt4303 > 0) { - int i_353_ = ((anInt4303 << 16) + i_351_ - 1) / i_351_; - i_341_ += i_353_; - i_347_ += i_353_ * i_351_ - (anInt4303 << 16); - } - if (i_344_ < i_348_) - i_342_ = ((i_344_ << 16) - i_346_ + i_350_ - 1) / i_350_; - if (i_345_ < i_349_) - i_343_ = ((i_345_ << 16) - i_347_ + i_351_ - 1) / i_351_; - int i_354_ = i + i_341_ * Class79.anInt1401; - int i_355_ = Class79.anInt1401 - i_342_; - if (i_341_ + i_343_ > Class79.anInt1404) - i_343_ -= i_341_ + i_343_ - Class79.anInt1404; - if (i_341_ < Class79.anInt1403) { - int i_356_ = Class79.anInt1403 - i_341_; - i_343_ -= i_356_; - i_354_ += i_356_ * Class79.anInt1401; - i_347_ += i_351_ * i_356_; - } - if (i + i_342_ > Class79.anInt1398) { - int i_357_ = i + i_342_ - Class79.anInt1398; - i_342_ -= i_357_; - i_355_ += i_357_; - } - if (i < Class79.anInt1400) { - int i_358_ = Class79.anInt1400 - i; - i_342_ -= i_358_; - i_354_ += i_358_; - i_346_ += i_350_ * i_358_; - i_355_ += i_358_; - } - method1124(Class79.anIntArray1402, anIntArray4615, 0, i_346_, - i_347_, i_354_, i_355_, i_342_, i_343_, i_350_, i_351_, - i_344_); - } + if (i_342_ > 0 && i_343_ > 0) { + int i_344_ = anInt4309; + int i_345_ = anInt4311; + int i_346_ = 0; + int i_347_ = 0; + int i_348_ = anInt4305; + int i_349_ = anInt4313; + int i_350_ = (i_348_ << 16) / i_342_; + int i_351_ = (i_349_ << 16) / i_343_; + if (anInt4315 > 0) { + int i_352_ = ((anInt4315 << 16) + i_350_ - 1) / i_350_; + i += i_352_; + i_346_ += i_352_ * i_350_ - (anInt4315 << 16); + } + if (anInt4303 > 0) { + int i_353_ = ((anInt4303 << 16) + i_351_ - 1) / i_351_; + i_341_ += i_353_; + i_347_ += i_353_ * i_351_ - (anInt4303 << 16); + } + if (i_344_ < i_348_) + i_342_ = ((i_344_ << 16) - i_346_ + i_350_ - 1) / i_350_; + if (i_345_ < i_349_) + i_343_ = ((i_345_ << 16) - i_347_ + i_351_ - 1) / i_351_; + int i_354_ = i + i_341_ * Class79.anInt1401; + int i_355_ = Class79.anInt1401 - i_342_; + if (i_341_ + i_343_ > Class79.anInt1404) + i_343_ -= i_341_ + i_343_ - Class79.anInt1404; + if (i_341_ < Class79.anInt1403) { + int i_356_ = Class79.anInt1403 - i_341_; + i_343_ -= i_356_; + i_354_ += i_356_ * Class79.anInt1401; + i_347_ += i_351_ * i_356_; + } + if (i + i_342_ > Class79.anInt1398) { + int i_357_ = i + i_342_ - Class79.anInt1398; + i_342_ -= i_357_; + i_355_ += i_357_; + } + if (i < Class79.anInt1400) { + int i_358_ = Class79.anInt1400 - i; + i_342_ -= i_358_; + i_354_ += i_358_; + i_346_ += i_350_ * i_358_; + i_355_ += i_358_; + } + method1124(Class79.anIntArray1402, pixels, 0, i_346_, + i_347_, i_354_, i_355_, i_342_, i_343_, i_350_, i_351_, + i_344_); + } } - + public Sprite(int w, int h) { - anIntArray4615 = new int[w * h]; - anInt4309 = anInt4305 = w; - anInt4311 = anInt4313 = h; - anInt4315 = anInt4303 = 0; + //System.out.println("new sprite w:" + w + " h:" + h); + pixels = new int[w * h]; + anInt4309 = anInt4305 = w; + anInt4311 = anInt4313 = h; + anInt4315 = anInt4303 = 0; } } diff --git a/client508/src/Sprite_Sub1.java b/client508/src/Sprite_Sub1.java index 8843c76..c1f3d0d 100644 --- a/client508/src/Sprite_Sub1.java +++ b/client508/src/Sprite_Sub1.java @@ -101,7 +101,7 @@ public class Sprite_Sub1 extends Sprite && i_30_ - (anInt4311 << 12) < 0) { for (/**/; i_31_ < 0; i_31_++) { int i_32_ - = (anIntArray4615 + = (pixels [((i_30_ >> 12) * anInt4309 + (i_29_ >> 12))]); int i_33_ @@ -142,7 +142,7 @@ public class Sprite_Sub1 extends Sprite i_40_ = i_41_; for (/**/; i_40_ < 0; i_40_++) { int i_42_ - = (anIntArray4615 + = (pixels [((i_39_ >> 12) * anInt4309 + (i_38_ >> 12))]); int i_43_ @@ -186,7 +186,7 @@ public class Sprite_Sub1 extends Sprite i_50_ = i_52_; for (/**/; i_50_ < 0; i_50_++) { int i_53_ - = (anIntArray4615 + = (pixels [((i_49_ >> 12) * anInt4309 + (i_48_ >> 12))]); int i_54_ @@ -231,7 +231,7 @@ public class Sprite_Sub1 extends Sprite i_61_ = i_62_; for (/**/; i_61_ < 0; i_61_++) { int i_63_ - = (anIntArray4615 + = (pixels [((i_60_ >> 12) * anInt4309 + (i_59_ >> 12))]); int i_64_ @@ -279,7 +279,7 @@ public class Sprite_Sub1 extends Sprite if ((i_72_ = (i_70_ - i_21_) / i_21_) > i_71_) i_71_ = i_72_; for (/**/; i_71_ < 0; i_71_++) { - int i_73_ = (anIntArray4615 + int i_73_ = (pixels [((i_70_ >> 12) * anInt4309 + (i_69_ >> 12))]); int i_74_ = Class79.anIntArray1402[i_68_]; @@ -329,7 +329,7 @@ public class Sprite_Sub1 extends Sprite > i_81_) i_81_ = i_82_; for (/**/; i_81_ < 0; i_81_++) { - int i_83_ = (anIntArray4615 + int i_83_ = (pixels [((i_80_ >> 12) * anInt4309 + (i_79_ >> 12))]); int i_84_ = Class79.anIntArray1402[i_78_]; @@ -371,7 +371,7 @@ public class Sprite_Sub1 extends Sprite > i_91_) i_91_ = i_93_; for (/**/; i_91_ < 0; i_91_++) { - int i_94_ = (anIntArray4615 + int i_94_ = (pixels [((i_90_ >> 12) * anInt4309 + (i_89_ >> 12))]); int i_95_ = Class79.anIntArray1402[i_88_]; @@ -421,7 +421,7 @@ public class Sprite_Sub1 extends Sprite i_102_ = i_104_; for (/**/; i_102_ < 0; i_102_++) { int i_105_ - = (anIntArray4615 + = (pixels [(i_101_ >> 12) * anInt4309 + (i_100_ >> 12)]); int i_106_ = Class79.anIntArray1402[i_99_]; @@ -474,7 +474,7 @@ public class Sprite_Sub1 extends Sprite i_113_ = i_115_; for (/**/; i_113_ < 0; i_113_++) { int i_116_ - = (anIntArray4615 + = (pixels [(i_112_ >> 12) * anInt4309 + (i_111_ >> 12)]); int i_117_ = Class79.anIntArray1402[i_110_]; @@ -579,7 +579,7 @@ public class Sprite_Sub1 extends Sprite i_151_ += i_155_; } if (i_150_ > 0 && i_149_ > 0) - method1136(Class79.anIntArray1402, anIntArray4615, i_148_, i_147_, + method1136(Class79.anIntArray1402, pixels, i_148_, i_147_, i_150_, i_149_, i_151_, i_152_); } @@ -603,7 +603,7 @@ public class Sprite_Sub1 extends Sprite int i_174_ = i_169_ - i_166_ * i_171_; for (i = -is_163_[i_156_]; i < 0; i++) { int i_175_ - = (anIntArray4615 + = (pixels [(i_173_ >> 16) + (i_174_ >> 16) * anInt4309]); int i_176_ = Class79.anIntArray1402[i_172_]; int i_177_ = i_175_ >>> 24; @@ -725,7 +725,7 @@ public class Sprite_Sub1 extends Sprite i_218_ += i_222_ * i_230_; i_227_ += i_230_; } - method1137(Class79.anIntArray1402, anIntArray4615, 0, i_218_, + method1137(Class79.anIntArray1402, pixels, 0, i_218_, i_219_, i_226_, i_227_, i_213_, i_214_, i_222_, i_223_, i_216_, i_215_); } @@ -751,7 +751,7 @@ public class Sprite_Sub1 extends Sprite int i_249_ = i_244_ - i_241_ * i_246_; for (i = -is_238_[i_231_]; i < 0; i++) { int i_250_ - = (anIntArray4615 + = (pixels [(i_248_ >> 16) + (i_249_ >> 16) * anInt4309]); int i_251_ = Class79.anIntArray1402[i_247_]; int i_252_ = i_250_ >>> 24; @@ -809,7 +809,7 @@ public class Sprite_Sub1 extends Sprite i_259_ += i_263_; } if (i_258_ > 0 && i_257_ > 0) - method1135(Class79.anIntArray1402, anIntArray4615, 0, i_256_, + method1135(Class79.anIntArray1402, pixels, 0, i_256_, i_255_, i_258_, i_257_, i_259_, i_260_); } @@ -853,7 +853,7 @@ public class Sprite_Sub1 extends Sprite i_275_ += i_279_; } if (i_274_ > 0 && i_273_ > 0) - method1138(Class79.anIntArray1402, anIntArray4615, 0, i_272_, + method1138(Class79.anIntArray1402, pixels, 0, i_272_, i_271_, i_274_, i_273_, i_275_, i_276_, i_270_); } @@ -875,7 +875,7 @@ public class Sprite_Sub1 extends Sprite int i_295_ = i_291_; for (i = -i_281_; i < 0; i++) { int i_296_ - = (anIntArray4615 + = (pixels [(i_294_ >> 16) + (i_295_ >> 16) * anInt4309]); int i_297_ = Class79.anIntArray1402[i_293_]; int i_298_ = i_296_ >>> 24; diff --git a/client508/src/client.java b/client508/src/client.java index 0017e8d..77f3c0d 100644 --- a/client508/src/client.java +++ b/client508/src/client.java @@ -107,11 +107,17 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac int w = image.getWidth(null); int h = image.getHeight(null); BufferedImage bi = new BufferedImage(956, 503, BufferedImage.TYPE_INT_ARGB); + int onEachSide = (956-766)/2; + bi.getGraphics().drawImage(image, + onEachSide, 0, 956-onEachSide, 503, + 0, 0, 766, 503, + null); +/* // this kind of stretches the image, but might be needed with HD bi.getGraphics().drawImage(image, 0, 0, 956, 503, 0, 0, 766, 503, null); - bgImage = new int[956 * 503]; +*/ bgImage = new int[956 * 503]; PixelGrabber pixelgrabber = new PixelGrabber(bi, 0, 0, 956, 503, bgImage, 0, 956); try { pixelgrabber.grabPixels(); @@ -143,8 +149,8 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac public void method29(int i) { anInt2373++; - if (Class75_Sub1_Sub1.aSignLink_4589 != null) - Class75_Sub1_Sub1.aSignLink_4589.method560(this.getClass(), 50); + if (Class75_Sub1_Sub1.signlink != null) + Class75_Sub1_Sub1.signlink.method560(this.getClass(), 50); if (Class14.aClass84_241 != null) Class14.aClass84_241.aBoolean1533 = false; Class14.aClass84_241 = null; @@ -190,7 +196,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac public static void method34(byte i) { anInt2371++; int i_2_ = -36 % ((i - -7) / 60); - if (RuntimeException_Sub1.anInt2231 == 30) + if (GameException.anInt2231 == 30) Class17.method296(25, (byte) -81); } @@ -301,7 +307,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac -126); Class54.aClass68_Sub28_Sub1_1028 = new Class68_Sub28_Sub1(); Class54.aClass68_Sub28_Sub1_1028.method1238(9, 128, i ^ 0x5e); - Class68_Sub13_Sub36.aClass35_4035 = Class55.method1717(Class75_Sub1_Sub1.aSignLink_4589, + Class68_Sub13_Sub36.aClass35_4035 = Class55.method1717(Class75_Sub1_Sub1.signlink, (byte) 104, Class86.aCanvas1585, 22050, 0); Class68_Sub13_Sub36.aClass35_4035.method425(false, Class54.aClass68_Sub28_Sub1_1028); @@ -309,7 +315,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac Class78.aClass21_Sub1_1388, false, Class28.aClass21_Sub1_529, Class68_Sub20_Sub4.aClass21_Sub1_4217); - Animable.aClass35_66 = Class55.method1717(Class75_Sub1_Sub1.aSignLink_4589, + Animable.aClass35_66 = Class55.method1717(Class75_Sub1_Sub1.signlink, (byte) 104, Class86.aCanvas1585, 2048, 1); Class80.aClass68_Sub28_Sub4_1418 = new Class68_Sub28_Sub4(); @@ -481,7 +487,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac method29(-56); if ((Class107.anInt1815 ^ 0xffffffff) == -111) { Class14.aClass84_241 = new Class84(); - Class75_Sub1_Sub1.aSignLink_4589.method558((byte) -61, 10, Class14.aClass84_241); + Class75_Sub1_Sub1.signlink.method558((byte) -61, 10, Class14.aClass84_241); Class107.anInt1815 = 120; Class68_Sub29.aRSString_3235 = Class67.aRSString_1207; Class68_Sub13_Sub28.anInt3917 = 75; @@ -695,7 +701,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac anInt2366++; boolean bool = Class44.method488(-127); if (!bool) - method42(0); + doUpdateServer(0); } } @@ -708,7 +714,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac public void method33(int i) { anInt2381++; - if (i == 2 && RuntimeException_Sub1.anInt2231 != 1000) { + if (i == 2 && GameException.anInt2231 != 1000) { Class68_Sub3.anInt2812++; if ((Class68_Sub3.anInt2812 % 1000 ^ 0xffffffff) == -2) { GregorianCalendar gregoriancalendar = new GregorianCalendar(); @@ -725,19 +731,19 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac int i_21_ = RSString.aClass97_2261.method1557(false); Class68_Sub13_Sub30.anInt3948 = i_21_; } - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -1) { - if (RuntimeException_Sub1.anInt2231 == 5) { + if ((GameException.anInt2231 ^ 0xffffffff) != -1) { + if (GameException.anInt2231 == 5) { method35((byte) 68); Class20.method327((byte) 50); - } else if (((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -26) || ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -29)) + } else if (((GameException.anInt2231 ^ 0xffffffff) == -26) || ((GameException.anInt2231 ^ 0xffffffff) == -29)) GameSocket.method598(94); } else { method35((byte) 68); Class20.method327((byte) 104); } - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -11) - if (RuntimeException_Sub1.anInt2231 != 30) { - if (RuntimeException_Sub1.anInt2231 == 40) { + if ((GameException.anInt2231 ^ 0xffffffff) != -11) + if (GameException.anInt2231 != 30) { + if (GameException.anInt2231 == 40) { Login.login(false); if ((Class68_Sub20_Sub7.anInt4257 ^ 0xffffffff) != 2) if ((Class68_Sub20_Sub7.anInt4257 ^ 0xffffffff) != -16) { @@ -764,17 +770,112 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac return class45.anInt763; } - public void method42(int i) { + private void doUpdateServernew(int i) + { + anInt2385++; + if (i == 0) + { + if (Class75_Sub1_Sub1.anInt4585 >= 4) + { + this.error_fatal(i + 690, "js5crc"); + GameException.anInt2233 = 1000; + } else + { + if (Class68_Sub10.anInt2911 >= 4) + { + if (GameException.anInt2233 == 0 || GameException.anInt2233 == 5) + { + this.error_fatal(690, "js5io"); + GameException.anInt2233 = 1000; + return; + } + Class13_Sub2.anInt2654 = 3000; + Class68_Sub10.anInt2911 = 3; + } + if (Class13_Sub2.anInt2654-- <= 0) + { + do + { + try + { + if (Class84.anInt1542 == 0) + { + //System.out.println(Class103.port); + Class103.port = client.ondemandPort; + Class68_Sub9.serverAddress = "localhost"; + Class68_Sub13_Sub9.unknownSocket = (Class75_Sub1_Sub1.signlink.newJagSocket(Class68_Sub9.serverAddress, (byte) 115, Class103.port)); + Class84.anInt1542++; + } + if (Class84.anInt1542 == 1) + { + if (Class68_Sub13_Sub9.unknownSocket.anInt555 == 2) + { + resetUpdateServer(-5, -1); + break; + } + if (Class68_Sub13_Sub9.unknownSocket.anInt555 == 1) + Class84.anInt1542++; + } + if (Class84.anInt1542 == 2) + { + Class109.updateServer = new GameSocket((Socket) (Class68_Sub13_Sub9.unknownSocket.playerDefSocket), (Class75_Sub1_Sub1.signlink)); + Stream class68_sub14 = new Stream(5); + class68_sub14.writeByte(15); + class68_sub14.writeDWord(508); + Class109.updateServer.queueBytes(5, (((Stream) class68_sub14).buffer)); + Class84.anInt1542++; + Class1_Sub6.aLong2585 = Class36.method438(17161); + } + if (Class84.anInt1542 == 3) + { + if (GameException.anInt2233 != 0 && GameException.anInt2233 != 5 && Class109.updateServer.available() <= 0) + { + if ((Class36.method438(i + 17161) - Class1_Sub6.aLong2585) > 30000L) + { + resetUpdateServer(i - 5, -2); + break; + } + } else + { + int i_22_ = Class109.updateServer.read(); + if (i_22_ != 0) + { + resetUpdateServer(-5, i_22_); + break; + } + Class84.anInt1542++; + } + } + if (Class84.anInt1542 != 4) + break; + boolean bool = (GameException.anInt2233 == 5 || GameException.anInt2233 == 10 || GameException.anInt2233 == 28); + Class113.doUpdateServer(Class109.updateServer, false, !bool); + Class127.anInt2209 = 0; + Class68_Sub13_Sub9.unknownSocket = null; + Class84.anInt1542 = 0; + Class109.updateServer = null; + } catch (java.io.IOException ioexception) + { + resetUpdateServer(-5, -3); + } + break; + } while (false); + } + } + } + } + + public void doUpdateServer(int i) { anInt2383++; if (i == 0) if (Class75_Sub1_Sub1.anInt4585 >= 4) { - this.error(i + 690, "js5crc"); - RuntimeException_Sub1.anInt2231 = 1000; + this.error_fatal(i + 690, "js5crc"); + GameException.anInt2231 = 1000; } else { if ((Class68_Sub10.anInt2909 ^ 0xffffffff) <= -5) { - if (RuntimeException_Sub1.anInt2231 == 0 || RuntimeException_Sub1.anInt2231 == 5) { - this.error(690, "js5io"); - RuntimeException_Sub1.anInt2231 = 1000; + if (GameException.anInt2231 == 0 || GameException.anInt2231 == 5) { + this.error_fatal(690, "js5io"); + GameException.anInt2231 = 1000; return; } Class13_Sub2.anInt2652 = 3000; @@ -785,13 +886,16 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac try { if ((Class84.anInt1540 ^ 0xffffffff) == -1) { // xxx believe this to be update server - // Class68_Sub13_Sub9.unknownSocket = (Class75_Sub1_Sub1.aSignLink_4589.newJagSocket(Class68_Sub9.serverAddress, (byte) 115, Class103.port)); + Class103.port = client.ondemandPort; + Class68_Sub9.serverAddress = "localhost"; + Class68_Sub13_Sub9.unknownSocket = (Class75_Sub1_Sub1.signlink.newJagSocket(Class68_Sub9.serverAddress, (byte) 115, Class103.port)); //System.out.println("update server? port:"+Class103.port); - Class68_Sub13_Sub9.unknownSocket = (Class75_Sub1_Sub1.aSignLink_4589.newJagSocket("localhost", (byte) 115, client.jaggrabPort)); + //Class68_Sub13_Sub9.unknownSocket = (Class75_Sub1_Sub1.signlink.newJagSocket("localhost", (byte) 115, client.jaggrabPort)); Class84.anInt1540++; } if (Class84.anInt1540 == 1) { if (Class68_Sub13_Sub9.unknownSocket.anInt555 == 2) { + // System.out.println("WARNING: this should not execute"); resetUpdateServer(-5, -1); break; } @@ -800,7 +904,8 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac } if ((Class84.anInt1540 ^ 0xffffffff) == -3) { // xxx this is update server - Class109.updateServer = new GameSocket(new Socket("localhost", client.ondemandPort), (Class75_Sub1_Sub1.aSignLink_4589)); + //Class109.updateServer = new GameSocket(new Socket("localhost", client.ondemandPort), (Class75_Sub1_Sub1.signlink)); + Class109.updateServer = new GameSocket((Socket) (Class68_Sub13_Sub9.unknownSocket.playerDefSocket), (Class75_Sub1_Sub1.signlink)); Stream class68_sub14 = new Stream(5); class68_sub14.writeByte(15); class68_sub14.writeDWord(508); @@ -809,32 +914,33 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac Class1_Sub6.aLong2585 = Class36.method438(17161); } if (Class84.anInt1540 == 3) - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -1 && RuntimeException_Sub1.anInt2231 != 5 && (Class109.updateServer.available() ^ 0xffffffff) >= -1) { + if ((GameException.anInt2231 ^ 0xffffffff) != -1 && GameException.anInt2231 != 5 && (Class109.updateServer.available() ^ 0xffffffff) >= -1) { if (((Class36.method438(i + 17161) + -Class1_Sub6.aLong2585) ^ 0xffffffffffffffffL) < -30001L) { - System.out.println("WARNING: this should not execute"); + // System.out.println("WARNING: this should not execute"); resetUpdateServer(i + -5, -2); break; } } else { int i_22_ = Class109.updateServer.read(); if ((i_22_ ^ 0xffffffff) != -1) { - //System.out.println("WARNING: this should not execute"); + // System.out.println("WARNING: this should not execute"); resetUpdateServer(-5, i_22_); break; } Class84.anInt1540++; } + // the following is needed to connect: if (Class84.anInt1540 != 4) break; - boolean bool = (RuntimeException_Sub1.anInt2231 == 5 || (RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -11 || (RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -29); - Class113.doUpdateServer(Class109.updateServer, false, - !bool); + boolean bool = (GameException.anInt2231 == 5 || (GameException.anInt2231 ^ 0xffffffff) == -11 || (GameException.anInt2231 ^ 0xffffffff) == -29); + Class113.doUpdateServer(Class109.updateServer, false, !bool); Class127.anInt2209 = 0; Class68_Sub13_Sub9.unknownSocket = null; Class84.anInt1540 = 0; Class109.updateServer = null; } catch (java.io.IOException ioexception) { - ioexception.printStackTrace(); + // System.out.println("WARNING: this should not execute"); + // ioexception.printStackTrace(); resetUpdateServer(-5, -3); break; } @@ -1350,7 +1456,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac Class37.method440(-121); Class108.method1656(29889); Class94.method1544((byte) -52); - RuntimeException_Sub1.method1794(64); + GameException.method1794(64); Class63.method621((byte) 126); Class11.method230((byte) 102); Class12.method237(-5); @@ -1543,7 +1649,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac } public void method27(int i) { - Class68_Sub13_Sub26.method831(Class75_Sub1_Sub1.aSignLink_4589, + Class68_Sub13_Sub26.method831(Class75_Sub1_Sub1.signlink, (byte) -104, Class75_Sub2.safeMode); Class68_Sub15.anInt3013 = (i != (Class75_Sub3.anInt3328 ^ 0xffffffff) ? Class106.anInt1799 + 50000 : 443); @@ -1571,22 +1677,22 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac RSString.aClass97_2261.method1562(Class86.aCanvas1585, true); Class112.anInt1900 = SignLink.anInt1054; try { - if (Class75_Sub1_Sub1.aSignLink_4589.aClass2_1045 != null) { - Class68_Sub20_Sub10.aClass124_4318 = new Class124((Class75_Sub1_Sub1.aSignLink_4589.aClass2_1045), + if (Class75_Sub1_Sub1.signlink.aClass2_1045 != null) { + Class68_Sub20_Sub10.aClass124_4318 = new Class124((Class75_Sub1_Sub1.signlink.aClass2_1045), 5200, 0); for (int i_66_ = 0; (i_66_ ^ 0xffffffff) > -28; i_66_++) - Class26.aClass124Array520[i_66_] = new Class124((Class75_Sub1_Sub1.aSignLink_4589.aClass2Array1039[i_66_]), + Class26.aClass124Array520[i_66_] = new Class124((Class75_Sub1_Sub1.signlink.aClass2Array1039[i_66_]), 6000, 0); - Class75_Sub2.aClass124_3311 = new Class124((Class75_Sub1_Sub1.aSignLink_4589.aClass2_1057), + Class75_Sub2.aClass124_3311 = new Class124((Class75_Sub1_Sub1.signlink.aClass2_1057), 6000, 0); Class43.aUnknown_734 = new Unknown(255, Class68_Sub20_Sub10.aClass124_4318, Class75_Sub2.aClass124_3311, 500000); - Class68_Sub13_Sub4.aClass124_3486 = new Class124((Class75_Sub1_Sub1.aSignLink_4589.aClass2_1041), + Class68_Sub13_Sub4.aClass124_3486 = new Class124((Class75_Sub1_Sub1.signlink.aClass2_1041), 24, 0); - Class75_Sub1_Sub1.aSignLink_4589.aClass2_1041 = null; - Class75_Sub1_Sub1.aSignLink_4589.aClass2_1057 = null; - Class75_Sub1_Sub1.aSignLink_4589.aClass2_1045 = null; - Class75_Sub1_Sub1.aSignLink_4589.aClass2Array1039 = null; + Class75_Sub1_Sub1.signlink.aClass2_1041 = null; + Class75_Sub1_Sub1.signlink.aClass2_1057 = null; + Class75_Sub1_Sub1.signlink.aClass2_1045 = null; + Class75_Sub1_Sub1.signlink.aClass2Array1039 = null; } } catch (java.io.IOException ioexception) { Class68_Sub20_Sub10.aClass124_4318 = null; @@ -1614,19 +1720,19 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac if ((Class127.anInt2209 ^ 0xffffffff) > -3 || (i_67_ ^ 0xffffffff) != -8 && i_67_ != 9) if ((Class127.anInt2209 ^ 0xffffffff) > -3 || i_67_ != 6) { if ((Class127.anInt2209 ^ 0xffffffff) <= -5) - if (RuntimeException_Sub1.anInt2231 != 0 && ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -6)) + if (GameException.anInt2231 != 0 && ((GameException.anInt2231 ^ 0xffffffff) != -6)) Class13_Sub2.anInt2652 = 3000; else { - this.error(690, "js5connect"); - RuntimeException_Sub1.anInt2231 = 1000; + this.error_fatal(690, "js5connect"); + GameException.anInt2231 = 1000; } } else { - this.error(690, "js5connect_outofdate"); - RuntimeException_Sub1.anInt2231 = 1000; + this.error_fatal(690, "js5connect_outofdate"); + GameException.anInt2231 = 1000; } - else if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -1 || (RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -6) { - this.error(i ^ ~0x2b6, "js5connect_full"); - RuntimeException_Sub1.anInt2231 = 1000; + else if ((GameException.anInt2231 ^ 0xffffffff) == -1 || (GameException.anInt2231 ^ 0xffffffff) == -6) { + this.error_fatal(i ^ ~0x2b6, "js5connect_full"); + GameException.anInt2231 = 1000; } else Class13_Sub2.anInt2652 = 3000; } @@ -1643,20 +1749,20 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac public void method15(byte i) { anInt2374++; - if (RuntimeException_Sub1.anInt2231 != 1000) { + if (GameException.anInt2231 != 1000) { boolean bool = Class68_Sub13_Sub34.method872(0); if (bool && Class123.aBoolean2127 && Class68_Sub13_Sub36.aClass35_4035 != null) Class68_Sub13_Sub36.aClass35_4035.method428((byte) -100); if (i >= -56) init(); boolean bool_68_ = false; - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -31 || RuntimeException_Sub1.anInt2231 == 10) + if ((GameException.anInt2231 ^ 0xffffffff) == -31 || GameException.anInt2231 == 10) if (!Class68_Sub13_Sub21.aBoolean3796) { if (Class36.aLong644 != 0L && ((Class36.method438(17161) ^ 0xffffffffffffffffL) < (Class36.aLong644 ^ 0xffffffffffffffffL))) Class44.method485(-1); } else Class44.method485(-1); - if ((ISAACRandomGen.aLong1480 ^ 0xffffffffffffffffL) != -1L && ((Class36.method438(17161) ^ 0xffffffffffffffffL) < (ISAACRandomGen.aLong1480 ^ 0xffffffffffffffffL)) && PlayerDefinition.connection != null && (RuntimeException_Sub1.anInt2231 == 30 || RuntimeException_Sub1.anInt2231 == 25)) + if ((ISAACRandomGen.aLong1480 ^ 0xffffffffffffffffL) != -1L && ((Class36.method438(17161) ^ 0xffffffffffffffffL) < (ISAACRandomGen.aLong1480 ^ 0xffffffffffffffffL)) && PlayerDefinition.connection != null && (GameException.anInt2231 == 30 || GameException.anInt2231 == 25)) Class68_Sub20_Sub6.method1071((byte) -118); if (Class103.aBoolean1762) { bool_68_ = true; @@ -1664,16 +1770,16 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac } if (bool_68_) Class72.method1348(0); - if (RuntimeException_Sub1.anInt2231 == 0) + if (GameException.anInt2231 == 0) Class68_Sub13_Sub16.method779(Class68_Sub13_Sub28.anInt3917, null, Class68_Sub29.aRSString_3235, bool_68_, 23189); - else if (RuntimeException_Sub1.anInt2231 != 5) - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -11) - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -26 && ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) != -29)) - if (RuntimeException_Sub1.anInt2231 != 30) { - if ((RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -41) + else if (GameException.anInt2231 != 5) + if ((GameException.anInt2231 ^ 0xffffffff) != -11) + if ((GameException.anInt2231 ^ 0xffffffff) != -26 && ((GameException.anInt2231 ^ 0xffffffff) != -29)) + if (GameException.anInt2231 != 30) { + if ((GameException.anInt2231 ^ 0xffffffff) == -41) Class74.method1381(false, (Class68_Sub20_Sub13_Sub2.method1166(2, (new RSString[]{Class72.aRSString_1306, Class118.aRSString_2081, @@ -1714,7 +1820,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac else Class68_Sub7.method665((Class68_Sub13_Sub4.aClass68_Sub20_Sub1_3511), -27931); - if ((RuntimeException_Sub1.anInt2231 == 30 || (RuntimeException_Sub1.anInt2231 ^ 0xffffffff) == -11) && (Class68_Sub20_Sub5.anInt4229 ^ 0xffffffff) == -1 && !bool_68_) + if ((GameException.anInt2231 == 30 || (GameException.anInt2231 ^ 0xffffffff) == -11) && (Class68_Sub20_Sub5.anInt4229 ^ 0xffffffff) == -1 && !bool_68_) try { Graphics graphics = Class86.aCanvas1585.getGraphics(); for (int i_71_ = 0; ((Class56.anInt1061 ^ 0xffffffff) < (i_71_ ^ 0xffffffff)); i_71_++) @@ -1728,7 +1834,7 @@ public class client extends Applet_Sub1 implements org.moparscape.ClientInterfac } catch (Exception exception) { Class86.aCanvas1585.repaint(); } - else if (RuntimeException_Sub1.anInt2231 != 0) + else if (GameException.anInt2231 != 0) try { Graphics graphics = Class86.aCanvas1585.getGraphics(); Class1_Sub5.aClass72_2496.method1350(73, 0, 0, graphics); diff --git a/src/org/moparscape/userver/Server.java b/src/org/moparscape/userver/Server.java index 53282ed..c5a01d3 100644 --- a/src/org/moparscape/userver/Server.java +++ b/src/org/moparscape/userver/Server.java @@ -114,7 +114,7 @@ public abstract class Server extends Thread { public void handleException(Exception e) { if (MainPanel.debug()) { String myName = this.getClass().getName(); - if(!myName.equals("org.moparscape.userver.v508.OndemandServer443")) + if(myName.equals("org.moparscape.userver.v508.OndemandServer443")) return; System.err.print("Server error: "); e.printStackTrace(); diff --git a/src/org/moparscape/userver/v317/JaggrabServer.java b/src/org/moparscape/userver/v317/JaggrabServer.java index a8fb394..70d2ec2 100644 --- a/src/org/moparscape/userver/v317/JaggrabServer.java +++ b/src/org/moparscape/userver/v317/JaggrabServer.java @@ -33,7 +33,6 @@ public class JaggrabServer extends Server { super(defaultLocation, port, customLocation); } - // TODO: if no internet connection, use a default CRC so it may continue public void handleConnection(Socket s) { try { InputStream is = s.getInputStream(); @@ -98,12 +97,38 @@ public class JaggrabServer extends Server { URLConnection url = getHttpURLConnection(jagPath + file); // if url is null, custom and default cannot be reached, return if (url == null) { + // unless we want the CRC and may not be connected to the internet + // so we server it up if it is that which we are requesting + if (file.equals("crc-317")) { + System.out.println("UpdateServer: CRC does not exist on server, serving generic one."); + + byte[] crc = new byte[]{0, 0, 0, 0, -107, 9, -20, -27, 45, -32, 105, 81, -7, 104, -39, + 107, -28, -60, -76, -52, -73, -79, 92, -7, 105, 102, 28, + -102, -20, -93, 86, 90, 61, 51, 96, 30, -16, 30, 75, -30}; + out.write(crc); + out.flush(); + } out.close(); return; } InputStream in = url.getInputStream(); +/* // this is a crude way to output the crc byte array, leaving it here in case its needed it later + if (file.startsWith("crc")) { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int len; + while ((len = in.read(buffer)) >= 0) + baos.write(buffer, 0, len); + baos.flush(); + in.close(); + out.close(); + for(byte b : baos.toByteArray()) + System.out.print(b+", "); + System.exit(0); + } +*/ byte[] buffer = new byte[1024]; int len; while ((len = in.read(buffer)) >= 0) diff --git a/src/org/moparscape/userver/v508/OndemandServer.java b/src/org/moparscape/userver/v508/OndemandServer.java index d110069..3e260c4 100644 --- a/src/org/moparscape/userver/v508/OndemandServer.java +++ b/src/org/moparscape/userver/v508/OndemandServer.java @@ -69,8 +69,8 @@ public class OndemandServer extends Server { } else { int type = in.read(); //System.out.println("type:" + type); - if (type != 0 && type != 1 && type != 3) - System.exit(-433); + // if (type != 0 && type != 1 && type != 3) + // System.exit(-433); //int hash = ((in.get()& 0xff) << 16) + ((in.get()& 0xff) << 8) + (in.get()& 0xff); if (type == 0 || type == 1) { int index = in.read() & 0xff; @@ -114,8 +114,47 @@ public class OndemandServer extends Server { URLConnection url = getHttpURLConnection(String.format(odsPath, index, id)); // if url is null, custom and default cannot be reached, continue - if (url == null) + if (url == null) { + // unless we want the update keys and may not be connected to the internet + // so we server them up if it is that which we are requesting + if (index == 255 && id == 255) { + System.out.println("UpdateServer: Update Keys do not exist on server, serving generic ones."); + int[] UPDATE_KEYS = { + 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0xd8, + 0x84, 0xa1, 0xa1, 0x2b, 0x00, 0x00, 0x00, 0xba, + 0x58, 0x64, 0xe8, 0x14, 0x00, 0x00, 0x00, 0x7b, + 0xcc, 0xa0, 0x7e, 0x23, 0x00, 0x00, 0x00, 0x48, + 0x20, 0x0e, 0xe3, 0x6e, 0x00, 0x00, 0x01, 0x88, + 0xec, 0x0d, 0x58, 0xed, 0x00, 0x00, 0x00, 0x71, + 0xb9, 0x4c, 0xc0, 0x50, 0x00, 0x00, 0x01, 0x8b, + 0x5b, 0x61, 0x79, 0x20, 0x00, 0x00, 0x00, 0x0c, + 0x0c, 0x69, 0xb1, 0xc8, 0x00, 0x00, 0x02, 0x31, + 0xc8, 0x56, 0x67, 0x52, 0x00, 0x00, 0x00, 0x69, + 0x78, 0x17, 0x7b, 0xe2, 0x00, 0x00, 0x00, 0xc3, + 0x29, 0x76, 0x27, 0x6a, 0x00, 0x00, 0x00, 0x05, + 0x44, 0xe7, 0x75, 0xcb, 0x00, 0x00, 0x00, 0x08, + 0x7d, 0x21, 0x80, 0xd5, 0x00, 0x00, 0x01, 0x58, + 0xeb, 0x7d, 0x49, 0x8e, 0x00, 0x00, 0x00, 0x0c, + 0xf4, 0xdf, 0xd6, 0x4d, 0x00, 0x00, 0x00, 0x18, + 0xec, 0x33, 0x31, 0x7e, 0x00, 0x00, 0x00, 0x01, + 0xf7, 0x7a, 0x09, 0xe3, 0x00, 0x00, 0x00, 0xd7, + 0xe6, 0xa7, 0xa5, 0x18, 0x00, 0x00, 0x00, 0x45, + 0xb5, 0x0a, 0xe0, 0x64, 0x00, 0x00, 0x00, 0x75, + 0xba, 0xf2, 0xa2, 0xb9, 0x00, 0x00, 0x00, 0x5f, + 0x31, 0xff, 0xfd, 0x16, 0x00, 0x00, 0x01, 0x48, + 0x03, 0xf5, 0x55, 0xab, 0x00, 0x00, 0x00, 0x1e, + 0x85, 0x03, 0x5e, 0xa7, 0x00, 0x00, 0x00, 0x23, + 0x4e, 0x81, 0xae, 0x7d, 0x00, 0x00, 0x00, 0x18, + 0x67, 0x07, 0x33, 0xe3, 0x00, 0x00, 0x00, 0x14, + 0xab, 0x81, 0x05, 0xac, 0x00, 0x00, 0x00, 0x03, + 0x24, 0x75, 0x85, 0x14, 0x00, 0x00, 0x00, 0x36 + }; + for (int i : UPDATE_KEYS) + out.writeByte(i); + out.flush(); + } continue; + } //int size = url.getContentLength(); // if size == -1 it doesn't exist diff --git a/src/org/moparscape/userver/v508/OndemandServer443.java b/src/org/moparscape/userver/v508/OndemandServer443.java index ec9bfe6..4f1d6d3 100644 --- a/src/org/moparscape/userver/v508/OndemandServer443.java +++ b/src/org/moparscape/userver/v508/OndemandServer443.java @@ -40,7 +40,7 @@ public class OndemandServer443 extends Server { } public void handleConnection(Socket s) throws IOException { - //System.out.println("ods: new connection to update server"); + System.out.println("ods: new connection to 443 server"); // this is messed up, so we will read a byte, it will throw an exception, andf we will start over. s.getInputStream().skip(4);