Master Server down ,how do we stop character swiping?
Débuté par
IronRook
, juil. 03 2011 04:08
#1
Posté 03 juillet 2011 - 04:08
It seems people can use others characters...you guys have a script to check when players login?
#2
Posté 03 juillet 2011 - 04:32
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
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 .
#3
Posté 03 juillet 2011 - 02:34
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"
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 .
#4
Posté 03 juillet 2011 - 08:40
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)?
#5
Posté 03 juillet 2011 - 09:38
I did the settings like you told me FunkySwerve but now cant login because password cant be verified.
What s the next step lol.
What s the next step lol.
#6
Posté 14 juillet 2012 - 06:24
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.
Please Funk, post the exemples to this, I like this idea and I need this, if you have a little tutorial is better.
Thanks.
Modifié par HUNTER_of_Wisdom, 14 juillet 2012 - 06:25 .
#7
Posté 14 juillet 2012 - 06:51





Retour en haut






