sageone Posted December 7, 2015 Share Posted December 7, 2015 g_dbMaxAliases 5When using !aliassearch <player> I get the error "aliassearch: Aliases database is not in use" Am I overlooking something in my config? Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted December 7, 2015 Management Share Posted December 7, 2015 Please check the log if it says anything about the aliases database during initialization. Quote Link to comment Share on other sites More sharing options...
Ray Posted December 9, 2015 Share Posted December 9, 2015 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 Quote Link to comment Share on other sites More sharing options...
Management TheSilencerPL Posted December 9, 2015 Management Share Posted December 9, 2015 The file where the aliases are stored is corrupted.The fastest and the only way to fix it is to delete the file and let the server create a new one from scratch. Ray 1 Quote Link to comment Share on other sites More sharing options...
Ray Posted December 10, 2015 Share Posted December 10, 2015 Fixed! Thanks for the help. Quote Link to comment Share on other sites More sharing options...
sageone Posted February 26, 2016 Author Share Posted February 26, 2016 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\*dbStarted 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 Quote Link to comment Share on other sites More sharing options...
sageone Posted February 26, 2016 Author Share Posted February 26, 2016 Never mind. Seems to be working now. Quote Link to comment Share on other sites More sharing options...
sageone Posted February 26, 2016 Author Share Posted February 26, 2016 no, actually alias related commands just tell me "aliases database is not in use". So yes, problem still exists. It is as if the alias option is not enabled. I am at a loss to understand why it won't work. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted February 26, 2016 Management Share Posted February 26, 2016 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 USEThis 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. Quote Link to comment Share on other sites More sharing options...
sageone Posted February 27, 2016 Author Share Posted February 27, 2016 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.