ok, I hope you are using windows. I do not know if this works the same on linux or not. Mainly because I do not know if the folder names in the server directory are all lower case or not. In Windows the names of the folders in the server vault folder are the player account names. All you need to do is use the names from the folders to pre-populate your DB with the allowable case of the player name.
To do that. open a new test file and paste the following into it.
echo>"popdb.nss" const string DB_NAME = "Enter DB name";
echo>>"popdb.nss" void SetAccCase(string sAccName);
echo>>"popdb.nss" void main()
echo>>"popdb.nss" {
For /D %%A in (*.*) do echo>>"popdb.nss" SetAccCase("%%A");
echo>>"popdb.nss" }
echo>>"popdb.nss" void SetAccCase(string sAccName)
echo>>"popdb.nss" {
echo>>"popdb.nss" SetCampaignString(DB_NAME,GetStringLowerCase(sAccName),sAccName);
echo>>"popdb.nss" }
Save it as AnyFileName.bat in your server vault.
double-click the newly created .bat file to run it.
once it is finished running you will have a file named popdb.nss in your server vault.
Compile it and run it.
Your choice of method for compiling and importing it into a mod for running.
I myself would just use the compiler from the utils folder and place the .ncs into the override folder then Start any game as a DM and run it from the command line.
AnyWay that will populate the DB so that the Previous code will work for old accounts.
EDIT: Make sure you edit the value of DB_NAME to match your data base name.
Modifié par Lightfoot8, 06 septembre 2012 - 03:36 .