mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-12-06 03:07:18 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b78d903188 |
No files matched your search
@@ -1,38 +0,0 @@
|
|||||||
# This workflow will build a Java project with Maven
|
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
||||||
|
|
||||||
name: Java CI with Maven
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up JDK 1.8
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
distribution: 'zulu'
|
|
||||||
java-version: '8'
|
|
||||||
cache: 'maven'
|
|
||||||
- name: Build with Maven
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
mvn -B clean package
|
|
||||||
mkdir -p artifacts
|
|
||||||
cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" artifacts/Client.jar
|
|
||||||
cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" artifacts/Server.jar
|
|
||||||
cp "2006Scape Server/ServerConfig.Sample.json" artifacts/ServerConfig.json
|
|
||||||
cp SinglePlayer.bat artifacts/
|
|
||||||
cp -r "2006Scape Server/plugins" artifacts/
|
|
||||||
cp -r "2006Scape Server/data" artifacts/
|
|
||||||
- name: Publish build to GH Actions
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: 2006Scape-SinglePlayer
|
|
||||||
path: artifacts/
|
|
||||||
+2
-18
@@ -1,22 +1,6 @@
|
|||||||
2006Scape\ Server/data/characters/
|
2006Redone\ Server/data/characters/
|
||||||
.idea/
|
.idea/
|
||||||
.idea/workspace.xml
|
.idea/workspace.xml
|
||||||
**/.idea/workspace.xml
|
**/.idea/workspace.xml
|
||||||
**/.idea/*
|
**/.idea/*
|
||||||
*/*.jar
|
*.iml
|
||||||
*.iml
|
|
||||||
.DS_Store
|
|
||||||
2006Scape Server/data/logs
|
|
||||||
*.class
|
|
||||||
*.project
|
|
||||||
2006Scape Client/bin/
|
|
||||||
*.prefs
|
|
||||||
*.classpath
|
|
||||||
target/
|
|
||||||
**/target/
|
|
||||||
|
|
||||||
# Ignore any json files in the server root (should only be config files, the sample file should still be updated)
|
|
||||||
2006Scape Server/*.json
|
|
||||||
rsapriv
|
|
||||||
rsapub
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
[submodule "2006Scape-Android"]
|
|
||||||
path = 2006Scape-Android
|
|
||||||
url = https://github.com/2006-Scape/2006Scape-Android.git
|
|
||||||
File renamed without changes.
@@ -0,0 +1,11 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.6
|
||||||
File renamed without changes.
@@ -3,8 +3,8 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>2006Scape</artifactId>
|
<artifactId>2006redone</artifactId>
|
||||||
<groupId>com.rs2</groupId>
|
<groupId>com.rebotted</groupId>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@@ -13,20 +13,6 @@
|
|||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.java.dev.jna</groupId>
|
|
||||||
<artifactId>jna</artifactId>
|
|
||||||
<version>4.4.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<version>4.7</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -61,4 +47,4 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+16
-20
@@ -2,7 +2,7 @@
|
|||||||
// Jad home page: http://www.kpdus.com/jad.html
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
// Decompiler options: packimports(3)
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
public final class Class40 {
|
final class Class40 {
|
||||||
|
|
||||||
public Class40(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int k4, int l4) {
|
public Class40(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int k4, int l4) {
|
||||||
aBoolean683 = !(i3 != l2 || i3 != l || i3 != k2);
|
aBoolean683 = !(i3 != l2 || i3 != l || i3 != k2);
|
||||||
@@ -151,14 +151,12 @@ public final class Class40 {
|
|||||||
anIntArray676 = new int[j7];
|
anIntArray676 = new int[j7];
|
||||||
anIntArray677 = new int[j7];
|
anIntArray677 = new int[j7];
|
||||||
anIntArray678 = new int[j7];
|
anIntArray678 = new int[j7];
|
||||||
isOverlayFace = new boolean[j7];
|
|
||||||
if (i1 != -1) {
|
if (i1 != -1) {
|
||||||
anIntArray682 = new int[j7];
|
anIntArray682 = new int[j7];
|
||||||
}
|
}
|
||||||
int l7 = 0;
|
int l7 = 0;
|
||||||
for (int j8 = 0; j8 < j7; j8++) {
|
for (int j8 = 0; j8 < j7; j8++) {
|
||||||
int l8 = ai3[l7];
|
int l8 = ai3[l7];
|
||||||
isOverlayFace[j8] = (l8 != 0);
|
|
||||||
int k9 = ai3[l7 + 1];
|
int k9 = ai3[l7 + 1];
|
||||||
int i10 = ai3[l7 + 2];
|
int i10 = ai3[l7 + 2];
|
||||||
int k10 = ai3[l7 + 3];
|
int k10 = ai3[l7 + 3];
|
||||||
@@ -216,23 +214,21 @@ public final class Class40 {
|
|||||||
l9 /= 14;
|
l9 /= 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int[] anIntArray673;
|
final int[] anIntArray673;
|
||||||
public final int[] anIntArray674;
|
final int[] anIntArray674;
|
||||||
public final int[] anIntArray675;
|
final int[] anIntArray675;
|
||||||
public final int[] anIntArray676;
|
final int[] anIntArray676;
|
||||||
public final int[] anIntArray677;
|
final int[] anIntArray677;
|
||||||
public final int[] anIntArray678;
|
final int[] anIntArray678;
|
||||||
public final int[] anIntArray679;
|
final int[] anIntArray679;
|
||||||
public final int[] anIntArray680;
|
final int[] anIntArray680;
|
||||||
public final int[] anIntArray681;
|
final int[] anIntArray681;
|
||||||
public final boolean[] isOverlayFace;
|
int anIntArray682[];
|
||||||
public int anIntArray682[];
|
final boolean aBoolean683;
|
||||||
public final boolean aBoolean683;
|
final int anInt684;
|
||||||
public final int anInt684;
|
final int anInt685;
|
||||||
public final int anInt685;
|
final int anInt686;
|
||||||
public final int anInt686;
|
final int anInt687;
|
||||||
public final int anInt687;
|
|
||||||
public int plane;
|
|
||||||
static final int[] anIntArray688 = new int[6];
|
static final int[] anIntArray688 = new int[6];
|
||||||
static final int[] anIntArray689 = new int[6];
|
static final int[] anIntArray689 = new int[6];
|
||||||
static final int[] anIntArray690 = new int[6];
|
static final int[] anIntArray690 = new int[6];
|
||||||
+8
-9
@@ -2,7 +2,7 @@
|
|||||||
// Jad home page: http://www.kpdus.com/jad.html
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
// Decompiler options: packimports(3)
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
public final class Class43 {
|
final class Class43 {
|
||||||
|
|
||||||
public Class43(int i, int j, int k, int l, int i1, int j1, boolean flag) {
|
public Class43(int i, int j, int k, int l, int i1, int j1, boolean flag) {
|
||||||
aBoolean721 = true;
|
aBoolean721 = true;
|
||||||
@@ -15,12 +15,11 @@ public final class Class43 {
|
|||||||
aBoolean721 = flag;
|
aBoolean721 = flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int anInt716;
|
final int anInt716;
|
||||||
public final int anInt717;
|
final int anInt717;
|
||||||
public final int anInt718;
|
final int anInt718;
|
||||||
public final int anInt719;
|
final int anInt719;
|
||||||
public final int anInt720;
|
final int anInt720;
|
||||||
public boolean aBoolean721;
|
boolean aBoolean721;
|
||||||
public final int anInt722;
|
final int anInt722;
|
||||||
public boolean isOverlay = false;
|
|
||||||
}
|
}
|
||||||
File renamed without changes.
-3
@@ -15,7 +15,4 @@ abstract class Class56 {
|
|||||||
abstract void method832(int i);
|
abstract void method832(int i);
|
||||||
|
|
||||||
abstract void method833();
|
abstract void method833();
|
||||||
|
|
||||||
void setLoop(boolean loop, boolean restartIfStopped) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
File renamed without changes.
@@ -0,0 +1,99 @@
|
|||||||
|
/* Class56_Sub1_Sub1 - Decompiled by JODE
|
||||||
|
* Visit http://jode.sourceforge.net/
|
||||||
|
*/
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
|
||||||
|
import javax.sound.midi.InvalidMidiDataException;
|
||||||
|
import javax.sound.midi.MidiMessage;
|
||||||
|
import javax.sound.midi.MidiSystem;
|
||||||
|
import javax.sound.midi.Receiver;
|
||||||
|
import javax.sound.midi.Sequence;
|
||||||
|
import javax.sound.midi.Sequencer;
|
||||||
|
import javax.sound.midi.ShortMessage;
|
||||||
|
|
||||||
|
final class Class56_Sub1_Sub1 extends Class56_Sub1 implements Receiver
|
||||||
|
{
|
||||||
|
private static Receiver aReceiver1850 = null;
|
||||||
|
private static Sequencer aSequencer1851 = null;
|
||||||
|
|
||||||
|
final void method827(int i, byte[] is, int i_0_, boolean bool) {
|
||||||
|
if (aSequencer1851 != null) {
|
||||||
|
try {
|
||||||
|
Sequence sequence = MidiSystem.getSequence(new ByteArrayInputStream(is));
|
||||||
|
aSequencer1851.setSequence(sequence);
|
||||||
|
aSequencer1851.setLoopCount(!bool ? 0 : -1);
|
||||||
|
method835(0, i, -1L);
|
||||||
|
aSequencer1851.start();
|
||||||
|
} catch (Exception exception) {
|
||||||
|
/* empty */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
final void method833() {
|
||||||
|
if (aSequencer1851 != null) {
|
||||||
|
aSequencer1851.stop();
|
||||||
|
method838(-1L);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public final synchronized void send(MidiMessage midimessage, long l) {
|
||||||
|
byte[] is = midimessage.getMessage();
|
||||||
|
if (is.length < 3 || !method837(is[0], is[1], is[2], l))
|
||||||
|
aReceiver1850.send(midimessage, l);
|
||||||
|
}
|
||||||
|
|
||||||
|
Class56_Sub1_Sub1() {
|
||||||
|
try {
|
||||||
|
aReceiver1850 = MidiSystem.getReceiver();
|
||||||
|
aSequencer1851 = MidiSystem.getSequencer(false);
|
||||||
|
aSequencer1851.getTransmitter().setReceiver(this);
|
||||||
|
aSequencer1851.open();
|
||||||
|
method838(-1L);
|
||||||
|
} catch (Exception exception) {
|
||||||
|
Game.method790();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
final void method828() {
|
||||||
|
if (aSequencer1851 != null) {
|
||||||
|
aSequencer1851.close();
|
||||||
|
aSequencer1851 = null;
|
||||||
|
}
|
||||||
|
if (aReceiver1850 != null) {
|
||||||
|
aReceiver1850.close();
|
||||||
|
aReceiver1850 = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public final void close() {
|
||||||
|
/* empty */
|
||||||
|
}
|
||||||
|
|
||||||
|
final void method831(int i) {
|
||||||
|
if (aSequencer1851 != null) {
|
||||||
|
method840(i, -1L);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
final synchronized void method830(int i, int i_2_) {
|
||||||
|
if (aSequencer1851 != null) {
|
||||||
|
method835(i_2_, i, -1L);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
final void method836(int i, int i_5_, int i_6_, long l) {
|
||||||
|
try {
|
||||||
|
ShortMessage shortmessage = new ShortMessage();
|
||||||
|
shortmessage.setMessage(i, i_5_, i_6_);
|
||||||
|
aReceiver1850.send(shortmessage, l);
|
||||||
|
} catch (InvalidMidiDataException invalidmididataexception) {
|
||||||
|
/* empty */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
final void method832(int i) {
|
||||||
|
if (i > -90)
|
||||||
|
method833();
|
||||||
|
}
|
||||||
|
}
|
||||||
-5
@@ -28,11 +28,6 @@ final class Class56_Sub1_Sub2 extends Class56_Sub1 implements Runnable
|
|||||||
anInt1856 = 0;
|
anInt1856 = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
final synchronized void setLoop(boolean loop, boolean restartIfStopped) {
|
|
||||||
aBoolean1854 = loop;
|
|
||||||
}
|
|
||||||
|
|
||||||
final void method836(int i, int i_4_, int i_5_, long l) {
|
final void method836(int i, int i_4_, int i_5_, long l) {
|
||||||
method845(i, (int) l, i_4_, i_5_);
|
method845(i, (int) l, i_4_, i_5_);
|
||||||
File renamed without changes.
@@ -0,0 +1,22 @@
|
|||||||
|
import java.net.InetAddress;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
|
|
||||||
|
public final class Client {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
ClientSettings.SERVER_IP = "127.0.0.1";
|
||||||
|
try {
|
||||||
|
Game game = new Game();
|
||||||
|
Game.nodeID = 10;
|
||||||
|
Game.portOff = 0;
|
||||||
|
Game.setHighMem();
|
||||||
|
Game.isMembers = true;
|
||||||
|
Signlink.storeid = 32;
|
||||||
|
Signlink.startpriv(InetAddress.getLocalHost());
|
||||||
|
game.createClientFrame(503, 765);
|
||||||
|
} catch (UnknownHostException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import java.math.BigInteger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ClientSettings
|
||||||
|
* @author Andrew (I'm A Boss on Rune-Server and Mr Extremez on Mopar & Runelocus)
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class ClientSettings {
|
||||||
|
|
||||||
|
public static String SNOW_MONTH = ".12";
|
||||||
|
/**
|
||||||
|
* The Servers Name
|
||||||
|
*/
|
||||||
|
public final static String SERVER_NAME = "2006rebotted";
|
||||||
|
/**
|
||||||
|
* The Servers Website
|
||||||
|
*/
|
||||||
|
public final static String SERVER_WEBSITE = "www.rsrebotted.com";
|
||||||
|
/**
|
||||||
|
* The Servers Ip
|
||||||
|
*
|
||||||
|
* You don't have to change this, the client will automatically connect to the server
|
||||||
|
* on localhost (Assuming you're running Client and LocalGame respectively)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static String SERVER_IP = "127.0.0.1";
|
||||||
|
/**
|
||||||
|
* The Npc Bits for the Server
|
||||||
|
*/
|
||||||
|
public final static int NPC_BITS = 12;
|
||||||
|
/**
|
||||||
|
* The Servers Uid
|
||||||
|
*/
|
||||||
|
public final static int UID = 314268572;
|
||||||
|
|
||||||
|
public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443");
|
||||||
|
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
|
||||||
|
}
|
||||||
-2
@@ -525,8 +525,6 @@ final class CollisionMap {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Something to do with moving to objects/npcs etc when clicked on
|
|
||||||
// Maybe checking distance?
|
|
||||||
public boolean method221(int i, int j, int k, int l, int i1, int j1, int k1) {
|
public boolean method221(int i, int j, int k, int l, int i1, int j1, int k1) {
|
||||||
int l1 = j + j1 - 1;
|
int l1 = j + j1 - 1;
|
||||||
int i2 = i + l - 1;
|
int i2 = i + l - 1;
|
||||||
File renamed without changes.
@@ -0,0 +1,233 @@
|
|||||||
|
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||||
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
|
public class DrawingArea extends NodeSub {
|
||||||
|
|
||||||
|
public static void initDrawingArea(int i, int j, int ai[]) {
|
||||||
|
pixels = ai;
|
||||||
|
width = j;
|
||||||
|
height = i;
|
||||||
|
setDrawingArea(i, 0, j, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void defaultDrawingAreaSize() {
|
||||||
|
topX = 0;
|
||||||
|
topY = 0;
|
||||||
|
bottomX = width;
|
||||||
|
bottomY = height;
|
||||||
|
centerX = bottomX - 1;
|
||||||
|
centerY = bottomX / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setDrawingArea(int i, int j, int k, int l) {
|
||||||
|
if (j < 0) {
|
||||||
|
j = 0;
|
||||||
|
}
|
||||||
|
if (l < 0) {
|
||||||
|
l = 0;
|
||||||
|
}
|
||||||
|
if (k > width) {
|
||||||
|
k = width;
|
||||||
|
}
|
||||||
|
if (i > height) {
|
||||||
|
i = height;
|
||||||
|
}
|
||||||
|
topX = j;
|
||||||
|
topY = l;
|
||||||
|
bottomX = k;
|
||||||
|
bottomY = i;
|
||||||
|
centerX = bottomX - 1;
|
||||||
|
centerY = bottomX / 2;
|
||||||
|
anInt1387 = bottomY / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setAllPixelsToZero() {
|
||||||
|
int i = width * height;
|
||||||
|
for (int j = 0; j < i; j++) {
|
||||||
|
pixels[j] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void method335(int i, int j, int k, int l, int i1, int k1) {
|
||||||
|
if (k1 < topX) {
|
||||||
|
k -= topX - k1;
|
||||||
|
k1 = topX;
|
||||||
|
}
|
||||||
|
if (j < topY) {
|
||||||
|
l -= topY - j;
|
||||||
|
j = topY;
|
||||||
|
}
|
||||||
|
if (k1 + k > bottomX) {
|
||||||
|
k = bottomX - k1;
|
||||||
|
}
|
||||||
|
if (j + l > bottomY) {
|
||||||
|
l = bottomY - j;
|
||||||
|
}
|
||||||
|
int l1 = 256 - i1;
|
||||||
|
int i2 = (i >> 16 & 0xff) * i1;
|
||||||
|
int j2 = (i >> 8 & 0xff) * i1;
|
||||||
|
int k2 = (i & 0xff) * i1;
|
||||||
|
int k3 = width - k;
|
||||||
|
int l3 = k1 + j * width;
|
||||||
|
for (int i4 = 0; i4 < l; i4++) {
|
||||||
|
for (int j4 = -k; j4 < 0; j4++) {
|
||||||
|
int l2 = (pixels[l3] >> 16 & 0xff) * l1;
|
||||||
|
int i3 = (pixels[l3] >> 8 & 0xff) * l1;
|
||||||
|
int j3 = (pixels[l3] & 0xff) * l1;
|
||||||
|
int k4 = (i2 + l2 >> 8 << 16) + (j2 + i3 >> 8 << 8) + (k2 + j3 >> 8);
|
||||||
|
pixels[l3++] = k4;
|
||||||
|
}
|
||||||
|
|
||||||
|
l3 += k3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void method336(int i, int j, int l, int i1, int k) {
|
||||||
|
if (k < topX) {
|
||||||
|
i1 -= topX - k;
|
||||||
|
k = topX;
|
||||||
|
}
|
||||||
|
if (j < topY) {
|
||||||
|
i -= topY - j;
|
||||||
|
j = topY;
|
||||||
|
}
|
||||||
|
if (k + i1 > bottomX) {
|
||||||
|
i1 = bottomX - k;
|
||||||
|
}
|
||||||
|
if (j + i > bottomY) {
|
||||||
|
i = bottomY - j;
|
||||||
|
}
|
||||||
|
int k1 = width - i1;
|
||||||
|
int l1 = k + j * width;
|
||||||
|
for (int i2 = -i; i2 < 0; i2++) {
|
||||||
|
for (int j2 = -i1; j2 < 0; j2++) {
|
||||||
|
pixels[l1++] = l;
|
||||||
|
}
|
||||||
|
|
||||||
|
l1 += k1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void fillPixels(int i1, int k, int l, int i, int j) {
|
||||||
|
method339(i1, l, j, i);
|
||||||
|
method339(i1 + k - 1, l, j, i);
|
||||||
|
method341(i1, l, k, i);
|
||||||
|
method341(i1, l, k, i + j - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void method338(int i, int j, int k, int l, int i1, int j1) {
|
||||||
|
method340(l, i1, i, k, j1);
|
||||||
|
method340(l, i1, i + j - 1, k, j1);
|
||||||
|
if (j >= 3) {
|
||||||
|
method342(l, j1, k, i + 1, j - 2);
|
||||||
|
method342(l, j1 + i1 - 1, k, i + 1, j - 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void method339(int i, int j, int k, int l) {
|
||||||
|
if (i < topY || i >= bottomY) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (l < topX) {
|
||||||
|
k -= topX - l;
|
||||||
|
l = topX;
|
||||||
|
}
|
||||||
|
if (l + k > bottomX) {
|
||||||
|
k = bottomX - l;
|
||||||
|
}
|
||||||
|
int i1 = l + i * width;
|
||||||
|
for (int j1 = 0; j1 < k; j1++) {
|
||||||
|
pixels[i1 + j1] = j;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void method340(int i, int j, int k, int l, int i1) {
|
||||||
|
if (k < topY || k >= bottomY) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (i1 < topX) {
|
||||||
|
j -= topX - i1;
|
||||||
|
i1 = topX;
|
||||||
|
}
|
||||||
|
if (i1 + j > bottomX) {
|
||||||
|
j = bottomX - i1;
|
||||||
|
}
|
||||||
|
int j1 = 256 - l;
|
||||||
|
int k1 = (i >> 16 & 0xff) * l;
|
||||||
|
int l1 = (i >> 8 & 0xff) * l;
|
||||||
|
int i2 = (i & 0xff) * l;
|
||||||
|
int i3 = i1 + k * width;
|
||||||
|
for (int j3 = 0; j3 < j; j3++) {
|
||||||
|
int j2 = (pixels[i3] >> 16 & 0xff) * j1;
|
||||||
|
int k2 = (pixels[i3] >> 8 & 0xff) * j1;
|
||||||
|
int l2 = (pixels[i3] & 0xff) * j1;
|
||||||
|
int k3 = (k1 + j2 >> 8 << 16) + (l1 + k2 >> 8 << 8) + (i2 + l2 >> 8);
|
||||||
|
pixels[i3++] = k3;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void method341(int i, int j, int k, int l) {
|
||||||
|
if (l < topX || l >= bottomX) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (i < topY) {
|
||||||
|
k -= topY - i;
|
||||||
|
i = topY;
|
||||||
|
}
|
||||||
|
if (i + k > bottomY) {
|
||||||
|
k = bottomY - i;
|
||||||
|
}
|
||||||
|
int j1 = l + i * width;
|
||||||
|
for (int k1 = 0; k1 < k; k1++) {
|
||||||
|
pixels[j1 + k1 * width] = j;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void method342(int i, int j, int k, int l, int i1) {
|
||||||
|
if (j < topX || j >= bottomX) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (l < topY) {
|
||||||
|
i1 -= topY - l;
|
||||||
|
l = topY;
|
||||||
|
}
|
||||||
|
if (l + i1 > bottomY) {
|
||||||
|
i1 = bottomY - l;
|
||||||
|
}
|
||||||
|
int j1 = 256 - k;
|
||||||
|
int k1 = (i >> 16 & 0xff) * k;
|
||||||
|
int l1 = (i >> 8 & 0xff) * k;
|
||||||
|
int i2 = (i & 0xff) * k;
|
||||||
|
int i3 = j + l * width;
|
||||||
|
for (int j3 = 0; j3 < i1; j3++) {
|
||||||
|
int j2 = (pixels[i3] >> 16 & 0xff) * j1;
|
||||||
|
int k2 = (pixels[i3] >> 8 & 0xff) * j1;
|
||||||
|
int l2 = (pixels[i3] & 0xff) * j1;
|
||||||
|
int k3 = (k1 + j2 >> 8 << 16) + (l1 + k2 >> 8 << 8) + (i2 + l2 >> 8);
|
||||||
|
pixels[i3] = k3;
|
||||||
|
i3 += width;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
DrawingArea() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int pixels[];
|
||||||
|
public static int width;
|
||||||
|
public static int height;
|
||||||
|
public static int topY;
|
||||||
|
public static int bottomY;
|
||||||
|
public static int topX;
|
||||||
|
public static int bottomX;
|
||||||
|
public static int centerX;
|
||||||
|
public static int centerY;
|
||||||
|
public static int anInt1387;
|
||||||
|
|
||||||
|
}
|
||||||
File renamed without changes.
File renamed without changes.
+2
-4
@@ -25,7 +25,7 @@ public final class EntityDef {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 945:
|
case 945:
|
||||||
entityDef.name = ClientSettings.SERVER_NAME + " Guide";
|
entityDef.name = "2006Redone Guide";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return entityDef;
|
return entityDef;
|
||||||
@@ -92,12 +92,10 @@ public final class EntityDef {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int totalNPCs;
|
|
||||||
|
|
||||||
public static void unpackConfig(StreamLoader streamLoader) {
|
public static void unpackConfig(StreamLoader streamLoader) {
|
||||||
stream = new Stream(streamLoader.getDataForName("npc.dat"));
|
stream = new Stream(streamLoader.getDataForName("npc.dat"));
|
||||||
Stream stream2 = new Stream(streamLoader.getDataForName("npc.idx"));
|
Stream stream2 = new Stream(streamLoader.getDataForName("npc.idx"));
|
||||||
totalNPCs = stream2.readUnsignedWord();
|
int totalNPCs = stream2.readUnsignedWord();
|
||||||
streamIndices = new int[totalNPCs];
|
streamIndices = new int[totalNPCs];
|
||||||
int i = 2;
|
int i = 2;
|
||||||
for (int j = 0; j < totalNPCs; j++) {
|
for (int j = 0; j < totalNPCs; j++) {
|
||||||
@@ -35,7 +35,7 @@ public final class Flo {
|
|||||||
} else if (i == 1) {
|
} else if (i == 1) {
|
||||||
anInt390 = stream.read3Bytes();
|
anInt390 = stream.read3Bytes();
|
||||||
Calendar date = new GregorianCalendar();
|
Calendar date = new GregorianCalendar();
|
||||||
if (ClientSettings.SNOW_FLOOR_FORCE_ENABLED || (ClientSettings.SNOW_FLOOR_ENABLED && (date.get(Calendar.MONTH) + 1) == Integer.parseInt(ClientSettings.SNOW_MONTH.substring(1)))) {
|
if ((date.get(Calendar.MONTH) + 1) == 12) {
|
||||||
anInt390 = 0xffffff;
|
anInt390 = 0xffffff;
|
||||||
}
|
}
|
||||||
method262(anInt390);
|
method262(anInt390);
|
||||||
+716
-2162
File diff suppressed because it is too large.
Load diff
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||||
// Jad home page: http://www.kpdus.com/jad.html
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
// Decompiler options: packimports(3) package com.rs2;
|
// Decompiler options: packimports(3) package com.rebotted;
|
||||||
|
|
||||||
public final class ISAACRandomGen {
|
public final class ISAACRandomGen {
|
||||||
|
|
||||||
File renamed without changes.
+2
-2
@@ -7,7 +7,7 @@ final class Item extends Animable {
|
|||||||
@Override
|
@Override
|
||||||
public final Model getRotatedModel() {
|
public final Model getRotatedModel() {
|
||||||
ItemDef itemDef = ItemDef.forID(ID);
|
ItemDef itemDef = ItemDef.forID(ID);
|
||||||
return itemDef.method201(amount);
|
return itemDef.method201(anInt1559);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Item() {
|
public Item() {
|
||||||
@@ -16,5 +16,5 @@ final class Item extends Animable {
|
|||||||
public int ID;
|
public int ID;
|
||||||
public int x;
|
public int x;
|
||||||
public int y;
|
public int y;
|
||||||
public int amount;
|
public int anInt1559;
|
||||||
}
|
}
|
||||||
+3
-3
@@ -2103,7 +2103,7 @@ public final class ItemDef {
|
|||||||
int j3 = DrawingArea.bottomY;
|
int j3 = DrawingArea.bottomY;
|
||||||
Texture.aBoolean1464 = false;
|
Texture.aBoolean1464 = false;
|
||||||
DrawingArea.initDrawingArea(32, 32, sprite2.pixels);
|
DrawingArea.initDrawingArea(32, 32, sprite2.pixels);
|
||||||
DrawingArea.fillArea(32, 0, 0, 32, 0);
|
DrawingArea.method336(32, 0, 0, 32, 0);
|
||||||
Texture.method364();
|
Texture.method364();
|
||||||
int k3 = itemDef.modelZoom;
|
int k3 = itemDef.modelZoom;
|
||||||
if (k == -1) {
|
if (k == -1) {
|
||||||
@@ -2372,7 +2372,7 @@ public final class ItemDef {
|
|||||||
private int[] originalModelColors;
|
private int[] originalModelColors;
|
||||||
public boolean membersObject;
|
public boolean membersObject;
|
||||||
private int anInt162;
|
private int anInt162;
|
||||||
public int certTemplateID;
|
private int certTemplateID;
|
||||||
private int anInt164;
|
private int anInt164;
|
||||||
private int anInt165;
|
private int anInt165;
|
||||||
private int anInt166;
|
private int anInt166;
|
||||||
@@ -2405,7 +2405,7 @@ public final class ItemDef {
|
|||||||
private int anInt197;
|
private int anInt197;
|
||||||
public int modelRotation2;
|
public int modelRotation2;
|
||||||
private int anInt200;
|
private int anInt200;
|
||||||
public int[] stackAmounts;
|
private int[] stackAmounts;
|
||||||
public int team;
|
public int team;
|
||||||
public static int totalItems;
|
public static int totalItems;
|
||||||
private int anInt204;
|
private int anInt204;
|
||||||
File renamed without changes.
File renamed without changes.
+13
-4
@@ -8,14 +8,22 @@ public final class Main {
|
|||||||
DEAR DEVELOPER!
|
DEAR DEVELOPER!
|
||||||
|
|
||||||
If you want to run the client locally, the easiest way to do that is run the class "Client.java" instead!
|
If you want to run the client locally, the easiest way to do that is run the class "Client.java" instead!
|
||||||
If you REALLY want to use this class, add program arguments "-s localhost".
|
|
||||||
|
If you REALLY want to use this class, add two random program arguments.
|
||||||
|
But seriously, Client.java is just a copy-paste of this class and does it locally. Use that instead!
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
ClientSettings.SERVER_IP = "2006rebotted.hopto.org";
|
||||||
|
if (args.length > 1)
|
||||||
|
{
|
||||||
|
System.out.println("Running local");
|
||||||
|
ClientSettings.SERVER_IP = "127.0.0.1";
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Game game = new Game();
|
Game game = new Game();
|
||||||
ClientArgs.apply(args, game);
|
|
||||||
|
|
||||||
Game.nodeID = 10;
|
Game.nodeID = 10;
|
||||||
Game.portOff = 0;
|
Game.portOff = 0;
|
||||||
Game.setHighMem();
|
Game.setHighMem();
|
||||||
@@ -27,4 +35,5 @@ public final class Main {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
File renamed without changes.
+26
-102
@@ -113,7 +113,7 @@ public final class Model extends Animable {
|
|||||||
if (aClass21Array1661 == null) {
|
if (aClass21Array1661 == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Class21 class21 = aClass21Array1661.length < j ? null : aClass21Array1661[j];
|
Class21 class21 = aClass21Array1661[j];
|
||||||
if (class21 == null) {
|
if (class21 == null) {
|
||||||
aOnDemandFetcherParent_1662.method548(j);
|
aOnDemandFetcherParent_1662.method548(j);
|
||||||
return null;
|
return null;
|
||||||
@@ -625,7 +625,6 @@ public final class Model extends Animable {
|
|||||||
anIntArray1636 = model.anIntArray1636;
|
anIntArray1636 = model.anIntArray1636;
|
||||||
anIntArray1637 = model.anIntArray1637;
|
anIntArray1637 = model.anIntArray1637;
|
||||||
}
|
}
|
||||||
hdVertexNormals = model.hdVertexNormals;
|
|
||||||
anIntArray1627 = model.anIntArray1627;
|
anIntArray1627 = model.anIntArray1627;
|
||||||
anIntArray1629 = model.anIntArray1629;
|
anIntArray1629 = model.anIntArray1629;
|
||||||
anIntArray1640 = model.anIntArray1640;
|
anIntArray1640 = model.anIntArray1640;
|
||||||
@@ -650,7 +649,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method464(Model model, boolean flag) {
|
public void method464(Model model, boolean flag) {
|
||||||
invalidateHdCache();
|
|
||||||
anInt1626 = model.anInt1626;
|
anInt1626 = model.anInt1626;
|
||||||
anInt1630 = model.anInt1630;
|
anInt1630 = model.anInt1630;
|
||||||
anInt1642 = model.anInt1642;
|
anInt1642 = model.anInt1642;
|
||||||
@@ -700,9 +698,6 @@ public final class Model extends Animable {
|
|||||||
anIntArray1643 = model.anIntArray1643;
|
anIntArray1643 = model.anIntArray1643;
|
||||||
anIntArray1644 = model.anIntArray1644;
|
anIntArray1644 = model.anIntArray1644;
|
||||||
anIntArray1645 = model.anIntArray1645;
|
anIntArray1645 = model.anIntArray1645;
|
||||||
aClass33Array1660 = model.aClass33Array1660;
|
|
||||||
super.aClass33Array1425 = model.aClass33Array1425;
|
|
||||||
hdVertexNormals = model.hdVertexNormals;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private int method465(Model model, int i) {
|
private int method465(Model model, int i) {
|
||||||
@@ -864,7 +859,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method470(int i) {
|
public void method470(int i) {
|
||||||
invalidateHdCache();
|
|
||||||
if (anIntArrayArray1657 == null) {
|
if (anIntArrayArray1657 == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -887,7 +881,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method471(int ai[], int j, int k) {
|
public void method471(int ai[], int j, int k) {
|
||||||
invalidateHdCache();
|
|
||||||
if (k == -1) {
|
if (k == -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1077,7 +1070,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method473() {
|
public void method473() {
|
||||||
invalidateHdCache();
|
|
||||||
for (int j = 0; j < anInt1626; j++) {
|
for (int j = 0; j < anInt1626; j++) {
|
||||||
int k = anIntArray1627[j];
|
int k = anIntArray1627[j];
|
||||||
anIntArray1627[j] = anIntArray1629[j];
|
anIntArray1627[j] = anIntArray1629[j];
|
||||||
@@ -1087,7 +1079,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method474(int i) {
|
public void method474(int i) {
|
||||||
invalidateHdCache();
|
|
||||||
int k = modelIntArray1[i];
|
int k = modelIntArray1[i];
|
||||||
int l = modelIntArray2[i];
|
int l = modelIntArray2[i];
|
||||||
for (int i1 = 0; i1 < anInt1626; i1++) {
|
for (int i1 = 0; i1 < anInt1626; i1++) {
|
||||||
@@ -1098,7 +1089,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method475(int i, int j, int l) {
|
public void method475(int i, int j, int l) {
|
||||||
invalidateHdCache();
|
|
||||||
for (int i1 = 0; i1 < anInt1626; i1++) {
|
for (int i1 = 0; i1 < anInt1626; i1++) {
|
||||||
anIntArray1627[i1] += i;
|
anIntArray1627[i1] += i;
|
||||||
anIntArray1628[i1] += j;
|
anIntArray1628[i1] += j;
|
||||||
@@ -1108,7 +1098,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method476(int i, int j) {
|
public void method476(int i, int j) {
|
||||||
invalidateHdCache();
|
|
||||||
for (int k = 0; k < anInt1630; k++) {
|
for (int k = 0; k < anInt1630; k++) {
|
||||||
if (anIntArray1640[k] == i) {
|
if (anIntArray1640[k] == i) {
|
||||||
anIntArray1640[k] = j;
|
anIntArray1640[k] = j;
|
||||||
@@ -1118,7 +1107,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method477() {
|
public void method477() {
|
||||||
invalidateHdCache();
|
|
||||||
for (int j = 0; j < anInt1626; j++) {
|
for (int j = 0; j < anInt1626; j++) {
|
||||||
anIntArray1629[j] = -anIntArray1629[j];
|
anIntArray1629[j] = -anIntArray1629[j];
|
||||||
}
|
}
|
||||||
@@ -1131,7 +1119,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method478(int i, int j, int l) {
|
public void method478(int i, int j, int l) {
|
||||||
invalidateHdCache();
|
|
||||||
for (int i1 = 0; i1 < anInt1626; i1++) {
|
for (int i1 = 0; i1 < anInt1626; i1++) {
|
||||||
anIntArray1627[i1] = anIntArray1627[i1] * i / 128;
|
anIntArray1627[i1] = anIntArray1627[i1] * i / 128;
|
||||||
anIntArray1628[i1] = anIntArray1628[i1] * l / 128;
|
anIntArray1628[i1] = anIntArray1628[i1] * l / 128;
|
||||||
@@ -1141,7 +1128,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method479(int i, int j, int k, int l, int i1, boolean flag) {
|
public void method479(int i, int j, int k, int l, int i1, boolean flag) {
|
||||||
invalidateHdCache();
|
|
||||||
int j1 = (int) Math.sqrt(k * k + l * l + i1 * i1);
|
int j1 = (int) Math.sqrt(k * k + l * l + i1 * i1);
|
||||||
int k1 = j * j1 >> 8;
|
int k1 = j * j1 >> 8;
|
||||||
if (anIntArray1634 == null) {
|
if (anIntArray1634 == null) {
|
||||||
@@ -1215,7 +1201,6 @@ public final class Model extends Animable {
|
|||||||
class33_1.anInt604 = class33.anInt604;
|
class33_1.anInt604 = class33.anInt604;
|
||||||
class33_1.anInt605 = class33.anInt605;
|
class33_1.anInt605 = class33.anInt605;
|
||||||
}
|
}
|
||||||
hdVertexNormals = aClass33Array1660;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (flag) {
|
if (flag) {
|
||||||
@@ -1226,7 +1211,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void method480(int i, int j, int k, int l, int i1) {
|
public void method480(int i, int j, int k, int l, int i1) {
|
||||||
invalidateHdCache();
|
|
||||||
for (int j1 = 0; j1 < anInt1630; j1++) {
|
for (int j1 = 0; j1 < anInt1630; j1++) {
|
||||||
int k1 = anIntArray1631[j1];
|
int k1 = anIntArray1631[j1];
|
||||||
int i2 = anIntArray1632[j1];
|
int i2 = anIntArray1632[j1];
|
||||||
@@ -1257,23 +1241,19 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (super.aClass33Array1425 != null) {
|
|
||||||
hdVertexNormals = new Class33[anInt1626];
|
|
||||||
for (int k2 = 0; k2 < anInt1626; k2++) {
|
|
||||||
Class33 src = super.aClass33Array1425[k2];
|
|
||||||
if (src != null) {
|
|
||||||
Class33 dst = hdVertexNormals[k2] = new Class33();
|
|
||||||
dst.anInt602 = src.anInt602;
|
|
||||||
dst.anInt603 = src.anInt603;
|
|
||||||
dst.anInt604 = src.anInt604;
|
|
||||||
dst.anInt605 = src.anInt605;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
super.aClass33Array1425 = null;
|
super.aClass33Array1425 = null;
|
||||||
aClass33Array1660 = null;
|
aClass33Array1660 = null;
|
||||||
anIntArray1655 = null;
|
anIntArray1655 = null;
|
||||||
anIntArray1656 = null;
|
anIntArray1656 = null;
|
||||||
|
if (anIntArray1637 != null) {
|
||||||
|
for (int l1 = 0; l1 < anInt1630; l1++) {
|
||||||
|
if ((anIntArray1637[l1] & 2) == 2) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
anIntArray1640 = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int method481(int i, int j, int k) {
|
private static int method481(int i, int j, int k) {
|
||||||
@@ -1355,49 +1335,27 @@ public final class Model extends Animable {
|
|||||||
int k2 = k1 * j + j2 * k >> 16;
|
int k2 = k1 * j + j2 * k >> 16;
|
||||||
int l2 = anInt1650 * k >> 16;
|
int l2 = anInt1650 * k >> 16;
|
||||||
int i3 = k2 + l2;
|
int i3 = k2 + l2;
|
||||||
boolean hdActive = ClientSettings.HD_317 && HD317Pipeline.isGpuActive();
|
if (i3 <= 50 || k2 >= 3500) {
|
||||||
// Check distance of model to camera for rendering
|
|
||||||
int distance;
|
|
||||||
if (hdActive) {
|
|
||||||
distance = Math.max(4800, (WorldController.effectiveDrawDist + 16) * 128);
|
|
||||||
} else if (ClientSettings.ANDROID) {
|
|
||||||
// In software mode, strictly synchronize model culling distance with ground terrain bounds
|
|
||||||
distance = WorldController.effectiveDrawDist * 128 + 128;
|
|
||||||
} else {
|
|
||||||
distance = WorldController.drawDistance * 256;
|
|
||||||
distance *= 1 + (Game.zoom / 10);
|
|
||||||
}
|
|
||||||
if (i3 <= ((ClientSettings.ANDROID || hdActive) ? 20 : 50) || k2 >= distance) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int boundX = DrawingArea.centerY;
|
|
||||||
int boundY = DrawingArea.anInt1387;
|
|
||||||
if (hdActive) {
|
|
||||||
int w = DrawingArea.width > 0 ? DrawingArea.width : 1024;
|
|
||||||
int h = DrawingArea.height > 0 ? DrawingArea.height : 768;
|
|
||||||
int minDim = Math.max(1, Math.min(w, h));
|
|
||||||
boundX = (w * 360) / minDim + 180;
|
|
||||||
boundY = (h * 450) / minDim + 180;
|
|
||||||
}
|
|
||||||
int j3 = l1 * l + j1 * i1 >> 16;
|
int j3 = l1 * l + j1 * i1 >> 16;
|
||||||
int k3 = j3 - anInt1650 << 9;
|
int k3 = j3 - anInt1650 << 9;
|
||||||
if (k3 / i3 >= boundX) {
|
if (k3 / i3 >= DrawingArea.centerY) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int l3 = j3 + anInt1650 << 9;
|
int l3 = j3 + anInt1650 << 9;
|
||||||
if (l3 / i3 <= -boundX) {
|
if (l3 / i3 <= -DrawingArea.centerY) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int i4 = k1 * k - j2 * j >> 16;
|
int i4 = k1 * k - j2 * j >> 16;
|
||||||
int j4 = anInt1650 * j >> 16;
|
int j4 = anInt1650 * j >> 16;
|
||||||
int k4 = i4 + j4 << 9;
|
int k4 = i4 + j4 << 9;
|
||||||
if (k4 / i3 <= -boundY) {
|
if (k4 / i3 <= -DrawingArea.anInt1387) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int l4 = j4 + (super.modelHeight * k >> 16);
|
int l4 = j4 + (super.modelHeight * k >> 16);
|
||||||
int i5 = i4 - l4 << 9;
|
int i5 = i4 - l4 << 9;
|
||||||
if (i5 / i3 >= boundY) {
|
if (i5 / i3 >= DrawingArea.anInt1387) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int j5 = l2 + (super.modelHeight * j >> 16);
|
int j5 = l2 + (super.modelHeight * j >> 16);
|
||||||
@@ -1435,10 +1393,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hdActive && !flag1) {
|
|
||||||
HD317Pipeline.drawModel(this, i, j, k, l, i1, j1, k1, l1, i2);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int l5 = Texture.textureInt1;
|
int l5 = Texture.textureInt1;
|
||||||
int j6 = Texture.textureInt2;
|
int j6 = Texture.textureInt2;
|
||||||
int l6 = 0;
|
int l6 = 0;
|
||||||
@@ -1480,28 +1434,6 @@ public final class Model extends Animable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hdActive) {
|
|
||||||
if (flag1) {
|
|
||||||
for (int k7 = 0; k7 < anInt1630; k7++) {
|
|
||||||
if (anIntArray1637 == null || anIntArray1637[k7] != -1) {
|
|
||||||
int vA = anIntArray1631[k7];
|
|
||||||
int vB = anIntArray1632[k7];
|
|
||||||
int vC = anIntArray1633[k7];
|
|
||||||
int xA = anIntArray1665[vA];
|
|
||||||
int xB = anIntArray1665[vB];
|
|
||||||
int xC = anIntArray1665[vC];
|
|
||||||
if ((!flag || (xA != -5000 && xB != -5000 && xC != -5000))
|
|
||||||
&& method486(anInt1685, anInt1686, anIntArray1666[vA], anIntArray1666[vB], anIntArray1666[vC], xA, xB, xC)) {
|
|
||||||
anIntArray1688[anInt1687++] = i2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
HD317Pipeline.drawModel(this, i, j, k, l, i1, j1, k1, l1, i2);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
method483(flag, flag1, i2);
|
method483(flag, flag1, i2);
|
||||||
} catch (Exception _ex) {
|
} catch (Exception _ex) {
|
||||||
@@ -1894,18 +1826,18 @@ public final class Model extends Animable {
|
|||||||
public int anIntArray1631[];
|
public int anIntArray1631[];
|
||||||
public int anIntArray1632[];
|
public int anIntArray1632[];
|
||||||
public int anIntArray1633[];
|
public int anIntArray1633[];
|
||||||
public int[] anIntArray1634;
|
private int[] anIntArray1634;
|
||||||
public int[] anIntArray1635;
|
private int[] anIntArray1635;
|
||||||
public int[] anIntArray1636;
|
private int[] anIntArray1636;
|
||||||
public int anIntArray1637[];
|
public int anIntArray1637[];
|
||||||
public int[] anIntArray1638;
|
private int[] anIntArray1638;
|
||||||
public int[] anIntArray1639;
|
private int[] anIntArray1639;
|
||||||
public int anIntArray1640[];
|
public int anIntArray1640[];
|
||||||
public int anInt1641;
|
private int anInt1641;
|
||||||
public int anInt1642;
|
private int anInt1642;
|
||||||
public int[] anIntArray1643;
|
private int[] anIntArray1643;
|
||||||
public int[] anIntArray1644;
|
private int[] anIntArray1644;
|
||||||
public int[] anIntArray1645;
|
private int[] anIntArray1645;
|
||||||
public int anInt1646;
|
public int anInt1646;
|
||||||
public int anInt1647;
|
public int anInt1647;
|
||||||
public int anInt1648;
|
public int anInt1648;
|
||||||
@@ -1920,15 +1852,7 @@ public final class Model extends Animable {
|
|||||||
public int anIntArrayArray1657[][];
|
public int anIntArrayArray1657[][];
|
||||||
public int anIntArrayArray1658[][];
|
public int anIntArrayArray1658[][];
|
||||||
public boolean aBoolean1659;
|
public boolean aBoolean1659;
|
||||||
public Class33 aClass33Array1660[];
|
Class33 aClass33Array1660[];
|
||||||
public Class33 hdVertexNormals[];
|
|
||||||
public int hdCacheVersion = 0;
|
|
||||||
public int hdCleanFrames = 0;
|
|
||||||
|
|
||||||
public void invalidateHdCache() {
|
|
||||||
hdCacheVersion++;
|
|
||||||
hdCleanFrames = 0;
|
|
||||||
}
|
|
||||||
private static Class21[] aClass21Array1661;
|
private static Class21[] aClass21Array1661;
|
||||||
private static OnDemandFetcherParent aOnDemandFetcherParent_1662;
|
private static OnDemandFetcherParent aOnDemandFetcherParent_1662;
|
||||||
private static boolean[] aBooleanArray1663 = new boolean[4096];
|
private static boolean[] aBooleanArray1663 = new boolean[4096];
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-3
@@ -83,12 +83,10 @@ public final class ObjectDef {
|
|||||||
stream = null;
|
stream = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int totalObjects;
|
|
||||||
|
|
||||||
public static void unpackConfig(StreamLoader streamLoader) {
|
public static void unpackConfig(StreamLoader streamLoader) {
|
||||||
stream = new Stream(streamLoader.getDataForName("loc.dat"));
|
stream = new Stream(streamLoader.getDataForName("loc.dat"));
|
||||||
Stream stream = new Stream(streamLoader.getDataForName("loc.idx"));
|
Stream stream = new Stream(streamLoader.getDataForName("loc.idx"));
|
||||||
totalObjects = stream.readUnsignedWord();
|
int totalObjects = stream.readUnsignedWord();
|
||||||
streamIndices = new int[totalObjects];
|
streamIndices = new int[totalObjects];
|
||||||
int i = 2;
|
int i = 2;
|
||||||
for (int j = 0; j < totalObjects; j++) {
|
for (int j = 0; j < totalObjects; j++) {
|
||||||
+12
-19
@@ -2,7 +2,7 @@
|
|||||||
// Jad home page: http://www.kpdus.com/jad.html
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
// Decompiler options: packimports(3)
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
public final class ObjectManager {
|
final class ObjectManager {
|
||||||
|
|
||||||
public ObjectManager(byte abyte0[][][], int ai[][][]) {
|
public ObjectManager(byte abyte0[][][], int ai[][][]) {
|
||||||
anInt145 = 99;
|
anInt145 = 99;
|
||||||
@@ -146,10 +146,7 @@ public final class ObjectManager {
|
|||||||
k15 -= anIntArray127[k18];
|
k15 -= anIntArray127[k18];
|
||||||
k16 -= anIntArray128[k18];
|
k16 -= anIntArray128[k18];
|
||||||
}
|
}
|
||||||
boolean roofGate = ClientSettings.ANDROID
|
if (k17 >= 1 && k17 < anInt147 - 1 && (!lowMem || (aByteArrayArrayArray149[0][l6][k17] & 2) != 0 || (aByteArrayArrayArray149[l][l6][k17] & 0x10) == 0 && method182(k17, l, l6) == anInt131)) {
|
||||||
? (!hideRoofs && !lowMem)
|
|
||||||
: (!hideBuggyVarrockSwordShopSnow && !hideRoofs && !lowMem);
|
|
||||||
if (k17 >= 1 && k17 < anInt147 - 1 && (roofGate || (aByteArrayArrayArray149[0][l6][k17] & 2) != 0 || (aByteArrayArrayArray149[l][l6][k17] & 0x10) == 0 && method182(k17, l, l6) == anInt131)) {
|
|
||||||
if (l < anInt145) {
|
if (l < anInt145) {
|
||||||
anInt145 = l;
|
anInt145 = l;
|
||||||
}
|
}
|
||||||
@@ -459,7 +456,7 @@ public final class ObjectManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void method175(int i, WorldController worldController, CollisionMap class11, int j, int k, int l, int i1, int j1) {
|
private void method175(int i, WorldController worldController, CollisionMap class11, int j, int k, int l, int i1, int j1) {
|
||||||
if ((hideRoofs || lowMem) && (aByteArrayArrayArray149[0][l][i] & 2) == 0) {
|
if (lowMem && (aByteArrayArrayArray149[0][l][i] & 2) == 0) {
|
||||||
if ((aByteArrayArrayArray149[k][l][i] & 0x10) != 0) {
|
if ((aByteArrayArrayArray149[k][l][i] & 0x10) != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1340,28 +1337,24 @@ public final class ObjectManager {
|
|||||||
private final int[] anIntArray126;
|
private final int[] anIntArray126;
|
||||||
private final int[] anIntArray127;
|
private final int[] anIntArray127;
|
||||||
private final int[] anIntArray128;
|
private final int[] anIntArray128;
|
||||||
public final int[][][] anIntArrayArrayArray129;
|
private final int[][][] anIntArrayArrayArray129;
|
||||||
public final byte[][][] aByteArrayArrayArray130;
|
private final byte[][][] aByteArrayArrayArray130;
|
||||||
static int anInt131;
|
static int anInt131;
|
||||||
private static int anInt133 = (int) (Math.random() * 33D) - 16;
|
private static int anInt133 = (int) (Math.random() * 33D) - 16;
|
||||||
public final byte[][][] aByteArrayArrayArray134;
|
private final byte[][][] aByteArrayArrayArray134;
|
||||||
public final int[][][] anIntArrayArrayArray135;
|
private final int[][][] anIntArrayArrayArray135;
|
||||||
public final byte[][][] aByteArrayArrayArray136;
|
private final byte[][][] aByteArrayArrayArray136;
|
||||||
private static final int anIntArray137[] = {1, 0, -1, 0};
|
private static final int anIntArray137[] = {1, 0, -1, 0};
|
||||||
public final int[][] anIntArrayArray139;
|
private final int[][] anIntArrayArray139;
|
||||||
private static final int anIntArray140[] = {16, 32, 64, 128};
|
private static final int anIntArray140[] = {16, 32, 64, 128};
|
||||||
public final byte[][][] aByteArrayArrayArray142;
|
private final byte[][][] aByteArrayArrayArray142;
|
||||||
private static final int anIntArray144[] = {0, -1, 0, 1};
|
private static final int anIntArray144[] = {0, -1, 0, 1};
|
||||||
static int anInt145 = 99;
|
static int anInt145 = 99;
|
||||||
private final int anInt146;
|
private final int anInt146;
|
||||||
private final int anInt147;
|
private final int anInt147;
|
||||||
public final byte[][][] aByteArrayArrayArray148;
|
private final byte[][][] aByteArrayArrayArray148;
|
||||||
public final byte[][][] aByteArrayArrayArray149;
|
private final byte[][][] aByteArrayArrayArray149;
|
||||||
static boolean lowMem = true;
|
static boolean lowMem = true;
|
||||||
|
|
||||||
static boolean hideRoofs = ClientSettings.HIDE_ROOFS;
|
|
||||||
|
|
||||||
static boolean hideBuggyVarrockSwordShopSnow = ClientSettings.HIDE_BUGGY_VARROCK_SWORD_SHOP_SNOW; //There is some buggy snow near Varrock sword shop, let's hide it. I know, this is not ideal, but it does work.
|
|
||||||
private static final int anIntArray152[] = {1, 2, 4, 8};
|
private static final int anIntArray152[] = {1, 2, 4, 8};
|
||||||
|
|
||||||
}
|
}
|
||||||
File renamed without changes.
+1
-9
@@ -210,14 +210,6 @@ public final class OnDemandFetcher extends OnDemandFetcherParent implements Runn
|
|||||||
|
|
||||||
public void disable() {
|
public void disable() {
|
||||||
running = false;
|
running = false;
|
||||||
try {
|
|
||||||
if (socket != null) {
|
|
||||||
socket.close();
|
|
||||||
}
|
|
||||||
} catch (Exception ignored) {}
|
|
||||||
socket = null;
|
|
||||||
inputStream = null;
|
|
||||||
outputStream = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void method554(boolean flag) {
|
public void method554(boolean flag) {
|
||||||
@@ -243,7 +235,7 @@ public final class OnDemandFetcher extends OnDemandFetcherParent implements Runn
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
openSocketTime = l;
|
openSocketTime = l;
|
||||||
socket = clientInstance.openSocket((ClientSettings.SINGLE_ONDEMAND || ClientSettings.SERVER_WORLD == 1) ? 43594 : 43596 + ClientSettings.SERVER_WORLD + Game.portOff);
|
socket = clientInstance.openSocket(43596 + Game.portOff);
|
||||||
inputStream = socket.getInputStream();
|
inputStream = socket.getInputStream();
|
||||||
outputStream = socket.getOutputStream();
|
outputStream = socket.getOutputStream();
|
||||||
outputStream.write(15);
|
outputStream.write(15);
|
||||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,582 @@
|
|||||||
|
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||||
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.applet.Applet;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.FocusEvent;
|
||||||
|
import java.awt.event.FocusListener;
|
||||||
|
import java.awt.event.KeyEvent;
|
||||||
|
import java.awt.event.KeyListener;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import java.awt.event.MouseListener;
|
||||||
|
import java.awt.event.MouseMotionListener;
|
||||||
|
import java.awt.event.WindowEvent;
|
||||||
|
import java.awt.event.WindowListener;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class RSApplet extends Applet implements Runnable, MouseListener, MouseMotionListener, KeyListener, FocusListener, WindowListener {
|
||||||
|
|
||||||
|
public static boolean ctrlDown = false;
|
||||||
|
public static boolean shiftDown = false;
|
||||||
|
private int mouseWheelX = 0;
|
||||||
|
private int mouseWheelY = 0;
|
||||||
|
public static boolean removeShiftDropOnMenuOpen;
|
||||||
|
|
||||||
|
final void createClientFrame(int i, int j) {
|
||||||
|
myWidth = j;
|
||||||
|
myHeight = i;
|
||||||
|
gameFrame = new RSFrame(this, myWidth, myHeight);
|
||||||
|
graphics = getGameComponent().getGraphics();
|
||||||
|
fullGameScreen = new RSImageProducer(myWidth, myHeight, getGameComponent());
|
||||||
|
startRunnable(this, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
final void initClientFrame(int i, int j) {
|
||||||
|
myWidth = j;
|
||||||
|
myHeight = i;
|
||||||
|
graphics = getGameComponent().getGraphics();
|
||||||
|
fullGameScreen = new RSImageProducer(myWidth, myHeight, getGameComponent());
|
||||||
|
startRunnable(this, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
getGameComponent().addMouseListener(this);
|
||||||
|
getGameComponent().addMouseMotionListener(this);
|
||||||
|
getGameComponent().addKeyListener(this);
|
||||||
|
getGameComponent().addFocusListener(this);
|
||||||
|
if (gameFrame != null) {
|
||||||
|
gameFrame.addWindowListener(this);
|
||||||
|
}
|
||||||
|
drawLoadingText(0, "Loading...");
|
||||||
|
startUp();
|
||||||
|
int i = 0;
|
||||||
|
int j = 256;
|
||||||
|
int k = 1;
|
||||||
|
int i1 = 0;
|
||||||
|
int j1 = 0;
|
||||||
|
for (int k1 = 0; k1 < 10; k1++) {
|
||||||
|
aLongArray7[k1] = System.currentTimeMillis();
|
||||||
|
}
|
||||||
|
|
||||||
|
System.currentTimeMillis();
|
||||||
|
while (anInt4 >= 0) {
|
||||||
|
if (anInt4 > 0) {
|
||||||
|
anInt4--;
|
||||||
|
if (anInt4 == 0) {
|
||||||
|
exit();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
int i2 = j;
|
||||||
|
int j2 = k;
|
||||||
|
j = 300;
|
||||||
|
k = 1;
|
||||||
|
long l1 = System.currentTimeMillis();
|
||||||
|
if (aLongArray7[i] == 0L) {
|
||||||
|
j = i2;
|
||||||
|
k = j2;
|
||||||
|
} else if (l1 > aLongArray7[i]) {
|
||||||
|
j = (int) (2560 * delayTime / (l1 - aLongArray7[i]));
|
||||||
|
}
|
||||||
|
if (j < 25) {
|
||||||
|
j = 25;
|
||||||
|
}
|
||||||
|
if (j > 256) {
|
||||||
|
j = 256;
|
||||||
|
k = (int) (delayTime - (l1 - aLongArray7[i]) / 10L);
|
||||||
|
}
|
||||||
|
if (k > delayTime) {
|
||||||
|
k = delayTime;
|
||||||
|
}
|
||||||
|
aLongArray7[i] = l1;
|
||||||
|
i = (i + 1) % 10;
|
||||||
|
if (k > 1) {
|
||||||
|
for (int k2 = 0; k2 < 10; k2++) {
|
||||||
|
if (aLongArray7[k2] != 0L) {
|
||||||
|
aLongArray7[k2] += k;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if (k < minDelay) {
|
||||||
|
k = minDelay;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
Thread.sleep(k);
|
||||||
|
} catch (InterruptedException _ex) {
|
||||||
|
j1++;
|
||||||
|
}
|
||||||
|
for (; i1 < 256; i1 += j) {
|
||||||
|
clickMode3 = clickMode1;
|
||||||
|
saveClickX = clickX;
|
||||||
|
saveClickY = clickY;
|
||||||
|
aLong29 = clickTime;
|
||||||
|
clickMode1 = 0;
|
||||||
|
processGameLoop();
|
||||||
|
readIndex = writeIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
i1 &= 0xff;
|
||||||
|
if (delayTime > 0) {
|
||||||
|
fps = 1000 * j / (delayTime * 256);
|
||||||
|
}
|
||||||
|
processDrawing();
|
||||||
|
if (shouldDebug) {
|
||||||
|
System.out.println("ntime:" + l1);
|
||||||
|
for (int l2 = 0; l2 < 10; l2++) {
|
||||||
|
int i3 = (i - l2 - 1 + 20) % 10;
|
||||||
|
System.out.println("otim" + i3 + ":" + aLongArray7[i3]);
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println("fps:" + fps + " ratio:" + j + " count:" + i1);
|
||||||
|
System.out.println("del:" + k + " deltime:" + delayTime + " mindel:" + minDelay);
|
||||||
|
System.out.println("intex:" + j1 + " opos:" + i);
|
||||||
|
shouldDebug = false;
|
||||||
|
j1 = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (anInt4 == -1) {
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void exit() {
|
||||||
|
anInt4 = -2;
|
||||||
|
cleanUpForQuit();
|
||||||
|
if (gameFrame != null) {
|
||||||
|
try {
|
||||||
|
Thread.sleep(1000L);
|
||||||
|
} catch (Exception _ex) {
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
System.exit(0);
|
||||||
|
} catch (Throwable _ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
final void method4(int i) {
|
||||||
|
delayTime = 1000 / i;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void start() {
|
||||||
|
if (anInt4 >= 0) {
|
||||||
|
anInt4 = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void stop() {
|
||||||
|
if (anInt4 >= 0) {
|
||||||
|
anInt4 = 4000 / delayTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void destroy() {
|
||||||
|
anInt4 = -1;
|
||||||
|
try {
|
||||||
|
Thread.sleep(5000L);
|
||||||
|
} catch (Exception _ex) {
|
||||||
|
}
|
||||||
|
if (anInt4 == -1) {
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void update(Graphics g) {
|
||||||
|
if (graphics == null) {
|
||||||
|
graphics = g;
|
||||||
|
}
|
||||||
|
shouldClearScreen = true;
|
||||||
|
raiseWelcomeScreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void paint(Graphics g) {
|
||||||
|
if (graphics == null) {
|
||||||
|
graphics = g;
|
||||||
|
}
|
||||||
|
shouldClearScreen = true;
|
||||||
|
raiseWelcomeScreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean mouseWheelDown;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void mousePressed(MouseEvent mouseevent) {
|
||||||
|
int i = mouseevent.getX();
|
||||||
|
int j = mouseevent.getY();
|
||||||
|
if (gameFrame != null) {
|
||||||
|
i -= 4;
|
||||||
|
j -= 22;
|
||||||
|
}
|
||||||
|
idleTime = 0;
|
||||||
|
clickX = i;
|
||||||
|
clickY = j;
|
||||||
|
clickTime = System.currentTimeMillis();
|
||||||
|
if (mouseevent.getButton() == MouseEvent.BUTTON2) {
|
||||||
|
mouseWheelDown = true;
|
||||||
|
mouseWheelX = mouseevent.getX();
|
||||||
|
mouseWheelY = mouseevent.getY();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mouseevent.getButton() == MouseEvent.BUTTON3) {
|
||||||
|
clickMode1 = 2;
|
||||||
|
clickMode2 = 2;
|
||||||
|
} else {
|
||||||
|
clickMode1 = 1;
|
||||||
|
clickMode2 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void mouseReleased(MouseEvent mouseevent) {
|
||||||
|
idleTime = 0;
|
||||||
|
clickMode2 = 0;
|
||||||
|
mouseWheelDown = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void mouseClicked(MouseEvent mouseevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void mouseEntered(MouseEvent mouseevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void mouseExited(MouseEvent mouseevent) {
|
||||||
|
idleTime = 0;
|
||||||
|
mouseX = -1;
|
||||||
|
mouseY = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final void mouseDragged(MouseEvent e) {
|
||||||
|
int x = e.getX();
|
||||||
|
int y = e.getY();
|
||||||
|
if(gameFrame != null) {
|
||||||
|
Insets insets = gameFrame.getInsets();
|
||||||
|
x -= insets.left;//4
|
||||||
|
y -= insets.top;//22
|
||||||
|
}
|
||||||
|
if (mouseWheelDown) {
|
||||||
|
y = mouseWheelX - e.getX();
|
||||||
|
int k = mouseWheelY - e.getY();
|
||||||
|
mouseWheelDragged(y, -k);
|
||||||
|
mouseWheelX = e.getX();
|
||||||
|
mouseWheelY = e.getY();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
idleTime = 0;
|
||||||
|
mouseX = x;
|
||||||
|
mouseY = y;
|
||||||
|
}
|
||||||
|
void mouseWheelDragged(int param1, int param2) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void mouseMoved(MouseEvent mouseevent) {
|
||||||
|
int i = mouseevent.getX();
|
||||||
|
int j = mouseevent.getY();
|
||||||
|
if (gameFrame != null) {
|
||||||
|
i -= 4;
|
||||||
|
j -= 22;
|
||||||
|
}
|
||||||
|
idleTime = 0;
|
||||||
|
mouseX = i;
|
||||||
|
mouseY = j;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void keyPressed(KeyEvent keyevent) {
|
||||||
|
idleTime = 0;
|
||||||
|
int i = keyevent.getKeyCode();
|
||||||
|
int j = keyevent.getKeyChar();
|
||||||
|
switch (keyevent.getKeyCode())
|
||||||
|
{
|
||||||
|
case KeyEvent.VK_SHIFT:
|
||||||
|
shiftDown = true;
|
||||||
|
break;
|
||||||
|
case KeyEvent.VK_CONTROL:
|
||||||
|
ctrlDown = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (j < 30) {
|
||||||
|
j = 0;
|
||||||
|
}
|
||||||
|
if (i == 37) {
|
||||||
|
j = 1;
|
||||||
|
}
|
||||||
|
if (i == 39) {
|
||||||
|
j = 2;
|
||||||
|
}
|
||||||
|
if (i == 38) {
|
||||||
|
j = 3;
|
||||||
|
}
|
||||||
|
if (i == 40) {
|
||||||
|
j = 4;
|
||||||
|
}
|
||||||
|
if (i == 17) {
|
||||||
|
j = 5;
|
||||||
|
}
|
||||||
|
if (i == 8) {
|
||||||
|
j = 8;
|
||||||
|
}
|
||||||
|
if (i == 127) {
|
||||||
|
j = 8;
|
||||||
|
}
|
||||||
|
if (i == 9) {
|
||||||
|
j = 9;
|
||||||
|
}
|
||||||
|
if (i == 10) {
|
||||||
|
j = 10;
|
||||||
|
}
|
||||||
|
if (i >= 112 && i <= 123) {
|
||||||
|
j = 1008 + i - 112;
|
||||||
|
}
|
||||||
|
if (i == 36) {
|
||||||
|
j = 1000;
|
||||||
|
}
|
||||||
|
if (i == 35) {
|
||||||
|
j = 1001;
|
||||||
|
}
|
||||||
|
if (i == 33) {
|
||||||
|
j = 1002;
|
||||||
|
}
|
||||||
|
if (i == 34) {
|
||||||
|
j = 1003;
|
||||||
|
}
|
||||||
|
if (j > 0 && j < 128) {
|
||||||
|
keyArray[j] = 1;
|
||||||
|
}
|
||||||
|
if (j > 4) {
|
||||||
|
charQueue[writeIndex] = j;
|
||||||
|
writeIndex = writeIndex + 1 & 0x7f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void keyReleased(KeyEvent keyevent) {
|
||||||
|
idleTime = 0;
|
||||||
|
int i = keyevent.getKeyCode();
|
||||||
|
char c = keyevent.getKeyChar();
|
||||||
|
switch (keyevent.getKeyCode())
|
||||||
|
{
|
||||||
|
case KeyEvent.VK_SHIFT:
|
||||||
|
shiftDown = false;
|
||||||
|
break;
|
||||||
|
case KeyEvent.VK_CONTROL:
|
||||||
|
ctrlDown = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (c < '\036') {
|
||||||
|
c = '\0';
|
||||||
|
}
|
||||||
|
if (i == 37) {
|
||||||
|
c = '\001';
|
||||||
|
}
|
||||||
|
if (i == 39) {
|
||||||
|
c = '\002';
|
||||||
|
}
|
||||||
|
if (i == 38) {
|
||||||
|
c = '\003';
|
||||||
|
}
|
||||||
|
if (i == 40) {
|
||||||
|
c = '\004';
|
||||||
|
}
|
||||||
|
if (i == 17) {
|
||||||
|
c = '\005';
|
||||||
|
}
|
||||||
|
if (i == 8) {
|
||||||
|
c = '\b';
|
||||||
|
}
|
||||||
|
if (i == 127) {
|
||||||
|
c = '\b';
|
||||||
|
}
|
||||||
|
if (i == 9) {
|
||||||
|
c = '\t';
|
||||||
|
}
|
||||||
|
if (i == 10) {
|
||||||
|
c = '\n';
|
||||||
|
}
|
||||||
|
if (c > 0 && c < '\200') {
|
||||||
|
keyArray[c] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void keyTyped(KeyEvent keyevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
final int readChar(int dummy) {
|
||||||
|
while (dummy >= 0) {
|
||||||
|
for (int j = 1; j > 0; j++) {
|
||||||
|
;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
int k = -1;
|
||||||
|
if (writeIndex != readIndex) {
|
||||||
|
k = charQueue[readIndex];
|
||||||
|
readIndex = readIndex + 1 & 0x7f;
|
||||||
|
}
|
||||||
|
return k;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void focusGained(FocusEvent focusevent) {
|
||||||
|
awtFocus = true;
|
||||||
|
shouldClearScreen = true;
|
||||||
|
raiseWelcomeScreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void focusLost(FocusEvent focusevent) {
|
||||||
|
awtFocus = false;
|
||||||
|
for (int i = 0; i < 128; i++) {
|
||||||
|
keyArray[i] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowActivated(WindowEvent windowevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowClosed(WindowEvent windowevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowClosing(WindowEvent windowevent) {
|
||||||
|
destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowDeactivated(WindowEvent windowevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowDeiconified(WindowEvent windowevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowIconified(WindowEvent windowevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public final void windowOpened(WindowEvent windowevent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void startUp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void processGameLoop() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void cleanUpForQuit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void processDrawing() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void raiseWelcomeScreen() {
|
||||||
|
}
|
||||||
|
|
||||||
|
Component getGameComponent() {
|
||||||
|
if (gameFrame != null) {
|
||||||
|
return gameFrame;
|
||||||
|
} else {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void startRunnable(Runnable runnable, int priority) {
|
||||||
|
Thread thread = new Thread(runnable);
|
||||||
|
thread.start();
|
||||||
|
thread.setPriority(priority);
|
||||||
|
}
|
||||||
|
|
||||||
|
void drawLoadingText(int i, String s) {
|
||||||
|
while (graphics == null) {
|
||||||
|
graphics = getGameComponent().getGraphics();
|
||||||
|
try {
|
||||||
|
getGameComponent().repaint();
|
||||||
|
} catch (Exception _ex) {
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
Thread.sleep(1000L);
|
||||||
|
} catch (Exception _ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Font font = new Font("Helvetica", 1, 13);
|
||||||
|
FontMetrics fontmetrics = getGameComponent().getFontMetrics(font);
|
||||||
|
Font font1 = new Font("Helvetica", 0, 13);
|
||||||
|
getGameComponent().getFontMetrics(font1);
|
||||||
|
if (shouldClearScreen) {
|
||||||
|
graphics.setColor(Color.black);
|
||||||
|
graphics.fillRect(0, 0, myWidth, myHeight);
|
||||||
|
shouldClearScreen = false;
|
||||||
|
}
|
||||||
|
Color color = new Color(140, 17, 17);
|
||||||
|
int j = myHeight / 2 - 18;
|
||||||
|
graphics.setColor(color);
|
||||||
|
graphics.drawRect(myWidth / 2 - 152, j, 304, 34);
|
||||||
|
graphics.fillRect(myWidth / 2 - 150, j + 2, i * 3, 30);
|
||||||
|
graphics.setColor(Color.black);
|
||||||
|
graphics.fillRect(myWidth / 2 - 150 + i * 3, j + 2, 300 - i * 3, 30);
|
||||||
|
graphics.setFont(font);
|
||||||
|
graphics.setColor(Color.white);
|
||||||
|
graphics.drawString(s, (myWidth - fontmetrics.stringWidth(s)) / 2, j + 22);
|
||||||
|
}
|
||||||
|
|
||||||
|
RSApplet() {
|
||||||
|
delayTime = 20;
|
||||||
|
minDelay = 1;
|
||||||
|
aLongArray7 = new long[10];
|
||||||
|
shouldDebug = false;
|
||||||
|
shouldClearScreen = true;
|
||||||
|
awtFocus = true;
|
||||||
|
keyArray = new int[128];
|
||||||
|
charQueue = new int[128];
|
||||||
|
}
|
||||||
|
|
||||||
|
private int anInt4;
|
||||||
|
private int delayTime;
|
||||||
|
int minDelay;
|
||||||
|
private final long[] aLongArray7;
|
||||||
|
int fps;
|
||||||
|
boolean shouldDebug;
|
||||||
|
int myWidth;
|
||||||
|
int myHeight;
|
||||||
|
Graphics graphics;
|
||||||
|
RSImageProducer fullGameScreen;
|
||||||
|
RSFrame gameFrame;
|
||||||
|
private boolean shouldClearScreen;
|
||||||
|
boolean awtFocus;
|
||||||
|
int idleTime;
|
||||||
|
int clickMode2;
|
||||||
|
public int mouseX;
|
||||||
|
public int mouseY;
|
||||||
|
private int clickMode1;
|
||||||
|
private int clickX;
|
||||||
|
private int clickY;
|
||||||
|
private long clickTime;
|
||||||
|
int clickMode3;
|
||||||
|
int saveClickX;
|
||||||
|
int saveClickY;
|
||||||
|
long aLong29;
|
||||||
|
final int[] keyArray;
|
||||||
|
private final int[] charQueue;
|
||||||
|
private int readIndex;
|
||||||
|
private int writeIndex;
|
||||||
|
public static int anInt34;
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
|
||||||
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
final class RSFrame extends Frame {
|
||||||
|
|
||||||
|
public RSFrame(RSApplet RSApplet_, int i, int j) {
|
||||||
|
rsApplet = RSApplet_;
|
||||||
|
setTitle(ClientSettings.SERVER_NAME);
|
||||||
|
setResizable(false);
|
||||||
|
setMinimumSize(new Dimension(i + 8, j + 28));
|
||||||
|
setVisible(true);
|
||||||
|
toFront();
|
||||||
|
setSize(i + 8, j + 28);
|
||||||
|
setLocationRelativeTo(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Graphics getGraphics() {
|
||||||
|
Graphics g = super.getGraphics();
|
||||||
|
g.translate(4, 24);
|
||||||
|
return g;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(Graphics g) {
|
||||||
|
rsApplet.update(g);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void paint(Graphics g) {
|
||||||
|
rsApplet.paint(g);
|
||||||
|
}
|
||||||
|
|
||||||
|
private final RSApplet rsApplet;
|
||||||
|
}
|
||||||
-23
@@ -13,9 +13,6 @@ import java.awt.image.ImageProducer;
|
|||||||
|
|
||||||
final class RSImageProducer implements ImageProducer, ImageObserver {
|
final class RSImageProducer implements ImageProducer, ImageObserver {
|
||||||
|
|
||||||
public static final int[] masterScreenBuffer = new int[765 * 503];
|
|
||||||
public static final Object masterBufferLock = new Object();
|
|
||||||
|
|
||||||
public RSImageProducer(int i, int j, Component component) {
|
public RSImageProducer(int i, int j, Component component) {
|
||||||
anInt316 = i;
|
anInt316 = i;
|
||||||
anInt317 = j;
|
anInt317 = j;
|
||||||
@@ -37,26 +34,6 @@ final class RSImageProducer implements ImageProducer, ImageObserver {
|
|||||||
|
|
||||||
public void drawGraphics(int i, Graphics g, int k) {
|
public void drawGraphics(int i, Graphics g, int k) {
|
||||||
method239();
|
method239();
|
||||||
if (ClientSettings.RESIZABLE && !ClientSettings.ANDROID) {
|
|
||||||
if (!ModernLayout.inGame && k >= 0 && i >= 0 && k + anInt316 <= 765 && i + anInt317 <= 503) {
|
|
||||||
if (ClientSettings.isDesktopModern()) {
|
|
||||||
DesktopHooks.drawScaledLoginTile(g, anIntArray315, k, i, anInt316, anInt317);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
DesktopHooks.updateLoginTile(anIntArray315, k, i, anInt316, anInt317);
|
|
||||||
}
|
|
||||||
if (ClientSettings.isDesktopModern()) {
|
|
||||||
int[] pos = ModernLayout.toWindow(k, i, anInt316, anInt317);
|
|
||||||
if (pos != null) {
|
|
||||||
if (pos.length == 4) {
|
|
||||||
g.drawImage(anImage320, pos[0], pos[1], pos[2], pos[3], this);
|
|
||||||
} else {
|
|
||||||
g.drawImage(anImage320, pos[0], pos[1], this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
g.drawImage(anImage320, k, i, this);
|
g.drawImage(anImage320, k, i, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
+2
@@ -25,6 +25,8 @@ public final class RSInterface {
|
|||||||
rsInterface.id = k;
|
rsInterface.id = k;
|
||||||
rsInterface.parentID = i;
|
rsInterface.parentID = i;
|
||||||
rsInterface.type = stream.readUnsignedByte();
|
rsInterface.type = stream.readUnsignedByte();
|
||||||
|
//if(rsInterface.type == 0)
|
||||||
|
// System.out.println(rsInterface.parentID+":"+k);
|
||||||
rsInterface.atActionType = stream.readUnsignedByte();
|
rsInterface.atActionType = stream.readUnsignedByte();
|
||||||
rsInterface.anInt214 = stream.readUnsignedWord();
|
rsInterface.anInt214 = stream.readUnsignedWord();
|
||||||
rsInterface.width = stream.readUnsignedWord();
|
rsInterface.width = stream.readUnsignedWord();
|
||||||
File renamed without changes.
File renamed without changes.
+160
-83
@@ -1,3 +1,4 @@
|
|||||||
|
import java.applet.Applet;
|
||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
@@ -7,16 +8,31 @@ import java.net.InetAddress;
|
|||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
|
import javax.sound.midi.MidiChannel;
|
||||||
|
import javax.sound.midi.MidiSystem;
|
||||||
|
import javax.sound.midi.Sequence;
|
||||||
|
import javax.sound.midi.Sequencer;
|
||||||
|
import javax.sound.midi.ShortMessage;
|
||||||
|
import javax.sound.midi.Synthesizer;
|
||||||
|
import javax.sound.sampled.AudioFormat;
|
||||||
|
import javax.sound.sampled.AudioInputStream;
|
||||||
|
import javax.sound.sampled.AudioSystem;
|
||||||
|
import javax.sound.sampled.DataLine;
|
||||||
|
import javax.sound.sampled.FloatControl;
|
||||||
|
import javax.sound.sampled.LineUnavailableException;
|
||||||
|
import javax.sound.sampled.SourceDataLine;
|
||||||
|
import javax.sound.sampled.UnsupportedAudioFileException;
|
||||||
|
|
||||||
public final class Signlink implements Runnable {
|
public final class Signlink implements Runnable {
|
||||||
|
|
||||||
public static final void startpriv(InetAddress inetaddress) {
|
public static final void startpriv(InetAddress inetaddress) {
|
||||||
threadliveid = (int) (Math.random() * 99999999D);
|
threadliveid = (int) (Math.random() * 99999999D);
|
||||||
if (active) {
|
if (active) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100L);
|
Thread.sleep(500L);
|
||||||
} catch (Exception _ex) {
|
} catch (Exception _ex) {
|
||||||
}
|
}
|
||||||
close();
|
active = false;
|
||||||
}
|
}
|
||||||
socketreq = 0;
|
socketreq = 0;
|
||||||
threadreq = null;
|
threadreq = null;
|
||||||
@@ -24,7 +40,6 @@ public final class Signlink implements Runnable {
|
|||||||
saveReq = null;
|
saveReq = null;
|
||||||
urlreq = null;
|
urlreq = null;
|
||||||
socketip = inetaddress;
|
socketip = inetaddress;
|
||||||
reporterror = true;
|
|
||||||
Thread thread = new Thread(new Signlink());
|
Thread thread = new Thread(new Signlink());
|
||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
thread.start();
|
thread.start();
|
||||||
@@ -36,32 +51,6 @@ public final class Signlink implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static synchronized void close() {
|
|
||||||
active = false;
|
|
||||||
threadliveid = 0;
|
|
||||||
reporterror = true;
|
|
||||||
try {
|
|
||||||
if (cache_dat != null) {
|
|
||||||
cache_dat.close();
|
|
||||||
cache_dat = null;
|
|
||||||
}
|
|
||||||
} catch (Exception ignored) {}
|
|
||||||
for (int j = 0; j < 5; j++) {
|
|
||||||
try {
|
|
||||||
if (cache_idx[j] != null) {
|
|
||||||
cache_idx[j].close();
|
|
||||||
cache_idx[j] = null;
|
|
||||||
}
|
|
||||||
} catch (Exception ignored) {}
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
if (socket != null) {
|
|
||||||
socket.close();
|
|
||||||
socket = null;
|
|
||||||
}
|
|
||||||
} catch (Exception ignored) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
enum Position {
|
enum Position {
|
||||||
LEFT, RIGHT, NORMAL
|
LEFT, RIGHT, NORMAL
|
||||||
};
|
};
|
||||||
@@ -71,22 +60,15 @@ public final class Signlink implements Runnable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
active = true;
|
||||||
String s = findcachedir();
|
String s = findcachedir();
|
||||||
try {
|
try {
|
||||||
if (cache_dat != null) {
|
|
||||||
try { cache_dat.close(); } catch (Exception ignored) {}
|
|
||||||
}
|
|
||||||
cache_dat = new RandomAccessFile(s + "main_file_cache.dat", "rw");
|
cache_dat = new RandomAccessFile(s + "main_file_cache.dat", "rw");
|
||||||
for (int j = 0; j < 5; j++) {
|
for (int j = 0; j < 5; j++)
|
||||||
if (cache_idx[j] != null) {
|
|
||||||
try { cache_idx[j].close(); } catch (Exception ignored) {}
|
|
||||||
}
|
|
||||||
cache_idx[j] = new RandomAccessFile(s + "main_file_cache.idx" + j, "rw");
|
cache_idx[j] = new RandomAccessFile(s + "main_file_cache.idx" + j, "rw");
|
||||||
}
|
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
active = true;
|
|
||||||
for (int i = threadliveid; threadliveid == i;) {
|
for (int i = threadliveid; threadliveid == i;) {
|
||||||
if (socketreq != 0) {
|
if (socketreq != 0) {
|
||||||
try {
|
try {
|
||||||
@@ -119,19 +101,60 @@ public final class Signlink implements Runnable {
|
|||||||
if (waveplay) {
|
if (waveplay) {
|
||||||
String wave = s + saveReq;
|
String wave = s + saveReq;
|
||||||
waveplay = false;
|
waveplay = false;
|
||||||
if (ClientSettings.ANDROID) {
|
AudioInputStream audioInputStream = null;
|
||||||
AndroidHooks.playSound(savebuf, 0, savelen, wavevol, 0);
|
try {
|
||||||
} else {
|
audioInputStream = AudioSystem.getAudioInputStream(new File(wave));
|
||||||
DesktopHooks.playSound(savebuf, 0, savelen, wavevol, 0);
|
} catch (UnsupportedAudioFileException e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
return;
|
||||||
|
} catch (IOException e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
AudioFormat format = audioInputStream.getFormat();
|
||||||
|
SourceDataLine auline = null;
|
||||||
|
DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);
|
||||||
|
try {
|
||||||
|
auline = (SourceDataLine) AudioSystem.getLine(info);
|
||||||
|
auline.open(format);
|
||||||
|
} catch (LineUnavailableException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return;
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (auline.isControlSupported(FloatControl.Type.PAN)) {
|
||||||
|
FloatControl pan = (FloatControl) auline.getControl(FloatControl.Type.PAN);
|
||||||
|
if (curPosition == Position.RIGHT)
|
||||||
|
pan.setValue(1.0f);
|
||||||
|
else if (curPosition == Position.LEFT)
|
||||||
|
pan.setValue(-1.0f);
|
||||||
|
}
|
||||||
|
auline.start();
|
||||||
|
int nBytesRead = 0;
|
||||||
|
byte[] abData = new byte[EXTERNAL_BUFFER_SIZE];
|
||||||
|
try {
|
||||||
|
while (nBytesRead != -1) {
|
||||||
|
nBytesRead = audioInputStream.read(abData, 0,
|
||||||
|
abData.length);
|
||||||
|
if (nBytesRead >= 0)
|
||||||
|
auline.write(abData, 0, nBytesRead);
|
||||||
|
}
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return;
|
||||||
|
} finally {
|
||||||
|
auline.drain();
|
||||||
|
auline.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (play) {
|
if (play) {
|
||||||
midi = s + saveReq;
|
midi = s + saveReq;
|
||||||
try {
|
try {
|
||||||
if (ClientSettings.ANDROID) {
|
if (music != null) {
|
||||||
AndroidHooks.stopMidi();
|
music.stop();
|
||||||
} else {
|
music.close();
|
||||||
DesktopHooks.stopSignlinkMidi();
|
|
||||||
}
|
}
|
||||||
playMidi(midi);
|
playMidi(midi);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
@@ -143,7 +166,7 @@ public final class Signlink implements Runnable {
|
|||||||
} else if (urlreq != null) {
|
} else if (urlreq != null) {
|
||||||
try {
|
try {
|
||||||
System.out.println("urlstream");
|
System.out.println("urlstream");
|
||||||
urlstream = new DataInputStream((new URL(new URL("http://127.0.0.1"), urlreq)).openStream());
|
urlstream = new DataInputStream((new URL(mainapp.getCodeBase(), urlreq)).openStream());
|
||||||
} catch (Exception _ex) {
|
} catch (Exception _ex) {
|
||||||
urlstream = null;
|
urlstream = null;
|
||||||
}
|
}
|
||||||
@@ -161,11 +184,39 @@ public final class Signlink implements Runnable {
|
|||||||
* @param location
|
* @param location
|
||||||
*/
|
*/
|
||||||
private void playMidi(String location) {
|
private void playMidi(String location) {
|
||||||
if (ClientSettings.ANDROID) {
|
music = null;
|
||||||
AndroidHooks.playMidi(location, midiVolume);
|
synthesizer = null;
|
||||||
} else {
|
sequence = null;
|
||||||
DesktopHooks.playSignlinkMidi(location, midiVolume);
|
File midiFile = new File(location);
|
||||||
|
try {
|
||||||
|
sequence = MidiSystem.getSequence(midiFile);
|
||||||
|
music = MidiSystem.getSequencer();
|
||||||
|
music.open();
|
||||||
|
music.setSequence(sequence);
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.err.println("Problem loading MIDI file.");
|
||||||
|
e.printStackTrace();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
if (music instanceof Synthesizer) {
|
||||||
|
synthesizer = (Synthesizer) music;
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
synthesizer = MidiSystem.getSynthesizer();
|
||||||
|
synthesizer.open();
|
||||||
|
if (synthesizer.getDefaultSoundbank() == null) {
|
||||||
|
music.getTransmitter().setReceiver(MidiSystem.getReceiver());
|
||||||
|
} else {
|
||||||
|
music.getTransmitter().setReceiver(synthesizer.getReceiver());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
music.setLoopCount(Sequencer.LOOP_CONTINUOUSLY);
|
||||||
|
music.start();
|
||||||
|
setVolume(midiVolume);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -173,12 +224,36 @@ public final class Signlink implements Runnable {
|
|||||||
* @param value
|
* @param value
|
||||||
*/
|
*/
|
||||||
public static boolean setVolume(int value) {
|
public static boolean setVolume(int value) {
|
||||||
midiVolume = value;
|
if (synthesizer == null) {
|
||||||
if (ClientSettings.ANDROID) {
|
return false;
|
||||||
return AndroidHooks.setMidiVolume(value);
|
|
||||||
} else {
|
|
||||||
return DesktopHooks.setSignlinkVolume(value);
|
|
||||||
}
|
}
|
||||||
|
int CHANGE_VOLUME = 7;
|
||||||
|
midiVolume = value;
|
||||||
|
if (synthesizer.getDefaultSoundbank() == null) {
|
||||||
|
try {
|
||||||
|
ShortMessage volumeMessage = new ShortMessage();
|
||||||
|
for (int i = 0; i < 16; i++) {
|
||||||
|
volumeMessage.setMessage(ShortMessage.CONTROL_CHANGE, i, CHANGE_VOLUME, midiVolume);
|
||||||
|
volumeMessage.setMessage(ShortMessage.CONTROL_CHANGE, i, 39, midiVolume);
|
||||||
|
MidiSystem.getReceiver().send(volumeMessage, -1);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
MidiChannel[] channels = synthesizer.getChannels();
|
||||||
|
for (int c = 0; channels != null && c < channels.length; c++) {
|
||||||
|
channels[c].controlChange(CHANGE_VOLUME, midiVolume);
|
||||||
|
channels[c].controlChange(39, midiVolume);
|
||||||
|
}
|
||||||
|
} catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -186,22 +261,24 @@ public final class Signlink implements Runnable {
|
|||||||
* Stops the current midi playing.
|
* Stops the current midi playing.
|
||||||
*/
|
*/
|
||||||
public static void fadeOut() {
|
public static void fadeOut() {
|
||||||
if (ClientSettings.ANDROID) {
|
if (music == null) {
|
||||||
AndroidHooks.stopMidi();
|
return;
|
||||||
} else {
|
}
|
||||||
DesktopHooks.stopSignlinkMidi();
|
int volume = midiVolume;
|
||||||
|
if (music.isRunning()) {
|
||||||
|
for (int index = midiVolume; index > 0 && volume > 0; index--) {
|
||||||
|
volume--;
|
||||||
|
setVolume(volume);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Object music = null;
|
public static Sequencer music = null;
|
||||||
public static Object sequence = null;
|
public static Sequence sequence = null;
|
||||||
public static Object synthesizer = null;
|
public static Synthesizer synthesizer = null;
|
||||||
|
|
||||||
public static String findcachedir() {
|
public static String findcachedir() {
|
||||||
if (ClientSettings.ANDROID) {
|
String path = System.getProperty("user.home") + "/.2006rebotted_file_system/";
|
||||||
return AndroidHooks.getCacheDir();
|
|
||||||
}
|
|
||||||
String path = System.getProperty("user.home") + "/.2006Scape_file_system/";
|
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
if (!file.mkdirs()) {
|
if (!file.mkdirs()) {
|
||||||
@@ -212,7 +289,7 @@ public final class Signlink implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String secondDir() {
|
public static String secondDir() {
|
||||||
File file = new File("C:/.2006Scape_file_system/");
|
File file = new File("C:/.2006rebotted_file_system/");
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
file.mkdirs();
|
file.mkdirs();
|
||||||
}
|
}
|
||||||
@@ -312,7 +389,7 @@ public final class Signlink implements Runnable {
|
|||||||
public static RandomAccessFile cache_dat = null;
|
public static RandomAccessFile cache_dat = null;
|
||||||
public static final RandomAccessFile[] cache_idx = new RandomAccessFile[5];
|
public static final RandomAccessFile[] cache_idx = new RandomAccessFile[5];
|
||||||
public static boolean sunjava;
|
public static boolean sunjava;
|
||||||
public static Object mainapp = null;
|
public static Applet mainapp = null;
|
||||||
private static boolean active;
|
private static boolean active;
|
||||||
private static int threadliveid;
|
private static int threadliveid;
|
||||||
private static InetAddress socketip;
|
private static InetAddress socketip;
|
||||||
@@ -326,18 +403,18 @@ public final class Signlink implements Runnable {
|
|||||||
private static DataInputStream urlstream = null;
|
private static DataInputStream urlstream = null;
|
||||||
public static boolean reporterror = true;
|
public static boolean reporterror = true;
|
||||||
public static String errorname = "";
|
public static String errorname = "";
|
||||||
public static Object midii = null;
|
public static Midi midii = new Midi();
|
||||||
private static int savelen;
|
private static int savelen;
|
||||||
private static String saveReq = null;
|
private static String saveReq = null;
|
||||||
private static byte savebuf[] = null;
|
private static byte savebuf[] = null;
|
||||||
public static boolean play;
|
public static boolean play;
|
||||||
private static int midiPos;
|
private static int midiPos;
|
||||||
public static String midi = null;
|
public static String midi = null;
|
||||||
public static int midiVolume;
|
public static int midiVolume;
|
||||||
public static int midifade;
|
public static int midifade;
|
||||||
private static boolean waveplay;
|
private static boolean waveplay;
|
||||||
private static int wavepos;
|
private static int wavepos;
|
||||||
public static String wave = null;
|
public static String wave = null;
|
||||||
public static int wavevol;
|
public static int wavevol;
|
||||||
|
|
||||||
}
|
}
|
||||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,105 @@
|
|||||||
|
import java.io.InputStream;
|
||||||
|
import javax.sound.sampled.AudioInputStream;
|
||||||
|
import javax.sound.sampled.AudioSystem;
|
||||||
|
import javax.sound.sampled.Clip;
|
||||||
|
import javax.sound.sampled.DataLine;
|
||||||
|
import javax.sound.sampled.FloatControl;
|
||||||
|
|
||||||
|
import sun.audio.AudioPlayer; //Note! If you see a compile error here, make sure you set your JDK to Java 8!
|
||||||
|
|
||||||
|
public class SoundPlayer implements Runnable {
|
||||||
|
|
||||||
|
private AudioInputStream stream;
|
||||||
|
private DataLine.Info info;
|
||||||
|
private Clip sound;
|
||||||
|
|
||||||
|
private InputStream soundStream;
|
||||||
|
private Thread player;
|
||||||
|
private int delay;
|
||||||
|
private int soundLevel;
|
||||||
|
private InputStream arg0;
|
||||||
|
public static int volume;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes the sound player.
|
||||||
|
* @param stream
|
||||||
|
* @param level
|
||||||
|
* @param delay
|
||||||
|
*/
|
||||||
|
public SoundPlayer(InputStream stream, int level, int delay) {
|
||||||
|
if (level == 0 || volume == 4 || level - volume <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.soundStream = stream;
|
||||||
|
this.soundLevel = level;
|
||||||
|
this.delay = delay;
|
||||||
|
player = new Thread(this);
|
||||||
|
player.start();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plays the sound.
|
||||||
|
*/
|
||||||
|
public void run() {
|
||||||
|
try {
|
||||||
|
AudioPlayer.player.start(arg0);
|
||||||
|
stream = AudioSystem.getAudioInputStream(soundStream);
|
||||||
|
info = new DataLine.Info(Clip.class, stream.getFormat());
|
||||||
|
sound = (Clip) AudioSystem.getLine(info);
|
||||||
|
sound.open(stream);
|
||||||
|
FloatControl volume = (FloatControl) sound.getControl(FloatControl.Type.MASTER_GAIN);
|
||||||
|
volume.setValue(getDecibels(soundLevel - getVolume()));
|
||||||
|
if (delay > 0) {
|
||||||
|
Thread.sleep(delay);
|
||||||
|
}
|
||||||
|
sound.start();
|
||||||
|
while (sound.isActive()) {
|
||||||
|
Thread.sleep(250);
|
||||||
|
}
|
||||||
|
Thread.sleep(10000);
|
||||||
|
sound.close();
|
||||||
|
stream.close();
|
||||||
|
player.interrupt();
|
||||||
|
} catch (Exception e) {
|
||||||
|
player.interrupt();
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the client's volume level.
|
||||||
|
* @param level
|
||||||
|
*/
|
||||||
|
public static void setVolume(int level) {
|
||||||
|
volume = level;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the client's volume level.
|
||||||
|
*/
|
||||||
|
public static int getVolume() {
|
||||||
|
return volume;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the decibels for a given volume level.
|
||||||
|
* @param level
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public float getDecibels(int level) {
|
||||||
|
switch (level) {
|
||||||
|
case 0: // 4 in player options
|
||||||
|
return (float) -1.0f;
|
||||||
|
case 1: // 3
|
||||||
|
return (float) -5.0f;
|
||||||
|
case 2: // 2
|
||||||
|
return (float) -10.0f;
|
||||||
|
case 3: // 1
|
||||||
|
return (float) -15.0f;
|
||||||
|
case 4: // off
|
||||||
|
return (float) -100.0f;
|
||||||
|
default:
|
||||||
|
return (float) 0.0f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File renamed without changes.
File renamed without changes.
+28
-35
@@ -2,6 +2,12 @@
|
|||||||
// Jad home page: http://www.kpdus.com/jad.html
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
// Decompiler options: packimports(3)
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
|
import java.awt.Component;
|
||||||
|
import java.awt.Image;
|
||||||
|
import java.awt.MediaTracker;
|
||||||
|
import java.awt.Toolkit;
|
||||||
|
import java.awt.image.PixelGrabber;
|
||||||
|
|
||||||
public final class Sprite extends DrawingArea {
|
public final class Sprite extends DrawingArea {
|
||||||
|
|
||||||
public Sprite(int i, int j) {
|
public Sprite(int i, int j) {
|
||||||
@@ -11,15 +17,25 @@ public final class Sprite extends DrawingArea {
|
|||||||
anInt1442 = anInt1443 = 0;
|
anInt1442 = anInt1443 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Sprite(byte abyte0[]) {
|
public Sprite(byte abyte0[], Component component) {
|
||||||
this(abyte0, null);
|
try {
|
||||||
}
|
// Image image =
|
||||||
|
// Toolkit.getDefaultToolkit().getImage(signlink.findcachedir()+"mopar.jpg");
|
||||||
public Sprite(byte abyte0[], Object component) {
|
Image image = Toolkit.getDefaultToolkit().createImage(abyte0);
|
||||||
if (ClientSettings.ANDROID) {
|
MediaTracker mediatracker = new MediaTracker(component);
|
||||||
AndroidHooks.decodeImage(this, abyte0);
|
mediatracker.addImage(image, 0);
|
||||||
} else {
|
mediatracker.waitForAll();
|
||||||
DesktopHooks.decodeImage(this, abyte0, component);
|
width = image.getWidth(component);
|
||||||
|
height = image.getHeight(component);
|
||||||
|
trimWidth = width;
|
||||||
|
trimHeight = height;
|
||||||
|
anInt1442 = 0;
|
||||||
|
anInt1443 = 0;
|
||||||
|
pixels = new int[width * height];
|
||||||
|
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, width, height, pixels, 0, width);
|
||||||
|
pixelgrabber.grabPixels();
|
||||||
|
} catch (Exception _ex) {
|
||||||
|
System.out.println("Error converting jpg");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -350,30 +366,7 @@ public final class Sprite extends DrawingArea {
|
|||||||
int k4 = j3 + i3 * i4;
|
int k4 = j3 + i3 * i4;
|
||||||
int l4 = k3 - l2 * i4;
|
int l4 = k3 - l2 * i4;
|
||||||
for (k1 = -ai[j1]; k1 < 0; k1++) {
|
for (k1 = -ai[j1]; k1 < 0; k1++) {
|
||||||
if (ClientSettings.BILINEAR_MINIMAP_FILTERING) {
|
DrawingArea.pixels[j4++] = pixels[(k4 >> 16) + (l4 >> 16) * width];
|
||||||
int x1 = k4 >> 16;
|
|
||||||
int y1 = l4 >> 16;
|
|
||||||
int x2 = x1 + 1;
|
|
||||||
int y2 = y1 + 1;
|
|
||||||
int sampleColor1 = pixels[x1 + y1 * width];
|
|
||||||
int sampleColor2 = pixels[x2 + y1 * width];
|
|
||||||
int sampleColor3 = pixels[x1 + y2 * width];
|
|
||||||
int sampleColor4 = pixels[x2 + y2 * width];
|
|
||||||
int x1Distance = (k4 >> 8) - (x1 << 8);
|
|
||||||
int y1Distance = (l4 >> 8) - (y1 << 8);
|
|
||||||
int x2Distance = (x2 << 8) - (k4 >> 8);
|
|
||||||
int y2Distance = (y2 << 8) - (l4 >> 8);
|
|
||||||
int sampleAlpha1 = x2Distance * y2Distance;
|
|
||||||
int sampleAlpha2 = x1Distance * y2Distance;
|
|
||||||
int sampleAlpha3 = x2Distance * y1Distance;
|
|
||||||
int sampleAlpha4 = x1Distance * y1Distance;
|
|
||||||
int red = (sampleColor1 >> 16 & 0xff) * sampleAlpha1 + (sampleColor2 >> 16 & 0xff) * sampleAlpha2 + (sampleColor3 >> 16 & 0xff) * sampleAlpha3 + (sampleColor4 >> 16 & 0xff) * sampleAlpha4 & 0xff0000;
|
|
||||||
int green = (sampleColor1 >> 8 & 0xff) * sampleAlpha1 + (sampleColor2 >> 8 & 0xff) * sampleAlpha2 + (sampleColor3 >> 8 & 0xff) * sampleAlpha3 + (sampleColor4 >> 8 & 0xff) * sampleAlpha4 >> 8 & 0xff00;
|
|
||||||
int blue = (sampleColor1 & 0xff) * sampleAlpha1 + (sampleColor2 & 0xff) * sampleAlpha2 + (sampleColor3 & 0xff) * sampleAlpha3 + (sampleColor4 & 0xff) * sampleAlpha4 >> 16;
|
|
||||||
DrawingArea.pixels[j4++] = red | green | blue;
|
|
||||||
} else {
|
|
||||||
DrawingArea.pixels[j4++] = pixels[(k4 >> 16) + (l4 >> 16) * width];
|
|
||||||
}
|
|
||||||
k4 += i3;
|
k4 += i3;
|
||||||
l4 -= l2;
|
l4 -= l2;
|
||||||
}
|
}
|
||||||
@@ -517,8 +510,8 @@ public final class Sprite extends DrawingArea {
|
|||||||
public int pixels[];
|
public int pixels[];
|
||||||
public int width;
|
public int width;
|
||||||
public int height;
|
public int height;
|
||||||
int anInt1442;
|
private int anInt1442;
|
||||||
int anInt1443;
|
private int anInt1443;
|
||||||
public int trimWidth;
|
public int trimWidth;
|
||||||
public int trimHeight;
|
public int trimHeight;
|
||||||
}
|
}
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+16
-60
@@ -75,54 +75,16 @@ public final class TextDrawingArea extends DrawingArea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void textRight(int i, String s, int k, int l) {
|
public void method380(String s, int i, int j, int k) {
|
||||||
textLeft(i, s, k, l - method384(s));
|
method385(j, s, k, i - method384(s));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void textCenter(int i, String s, int k, int l) {
|
public void drawText(int i, String s, int k, int l) {
|
||||||
textLeft(i, s, k, l - method384(s) / 2);
|
method385(i, s, k, l - method384(s) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void textLeftAlpha(int _color, String s, int _y, int _x, int alpha, boolean _shadow) {
|
public void method382(int i, int j, String s, int l, boolean flag) {
|
||||||
if (s == null) {
|
method389(flag, j - getTextWidth(s) / 2, i, s, l);
|
||||||
return;
|
|
||||||
}
|
|
||||||
_y -= anInt1497;
|
|
||||||
int shadowAlpha = (alpha * 192) / 256;
|
|
||||||
for (int i1 = 0; i1 < s.length(); i1++) {
|
|
||||||
if (s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
|
|
||||||
int j1 = getColorByName(s.substring(i1 + 1, i1 + 4));
|
|
||||||
if (j1 != -1) {
|
|
||||||
_color = j1;
|
|
||||||
}
|
|
||||||
i1 += 4;
|
|
||||||
} else {
|
|
||||||
char c = s.charAt(i1);
|
|
||||||
if (c != ' ') {
|
|
||||||
if (_shadow && shadowAlpha > 0) {
|
|
||||||
method394(shadowAlpha, _x + anIntArray1494[c] + 1, aByteArrayArray1491[c], anIntArray1492[c], _y + anIntArray1495[c] + 1, anIntArray1493[c], 0);
|
|
||||||
}
|
|
||||||
if (alpha >= 255) {
|
|
||||||
method392(aByteArrayArray1491[c], _x + anIntArray1494[c], _y + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], _color);
|
|
||||||
} else {
|
|
||||||
method394(alpha, _x + anIntArray1494[c], aByteArrayArray1491[c], anIntArray1492[c], _y + anIntArray1495[c], anIntArray1493[c], _color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_x += anIntArray1496[c];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void textCenterAlpha(int _color, String s, int _y, int _x, int alpha, boolean _shadow) {
|
|
||||||
textLeftAlpha(_color, s, _y, _x - getTextWidth(s) / 2, alpha, _shadow);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void textCenterShadow(int _color, int _x, String s, int _y, boolean _shadow) {
|
|
||||||
textLeftShadow(_shadow, _x - getTextWidth(s) / 2, _color, s, _y);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void textRightShadow(boolean _shadow, int _x, int _color, String s, int _y) {
|
|
||||||
textLeftShadow(_shadow, _x - getTextWidth(s), _color, s, _y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTextWidth(String s) {
|
public int getTextWidth(String s) {
|
||||||
@@ -152,7 +114,7 @@ public final class TextDrawingArea extends DrawingArea {
|
|||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void textLeft(int i, String s, int j, int l) {
|
public void method385(int i, String s, int j, int l) {
|
||||||
if (s == null) {
|
if (s == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -218,37 +180,37 @@ public final class TextDrawingArea extends DrawingArea {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void textLeftShadow(boolean _shadow, int _x, int _color, String s, int _y) {
|
public void method389(boolean flag1, int i, int j, String s, int k) {
|
||||||
aBoolean1499 = false;
|
aBoolean1499 = false;
|
||||||
int l = _x;
|
int l = i;
|
||||||
if (s == null) {
|
if (s == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_y -= anInt1497;
|
k -= anInt1497;
|
||||||
for (int i1 = 0; i1 < s.length(); i1++) {
|
for (int i1 = 0; i1 < s.length(); i1++) {
|
||||||
if (s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
|
if (s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
|
||||||
int j1 = getColorByName(s.substring(i1 + 1, i1 + 4));
|
int j1 = getColorByName(s.substring(i1 + 1, i1 + 4));
|
||||||
if (j1 != -1) {
|
if (j1 != -1) {
|
||||||
_color = j1;
|
j = j1;
|
||||||
}
|
}
|
||||||
i1 += 4;
|
i1 += 4;
|
||||||
} else {
|
} else {
|
||||||
char c = s.charAt(i1);
|
char c = s.charAt(i1);
|
||||||
if (c != ' ') {
|
if (c != ' ') {
|
||||||
if (_shadow) {
|
if (flag1) {
|
||||||
method392(aByteArrayArray1491[c], _x + anIntArray1494[c] + 1, _y + anIntArray1495[c] + 1, anIntArray1492[c], anIntArray1493[c], 0);
|
method392(aByteArrayArray1491[c], i + anIntArray1494[c] + 1, k + anIntArray1495[c] + 1, anIntArray1492[c], anIntArray1493[c], 0);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
method392(aByteArrayArray1491[c], _x + anIntArray1494[c], _y + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], _color);
|
method392(aByteArrayArray1491[c], i + anIntArray1494[c], k + anIntArray1495[c], anIntArray1492[c], anIntArray1493[c], j);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_x += anIntArray1496[c];
|
i += anIntArray1496[c];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (aBoolean1499) {
|
if (aBoolean1499) {
|
||||||
DrawingArea.drawHorizontalLine(_y + (int) (anInt1497 * 0.69999999999999996D), 0x800000, _x - l, l);
|
DrawingArea.method339(k + (int) (anInt1497 * 0.69999999999999996D), 0x800000, i - l, l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,9 +305,6 @@ public final class TextDrawingArea extends DrawingArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void method392(byte abyte0[], int i, int j, int k, int l, int i1) {
|
private void method392(byte abyte0[], int i, int j, int k, int l, int i1) {
|
||||||
if (i1 == 0) {
|
|
||||||
i1 = 1;
|
|
||||||
}
|
|
||||||
int j1 = i + j * DrawingArea.width;
|
int j1 = i + j * DrawingArea.width;
|
||||||
int k1 = DrawingArea.width - k;
|
int k1 = DrawingArea.width - k;
|
||||||
int l1 = 0;
|
int l1 = 0;
|
||||||
@@ -422,9 +381,6 @@ public final class TextDrawingArea extends DrawingArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void method394(int i, int j, byte abyte0[], int k, int l, int i1, int j1) {
|
private void method394(int i, int j, byte abyte0[], int k, int l, int i1, int j1) {
|
||||||
if (j1 == 0) {
|
|
||||||
j1 = 1;
|
|
||||||
}
|
|
||||||
int k1 = j + l * DrawingArea.width;
|
int k1 = j + l * DrawingArea.width;
|
||||||
int l1 = DrawingArea.width - k;
|
int l1 = DrawingArea.width - k;
|
||||||
int i2 = 0;
|
int i2 = 0;
|
||||||
File renamed without changes.
+35
-86
@@ -111,7 +111,7 @@ final class Texture extends DrawingArea {
|
|||||||
anIntArrayArray1479[i] = null;
|
anIntArrayArray1479[i] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int[] method371(int i) {
|
private static int[] method371(int i) {
|
||||||
anIntArray1480[i] = anInt1481++;
|
anIntArray1480[i] = anInt1481++;
|
||||||
if (anIntArrayArray1479[i] != null) {
|
if (anIntArrayArray1479[i] != null) {
|
||||||
return anIntArrayArray1479[i];
|
return anIntArrayArray1479[i];
|
||||||
@@ -730,47 +730,22 @@ final class Texture extends DrawingArea {
|
|||||||
} else {
|
} else {
|
||||||
int j2 = anInt1465;
|
int j2 = anInt1465;
|
||||||
int l2 = 256 - anInt1465;
|
int l2 = 256 - anInt1465;
|
||||||
if (ClientSettings.FIX_TRANSPARENCY_OVERFLOW) {
|
while (--k >= 0) {
|
||||||
while (--k >= 0) {
|
j = anIntArray1482[j1 >> 8];
|
||||||
j = anIntArray1482[j1 >> 8];
|
j1 += l1;
|
||||||
j1 += l1;
|
j = ((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00) * l2 >> 8 & 0xff00);
|
||||||
j = ((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00) * l2 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
||||||
i++;
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
||||||
i++;
|
}
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
k = i1 - l & 3;
|
||||||
i++;
|
if (k > 0) {
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
j = anIntArray1482[j1 >> 8];
|
||||||
i++;
|
j = ((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00) * l2 >> 8 & 0xff00);
|
||||||
}
|
do {
|
||||||
k = i1 - l & 3;
|
|
||||||
if (k > 0) {
|
|
||||||
j = anIntArray1482[j1 >> 8];
|
|
||||||
j = ((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00) * l2 >> 8 & 0xff00);
|
|
||||||
do {
|
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
|
||||||
i++;
|
|
||||||
} while (--k > 0);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
while (--k >= 0) {
|
|
||||||
j = anIntArray1482[j1 >> 8];
|
|
||||||
j1 += l1;
|
|
||||||
j = ((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00) * l2 >> 8 & 0xff00);
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
} while (--k > 0);
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
|
||||||
}
|
|
||||||
k = i1 - l & 3;
|
|
||||||
if (k > 0) {
|
|
||||||
j = anIntArray1482[j1 >> 8];
|
|
||||||
j = ((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00) * l2 >> 8 & 0xff00);
|
|
||||||
do {
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j2 >> 8 & 0xff00);
|
|
||||||
} while (--k > 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -802,22 +777,12 @@ final class Texture extends DrawingArea {
|
|||||||
}
|
}
|
||||||
int k2 = anInt1465;
|
int k2 = anInt1465;
|
||||||
int i3 = 256 - anInt1465;
|
int i3 = 256 - anInt1465;
|
||||||
if (ClientSettings.FIX_TRANSPARENCY_OVERFLOW) {
|
do {
|
||||||
do {
|
j = anIntArray1482[j1 >> 8];
|
||||||
j = anIntArray1482[j1 >> 8];
|
j1 += i2;
|
||||||
j1 += i2;
|
j = ((j & 0xff00ff) * i3 >> 8 & 0xff00ff) + ((j & 0xff00) * i3 >> 8 & 0xff00);
|
||||||
j = ((j & 0xff00ff) * i3 >> 8 & 0xff00ff) + ((j & 0xff00) * i3 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * k2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * k2 >> 8 & 0xff00);
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * k2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * k2 >> 8 & 0xff00);
|
} while (--k > 0);
|
||||||
i++;
|
|
||||||
} while (--k > 0);
|
|
||||||
} else {
|
|
||||||
do {
|
|
||||||
j = anIntArray1482[j1 >> 8];
|
|
||||||
j1 += i2;
|
|
||||||
j = ((j & 0xff00ff) * i3 >> 8 & 0xff00ff) + ((j & 0xff00) * i3 >> 8 & 0xff00);
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * k2 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * k2 >> 8 & 0xff00);
|
|
||||||
} while (--k > 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void method376(int i, int j, int k, int l, int i1, int j1, int k1) {
|
public static void method376(int i, int j, int k, int l, int i1, int j1, int k1) {
|
||||||
@@ -1160,32 +1125,16 @@ final class Texture extends DrawingArea {
|
|||||||
int j1 = anInt1465;
|
int j1 = anInt1465;
|
||||||
int k1 = 256 - anInt1465;
|
int k1 = 256 - anInt1465;
|
||||||
j = ((j & 0xff00ff) * k1 >> 8 & 0xff00ff) + ((j & 0xff00) * k1 >> 8 & 0xff00);
|
j = ((j & 0xff00ff) * k1 >> 8 & 0xff00ff) + ((j & 0xff00) * k1 >> 8 & 0xff00);
|
||||||
if (ClientSettings.FIX_TRANSPARENCY_OVERFLOW) {
|
while (--k >= 0) {
|
||||||
while (--k >= 0) {
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
||||||
i++;
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
||||||
i++;
|
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
i++;
|
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
for (k = i1 - l & 3; --k >= 0;) {
|
|
||||||
ai[i] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
while (--k >= 0) {
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
}
|
|
||||||
for (k = i1 - l & 3; --k >= 0;) {
|
|
||||||
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
for (k = i1 - l & 3; --k >= 0;) {
|
||||||
|
ai[i++] = j + ((ai[i] & 0xff00ff) * j1 >> 8 & 0xff00ff) + ((ai[i] & 0xff00) * j1 >> 8 & 0xff00);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void method378(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int j4, int k4) {
|
public static void method378(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int j4, int k4) {
|
||||||
@@ -2094,18 +2043,18 @@ final class Texture extends DrawingArea {
|
|||||||
private static int[] anIntArray1476 = new int[50];
|
private static int[] anIntArray1476 = new int[50];
|
||||||
private static int anInt1477;
|
private static int anInt1477;
|
||||||
private static int[][] anIntArrayArray1478;
|
private static int[][] anIntArrayArray1478;
|
||||||
public static int[][] anIntArrayArray1479 = new int[50][];
|
private static int[][] anIntArrayArray1479 = new int[50][];
|
||||||
public static int anIntArray1480[] = new int[50];
|
public static int anIntArray1480[] = new int[50];
|
||||||
public static int anInt1481;
|
public static int anInt1481;
|
||||||
public static int anIntArray1482[] = new int[0x10000];
|
public static int anIntArray1482[] = new int[0x10000];
|
||||||
public static int[][] anIntArrayArray1483 = new int[50][];
|
private static int[][] anIntArrayArray1483 = new int[50][];
|
||||||
|
|
||||||
static {
|
static {
|
||||||
anIntArray1468 = new int[2048];
|
anIntArray1468 = new int[512];
|
||||||
anIntArray1469 = new int[2048];
|
anIntArray1469 = new int[2048];
|
||||||
anIntArray1470 = new int[2048];
|
anIntArray1470 = new int[2048];
|
||||||
anIntArray1471 = new int[2048];
|
anIntArray1471 = new int[2048];
|
||||||
for (int i = 1; i < 2048; i++) {
|
for (int i = 1; i < 512; i++) {
|
||||||
anIntArray1468[i] = 32768 / i;
|
anIntArray1468[i] = 32768 / i;
|
||||||
}
|
}
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
+76
-525
@@ -2,8 +2,7 @@
|
|||||||
// Jad home page: http://www.kpdus.com/jad.html
|
// Jad home page: http://www.kpdus.com/jad.html
|
||||||
// Decompiler options: packimports(3)
|
// Decompiler options: packimports(3)
|
||||||
|
|
||||||
public final class WorldController {
|
final class WorldController {
|
||||||
public static int drawDistance = 25;
|
|
||||||
|
|
||||||
public WorldController(int ai[][][]) {
|
public WorldController(int ai[][][]) {
|
||||||
int i = 104;// was parameter
|
int i = 104;// was parameter
|
||||||
@@ -132,7 +131,6 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
if (l == 1) {
|
if (l == 1) {
|
||||||
Class43 class43_1 = new Class43(k3, l3, i4, j4, j1, l4, k1 == l1 && k1 == i2 && k1 == j2);
|
Class43 class43_1 = new Class43(k3, l3, i4, j4, j1, l4, k1 == l1 && k1 == i2 && k1 == j2);
|
||||||
class43_1.isOverlay = true;
|
|
||||||
for (int j5 = i; j5 >= 0; j5--) {
|
for (int j5 = i; j5 >= 0; j5--) {
|
||||||
if (groundArray[j5][j][k] == null) {
|
if (groundArray[j5][j][k] == null) {
|
||||||
groundArray[j5][j][k] = new Ground(j5, j, k);
|
groundArray[j5][j][k] = new Ground(j5, j, k);
|
||||||
@@ -143,7 +141,6 @@ public final class WorldController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Class40 class40 = new Class40(k, k3, j3, i2, j1, i4, i1, k2, k4, i3, j2, l1, k1, l, j4, l3, l2, j, l4);
|
Class40 class40 = new Class40(k, k3, j3, i2, j1, i4, i1, k2, k4, i3, j2, l1, k1, l, j4, l3, l2, j, l4);
|
||||||
class40.plane = i;
|
|
||||||
for (int k5 = i; k5 >= 0; k5--) {
|
for (int k5 = i; k5 >= 0; k5--) {
|
||||||
if (groundArray[k5][j][k] == null) {
|
if (groundArray[k5][j][k] == null) {
|
||||||
groundArray[k5][j][k] = new Ground(k5, j, k);
|
groundArray[k5][j][k] = new Ground(k5, j, k);
|
||||||
@@ -220,7 +217,6 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
groundArray[k1][l][k].obj1 = object1;
|
groundArray[k1][l][k].obj1 = object1;
|
||||||
HD317Pipeline.invalidateStaticChunk(l, k);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void method283(int i, int j, int k, int i1, int j1, int k1, Animable class30_sub2_sub4, int l1, byte byte0, int i2, int j2) {
|
public void method283(int i, int j, int k, int i1, int j1, int k1, Animable class30_sub2_sub4, int l1, byte byte0, int i2, int j2) {
|
||||||
@@ -243,7 +239,6 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
groundArray[i1][l1][j].obj2 = class26;
|
groundArray[i1][l1][j].obj2 = class26;
|
||||||
HD317Pipeline.invalidateStaticChunk(l1, j);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean method284(int i, byte byte0, int j, int k, Animable class30_sub2_sub4, int l, int i1, int j1, int k1, int l1) {
|
public boolean method284(int i, byte byte0, int j, int k, Animable class30_sub2_sub4, int l, int i1, int j1, int k1, int l1) {
|
||||||
@@ -252,11 +247,7 @@ public final class WorldController {
|
|||||||
} else {
|
} else {
|
||||||
int i2 = l1 * 128 + 64 * l;
|
int i2 = l1 * 128 + 64 * l;
|
||||||
int j2 = k1 * 128 + 64 * k;
|
int j2 = k1 * 128 + 64 * k;
|
||||||
boolean added = method287(i1, l1, k1, l, k, i2, j2, j, class30_sub2_sub4, j1, false, i, byte0);
|
return method287(i1, l1, k1, l, k, i2, j2, j, class30_sub2_sub4, j1, false, i, byte0);
|
||||||
if (added) {
|
|
||||||
HD317Pipeline.invalidateStaticChunk(l1, k1);
|
|
||||||
}
|
|
||||||
return added;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,7 +409,6 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
if (class30_sub3 != null) {
|
if (class30_sub3 != null) {
|
||||||
class30_sub3.obj1 = null;
|
class30_sub3.obj1 = null;
|
||||||
HD317Pipeline.invalidateStaticChunk(i, k);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -426,7 +416,6 @@ public final class WorldController {
|
|||||||
Ground class30_sub3 = groundArray[k][l][j];
|
Ground class30_sub3 = groundArray[k][l][j];
|
||||||
if (class30_sub3 != null) {
|
if (class30_sub3 != null) {
|
||||||
class30_sub3.obj2 = null;
|
class30_sub3.obj2 = null;
|
||||||
HD317Pipeline.invalidateStaticChunk(l, j);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -439,7 +428,6 @@ public final class WorldController {
|
|||||||
Object5 class28 = class30_sub3.obj5Array[j1];
|
Object5 class28 = class30_sub3.obj5Array[j1];
|
||||||
if ((class28.uid >> 29 & 3) == 2 && class28.anInt523 == k && class28.anInt525 == l) {
|
if ((class28.uid >> 29 & 3) == 2 && class28.anInt523 == k && class28.anInt525 == l) {
|
||||||
method289(class28);
|
method289(class28);
|
||||||
HD317Pipeline.invalidateStaticChunk(k, l);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -452,7 +440,6 @@ public final class WorldController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
class30_sub3.obj3 = null;
|
class30_sub3.obj3 = null;
|
||||||
HD317Pipeline.invalidateStaticChunk(k, j);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void method295(int i, int j, int k) {
|
public void method295(int i, int j, int k) {
|
||||||
@@ -806,8 +793,8 @@ public final class WorldController {
|
|||||||
anInt497 = k;
|
anInt497 = k;
|
||||||
anInt498 = l;
|
anInt498 = l;
|
||||||
anInt493 = k / 2;
|
anInt493 = k / 2;
|
||||||
anInt494 = (ClientSettings.ANDROID && ClientSettings.RESIZABLE && k < l) ? (int) (l * 0.38f) : (l / 2);
|
anInt494 = l / 2;
|
||||||
boolean aflag[][][][] = new boolean[9][32][256][256];
|
boolean aflag[][][][] = new boolean[9][32][53][53];
|
||||||
for (int i1 = 128; i1 <= 384; i1 += 32) {
|
for (int i1 = 128; i1 <= 384; i1 += 32) {
|
||||||
for (int j1 = 0; j1 < 2048; j1 += 64) {
|
for (int j1 = 0; j1 < 2048; j1 += 64) {
|
||||||
anInt458 = Model.modelIntArray1[i1];
|
anInt458 = Model.modelIntArray1[i1];
|
||||||
@@ -816,8 +803,8 @@ public final class WorldController {
|
|||||||
anInt461 = Model.modelIntArray2[j1];
|
anInt461 = Model.modelIntArray2[j1];
|
||||||
int l1 = (i1 - 128) / 32;
|
int l1 = (i1 - 128) / 32;
|
||||||
int j2 = j1 / 64;
|
int j2 = j1 / 64;
|
||||||
for (int l2 = -(drawDistance + 1); l2 <= (drawDistance + 1); l2++) {
|
for (int l2 = -26; l2 <= 26; l2++) {
|
||||||
for (int j3 = -(drawDistance + 1); j3 <= (drawDistance + 1); j3++) {
|
for (int j3 = -26; j3 <= 26; j3++) {
|
||||||
int k3 = l2 * 128;
|
int k3 = l2 * 128;
|
||||||
int i4 = j3 * 128;
|
int i4 = j3 * 128;
|
||||||
boolean flag2 = false;
|
boolean flag2 = false;
|
||||||
@@ -829,7 +816,7 @@ public final class WorldController {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
aflag[l1][j2][l2 + drawDistance + 1][j3 + drawDistance + 1] = flag2;
|
aflag[l1][j2][l2 + 25 + 1][j3 + 25 + 1] = flag2;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -840,19 +827,19 @@ public final class WorldController {
|
|||||||
|
|
||||||
for (int k1 = 0; k1 < 8; k1++) {
|
for (int k1 = 0; k1 < 8; k1++) {
|
||||||
for (int i2 = 0; i2 < 32; i2++) {
|
for (int i2 = 0; i2 < 32; i2++) {
|
||||||
for (int k2 = -drawDistance; k2 < drawDistance; k2++) {
|
for (int k2 = -25; k2 < 25; k2++) {
|
||||||
for (int i3 = -drawDistance; i3 < drawDistance; i3++) {
|
for (int i3 = -25; i3 < 25; i3++) {
|
||||||
boolean flag1 = false;
|
boolean flag1 = false;
|
||||||
label0 : for (int l3 = -1; l3 <= 1; l3++) {
|
label0 : for (int l3 = -1; l3 <= 1; l3++) {
|
||||||
for (int j4 = -1; j4 <= 1; j4++) {
|
for (int j4 = -1; j4 <= 1; j4++) {
|
||||||
if (aflag[k1][i2][k2 + l3 + drawDistance + 1][i3 + j4 + drawDistance + 1]) {
|
if (aflag[k1][i2][k2 + l3 + 25 + 1][i3 + j4 + 25 + 1]) {
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
} else if (aflag[k1][(i2 + 1) % 31][k2 + l3 + drawDistance + 1][i3 + j4 + drawDistance + 1]) {
|
} else if (aflag[k1][(i2 + 1) % 31][k2 + l3 + 25 + 1][i3 + j4 + 25 + 1]) {
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
} else if (aflag[k1 + 1][i2][k2 + l3 + drawDistance + 1][i3 + j4 + drawDistance + 1]) {
|
} else if (aflag[k1 + 1][i2][k2 + l3 + 25 + 1][i3 + j4 + 25 + 1]) {
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
} else {
|
} else {
|
||||||
if (!aflag[k1 + 1][(i2 + 1) % 31][k2 + l3 + drawDistance + 1][i3 + j4 + drawDistance + 1]) {
|
if (!aflag[k1 + 1][(i2 + 1) % 31][k2 + l3 + 25 + 1][i3 + j4 + 25 + 1]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
@@ -862,7 +849,7 @@ public final class WorldController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
aBooleanArrayArrayArrayArray491[k1][i2][k2 + drawDistance][i3 + drawDistance] = flag1;
|
aBooleanArrayArrayArrayArray491[k1][i2][k2 + 25][i3 + 25] = flag1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -917,24 +904,19 @@ public final class WorldController {
|
|||||||
anInt453 = i / 128;
|
anInt453 = i / 128;
|
||||||
anInt454 = j / 128;
|
anInt454 = j / 128;
|
||||||
anInt447 = i1;
|
anInt447 = i1;
|
||||||
hdMaxPlane = Math.max(0, Math.min(3, i1));
|
anInt449 = anInt453 - 25;
|
||||||
boolean hdGpu = ClientSettings.HD_317 && HD317Pipeline.isGpuActive();
|
|
||||||
int maxDist = hdGpu ? 60 : 38;
|
|
||||||
effectiveDrawDist = (ClientSettings.ANDROID || hdGpu)
|
|
||||||
? Math.min(maxDist, drawDistance + (hdCamDistToPlayer >> 7) + 10) : drawDistance;
|
|
||||||
anInt449 = anInt453 - effectiveDrawDist;
|
|
||||||
if (anInt449 < 0) {
|
if (anInt449 < 0) {
|
||||||
anInt449 = 0;
|
anInt449 = 0;
|
||||||
}
|
}
|
||||||
anInt451 = anInt454 - effectiveDrawDist;
|
anInt451 = anInt454 - 25;
|
||||||
if (anInt451 < 0) {
|
if (anInt451 < 0) {
|
||||||
anInt451 = 0;
|
anInt451 = 0;
|
||||||
}
|
}
|
||||||
anInt450 = anInt453 + effectiveDrawDist;
|
anInt450 = anInt453 + 25;
|
||||||
if (anInt450 > anInt438) {
|
if (anInt450 > anInt438) {
|
||||||
anInt450 = anInt438;
|
anInt450 = anInt438;
|
||||||
}
|
}
|
||||||
anInt452 = anInt454 + effectiveDrawDist;
|
anInt452 = anInt454 + 25;
|
||||||
if (anInt452 > anInt439) {
|
if (anInt452 > anInt439) {
|
||||||
anInt452 = anInt439;
|
anInt452 = anInt439;
|
||||||
}
|
}
|
||||||
@@ -946,7 +928,7 @@ public final class WorldController {
|
|||||||
for (int k2 = anInt451; k2 < anInt452; k2++) {
|
for (int k2 = anInt451; k2 < anInt452; k2++) {
|
||||||
Ground class30_sub3 = aclass30_sub3[i2][k2];
|
Ground class30_sub3 = aclass30_sub3[i2][k2];
|
||||||
if (class30_sub3 != null) {
|
if (class30_sub3 != null) {
|
||||||
if (class30_sub3.anInt1321 > i1 || (!ClientSettings.ANDROID && !ClientSettings.RESIZABLE && !hdGpu && !aBooleanArrayArray492[i2 - anInt453 + drawDistance][k2 - anInt454 + drawDistance]) && anIntArrayArrayArray440[k1][i2][k2] - l < 50) {
|
if (class30_sub3.anInt1321 > i1 || !aBooleanArrayArray492[i2 - anInt453 + 25][k2 - anInt454 + 25] && anIntArrayArrayArray440[k1][i2][k2] - l < 2000) {
|
||||||
class30_sub3.aBoolean1322 = false;
|
class30_sub3.aBoolean1322 = false;
|
||||||
class30_sub3.aBoolean1323 = false;
|
class30_sub3.aBoolean1323 = false;
|
||||||
class30_sub3.anInt1325 = 0;
|
class30_sub3.anInt1325 = 0;
|
||||||
@@ -963,60 +945,13 @@ public final class WorldController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hdGpu) {
|
|
||||||
int cx = anInt453;
|
|
||||||
int cz = anInt454;
|
|
||||||
int maxR = effectiveDrawDist;
|
|
||||||
if (cx >= anInt449 && cx < anInt450 && cz >= anInt451 && cz < anInt452) {
|
|
||||||
renderHdTileColumn(cx, cz);
|
|
||||||
}
|
|
||||||
for (int r = 1; r <= maxR; r++) {
|
|
||||||
int minX = Math.max(anInt449, cx - r);
|
|
||||||
int maxX = Math.min(anInt450 - 1, cx + r);
|
|
||||||
int minZ = Math.max(anInt451, cz - r);
|
|
||||||
int maxZ = Math.min(anInt452 - 1, cz + r);
|
|
||||||
|
|
||||||
int northZ = cz - r;
|
|
||||||
if (northZ >= anInt451 && northZ < anInt452) {
|
|
||||||
for (int tx = minX; tx <= maxX; tx++) {
|
|
||||||
renderHdTileColumn(tx, northZ);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int southZ = cz + r;
|
|
||||||
if (southZ >= anInt451 && southZ < anInt452) {
|
|
||||||
for (int tx = minX; tx <= maxX; tx++) {
|
|
||||||
renderHdTileColumn(tx, southZ);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int innerMinZ = Math.max(minZ, cz - r + 1);
|
|
||||||
int innerMaxZ = Math.min(maxZ, cz + r - 1);
|
|
||||||
int westX = cx - r;
|
|
||||||
if (westX >= anInt449 && westX < anInt450) {
|
|
||||||
for (int tz = innerMinZ; tz <= innerMaxZ; tz++) {
|
|
||||||
renderHdTileColumn(westX, tz);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int eastX = cx + r;
|
|
||||||
if (eastX >= anInt449 && eastX < anInt450) {
|
|
||||||
for (int tz = innerMinZ; tz <= innerMaxZ; tz++) {
|
|
||||||
renderHdTileColumn(eastX, tz);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
aBoolean467 = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
int loopDist = (ClientSettings.HD_317 && HD317Pipeline.isGpuActive())
|
|
||||||
? Math.max(drawDistance, 104) : (ClientSettings.ANDROID ? effectiveDrawDist : drawDistance);
|
|
||||||
|
|
||||||
for (int l1 = anInt442; l1 < anInt437; l1++) {
|
for (int l1 = anInt442; l1 < anInt437; l1++) {
|
||||||
Ground aclass30_sub3_1[][] = groundArray[l1];
|
Ground aclass30_sub3_1[][] = groundArray[l1];
|
||||||
for (int l2 = -loopDist; l2 <= 0; l2++) {
|
for (int l2 = -25; l2 <= 0; l2++) {
|
||||||
int i3 = anInt453 + l2;
|
int i3 = anInt453 + l2;
|
||||||
int k3 = anInt453 - l2;
|
int k3 = anInt453 - l2;
|
||||||
if (i3 >= anInt449 || k3 < anInt450) {
|
if (i3 >= anInt449 || k3 < anInt450) {
|
||||||
for (int i4 = -loopDist; i4 <= 0; i4++) {
|
for (int i4 = -25; i4 <= 0; i4++) {
|
||||||
int k4 = anInt454 + i4;
|
int k4 = anInt454 + i4;
|
||||||
int i5 = anInt454 - i4;
|
int i5 = anInt454 - i4;
|
||||||
if (i3 >= anInt449) {
|
if (i3 >= anInt449) {
|
||||||
@@ -1060,11 +995,11 @@ public final class WorldController {
|
|||||||
|
|
||||||
for (int j2 = anInt442; j2 < anInt437; j2++) {
|
for (int j2 = anInt442; j2 < anInt437; j2++) {
|
||||||
Ground aclass30_sub3_2[][] = groundArray[j2];
|
Ground aclass30_sub3_2[][] = groundArray[j2];
|
||||||
for (int j3 = -loopDist; j3 <= 0; j3++) {
|
for (int j3 = -25; j3 <= 0; j3++) {
|
||||||
int l3 = anInt453 + j3;
|
int l3 = anInt453 + j3;
|
||||||
int j4 = anInt453 - j3;
|
int j4 = anInt453 - j3;
|
||||||
if (l3 >= anInt449 || j4 < anInt450) {
|
if (l3 >= anInt449 || j4 < anInt450) {
|
||||||
for (int l4 = -loopDist; l4 <= 0; l4++) {
|
for (int l4 = -25; l4 <= 0; l4++) {
|
||||||
int j5 = anInt454 + l4;
|
int j5 = anInt454 + l4;
|
||||||
int k5 = anInt454 - l4;
|
int k5 = anInt454 - l4;
|
||||||
if (l3 >= anInt449) {
|
if (l3 >= anInt449) {
|
||||||
@@ -1109,157 +1044,6 @@ public final class WorldController {
|
|||||||
aBoolean467 = false;
|
aBoolean467 = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int hdPlayerTileX = 52;
|
|
||||||
public static int hdPlayerTileZ = 52;
|
|
||||||
public static int hdCamDistToPlayer = 1200;
|
|
||||||
public static int effectiveDrawDist = 25;
|
|
||||||
public static int hdMaxPlane = 3;
|
|
||||||
|
|
||||||
private boolean isHdTileInFrustum(int tx, int tz) {
|
|
||||||
int wx = (tx << 7) + 64 - anInt455;
|
|
||||||
int wz = (tz << 7) + 64 - anInt457;
|
|
||||||
int wy = anIntArrayArrayArray440[0][tx][tz] - anInt456;
|
|
||||||
int cz0 = wz * anInt461 - wx * anInt460 >> 16;
|
|
||||||
int cz = wy * anInt458 + cz0 * anInt459 >> 16;
|
|
||||||
// Keep a 10-tile margin behind camera for nearby shadow casters and large multi-tile objects
|
|
||||||
if (cz < -1280) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
int maxCamDepth = (drawDistance + (hdCamDistToPlayer >> 7) + 16) * 256;
|
|
||||||
if (cz > maxCamDepth) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
int cxCam = wz * anInt460 + wx * anInt461 >> 16;
|
|
||||||
if (cz > 256 && Math.abs(cxCam) > cz + 768) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void renderHdTileColumn(int tx, int tz) {
|
|
||||||
if (!isHdTileInFrustum(tx, tz)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for (int plane = anInt442; plane < anInt437; plane++) {
|
|
||||||
Ground ground = groundArray[plane][tx][tz];
|
|
||||||
if (ground != null && ground.aBoolean1322) {
|
|
||||||
renderHdTile(ground);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void renderHdAnimable(Animable animable, int orientation, int relX, int relY, int relZ, int uid) {
|
|
||||||
boolean prevAnimated = HD317Pipeline.drawingAnimatedObj;
|
|
||||||
HD317Pipeline.drawingAnimatedObj = !(animable instanceof Model);
|
|
||||||
try {
|
|
||||||
animable.method443(orientation, anInt458, anInt459, anInt460, anInt461, relX, relY, relZ, uid);
|
|
||||||
} finally {
|
|
||||||
HD317Pipeline.drawingAnimatedObj = prevAnimated;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void renderHdTile(Ground class30_sub3_1) {
|
|
||||||
int i = class30_sub3_1.anInt1308;
|
|
||||||
int j = class30_sub3_1.anInt1309;
|
|
||||||
int l = class30_sub3_1.anInt1310;
|
|
||||||
class30_sub3_1.aBoolean1322 = false;
|
|
||||||
class30_sub3_1.aBoolean1323 = false;
|
|
||||||
|
|
||||||
if (class30_sub3_1.aClass30_Sub3_1329 != null) {
|
|
||||||
Ground class30_sub3_7 = class30_sub3_1.aClass30_Sub3_1329;
|
|
||||||
HD317Pipeline.drawingPlane = 0;
|
|
||||||
if (class30_sub3_7.aClass43_1311 != null) {
|
|
||||||
method315(class30_sub3_7.aClass43_1311, 0, anInt458, anInt459, anInt460, anInt461, i, j);
|
|
||||||
} else if (class30_sub3_7.aClass40_1312 != null) {
|
|
||||||
method316(i, anInt458, anInt460, class30_sub3_7.aClass40_1312, anInt459, j, anInt461);
|
|
||||||
}
|
|
||||||
Object1 class10 = class30_sub3_7.obj1;
|
|
||||||
if (class10 != null) {
|
|
||||||
HD317Pipeline.drawingWall = true;
|
|
||||||
if (class10.aClass30_Sub2_Sub4_278 != null) {
|
|
||||||
renderHdAnimable(class10.aClass30_Sub2_Sub4_278, 0, class10.anInt274 - anInt455, class10.anInt273 - anInt456, class10.anInt275 - anInt457, class10.uid);
|
|
||||||
}
|
|
||||||
if (class10.aClass30_Sub2_Sub4_279 != null) {
|
|
||||||
renderHdAnimable(class10.aClass30_Sub2_Sub4_279, 0, class10.anInt274 - anInt455, class10.anInt273 - anInt456, class10.anInt275 - anInt457, class10.uid);
|
|
||||||
}
|
|
||||||
HD317Pipeline.drawingWall = false;
|
|
||||||
}
|
|
||||||
for (int i2 = 0; i2 < class30_sub3_7.anInt1317; i2++) {
|
|
||||||
Object5 class28 = class30_sub3_7.obj5Array[i2];
|
|
||||||
if (class28 != null && class28.aClass30_Sub2_Sub4_521 != null) {
|
|
||||||
renderHdAnimable(class28.aClass30_Sub2_Sub4_521, class28.anInt522, class28.anInt519 - anInt455, class28.anInt518 - anInt456, class28.anInt520 - anInt457, class28.uid);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HD317Pipeline.drawingPlane = l;
|
|
||||||
if (class30_sub3_1.aClass43_1311 != null) {
|
|
||||||
method315(class30_sub3_1.aClass43_1311, l, anInt458, anInt459, anInt460, anInt461, i, j);
|
|
||||||
} else if (class30_sub3_1.aClass40_1312 != null) {
|
|
||||||
method316(i, anInt458, anInt460, class30_sub3_1.aClass40_1312, anInt459, j, anInt461);
|
|
||||||
}
|
|
||||||
|
|
||||||
Object1 class10_3 = class30_sub3_1.obj1;
|
|
||||||
if (class10_3 != null) {
|
|
||||||
HD317Pipeline.drawingWall = true;
|
|
||||||
if (class10_3.aClass30_Sub2_Sub4_278 != null) {
|
|
||||||
renderHdAnimable(class10_3.aClass30_Sub2_Sub4_278, 0, class10_3.anInt274 - anInt455, class10_3.anInt273 - anInt456, class10_3.anInt275 - anInt457, class10_3.uid);
|
|
||||||
}
|
|
||||||
if (class10_3.aClass30_Sub2_Sub4_279 != null) {
|
|
||||||
renderHdAnimable(class10_3.aClass30_Sub2_Sub4_279, 0, class10_3.anInt274 - anInt455, class10_3.anInt273 - anInt456, class10_3.anInt275 - anInt457, class10_3.uid);
|
|
||||||
}
|
|
||||||
HD317Pipeline.drawingWall = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object2 class26 = class30_sub3_1.obj2;
|
|
||||||
if (class26 != null && class26.aClass30_Sub2_Sub4_504 != null) {
|
|
||||||
if ((class26.anInt502 & 0x300) != 0) {
|
|
||||||
int j4 = class26.anInt500 - anInt455;
|
|
||||||
int l5 = class26.anInt499 - anInt456;
|
|
||||||
int k6 = class26.anInt501 - anInt457;
|
|
||||||
int i8 = class26.anInt503;
|
|
||||||
if ((class26.anInt502 & 0x100) != 0) {
|
|
||||||
int i11 = j4 + anIntArray463[i8];
|
|
||||||
int k11 = k6 + anIntArray464[i8];
|
|
||||||
renderHdAnimable(class26.aClass30_Sub2_Sub4_504, i8 * 512 + 256, i11, l5, k11, class26.uid);
|
|
||||||
}
|
|
||||||
if ((class26.anInt502 & 0x200) != 0) {
|
|
||||||
int j11 = j4 + anIntArray465[i8];
|
|
||||||
int l11 = k6 + anIntArray466[i8];
|
|
||||||
renderHdAnimable(class26.aClass30_Sub2_Sub4_504, i8 * 512 + 1280 & 0x7ff, j11, l5, l11, class26.uid);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
renderHdAnimable(class26.aClass30_Sub2_Sub4_504, class26.anInt503, class26.anInt500 - anInt455, class26.anInt499 - anInt456, class26.anInt501 - anInt457, class26.uid);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Object3 class49 = class30_sub3_1.obj3;
|
|
||||||
if (class49 != null && class49.aClass30_Sub2_Sub4_814 != null) {
|
|
||||||
renderHdAnimable(class49.aClass30_Sub2_Sub4_814, 0, class49.anInt812 - anInt455, class49.anInt811 - anInt456, class49.anInt813 - anInt457, class49.uid);
|
|
||||||
}
|
|
||||||
|
|
||||||
Object4 object4 = class30_sub3_1.obj4;
|
|
||||||
if (object4 != null) {
|
|
||||||
if (object4.aClass30_Sub2_Sub4_49 != null) {
|
|
||||||
object4.aClass30_Sub2_Sub4_49.method443(0, anInt458, anInt459, anInt460, anInt461, object4.anInt46 - anInt455, object4.anInt45 - anInt456 - object4.anInt52, object4.anInt47 - anInt457, object4.uid);
|
|
||||||
}
|
|
||||||
if (object4.aClass30_Sub2_Sub4_50 != null) {
|
|
||||||
object4.aClass30_Sub2_Sub4_50.method443(0, anInt458, anInt459, anInt460, anInt461, object4.anInt46 - anInt455, object4.anInt45 - anInt456 - object4.anInt52, object4.anInt47 - anInt457, object4.uid);
|
|
||||||
}
|
|
||||||
if (object4.aClass30_Sub2_Sub4_48 != null) {
|
|
||||||
object4.aClass30_Sub2_Sub4_48.method443(0, anInt458, anInt459, anInt460, anInt461, object4.anInt46 - anInt455, object4.anInt45 - anInt456 - object4.anInt52, object4.anInt47 - anInt457, object4.uid);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int k2 = 0; k2 < class30_sub3_1.anInt1317; k2++) {
|
|
||||||
Object5 class28 = class30_sub3_1.obj5Array[k2];
|
|
||||||
if (class28 != null && class28.anInt528 != anInt448 && class28.aClass30_Sub2_Sub4_521 != null) {
|
|
||||||
class28.anInt528 = anInt448;
|
|
||||||
renderHdAnimable(class28.aClass30_Sub2_Sub4_521, class28.anInt522, class28.anInt519 - anInt455, class28.anInt518 - anInt456, class28.anInt520 - anInt457, class28.uid);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void method314(Ground class30_sub3, boolean flag) {
|
private void method314(Ground class30_sub3, boolean flag) {
|
||||||
aClass19_477.insertHead(class30_sub3);
|
aClass19_477.insertHead(class30_sub3);
|
||||||
do {
|
do {
|
||||||
@@ -1333,8 +1117,7 @@ public final class WorldController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
boolean flag1 = false;
|
boolean flag1 = false;
|
||||||
HD317Pipeline.drawingPlane = l;
|
if (class30_sub3_1.aClass43_1311 != null) {
|
||||||
if (class30_sub3_1.aClass43_1311 != null) {
|
|
||||||
if (!method320(l, i, j)) {
|
if (!method320(l, i, j)) {
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
method315(class30_sub3_1.aClass43_1311, l, anInt458, anInt459, anInt460, anInt461, i, j);
|
method315(class30_sub3_1.aClass43_1311, l, anInt458, anInt459, anInt460, anInt461, i, j);
|
||||||
@@ -1711,66 +1494,6 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void method315(Class43 class43, int i, int j, int k, int l, int i1, int j1, int k1) {
|
private void method315(Class43 class43, int i, int j, int k, int l, int i1, int j1, int k1) {
|
||||||
if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) {
|
|
||||||
if (aBoolean467) {
|
|
||||||
int l1;
|
|
||||||
int i2 = l1 = (j1 << 7) - anInt455;
|
|
||||||
int j2;
|
|
||||||
int k2 = j2 = (k1 << 7) - anInt457;
|
|
||||||
int l2;
|
|
||||||
int i3 = l2 = i2 + 128;
|
|
||||||
int j3;
|
|
||||||
int k3 = j3 = k2 + 128;
|
|
||||||
int l3 = anIntArrayArrayArray440[i][j1][k1] - anInt456;
|
|
||||||
int i4 = anIntArrayArrayArray440[i][j1 + 1][k1] - anInt456;
|
|
||||||
int j4 = anIntArrayArrayArray440[i][j1 + 1][k1 + 1] - anInt456;
|
|
||||||
int k4 = anIntArrayArrayArray440[i][j1][k1 + 1] - anInt456;
|
|
||||||
int l4 = k2 * l + i2 * i1 >> 16;
|
|
||||||
k2 = k2 * i1 - i2 * l >> 16;
|
|
||||||
i2 = l4;
|
|
||||||
l4 = l3 * k - k2 * j >> 16;
|
|
||||||
k2 = l3 * j + k2 * k >> 16;
|
|
||||||
l3 = l4;
|
|
||||||
l4 = j2 * l + i3 * i1 >> 16;
|
|
||||||
j2 = j2 * i1 - i3 * l >> 16;
|
|
||||||
i3 = l4;
|
|
||||||
l4 = i4 * k - j2 * j >> 16;
|
|
||||||
j2 = i4 * j + j2 * k >> 16;
|
|
||||||
i4 = l4;
|
|
||||||
l4 = k3 * l + l2 * i1 >> 16;
|
|
||||||
k3 = k3 * i1 - l2 * l >> 16;
|
|
||||||
l2 = l4;
|
|
||||||
l4 = j4 * k - k3 * j >> 16;
|
|
||||||
k3 = j4 * j + k3 * k >> 16;
|
|
||||||
j4 = l4;
|
|
||||||
l4 = j3 * l + l1 * i1 >> 16;
|
|
||||||
j3 = j3 * i1 - l1 * l >> 16;
|
|
||||||
l1 = l4;
|
|
||||||
l4 = k4 * k - j3 * j >> 16;
|
|
||||||
j3 = k4 * j + j3 * k >> 16;
|
|
||||||
k4 = l4;
|
|
||||||
if (k2 >= 50 && j2 >= 50 && k3 >= 50 && j3 >= 50) {
|
|
||||||
int i5 = Texture.textureInt1 + (i2 << 9) / k2;
|
|
||||||
int j5 = Texture.textureInt2 + (l3 << 9) / k2;
|
|
||||||
int k5 = Texture.textureInt1 + (i3 << 9) / j2;
|
|
||||||
int l5 = Texture.textureInt2 + (i4 << 9) / j2;
|
|
||||||
int i6 = Texture.textureInt1 + (l2 << 9) / k3;
|
|
||||||
int j6 = Texture.textureInt2 + (j4 << 9) / k3;
|
|
||||||
int k6 = Texture.textureInt1 + (l1 << 9) / j3;
|
|
||||||
int l6 = Texture.textureInt2 + (k4 << 9) / j3;
|
|
||||||
if ((i6 - k6) * (l5 - l6) - (j6 - l6) * (k5 - k6) > 0 && method318(anInt468, anInt469, j6, l6, l5, i6, k6, k5)) {
|
|
||||||
anInt470 = j1;
|
|
||||||
anInt471 = k1;
|
|
||||||
}
|
|
||||||
if ((i5 - k5) * (l6 - l5) - (j5 - l5) * (k6 - k5) > 0 && method318(anInt468, anInt469, j5, l5, l6, i5, k5, k6)) {
|
|
||||||
anInt470 = j1;
|
|
||||||
anInt471 = k1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
HD317Pipeline.drawSimpleTile(class43, i, j1, k1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int l1;
|
int l1;
|
||||||
int i2 = l1 = (j1 << 7) - anInt455;
|
int i2 = l1 = (j1 << 7) - anInt455;
|
||||||
int j2;
|
int j2;
|
||||||
@@ -1789,49 +1512,34 @@ public final class WorldController {
|
|||||||
l4 = l3 * k - k2 * j >> 16;
|
l4 = l3 * k - k2 * j >> 16;
|
||||||
k2 = l3 * j + k2 * k >> 16;
|
k2 = l3 * j + k2 * k >> 16;
|
||||||
l3 = l4;
|
l3 = l4;
|
||||||
|
if (k2 < 50) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
l4 = j2 * l + i3 * i1 >> 16;
|
l4 = j2 * l + i3 * i1 >> 16;
|
||||||
j2 = j2 * i1 - i3 * l >> 16;
|
j2 = j2 * i1 - i3 * l >> 16;
|
||||||
i3 = l4;
|
i3 = l4;
|
||||||
l4 = i4 * k - j2 * j >> 16;
|
l4 = i4 * k - j2 * j >> 16;
|
||||||
j2 = i4 * j + j2 * k >> 16;
|
j2 = i4 * j + j2 * k >> 16;
|
||||||
i4 = l4;
|
i4 = l4;
|
||||||
|
if (j2 < 50) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
l4 = k3 * l + l2 * i1 >> 16;
|
l4 = k3 * l + l2 * i1 >> 16;
|
||||||
k3 = k3 * i1 - l2 * l >> 16;
|
k3 = k3 * i1 - l2 * l >> 16;
|
||||||
l2 = l4;
|
l2 = l4;
|
||||||
l4 = j4 * k - k3 * j >> 16;
|
l4 = j4 * k - k3 * j >> 16;
|
||||||
k3 = j4 * j + k3 * k >> 16;
|
k3 = j4 * j + k3 * k >> 16;
|
||||||
j4 = l4;
|
j4 = l4;
|
||||||
|
if (k3 < 50) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
l4 = j3 * l + l1 * i1 >> 16;
|
l4 = j3 * l + l1 * i1 >> 16;
|
||||||
j3 = j3 * i1 - l1 * l >> 16;
|
j3 = j3 * i1 - l1 * l >> 16;
|
||||||
l1 = l4;
|
l1 = l4;
|
||||||
l4 = k4 * k - j3 * j >> 16;
|
l4 = k4 * k - j3 * j >> 16;
|
||||||
j3 = k4 * j + j3 * k >> 16;
|
j3 = k4 * j + j3 * k >> 16;
|
||||||
k4 = l4;
|
k4 = l4;
|
||||||
if (k2 < 48 && j2 < 48 && k3 < 48 && j3 < 48) {
|
if (j3 < 50) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (k2 < 48 || j2 < 48 || k3 < 48 || j3 < 48) {
|
|
||||||
Texture.anInt1465 = 0;
|
|
||||||
int texId = class43.anInt720;
|
|
||||||
if (texId == -1) {
|
|
||||||
if (class43.anInt718 != 0xbc614e) {
|
|
||||||
emitClippedTileTriangle(l2, j4, k3, class43.anInt718, l1, k4, j3, class43.anInt719, i3, i4, j2, class43.anInt717, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
if (class43.anInt716 != 0xbc614e) {
|
|
||||||
emitClippedTileTriangle(i2, l3, k2, class43.anInt716, i3, i4, j2, class43.anInt717, l1, k4, j3, class43.anInt719, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
} else if (!lowMem) {
|
|
||||||
if (class43.aBoolean721) {
|
|
||||||
emitClippedTileTriangle(l2, j4, k3, class43.anInt718, l1, k4, j3, class43.anInt719, i3, i4, j2, class43.anInt717, texId, i2, i3, l1, l3, i4, k4, k2, j2, j3);
|
|
||||||
} else {
|
|
||||||
emitClippedTileTriangle(l2, j4, k3, class43.anInt718, l1, k4, j3, class43.anInt719, i3, i4, j2, class43.anInt717, texId, l2, l1, i3, j4, k4, i4, k3, j3, j2);
|
|
||||||
}
|
|
||||||
emitClippedTileTriangle(i2, l3, k2, class43.anInt716, i3, i4, j2, class43.anInt717, l1, k4, j3, class43.anInt719, texId, i2, i3, l1, l3, i4, k4, k2, j2, j3);
|
|
||||||
} else {
|
|
||||||
int i7 = anIntArray485[texId];
|
|
||||||
emitClippedTileTriangle(l2, j4, k3, method317(i7, class43.anInt718), l1, k4, j3, method317(i7, class43.anInt719), i3, i4, j2, method317(i7, class43.anInt717), -1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
||||||
emitClippedTileTriangle(i2, l3, k2, method317(i7, class43.anInt716), i3, i4, j2, method317(i7, class43.anInt717), l1, k4, j3, method317(i7, class43.anInt719), -1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int i5 = Texture.textureInt1 + (i2 << 9) / k2;
|
int i5 = Texture.textureInt1 + (i2 << 9) / k2;
|
||||||
@@ -1843,7 +1551,7 @@ public final class WorldController {
|
|||||||
int k6 = Texture.textureInt1 + (l1 << 9) / j3;
|
int k6 = Texture.textureInt1 + (l1 << 9) / j3;
|
||||||
int l6 = Texture.textureInt2 + (k4 << 9) / j3;
|
int l6 = Texture.textureInt2 + (k4 << 9) / j3;
|
||||||
Texture.anInt1465 = 0;
|
Texture.anInt1465 = 0;
|
||||||
if ((long) (i6 - k6) * (l5 - l6) - (long) (j6 - l6) * (k5 - k6) > 0) {
|
if ((i6 - k6) * (l5 - l6) - (j6 - l6) * (k5 - k6) > 0) {
|
||||||
Texture.aBoolean1462 = i6 < 0 || k6 < 0 || k5 < 0 || i6 > DrawingArea.centerX || k6 > DrawingArea.centerX || k5 > DrawingArea.centerX;
|
Texture.aBoolean1462 = i6 < 0 || k6 < 0 || k5 < 0 || i6 > DrawingArea.centerX || k6 > DrawingArea.centerX || k5 > DrawingArea.centerX;
|
||||||
if (aBoolean467 && method318(anInt468, anInt469, j6, l6, l5, i6, k6, k5)) {
|
if (aBoolean467 && method318(anInt468, anInt469, j6, l6, l5, i6, k6, k5)) {
|
||||||
anInt470 = j1;
|
anInt470 = j1;
|
||||||
@@ -1864,7 +1572,7 @@ public final class WorldController {
|
|||||||
Texture.method374(j6, l6, l5, i6, k6, k5, method317(i7, class43.anInt718), method317(i7, class43.anInt719), method317(i7, class43.anInt717));
|
Texture.method374(j6, l6, l5, i6, k6, k5, method317(i7, class43.anInt718), method317(i7, class43.anInt719), method317(i7, class43.anInt717));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((long) (i5 - k5) * (l6 - l5) - (long) (j5 - l5) * (k6 - k5) > 0) {
|
if ((i5 - k5) * (l6 - l5) - (j5 - l5) * (k6 - k5) > 0) {
|
||||||
Texture.aBoolean1462 = i5 < 0 || k5 < 0 || k6 < 0 || i5 > DrawingArea.centerX || k5 > DrawingArea.centerX || k6 > DrawingArea.centerX;
|
Texture.aBoolean1462 = i5 < 0 || k5 < 0 || k6 < 0 || i5 > DrawingArea.centerX || k5 > DrawingArea.centerX || k6 > DrawingArea.centerX;
|
||||||
if (aBoolean467 && method318(anInt468, anInt469, j5, l5, l6, i5, k5, k6)) {
|
if (aBoolean467 && method318(anInt468, anInt469, j5, l5, l6, i5, k5, k6)) {
|
||||||
anInt470 = j1;
|
anInt470 = j1;
|
||||||
@@ -1886,60 +1594,7 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void method316(int i, int j, int k, Class40 class40, int l, int i1, int j1) {
|
private void method316(int i, int j, int k, Class40 class40, int l, int i1, int j1) {
|
||||||
if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) {
|
|
||||||
if (aBoolean467) {
|
|
||||||
int k1 = class40.anIntArray673.length;
|
|
||||||
boolean allBehind = true;
|
|
||||||
for (int l1 = 0; l1 < k1; l1++) {
|
|
||||||
int i2 = class40.anIntArray673[l1] - anInt455;
|
|
||||||
int k2 = class40.anIntArray674[l1] - anInt456;
|
|
||||||
int i3 = class40.anIntArray675[l1] - anInt457;
|
|
||||||
int k3 = i3 * k + i2 * j1 >> 16;
|
|
||||||
i3 = i3 * j1 - i2 * k >> 16;
|
|
||||||
i2 = k3;
|
|
||||||
k3 = k2 * l - i3 * j >> 16;
|
|
||||||
i3 = k2 * j + i3 * l >> 16;
|
|
||||||
k2 = k3;
|
|
||||||
if (i3 >= 50) {
|
|
||||||
allBehind = false;
|
|
||||||
Class40.anIntArray688[l1] = Texture.textureInt1 + (i2 << 9) / i3;
|
|
||||||
Class40.anIntArray689[l1] = Texture.textureInt2 + (k2 << 9) / i3;
|
|
||||||
} else {
|
|
||||||
Class40.anIntArray688[l1] = -5000;
|
|
||||||
Class40.anIntArray689[l1] = -5000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!allBehind) {
|
|
||||||
k1 = class40.anIntArray679.length;
|
|
||||||
for (int j2 = 0; j2 < k1; j2++) {
|
|
||||||
int l2 = class40.anIntArray679[j2];
|
|
||||||
int j3 = class40.anIntArray680[j2];
|
|
||||||
int l3 = class40.anIntArray681[j2];
|
|
||||||
int i4 = Class40.anIntArray688[l2];
|
|
||||||
int j4 = Class40.anIntArray688[j3];
|
|
||||||
int k4 = Class40.anIntArray688[l3];
|
|
||||||
int l4 = Class40.anIntArray689[l2];
|
|
||||||
int i5 = Class40.anIntArray689[j3];
|
|
||||||
int j5 = Class40.anIntArray689[l3];
|
|
||||||
if (i4 != -5000 && j4 != -5000 && k4 != -5000) {
|
|
||||||
if ((i4 - j4) * (j5 - i5) - (l4 - i5) * (k4 - j4) > 0 && method318(anInt468, anInt469, l4, i5, j5, i4, j4, k4)) {
|
|
||||||
anInt470 = i;
|
|
||||||
anInt471 = i1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
HD317Pipeline.drawShapedTile(class40, class40.plane, i, i1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
int k1 = class40.anIntArray673.length;
|
int k1 = class40.anIntArray673.length;
|
||||||
int[] vx = new int[k1];
|
|
||||||
int[] vy = new int[k1];
|
|
||||||
int[] vz = new int[k1];
|
|
||||||
boolean anyVisible = false;
|
|
||||||
boolean anyNear = false;
|
|
||||||
for (int l1 = 0; l1 < k1; l1++) {
|
for (int l1 = 0; l1 < k1; l1++) {
|
||||||
int i2 = class40.anIntArray673[l1] - anInt455;
|
int i2 = class40.anIntArray673[l1] - anInt455;
|
||||||
int k2 = class40.anIntArray674[l1] - anInt456;
|
int k2 = class40.anIntArray674[l1] - anInt456;
|
||||||
@@ -1950,51 +1605,16 @@ public final class WorldController {
|
|||||||
k3 = k2 * l - i3 * j >> 16;
|
k3 = k2 * l - i3 * j >> 16;
|
||||||
i3 = k2 * j + i3 * l >> 16;
|
i3 = k2 * j + i3 * l >> 16;
|
||||||
k2 = k3;
|
k2 = k3;
|
||||||
vx[l1] = i2;
|
if (i3 < 50) {
|
||||||
vy[l1] = k2;
|
return;
|
||||||
vz[l1] = i3;
|
|
||||||
if (i3 >= 48) {
|
|
||||||
anyVisible = true;
|
|
||||||
} else {
|
|
||||||
anyNear = true;
|
|
||||||
}
|
}
|
||||||
if (class40.anIntArray682 != null) {
|
if (class40.anIntArray682 != null) {
|
||||||
Class40.anIntArray690[l1] = i2;
|
Class40.anIntArray690[l1] = i2;
|
||||||
Class40.anIntArray691[l1] = k2;
|
Class40.anIntArray691[l1] = k2;
|
||||||
Class40.anIntArray692[l1] = i3;
|
Class40.anIntArray692[l1] = i3;
|
||||||
}
|
}
|
||||||
if (i3 >= 48) {
|
Class40.anIntArray688[l1] = Texture.textureInt1 + (i2 << 9) / i3;
|
||||||
Class40.anIntArray688[l1] = Texture.textureInt1 + (i2 << 9) / i3;
|
Class40.anIntArray689[l1] = Texture.textureInt2 + (k2 << 9) / i3;
|
||||||
Class40.anIntArray689[l1] = Texture.textureInt2 + (k2 << 9) / i3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!anyVisible) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (anyNear) {
|
|
||||||
Texture.anInt1465 = 0;
|
|
||||||
int triCount = class40.anIntArray679.length;
|
|
||||||
for (int j2 = 0; j2 < triCount; j2++) {
|
|
||||||
int v0 = class40.anIntArray679[j2];
|
|
||||||
int v1 = class40.anIntArray680[j2];
|
|
||||||
int v2 = class40.anIntArray681[j2];
|
|
||||||
int texId = (class40.anIntArray682 != null) ? class40.anIntArray682[j2] : -1;
|
|
||||||
if (texId == -1) {
|
|
||||||
if (class40.anIntArray676[j2] != 0xbc614e) {
|
|
||||||
emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], class40.anIntArray676[j2], vx[v1], vy[v1], vz[v1], class40.anIntArray677[j2], vx[v2], vy[v2], vz[v2], class40.anIntArray678[j2], -1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
} else if (!lowMem) {
|
|
||||||
if (class40.aBoolean683) {
|
|
||||||
emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], class40.anIntArray676[j2], vx[v1], vy[v1], vz[v1], class40.anIntArray677[j2], vx[v2], vy[v2], vz[v2], class40.anIntArray678[j2], texId, vx[0], vx[1], vx[3], vy[0], vy[1], vy[3], vz[0], vz[1], vz[3]);
|
|
||||||
} else {
|
|
||||||
emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], class40.anIntArray676[j2], vx[v1], vy[v1], vz[v1], class40.anIntArray677[j2], vx[v2], vy[v2], vz[v2], class40.anIntArray678[j2], texId, vx[v0], vx[v1], vx[v2], vy[v0], vy[v1], vy[v2], vz[v0], vz[v1], vz[v2]);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
int k5 = anIntArray485[texId];
|
|
||||||
emitClippedTileTriangle(vx[v0], vy[v0], vz[v0], method317(k5, class40.anIntArray676[j2]), vx[v1], vy[v1], vz[v1], method317(k5, class40.anIntArray677[j2]), vx[v2], vy[v2], vz[v2], method317(k5, class40.anIntArray678[j2]), -1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture.anInt1465 = 0;
|
Texture.anInt1465 = 0;
|
||||||
@@ -2009,7 +1629,7 @@ public final class WorldController {
|
|||||||
int l4 = Class40.anIntArray689[l2];
|
int l4 = Class40.anIntArray689[l2];
|
||||||
int i5 = Class40.anIntArray689[j3];
|
int i5 = Class40.anIntArray689[j3];
|
||||||
int j5 = Class40.anIntArray689[l3];
|
int j5 = Class40.anIntArray689[l3];
|
||||||
if ((long) (i4 - j4) * (j5 - i5) - (long) (l4 - i5) * (k4 - j4) > 0) {
|
if ((i4 - j4) * (j5 - i5) - (l4 - i5) * (k4 - j4) > 0) {
|
||||||
Texture.aBoolean1462 = i4 < 0 || j4 < 0 || k4 < 0 || i4 > DrawingArea.centerX || j4 > DrawingArea.centerX || k4 > DrawingArea.centerX;
|
Texture.aBoolean1462 = i4 < 0 || j4 < 0 || k4 < 0 || i4 > DrawingArea.centerX || j4 > DrawingArea.centerX || k4 > DrawingArea.centerX;
|
||||||
if (aBoolean467 && method318(anInt468, anInt469, l4, i5, j5, i4, j4, k4)) {
|
if (aBoolean467 && method318(anInt468, anInt469, l4, i5, j5, i4, j4, k4)) {
|
||||||
anInt470 = i;
|
anInt470 = i;
|
||||||
@@ -2034,70 +1654,6 @@ public final class WorldController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void emitClippedTileTriangle(
|
|
||||||
int x0, int y0, int z0, int c0,
|
|
||||||
int x1, int y1, int z1, int c1,
|
|
||||||
int x2, int y2, int z2, int c2,
|
|
||||||
int texId,
|
|
||||||
int tx0, int tx1, int tx2,
|
|
||||||
int ty0, int ty1, int ty2,
|
|
||||||
int tz0, int tz1, int tz2) {
|
|
||||||
final int NEAR_Z = 48;
|
|
||||||
int[] px = { x0, x1, x2 };
|
|
||||||
int[] py = { y0, y1, y2 };
|
|
||||||
int[] pz = { z0, z1, z2 };
|
|
||||||
int[] pc = { c0, c1, c2 };
|
|
||||||
int[] rx = new int[4];
|
|
||||||
int[] ry = new int[4];
|
|
||||||
int[] rz = new int[4];
|
|
||||||
int[] rc = new int[4];
|
|
||||||
int count = 0;
|
|
||||||
for (int i = 0; i < 3; i++) {
|
|
||||||
int j = (i + 1) % 3;
|
|
||||||
boolean inA = pz[i] >= NEAR_Z;
|
|
||||||
boolean inB = pz[j] >= NEAR_Z;
|
|
||||||
if (inA) {
|
|
||||||
rx[count] = px[i];
|
|
||||||
ry[count] = py[i];
|
|
||||||
rz[count] = pz[i];
|
|
||||||
rc[count] = pc[i];
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
if (inA != inB) {
|
|
||||||
int dz = pz[j] - pz[i];
|
|
||||||
rx[count] = px[i] + (int) (((long) (px[j] - px[i]) * (NEAR_Z - pz[i])) / dz);
|
|
||||||
ry[count] = py[i] + (int) (((long) (py[j] - py[i]) * (NEAR_Z - pz[i])) / dz);
|
|
||||||
rz[count] = NEAR_Z;
|
|
||||||
rc[count] = pc[i];
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (count < 3) return;
|
|
||||||
int[] sx = new int[count];
|
|
||||||
int[] sy = new int[count];
|
|
||||||
for (int i = 0; i < count; i++) {
|
|
||||||
sx[i] = Texture.textureInt1 + (rx[i] << 9) / rz[i];
|
|
||||||
sy[i] = Texture.textureInt2 + (ry[i] << 9) / rz[i];
|
|
||||||
}
|
|
||||||
for (int i = 1; i < count - 1; i++) {
|
|
||||||
int ax = sx[0], ay = sy[0], ac = rc[0];
|
|
||||||
int bx = sx[i], by = sy[i], bc = rc[i];
|
|
||||||
int cx = sx[i + 1], cy = sy[i + 1], cc = rc[i + 1];
|
|
||||||
if (ax < -16000 || ax > 16000 || bx < -16000 || bx > 16000 || cx < -16000 || cx > 16000
|
|
||||||
|| ay < -16000 || ay > 16000 || by < -16000 || by > 16000 || cy < -16000 || cy > 16000) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if ((long) (ax - bx) * (cy - by) - (long) (ay - by) * (cx - bx) > 0) {
|
|
||||||
Texture.aBoolean1462 = ax < 0 || bx < 0 || cx < 0 || ax > DrawingArea.centerX || bx > DrawingArea.centerX || cx > DrawingArea.centerX;
|
|
||||||
if (texId == -1) {
|
|
||||||
Texture.method374(ay, by, cy, ax, bx, cx, ac, bc, cc);
|
|
||||||
} else {
|
|
||||||
Texture.method378(ay, by, cy, ax, bx, cx, ac, bc, cc, tx0, tx1, tx2, ty0, ty1, ty2, Math.max(NEAR_Z, tz0), Math.max(NEAR_Z, tz1), Math.max(NEAR_Z, tz2), texId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private int method317(int j, int k) {
|
private int method317(int j, int k) {
|
||||||
k = 127 - k;
|
k = 127 - k;
|
||||||
k = k * (j & 0x7f) / 160;
|
k = k * (j & 0x7f) / 160;
|
||||||
@@ -2129,32 +1685,27 @@ public final class WorldController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void method319() {
|
private void method319() {
|
||||||
if (ClientSettings.HD_317 && HD317Pipeline.isGpuActive()) {
|
|
||||||
anInt475 = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int j = anIntArray473[anInt447];
|
int j = anIntArray473[anInt447];
|
||||||
Class47 aclass47[] = aClass47ArrayArray474[anInt447];
|
Class47 aclass47[] = aClass47ArrayArray474[anInt447];
|
||||||
anInt475 = 0;
|
anInt475 = 0;
|
||||||
int maxGrid = ClientSettings.ANDROID ? (drawDistance * 2) : 50;
|
|
||||||
for (int k = 0; k < j; k++) {
|
for (int k = 0; k < j; k++) {
|
||||||
Class47 class47 = aclass47[k];
|
Class47 class47 = aclass47[k];
|
||||||
if (class47.anInt791 == 1) {
|
if (class47.anInt791 == 1) {
|
||||||
int l = class47.anInt787 - anInt453 + drawDistance;
|
int l = class47.anInt787 - anInt453 + 25;
|
||||||
if (l < 0 || l > maxGrid) {
|
if (l < 0 || l > 50) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int k1 = class47.anInt789 - anInt454 + drawDistance;
|
int k1 = class47.anInt789 - anInt454 + 25;
|
||||||
if (k1 < 0) {
|
if (k1 < 0) {
|
||||||
k1 = 0;
|
k1 = 0;
|
||||||
}
|
}
|
||||||
int j2 = class47.anInt790 - anInt454 + drawDistance;
|
int j2 = class47.anInt790 - anInt454 + 25;
|
||||||
if (j2 > maxGrid) {
|
if (j2 > 50) {
|
||||||
j2 = maxGrid;
|
j2 = 50;
|
||||||
}
|
}
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
while (k1 <= j2) {
|
while (k1 <= j2) {
|
||||||
if (ClientSettings.ANDROID || aBooleanArrayArray492[l][k1++]) {
|
if (aBooleanArrayArray492[l][k1++]) {
|
||||||
flag = true;
|
flag = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2180,21 +1731,21 @@ public final class WorldController {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (class47.anInt791 == 2) {
|
if (class47.anInt791 == 2) {
|
||||||
int i1 = class47.anInt789 - anInt454 + drawDistance;
|
int i1 = class47.anInt789 - anInt454 + 25;
|
||||||
if (i1 < 0 || i1 > maxGrid) {
|
if (i1 < 0 || i1 > 50) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int l1 = class47.anInt787 - anInt453 + drawDistance;
|
int l1 = class47.anInt787 - anInt453 + 25;
|
||||||
if (l1 < 0) {
|
if (l1 < 0) {
|
||||||
l1 = 0;
|
l1 = 0;
|
||||||
}
|
}
|
||||||
int k2 = class47.anInt788 - anInt453 + drawDistance;
|
int k2 = class47.anInt788 - anInt453 + 25;
|
||||||
if (k2 > maxGrid) {
|
if (k2 > 50) {
|
||||||
k2 = maxGrid;
|
k2 = 50;
|
||||||
}
|
}
|
||||||
boolean flag1 = false;
|
boolean flag1 = false;
|
||||||
while (l1 <= k2) {
|
while (l1 <= k2) {
|
||||||
if (ClientSettings.ANDROID || aBooleanArrayArray492[l1++][i1]) {
|
if (aBooleanArrayArray492[l1++][i1]) {
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2220,27 +1771,27 @@ public final class WorldController {
|
|||||||
} else if (class47.anInt791 == 4) {
|
} else if (class47.anInt791 == 4) {
|
||||||
int j1 = class47.anInt796 - anInt456;
|
int j1 = class47.anInt796 - anInt456;
|
||||||
if (j1 > 128) {
|
if (j1 > 128) {
|
||||||
int i2 = class47.anInt789 - anInt454 + drawDistance;
|
int i2 = class47.anInt789 - anInt454 + 25;
|
||||||
if (i2 < 0) {
|
if (i2 < 0) {
|
||||||
i2 = 0;
|
i2 = 0;
|
||||||
}
|
}
|
||||||
int l2 = class47.anInt790 - anInt454 + drawDistance;
|
int l2 = class47.anInt790 - anInt454 + 25;
|
||||||
if (l2 > maxGrid) {
|
if (l2 > 50) {
|
||||||
l2 = maxGrid;
|
l2 = 50;
|
||||||
}
|
}
|
||||||
if (i2 <= l2) {
|
if (i2 <= l2) {
|
||||||
int i3 = class47.anInt787 - anInt453 + drawDistance;
|
int i3 = class47.anInt787 - anInt453 + 25;
|
||||||
if (i3 < 0) {
|
if (i3 < 0) {
|
||||||
i3 = 0;
|
i3 = 0;
|
||||||
}
|
}
|
||||||
int l3 = class47.anInt788 - anInt453 + drawDistance;
|
int l3 = class47.anInt788 - anInt453 + 25;
|
||||||
if (l3 > maxGrid) {
|
if (l3 > 50) {
|
||||||
l3 = maxGrid;
|
l3 = 50;
|
||||||
}
|
}
|
||||||
boolean flag2 = false;
|
boolean flag2 = false;
|
||||||
label0 : for (int i4 = i3; i4 <= l3; i4++) {
|
label0 : for (int i4 = i3; i4 <= l3; i4++) {
|
||||||
for (int j4 = i2; j4 <= l2; j4++) {
|
for (int j4 = i2; j4 <= l2; j4++) {
|
||||||
if (!ClientSettings.ANDROID && !aBooleanArrayArray492[i4][j4]) {
|
if (!aBooleanArrayArray492[i4][j4]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
flag2 = true;
|
flag2 = true;
|
||||||
@@ -2501,12 +2052,12 @@ public final class WorldController {
|
|||||||
private final int anInt437;
|
private final int anInt437;
|
||||||
private final int anInt438;
|
private final int anInt438;
|
||||||
private final int anInt439;
|
private final int anInt439;
|
||||||
public final int[][][] anIntArrayArrayArray440;
|
private final int[][][] anIntArrayArrayArray440;
|
||||||
public final Ground[][][] groundArray;
|
private final Ground[][][] groundArray;
|
||||||
public int anInt442;
|
private int anInt442;
|
||||||
private int obj5CacheCurrPos;
|
private int obj5CacheCurrPos;
|
||||||
private final Object5[] obj5Cache;
|
private final Object5[] obj5Cache;
|
||||||
public final int[][][] anIntArrayArrayArray445;
|
private final int[][][] anIntArrayArrayArray445;
|
||||||
private static int anInt446;
|
private static int anInt446;
|
||||||
private static int anInt447;
|
private static int anInt447;
|
||||||
private static int anInt448;
|
private static int anInt448;
|
||||||
@@ -2516,13 +2067,13 @@ public final class WorldController {
|
|||||||
private static int anInt452;
|
private static int anInt452;
|
||||||
private static int anInt453;
|
private static int anInt453;
|
||||||
private static int anInt454;
|
private static int anInt454;
|
||||||
public static int anInt455;
|
private static int anInt455;
|
||||||
public static int anInt456;
|
private static int anInt456;
|
||||||
public static int anInt457;
|
private static int anInt457;
|
||||||
public static int anInt458;
|
private static int anInt458;
|
||||||
public static int anInt459;
|
private static int anInt459;
|
||||||
public static int anInt460;
|
private static int anInt460;
|
||||||
public static int anInt461;
|
private static int anInt461;
|
||||||
private static Object5[] aClass28Array462 = new Object5[100];
|
private static Object5[] aClass28Array462 = new Object5[100];
|
||||||
private static final int[] anIntArray463 = {53, -53, -53, 53};
|
private static final int[] anIntArray463 = {53, -53, -53, 53};
|
||||||
private static final int[] anIntArray464 = {-53, -53, 53, 53};
|
private static final int[] anIntArray464 = {-53, -53, 53, 53};
|
||||||
@@ -2552,7 +2103,7 @@ public final class WorldController {
|
|||||||
private int anInt488;
|
private int anInt488;
|
||||||
private final int[][] anIntArrayArray489 = {new int[16], {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1}, {1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1}, {0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1}, {1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1}};
|
private final int[][] anIntArrayArray489 = {new int[16], {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1}, {1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1}, {0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1}, {1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1}};
|
||||||
private final int[][] anIntArrayArray490 = {{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, {12, 8, 4, 0, 13, 9, 5, 1, 14, 10, 6, 2, 15, 11, 7, 3}, {15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}, {3, 7, 11, 15, 2, 6, 10, 14, 1, 5, 9, 13, 0, 4, 8, 12}};
|
private final int[][] anIntArrayArray490 = {{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, {12, 8, 4, 0, 13, 9, 5, 1, 14, 10, 6, 2, 15, 11, 7, 3}, {15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}, {3, 7, 11, 15, 2, 6, 10, 14, 1, 5, 9, 13, 0, 4, 8, 12}};
|
||||||
private static boolean[][][][] aBooleanArrayArrayArrayArray491 = new boolean[8][32][256][256];
|
private static boolean[][][][] aBooleanArrayArrayArrayArray491 = new boolean[8][32][51][51];
|
||||||
private static boolean[][] aBooleanArrayArray492;
|
private static boolean[][] aBooleanArrayArray492;
|
||||||
private static int anInt493;
|
private static int anInt493;
|
||||||
private static int anInt494;
|
private static int anInt494;
|
||||||
@@ -6,5 +6,4 @@
|
|||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
settings.gradle
|
settings.gradle
|
||||||
*.iml
|
*.iml
|
||||||
server-1.0-jar-with-dependencies.jar
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# 2006Scape - Game Server
|
# 2006rebotted - Game Server
|
||||||
|
|
||||||
This is the Game Server component of our emulated Runescape environment.
|
This is the Game Server component of our emulated Runescape environment.
|
||||||
It's responsibility is to provide the instructions for the in-game world, its entities, and respond to player interactions.
|
It's responsibility is to provide the instructions for the in-game world, its entities, and respond to player interactions.
|
||||||
@@ -6,8 +6,10 @@ Contained within is an implementation of the Runescape network protocol roughly
|
|||||||
When run, this java application will listen on TCP port 43594.
|
When run, this java application will listen on TCP port 43594.
|
||||||
|
|
||||||
### Building the project
|
### Building the project
|
||||||
- `git clone https://github.com/2006-Scape/2006Scape`
|
- `git clone https://github.com/dginovker/2006rebotted`
|
||||||
- `cd 2006Scape/2006Scape\ Server/`
|
- `cd 2006rebotted/2006Redone\ Server/`
|
||||||
- `mvn package`
|
- `./gradlew build`
|
||||||
- `./runServer.sh`
|
- `java -jar ./build/libs/2006rebotted.jar`
|
||||||
|
- You will also have to place a copy of the `data` folder in the same location as the jar.
|
||||||
|
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 2341 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user