Jump to content

sageone

Recommended Posts

I have the same problem..

This is from the log:

 1:25:13 *=====INITIALISING USER DATABASE
 1:25:13   * Opening user database file userdb.db.
 1:25:13   * Opening user database file userxdb.db.
 1:25:13   * User database files open. Caching database.
 1:25:13   516 players cached from the user database.
 1:25:13   7 records cached from the additional user info files.
 1:25:13   * Reading aliases database.
 1:25:13   Database file is corrupted and can not be used.
 1:25:13 *=====DATABASE READY FOR USE
Link to comment
Share on other sites

  • 2 months later...

Been away from the keyboard for sometime.  I did try your suggestion to delete the db files but no change in results ...

When using !aliassearch <player> I get the error "aliassearch: Aliases database is not in use"

 

server.cfg:

set g_dbDirectory "database"
g_dbMaxAliases 5
 
contents of database\:
-rw-rw-r-- 6398 mapvoteinfo.cfg
-rw-rw-r-- 5840 serverstat.cfg
-rwxr-xr-x 7418 shrubbot.cfg
-rw-r--r-- 324 userdb.db
-rw-r--r-- 20 userxdb.db

 

I deleted database\*db

Started server and joined (logs)

 

*=====INITIALISING USER DATABASE
* Opening user database file userdb.db.
* Opening user database file userxdb.db.
*=====DATABASE READY FOR USE
 
re-started server and re-joined
 
*=====INITIALISING USER DATABASE
* Opening user database file userdb.db.
* Opening user database file userxdb.db.
* User database files open. Caching database.
1 players cached from the user database.
No additional user records in the user database.
*=====DATABASE READY FOR USE
Link to comment
Share on other sites

  • Management

Re-check the g_dbMaxAliases with rcon while the server is running. However, it is possible it is set, but still not active, if the order of executing the commands in the startup cfg is wrong.

 

*=====INITIALISING USER DATABASE
* Opening user database file userdb.db.
* Opening user database file userxdb.db.
*=====DATABASE READY FOR USE

This looks like it isn't even trying to initialize it. That suggests the g_dbMaxAliases is not set or gets cleared before the mod launches. In all error cases it would print some error message. The g_dbMaxAliases can be only set at startup, that means it must have a positive value before the very first map command is executed in the configs. Or you can set it on the command line too. The server has to be fully restarted for the value change to take effect.

Link to comment
Share on other sites

Amazing.  I must have looked at my cfg 100s of times and never noticed the missing "set ...." portion of the cvar setting.  Not until I took your suggestion to validate the cvar with rcon (something I never thought of trying yet).  Once I put "set" in front of g_dbMaxAliases, things began working.  I knew it was something simple.  I hope this thread helps others from losing hair :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...