In the `variables` table is an override called "minlockedstatus", which by default is set to 100. If you set Locked=true in your LoginServer.ini, players cannot enter your Locked server unless their status is at least "minlockedstatus".
I noticed while running a locked Dev server that new characters created with a status of 0 were (of course) not being allowed into the locked server. So, to give the appearance I was LOCKED, but still allow me to create new toons, I set my minlockedstatus to 0, so new chars could get in.
A bug found in the "status > 0" check prevented me from overriding this status. Here's a simple fix to get locked status to allow admin_status=0 through.
Code: Select all
Index: LoginServer.cpp
===================================================================
--- LoginServer.cpp (revision 99)
+++ LoginServer.cpp (working copy)
@@ -294,7 +294,7 @@
if( var != NULL )
{
int status = atoi ( var->GetValue ( ) );
- if(status > 0)
+ if(status >= 0)
minLockedStatus = status;
}You may not have intended for status=0 players into a locked server, but I think this is a good option to show a server as LOCKED but still allow new characters to be created. For me, my Dev server is locked - but if you make a char there, expect it to be deleted, etc...
Setting minlockedstatus > 0 in the variables table will prevent new chars from entering that server until the admin bumps their characters.admin_status field to match.
Edit: Sorry I just woke up and wasn't super clear what the bug was in the first place.