Jump to content

XP do not save after server restart


SadNesS

Recommended Posts

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 from

Wiki:

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 saved

after a server restart. I've checked "database". I cannot find a file where XP

should 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

Link to comment
Share on other sites

  • Subscriber

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"
Link to comment
Share on other sites

  • Management

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.

Link to comment
Share on other sites

  • Management

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

Link to comment
Share on other sites

 

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!!

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...