Difficulty 3/10 Beginners/.5/10 Advanced
Tested Source/ANYTHING with server.java
Knowledge: How to make another port exception/How to Change A Port and add a Port. How to add things into your c drive
First make 2 copies of your server
Select one of them and go to server.java
Search for
Code:
43594
You should see
Code:
public static int serverlistenerPort = 43594; // 43594=default
So you change the first 43594 to 43595 (Which Is mine but you can use something like 1337)
Ok Now your done with server.java
*Note you may also have a server configuration file. Change that to your new port to.*
Now open up client.java And search for
Code:
/characters/
You should see something like this
Code:
try {
characterfile = new BufferedReader(new FileReader("./characters/"
+ playerName + ".txt"));
charFileFound = true;
} catch (FileNotFoundException fileex1) {
}
if (charFileFound == false) {
misc.println(playerName + ": character file not found.");
return 0;
}
Change the
Code:
/characters/
to
Code:
c:/characters/
now search for
Code:
/characters/
again
NOTE YOU MUST EDIT CLIENT.JAVA IN BOTH! not server BUT CLIENT.JAVA YOU MUST DO THOSE THINGS IN BOTH SERVER FOLDERS
And do the same thing as above.
Save and compile. If you get any errors it means YOU did something wrong.
Next Go to your firewall which is usually windows. Remember making that port? Well now you should make another one called 43595 or whatever you changed your port in server.java to. Apply and exit
We're just about done. Now all you do is take your character folder Copy it from your server folder and paste it into your c: drive.
And then your outcome should be..
*Note I made a new account just to show it saves
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
Sorry if i says vid not found I'll try uploading on more sites
As you can see servers now both share the same character files
SO TO ALL YOU FLAMERS SAYING THIS IS THE WORST TUTORIAL YET!
I say nay!
I hope you all enjoy having 2 worlds for your server. So now everyone's happy.
Remember you can also make like 300 worlds if you wanted to. You would just make more ports and do the same thing as above.
I be hopzin u like my tutorial. Or this is me ------> D: