Thread: How to make a login server?

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 How to make a login server? 
    Registered Member
    Join Date
    Sep 2009
    Posts
    89
    Thanks given
    0
    Thanks received
    7
    Rep Power
    71
    Hey guys, Me again. I was trying to find out how to make two worlds, and Warlock999 was nice enough to tell me that I needed to make a login server. Only thing is, I don't know how, any help is greatly appreciated, thanks!

    --PvPRemix
    Did you know?
    - We need "did you know" facts


    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2008
    Posts
    823
    Thanks given
    16
    Thanks received
    31
    Rep Power
    0
    Someone released one months ago, but other than that idk.
    Reply With Quote  
     

  3. #3  
    Renown Programmer

    Join Date
    Dec 2008
    Posts
    363
    Thanks given
    1
    Thanks received
    28
    Rep Power
    99
    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.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2009
    Posts
    89
    Thanks given
    0
    Thanks received
    7
    Rep Power
    71
    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!
    Did you know?
    - We need "did you know" facts


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2008
    Posts
    918
    Thanks given
    1
    Thanks received
    12
    Rep Power
    34
    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.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2009
    Posts
    89
    Thanks given
    0
    Thanks received
    7
    Rep Power
    71
    You wouldn't have 2 worlds then because both would be same IP.
    Did you know?
    - We need "did you know" facts


    Reply With Quote  
     

  7. #7  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,146
    Thanks given
    256
    Thanks received
    1,252
    Rep Power
    3714
    This is what I need for my 562.



    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2009
    Posts
    89
    Thanks given
    0
    Thanks received
    7
    Rep Power
    71
    Well I would still greatly appreciate if anyone could help 'Mystic Flow and myself out here.
    Did you know?
    - We need "did you know" facts


    Reply With Quote  
     

  9. #9  
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    Quote Originally Posted by simfly View Post
    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.
    Code:
    characterfile = new BufferedReader(new FileReader("./characters/"
    Make it look like this.

    Code:
    characterfile = new BufferedReader(new FileReader("C:/users/your username/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.
    Last edited by xSelseor; 11-04-2009 at 03:59 AM. Reason: added more info
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    May 2008
    Posts
    823
    Thanks given
    16
    Thanks received
    31
    Rep Power
    0
    Quote Originally Posted by simfly View Post
    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.
    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.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •