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 .