SadNesS Posted June 23, 2016 Share Posted June 23, 2016 Hi! I am working actually some hours to get XP saved after a server restart.XP will be saved if i do NOT restart the server. I tried following cvars fromWiki: set g_XPSave 21 set g_dbUserMaxAge "365d" set g_XPSaveMaxAge_xp "365d" set g_XPSaveMaxAge "365d" That settings do not works. Then i tried this: set g_XPSave 23 set g_dbUserMaxAge "365d" set g_XPSaveMaxAge_xp "365d" set g_XPSaveMaxAge "365d" set g_XPSaveMinXP "-1" set g_maxXP "-1" Same here, same problem. I do not get a error message in console or smth else. Admin lvl's will be savedafter a server restart. I've checked "database". I cannot find a file where XPshould be saved. And there is a .cfg calls userxdb.db wich is empty. Is that file relevant for getting XPSave working? I hope you could help me because i do not know what i could do more... Thanks Quote Link to comment Share on other sites More sharing options...
Subscriber JohnDory Posted June 23, 2016 Subscriber Share Posted June 23, 2016 this is mine, try it and see if it works, if it does edit it to suit your needs. // XP Save configuration set g_XPSave 31 //changed from 21 set g_XPSaveMaxAge_xp "5d" //changed from "30d" set g_damageXP "0" //changed from "1" set g_damageXPLevel "50" set g_maxXP -1 //changed from "90000" set g_xpdecay "0" set g_xpdecayrate "0" set g_xpdecayfloor "0" //changed from "1" SadNesS 1 Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted June 23, 2016 Management Share Posted June 23, 2016 Make sure on your startup you do not have any map commands before you have set up the cvars to correct values. This is a common issue with wrongly formed startup. The g_XPSave is 0 when the mod is started by the map command and the setting is set after. SadNesS 1 Quote Link to comment Share on other sites More sharing options...
SadNesS Posted June 24, 2016 Author Share Posted June 24, 2016 Thanks for your answer gaoesa! But i think i do not understand you. You mean something like that: set d1 "set g_gametype 2 ; map goldrush ; set nextmap vstr d2" Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted June 24, 2016 Management Share Posted June 24, 2016 Yes. The map command on that line makes the engine start the silEnT mod. You should have your XP save cvars set before the first time the map comand is executed by the engine. The mod will otherwise delete old stored XP on initialization. In otherwords, if you have for example "exec silent.cfg" after "exec mapcycle.cfg" you should reverse the order of the exec commands on the command line. This describes most of the common issues:http://mygamingtalk.com/wiki/Silent_Mod_Installation SadNesS 1 Quote Link to comment Share on other sites More sharing options...
SadNesS Posted June 24, 2016 Author Share Posted June 24, 2016 this is mine, try it and see if it works, if it does edit it to suit your needs. // XP Save configuration set g_XPSave 31 //changed from 21 set g_XPSaveMaxAge_xp "5d" //changed from "30d" set g_damageXP "0" //changed from "1" set g_damageXPLevel "50" set g_maxXP -1 //changed from "90000" set g_xpdecay "0" set g_xpdecayrate "0" set g_xpdecayfloor "0" //changed from "1" Thank you, that works!! And thanks gaoesa!! 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.