Someone released one months ago, but other than that idk.
|
Someone released one months ago, but other than that idk.
It depends on how much interaction you want between the servers. If they're two entirely separate entities, you don't need any connective measures. Or, if you want all the saved games to be shared, only allow players to be logged in to one server at a time, etc., you'll only need to share saved data. You should be able to simple point the two servers' to the same directory for saved game storage. Then, you could probably just add a field to the save data stating whether the player is logged in or not. Assuming you mean a an actual (separate) server by "login server", it's definitely overkill.
I mean what I think you're trying to explain in the second portion of your explanation. I just want it to be so that a player can only log onto one of the worlds at a time and they will load from the same character file, no matter whether they are on world 1 or world too. All help is still appreciated!
Cheap hack is just just place your characters folder in you C:\ drive or somthing and make the servers load the character files from there. But the servers need to be on the same computer. Ive done it before. Pretty shitty tho.
Copy your characters folder, then go to your C: drive. Click users, your username. Paste it in there. Then open up client.java and go CTRL+F Characters. You should see something like this.
Make it look like this.Code:characterfile = new BufferedReader(new FileReader("./characters/"
Then copy+paste your source and just put it wherever you have the original, do the client.java thing for that one. Then go to server.java. Change your port to 8080 (or 43595, your choice). Then save, compile. Go to your router, port forward the new port. Run them both, and you got two worlds.Code:characterfile = new BufferedReader(new FileReader("C:/users/your username/characters/"
Last edited by xSelseor; 11-04-2009 at 03:59 AM. Reason: added more info
That's not a 'cheap hack' moron. Thats moving a file
And yeah you guys, you could do that, but that be SO easy to dupe on.
You could get tons of items on one world, log onto the other world, log out on the first world, then trade your items to someone one, log out then in, and ta da, you have 2x the items.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |