Thread: Server Help

Results 1 to 5 of 5
  1. #1 Server Help 
    Registered Member de Lirim's Avatar
    Join Date
    Dec 2016
    Posts
    98
    Thanks given
    2
    Thanks received
    18
    Rep Power
    14
    Basically when I try to run the server I get this error:

    Code:
    [01/01/2017 03:02 AM]: Failed to initialize a world.
    [01/01/2017 03:02 AM]: Exception in thread "Thread-2" 
    [01/01/2017 03:02 AM]: java.lang.ExceptionInInitializerError
    [01/01/2017 03:02 AM]: 	at panel.ServerPanel.run(ServerPanel.java:282)
    [01/01/2017 03:02 AM]: 	at java.lang.Thread.run(Unknown Source)
    [01/01/2017 03:02 AM]: Caused by: java.lang.NegativeArraySizeException
    [01/01/2017 03:02 AM]: 	at epicurus.model.players.PlayerHandler.<init>(PlayerHandler.java:29)
    [01/01/2017 03:02 AM]: 	at epicurus.model.players.PlayerHandler.<clinit>(PlayerHandler.java:19)
    [01/01/2017 03:02 AM]: 	... 2 more
    Config.java

    Code:
    public static int ACCEPTED_CLIENT_VERSION = -1;
    	public static int SERVER_PORT = -1;
    	public static int MAX_PLAYERS = -1;
    	public static int CONNECTION_DELAY = -1;
    	public static int IPS_ALLOWED = -1;
    and when I change the Config.java to this

    Code:
    public static int ACCEPTED_CLIENT_VERSION = 1;
    	public static int SERVER_PORT = 5555;
    	public static int MAX_PLAYERS = 2000;
    	public static int CONNECTION_DELAY = 1;
    	public static int IPS_ALLOWED = 2;
    it shoots me this:

    Code:
    [01/01/2017 03:04 AM]: Failed to initialize a world.
    Base is Epicurus from Jayden.
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member CapitalCoding's Avatar
    Join Date
    Jul 2011
    Posts
    193
    Thanks given
    30
    Thanks received
    25
    Rep Power
    13
    Show me your Main method and your game processor after initialize

    Quote Originally Posted by de Lirim View Post
    Basically when I try to run the server I get this error:

    Code:
    [01/01/2017 03:02 AM]: Failed to initialize a world.
    [01/01/2017 03:02 AM]: Exception in thread "Thread-2" 
    [01/01/2017 03:02 AM]: java.lang.ExceptionInInitializerError
    [01/01/2017 03:02 AM]: 	at panel.ServerPanel.run(ServerPanel.java:282)
    [01/01/2017 03:02 AM]: 	at java.lang.Thread.run(Unknown Source)
    [01/01/2017 03:02 AM]: Caused by: java.lang.NegativeArraySizeException
    [01/01/2017 03:02 AM]: 	at epicurus.model.players.PlayerHandler.<init>(PlayerHandler.java:29)
    [01/01/2017 03:02 AM]: 	at epicurus.model.players.PlayerHandler.<clinit>(PlayerHandler.java:19)
    [01/01/2017 03:02 AM]: 	... 2 more
    Config.java

    Code:
    public static int ACCEPTED_CLIENT_VERSION = -1;
    	public static int SERVER_PORT = -1;
    	public static int MAX_PLAYERS = -1;
    	public static int CONNECTION_DELAY = -1;
    	public static int IPS_ALLOWED = -1;
    and when I change the Config.java to this

    Code:
    public static int ACCEPTED_CLIENT_VERSION = 1;
    	public static int SERVER_PORT = 5555;
    	public static int MAX_PLAYERS = 2000;
    	public static int CONNECTION_DELAY = 1;
    	public static int IPS_ALLOWED = 2;
    it shoots me this:

    Code:
    [01/01/2017 03:04 AM]: Failed to initialize a world.
    Base is Epicurus from Jayden.
    Show me your Main method and your game processor after initialize
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member de Lirim's Avatar
    Join Date
    Dec 2016
    Posts
    98
    Thanks given
    2
    Thanks received
    18
    Rep Power
    14
    Bump

    Code:
    public static void main(String args[]) {
            ServerPanel.getServerPanel().setVisible(true);
            System.setOut(new Logger(System.out));
            System.setErr(new Logger(System.err));
     
            if (args.length > 0) {
                if (args[0] != null && args[0].length() > 0) {
                    Config.DEVELOP_MODE = Boolean.parseBoolean(args[0]);
                }
            }
     
            if (args.length > 1) {
                if (args[1] != null && args[1].length() > 0) {
                    int worldId = Integer.parseInt(args[1]);
                    for (Worlds world : Worlds.values()) {
                        if (world.getId() == worldId) {
                            Epicurus.world = world;
                            break;
     
                        }
                    }
                }
            }
     
            if (world.getId() == -1) {
                ServerPanel.getServerPanel().setTitle("Failed to start.");
                System.out.println("Failed to initialize a world.");
                shutdown = true;
                return;
            }
     
            if (!Config.LOAD_CONFIG()) {
                ServerPanel.getServerPanel().setTitle("Failed to start.");
                System.out.println("Error loading critical Config.");
                shutdown = true;
                return;
            }
    Attached image
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Seems like this is being trigged:
    Code:
            if (world.getId() == -1) {
                ServerPanel.getServerPanel().setTitle("Failed to start.");
                System.out.println("Failed to initialize a world.");
                shutdown = true;
                return;
            }
    To fix try and make it set a world.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    Registered Member de Lirim's Avatar
    Join Date
    Dec 2016
    Posts
    98
    Thanks given
    2
    Thanks received
    18
    Rep Power
    14
    Quote Originally Posted by arch337 View Post
    Seems like this is being trigged:
    Code:
            if (world.getId() == -1) {
                ServerPanel.getServerPanel().setTitle("Failed to start.");
                System.out.println("Failed to initialize a world.");
                shutdown = true;
                return;
            }
    To fix try and make it set a world.
    Well, If I knew how to do that hahaha
    Attached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. just a little server help
    By isaiahz9 in forum RS2 Server
    Replies: 0
    Last Post: 07-07-2008, 10:34 AM
  2. My Server Help?
    By Pure Jukes in forum RS2 Server
    Replies: 0
    Last Post: 07-03-2008, 11:17 PM
  3. Replies: 3
    Last Post: 03-25-2008, 04:38 PM
  4. New to Servers, help!
    By pur3 0wns79 in forum Downloads
    Replies: 2
    Last Post: 12-28-2007, 08:29 PM
  5. need some dedicated server help plz!
    By Stylish in forum RS2 Server
    Replies: 9
    Last Post: 11-25-2007, 06:47 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •