|
Basically when I try to run the server I get this error:
Config.javaCode:[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
and when I change the Config.java to thisCode: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;
it shoots me 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;
Base is Epicurus from Jayden.Code:[01/01/2017 03:04 AM]: Failed to initialize a world.
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; }
Seems like this is being trigged:
To fix try and make it set a world.Code:if (world.getId() == -1) { ServerPanel.getServerPanel().setTitle("Failed to start."); System.out.println("Failed to initialize a world."); shutdown = true; return; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |