mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Make new contributors welcome (#11)
* @mediabi3 * Fix up for guide and making server run easier
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6536,7 +6536,7 @@ public class Game extends RSApplet {
|
||||
}
|
||||
catch(IOException _ex)
|
||||
{
|
||||
s = "connection problem";
|
||||
s = "Connection problem -- Make sure FileServer is running!!";
|
||||
expectedCRCs[8] = 0;
|
||||
}
|
||||
catch(Exception _ex)
|
||||
|
||||
@@ -3,6 +3,18 @@ import java.net.UnknownHostException;
|
||||
|
||||
public final class Main {
|
||||
|
||||
/*
|
||||
|
||||
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 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) {
|
||||
if (args.length > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user