Tosa_Inu Posted October 22, 2010 Share Posted October 22, 2010 Hi, I want xp save for atleast 1 year.I don't know annymore how to do this.I tryed many time to change someting, but every day the xp is gone. Current settings: set g_XPSave 4set g_XPSaveFile "xpsave.cfg"set g_XPSaveMaxAge_xp 86400set g_XPSaveMaxAge 604800set g_XPDecay 0set g_XPDecayRate 0.0set g_XPDecayFloor 0.0set g_maxXP -1set g_damageXP 0set g_damageXPLevel 50 Quote Link to comment Share on other sites More sharing options...
Management TheSilencerPL Posted October 22, 2010 Management Share Posted October 22, 2010 Hehe, wait for the 0.2.0 release You will have that with "one click" Regarding specific configuration of xp save before 0.2.0 is available I believe @hellreturn or @gaoesa can be best to ask. So guys, any help from you? Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 22, 2010 Management Share Posted October 22, 2010 The g_XPSaveMaxAge_xp and g_XPSaveMaxAge take number of seconds by default. http://mygamingtalk.com/silent/manual/#g_XPSaveMaxAge_xp You have the setting g_XPSaveMaxAge_xp set to 86400 which is 24 hours. You can also use several modfiers with the value. So setting the xp save to one year:set g_XPSaveMaxAge_xp "365d"set g_XPSaveMaxAge "365d" The settings overlap a little, the other one is used to only reset XP, the other one resets XP and rankings. The value that is smaller is used for the XP. Sorry about putting you to read the manual that is for the 0.2.0 and is not finished yet. I don't know where the 0.1.4 manual is. But regarding this setting, it is the same. Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted October 22, 2010 Management Share Posted October 22, 2010 Wait for 0.2 as Silencer and Gao mentioned I will be little free in weekend and i will re update your server. Quote Link to comment Share on other sites More sharing options...
Mardok Posted October 31, 2010 Share Posted October 31, 2010 (edited) Hi I was try set Xp save, but that is dont wanna work set g_XPSave 23set g_XPSaveMaxAge_xp 1oset g_XPSaveMaxAge 1oset g_XPDecay 0set g_XPDecayRate 0.0set g_XPDecayFloor 0.0set g_maxXP -1set g_damageXP 0set g_damageXPLevel 50 When server go restart, all xp is lost, and the same whit admins levels, What I need set more ? Edited October 31, 2010 by Mardok Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 31, 2010 Management Share Posted October 31, 2010 What is the g_dbUserMaxAge setting you have in use? If you set that one to small but not to 0, it will erase the users from the db after each map. Also, check from the logs that the user database is in use. Maybe it is failing to create one because of privileges issue. Please post the lines you have on map init regarding the database. There should be 4 lines that will tell what is the status of the database. Quote Link to comment Share on other sites More sharing options...
Mardok Posted October 31, 2010 Share Posted October 31, 2010 set g_dbUserMaxAge 2o Yes there is something wrong Start of warmup. readconfig: loaded 16 levels, 0 bans, 0 commands and 0 warningsGametype changed, clearing session data.serverstats: loaded 0 mapstats*=====INITIALISING USER DATABASE Existing database file is for wrong server version or corrupted.*=====DATABASE IS NOT IN USEEnable spawning!Disable spawning!0 teams with 0 entities Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 31, 2010 Management Share Posted October 31, 2010 Yes, after "Existing database file is for wrong server version or corrupted." the mod will not try to overwrite the existing file because it can't be sure what file it is. I didn't want to make it destroy any files admins may think are valuable. The solution to this is to delete or rename that file so the mod can create a new one. The question still remains, why the file is not correct. If you like, I can take a look at whats inside it, but if you do give me the file and there's users in it, I suggest giving it to me secretly since there are the user guids. If it is just a new/empty file, then deleting it should be enough. Just to make sure, the userdb.db is a binary file and it is nothing like any other user files that other mods use. So copying any data to it by hand is very difficult and care must be taken to edit all the correct places. Quote Link to comment Share on other sites More sharing options...
Mardok Posted October 31, 2010 Share Posted October 31, 2010 OK now userdb work, levels admins is saving, but xpsave no work, xp dont wanna save Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 31, 2010 Management Share Posted October 31, 2010 I don't see anything wrong with the settings. I use g_xpsave 9 on my server. The warning in the documentation of the flag 8 seems a bit outdated. The XP will not get lost if the client downloads new pk3s. I'll test is there some combination that causes a bug to happen with g_xpsave 23. I don't think there is, but I'll make sure. Quote Link to comment Share on other sites More sharing options...
Mardok Posted October 31, 2010 Share Posted October 31, 2010 Server is one time reset for daySo I dont wanna lost anything Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 31, 2010 Management Share Posted October 31, 2010 Can you rephrase? I didn't understand. Quote Link to comment Share on other sites More sharing options...
Mardok Posted October 31, 2010 Share Posted October 31, 2010 once time in night server have automaticly restartnightly server performs a reboot, Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 31, 2010 Management Share Posted October 31, 2010 I have daily automatic reboot also. The XP data is safe and will not get destroyed by the reboot. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted October 31, 2010 Management Share Posted October 31, 2010 Which reminds me that including the shutdown option into the mod would be far better the cron tasks. It would make sure the reboot is done safely that way and the logs would have good data, for the statistics parsers of course. We will look into making it a mod feature. hellreturn 1 Quote Link to comment Share on other sites More sharing options...
Tosa_Inu Posted November 1, 2010 Author Share Posted November 1, 2010 Wait for 0.2 as Silencer and Gao mentioned I will be little free in weekend and i will re update your server. you must have forgotten me Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted November 1, 2010 Management Share Posted November 1, 2010 you must have forgotten me Sorry, I have 2 interviews back to back! I will get your server fixed asap. 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.