The Soul
June 17th, 2010, 22:48
Frequently Asked Questions
Q = Question
A = Answer
Q: How to I start my own private server?
A: Follow this (Only the registered members can see the link.) tutorial.
Q: How do I port forward?
Follow the step in the How to Start a Server tutorial or go to Only the registered members can see the link.
Q: Where do I download Java?
A: Only the registered members can see the link. - it should be the first one listed.
Q: When I try to compile my Java files, the compiler prints ''javac' is not recognized as an internal or external command'. How do I fix this?
A: To fix this, you'll need to follow these steps:
Set your environmental variables. Environmental variables are what allows you to run your server with Java. We will firstly open 'My Computer' and click 'View System Information'. As you do this, a small applet displaying several tabs, and you will select the one that says 'Advanced' and at the bottom, click 'Environmental Variables'. Now what you're going to do, is go to your 'Path' and 'Classpath' variables and edit them.
In your Classpath variable, you're going to take everything currently inside it and edit it with your latest version of JDK, so right now it would be:
CLASSPATH=C:\Program Files\Java\jdk1.6.0_7\bin;%CLASSPATH%;
If a newer version of JDK comes out, change the '7' to the newest update.
After you have done the Classpath variable, you're going to find the Path variable and add the code below inside it.
C:\Program Files\Java\jdk1.6.0_7\bin;
The same goes for Path, if you download a newer version of JDK then you're going to change the '7' to your current JDK update. Once you've done that, you'll need to edit your compiler batch file code to the one below:
@echo off
"C:\Program Files\Java\jdk1.6.0_07\bin\javac.exe" *.java
pause
[color=green]You'll have to change the '7' once again to the JDK update you have downloaded.
Alternatively, you can use Lin's Environmental Variable Setter (Only the registered members can see the link.).
Q: Where can I find *name here*?
A: Use the search feature (Only the registered members can see the link.).
Only the registered members can see the link.
Q: How do I change my player rights?
A:
317 protocol: find your character folder, and where it says 'character-rights = x', change 'x' to the player rights you want to be.
508 protocol: in the login class, search:
if (p.username.equals("
above that, add:
if (p.username.equals("NAME")) {
p.rights = x;
}
change 'x' to the player rights.
Q: What are the most common player rights?
A:
0 - normal player
1 - moderator
2 - administrator
Q: I'm trying to add commands to my server, but I don't know where to add them. Where do they go?
A: customCommand() method. Search 'customCommand(String command)' and place your command under it.
Q: When I run my server it says 'ArrayIndexOutOfBoundsException'. How come?
A: This is most likely caused due to a configuration file. Always use tabs in configuration files, not spaces.
Q: How do I make certain buttons do things?
A: It's called an action button, and it's handled in the clicking most packet (packet 185). The case label is used as the button's ID, and the code under it will be used to determine what happens when the button is clicked.
Q: Where do I find a decent client to use?
A: Only the registered members can see the link.
Q: Where can I find a list of decent tutorials?
A: Only the registered members can see the link.
Q: When I run my server, the batch reads 'Error unable to startup listener on 43594 - port already in use?'. Why?
A: It's because there's another program occupying the port 43594 already. You need to terminate the connection.
Q = Question
A = Answer
Q: How to I start my own private server?
A: Follow this (Only the registered members can see the link.) tutorial.
Q: How do I port forward?
Follow the step in the How to Start a Server tutorial or go to Only the registered members can see the link.
Q: Where do I download Java?
A: Only the registered members can see the link. - it should be the first one listed.
Q: When I try to compile my Java files, the compiler prints ''javac' is not recognized as an internal or external command'. How do I fix this?
A: To fix this, you'll need to follow these steps:
Set your environmental variables. Environmental variables are what allows you to run your server with Java. We will firstly open 'My Computer' and click 'View System Information'. As you do this, a small applet displaying several tabs, and you will select the one that says 'Advanced' and at the bottom, click 'Environmental Variables'. Now what you're going to do, is go to your 'Path' and 'Classpath' variables and edit them.
In your Classpath variable, you're going to take everything currently inside it and edit it with your latest version of JDK, so right now it would be:
CLASSPATH=C:\Program Files\Java\jdk1.6.0_7\bin;%CLASSPATH%;
If a newer version of JDK comes out, change the '7' to the newest update.
After you have done the Classpath variable, you're going to find the Path variable and add the code below inside it.
C:\Program Files\Java\jdk1.6.0_7\bin;
The same goes for Path, if you download a newer version of JDK then you're going to change the '7' to your current JDK update. Once you've done that, you'll need to edit your compiler batch file code to the one below:
@echo off
"C:\Program Files\Java\jdk1.6.0_07\bin\javac.exe" *.java
pause
[color=green]You'll have to change the '7' once again to the JDK update you have downloaded.
Alternatively, you can use Lin's Environmental Variable Setter (Only the registered members can see the link.).
Q: Where can I find *name here*?
A: Use the search feature (Only the registered members can see the link.).
Only the registered members can see the link.
Q: How do I change my player rights?
A:
317 protocol: find your character folder, and where it says 'character-rights = x', change 'x' to the player rights you want to be.
508 protocol: in the login class, search:
if (p.username.equals("
above that, add:
if (p.username.equals("NAME")) {
p.rights = x;
}
change 'x' to the player rights.
Q: What are the most common player rights?
A:
0 - normal player
1 - moderator
2 - administrator
Q: I'm trying to add commands to my server, but I don't know where to add them. Where do they go?
A: customCommand() method. Search 'customCommand(String command)' and place your command under it.
Q: When I run my server it says 'ArrayIndexOutOfBoundsException'. How come?
A: This is most likely caused due to a configuration file. Always use tabs in configuration files, not spaces.
Q: How do I make certain buttons do things?
A: It's called an action button, and it's handled in the clicking most packet (packet 185). The case label is used as the button's ID, and the code under it will be used to determine what happens when the button is clicked.
Q: Where do I find a decent client to use?
A: Only the registered members can see the link.
Q: Where can I find a list of decent tutorials?
A: Only the registered members can see the link.
Q: When I run my server, the batch reads 'Error unable to startup listener on 43594 - port already in use?'. Why?
A: It's because there's another program occupying the port 43594 already. You need to terminate the connection.