Author Topic: Master Server down ,how do we stop character swiping?  (Read 327 times)

Legacy_IronRook

  • Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« on: July 03, 2011, 05:08:54 am »


                It seems people can use others characters...you guys have a script to check when players login?':sick:'
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« Reply #1 on: July 03, 2011, 05:32:00 am »


               Yes. You need to link playernames and cd keys, at a minimum. The simplest way to do this is flipping on a setting in your ini. That works fine, but it swells your ini up with all the cd key associations, making kind of a mess. The ini setting is in nwnplayer.ini under server options:
Master Server Authentication Required For Player Login=0
Account validation required during Master Server down times=0

Set MS Authentication to 0 if it isn't, and set account validation to 1, and save.

If you're comfortable with databases, I strongly recommend doing this validation yourself instead of turning on the ini setting, as you can control it much better, allowing multiple cd keys and the like.

For advanced coders, I suggest passwording based on NWNX-MySQL using its encryption capabilities. The problem with just linking accounts to cd keys is that dedicated theives can spoof the server into thinking they're using the proper key. This, however, is NOT all that common - your run-of-the-mill douchebag won't know how.

If you like, I can post some code by way of example, of either the custom cd key validation, or of passwording.

Funky
               
               

               


                     Modifié par FunkySwerve, 03 juillet 2011 - 04:34 .
                     
                  


            

Legacy_IronRook

  • Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« Reply #2 on: July 03, 2011, 03:34:58 pm »


               Thanks FunkySwerve  !

Im no good with database but if you were going to give an example of a script I could use to prevent

douchebags from joining the server to ruin things for players.I will try to hammer it into my

oncliententer script.Why dont we call the script      "_douchebag"  '^_^'
               
               

               


                     Modifié par IronRook, 03 juillet 2011 - 02:35 .
                     
                  


            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« Reply #3 on: July 03, 2011, 09:40:04 pm »


               In what way does setting account validation to true not allow multiple cd keys? Does that mean if it is set to 1, a player will only beable to play on the server with 1 cd key (presumably the first one they ever log in with)?
               
               

               
            

Legacy_IronRook

  • Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« Reply #4 on: July 03, 2011, 10:38:25 pm »


               I did the settings like you told me FunkySwerve but now cant login because password cant be verified.

What s the next step lol.
               
               

               
            

Legacy_HUNTER_of_Wisdom

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« Reply #5 on: July 14, 2012, 07:24:33 pm »


               Hi Guys.
Please Funk, post the exemples to this, I like this idea and I need this, if you have a little tutorial is better.

Thanks.

'<img'>
               
               

               


                     Modifié par HUNTER_of_Wisdom, 14 juillet 2012 - 06:25 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Master Server down ,how do we stop character swiping?
« Reply #6 on: July 14, 2012, 07:51:15 pm »


               Securing Your Server Without Master Server Authentication