forked from 2009Scape/Server
Add artifacts & metas
This commit is contained in:
parent
cd54b1533e
commit
7ea58f6805
31 changed files with 64 additions and 22 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package org.runite;
|
||||
|
||||
import org.crandor.game.node.entity.player.link.ConfigurationManager;
|
||||
import org.crandor.net.packet.out.Config;
|
||||
import org.runite.jagex.GameShell;
|
||||
|
||||
/**
|
||||
|
|
@ -18,13 +20,20 @@ public class Client {
|
|||
/**
|
||||
* The game settings.
|
||||
*/
|
||||
public static GameSetting SETTINGS = new GameSetting("2009Scape", "34.74.91.45", 1, "live", false, false);
|
||||
public static GameSetting SETTINGS = new GameSetting("2009Scape", "34.68.75.237", 1, "live", false, false);
|
||||
|
||||
/**
|
||||
* The main method.
|
||||
* @param args the arguments casted on runtime.
|
||||
r @param args the arguments casted on runtime.
|
||||
r_game
|
||||
|
||||
*/
|
||||
public static void main(String[]args) {
|
||||
System.out.println("Running liveserver client");
|
||||
Configurations.LOCAL_SERVER = false;
|
||||
Configurations.LOCAL_MS = false;
|
||||
Configurations.MS_IP = Configurations.LOCAL_MS ? "127.0.0.1" : "34.68.75.237"; //Needs to be done because of order it's otherwise set
|
||||
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
String[] cmd = args[i].split("=");
|
||||
switch (cmd[0]) {
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ public final class Configurations {
|
|||
/**
|
||||
* If the client is local.
|
||||
*/
|
||||
public static final boolean LOCAL_MS = true;
|
||||
public static final boolean LOCAL_SERVER = true;
|
||||
public static boolean LOCAL_MS = true;
|
||||
public static boolean LOCAL_SERVER = true;
|
||||
|
||||
/**
|
||||
* Packaging.
|
||||
|
|
@ -63,8 +63,8 @@ public final class Configurations {
|
|||
/**
|
||||
* The MS IP.
|
||||
*/
|
||||
public static final String MS_IP = (Configurations.LOCAL_MS ? "127.0.0.1" : "frostblades.org");
|
||||
|
||||
public static String MS_IP = Configurations.LOCAL_MS ? "127.0.0.1" : "34.68.75.237";
|
||||
|
||||
/**
|
||||
* The operation system name.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -12,7 +12,12 @@ public class GameLaunch {
|
|||
/**
|
||||
* The game settings.
|
||||
*/
|
||||
public static GameSetting SETTINGS = new GameSetting("2009Scape", Configurations.LOCAL_SERVER ? "127.0.0.1" : "frostblades.org", 1, "live", false, false);
|
||||
/*
|
||||
|
||||
NOTICE: IF YOU'RE A DEVELOPER, THE EASIEST WAY TO CONNECT TO THE LIVESERVER IS WITH CLIENT.JAVA. THIS CLASS IS FOR LOCAL SERVER CONNECTING!
|
||||
|
||||
*/
|
||||
public static GameSetting SETTINGS = new GameSetting("2009Scape", Configurations.LOCAL_SERVER ? "127.0.0.1" : "34.68.75.237"/*"34.68.75.237"*/, 1, "live", false, false);
|
||||
|
||||
/**
|
||||
* The main method.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.Client
|
||||
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
|
|
@ -161,7 +161,7 @@ final class Class121 {
|
|||
}
|
||||
|
||||
var2 = Class3_Sub15.aClass89_2429.readByte(var0 ^ 29984);
|
||||
System.out.println(var2);
|
||||
//System.out.println(var2); //Not sure what this was debugging
|
||||
if(WorldListEntry.aClass155_2627 != null) {
|
||||
WorldListEntry.aClass155_2627.method2159(55);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ static RSString aClass94_3282 = aClass94_3286;
|
|||
} else {
|
||||
RSByteBuffer buffer = new RSByteBuffer(buf);
|
||||
int opcode = buffer.getByte((byte)-67);
|
||||
System.out.println(opcode);
|
||||
//System.out.println(opcode);
|
||||
if(1 != opcode) {
|
||||
return false;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ final class Class53 {
|
|||
var5.activity = buffer.getGJString2(98);
|
||||
var5.address = buffer.getGJString2(79);
|
||||
GameLaunch.SETTINGS.setWorld(worldId);
|
||||
System.out.println(GameLaunch.SETTINGS.getWorld());
|
||||
//System.out.println(GameLaunch.SETTINGS.getWorld());
|
||||
}
|
||||
Class3_Sub28_Sub7.updateStamp = buffer.getInt();
|
||||
Class30.loadedWorldList = true;
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ public final class Client extends GameShell {
|
|||
Class3_Sub28_Sub19.anInt3773 = 40000 + ObjectDefinition.worldId;
|
||||
} else if(Class44.anInt718 == 2) {
|
||||
RuntimeException_Sub1.worldListHost = "127.0.0.1";
|
||||
System.out.println("port = " + Class53.anInt867);
|
||||
System.out.println("Setting worldListHost to 127.0.0.1, port = " + Class53.anInt867);
|
||||
Class53.anInt867 = ObjectDefinition.worldId + '\uc350';
|
||||
Class3_Sub28_Sub19.anInt3773 = ObjectDefinition.worldId + '\u9c40';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ public class ClientLoader extends Applet {
|
|||
public void launch() {
|
||||
try {
|
||||
ClientLoader.world = "" + GameLaunch.SETTINGS.getWorld();
|
||||
System.out.println(GameLaunch.SETTINGS.getWorld());
|
||||
//System.out.println(GameLaunch.SETTINGS.getWorld());
|
||||
this.frame = new JFrame(GameLaunch.SETTINGS.getName());
|
||||
this.frame.setLayout(new BorderLayout());
|
||||
this.frame.setBackground(Color.BLACK);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
|||
/**
|
||||
* The game settings.
|
||||
*/
|
||||
public static GameSetting SETTINGS = new GameSetting(GameLaunch.SETTINGS.getName(), Configurations.LOCAL_MS ? "127.0.0.1" : "frostblades.org", 1, "live", false, false);
|
||||
public static GameSetting SETTINGS = new GameSetting(GameLaunch.SETTINGS.getName(), Configurations.LOCAL_MS ? "127.0.0.1" : "34.68.75.237"/*"34.68.75.237"*/, 1, "live", false, false);
|
||||
|
||||
|
||||
private boolean aBoolean1 = false;
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ public class Signlink implements Runnable {
|
|||
}
|
||||
|
||||
public final Class64 method1441(byte var1, String address, int port) {
|
||||
//System.out.println("var1: " + var1 + ", add: " + address + ":" + port);
|
||||
return var1 != 8?null:this.method1435(1, 0, address, port, -17);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.Client
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.Client
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,3 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.Client
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.Client
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
3
Server/src/META-INF/MANIFEST.MF
Normal file
3
Server/src/META-INF/MANIFEST.MF
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.Client
|
||||
|
||||
3
Server/src/METAs/META-INF/MANIFEST.MF
Normal file
3
Server/src/METAs/META-INF/MANIFEST.MF
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: org.runite.GameLaunch
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue