Jump to content

XP resets after server restart


kajto3

Recommended Posts

Hello

my problem is, XP resets for all players after server restart. My settings are fine:

 

server.cfg

set g_XPSave 21
set g_XPSaveFile "xpsave.cfg"
set g_XPSaveMaxAge_xp 48o
set g_XPSaveMaxAge 48o
set g_XPDecay 0
set g_XPDecayRate 0.0
set g_XPDecayFloor 0.0
set g_maxXP -1
set g_dbUserMaxAge 48o

When I check them with rcon on server they are the same, except for g_dbUserMaxAge - it says 0, default 0.

 

Admin levels are saved fine.

 

The last settings in cfg are:

exec omni-bot.cfg
exec maps.cfg

 

maps.cfg contains:

set d1 "set g_gametype 6 ; map oasis ; set nextmap vstr d2"
set d2 "set g_gametype 6 ; map battery ; set nextmap vstr d3"
set d3 "set g_gametype 6 ; map goldrush ; set nextmap vstr d4"
set d4 "set g_gametype 6 ; map radar ; set nextmap vstr d5"
set d5 "set g_gametype 6 ; map railgun ; set nextmap vstr d6"
set d6 "set g_gametype 6 ; map fueldump ; set nextmap vstr d1"
vstr d1

exec omni-bot.cfg

Server command-line contains additionally:

+map oasis (I have to set +map, it's forced in panel)

+exec server.cfg (1 cfg)

 

It must be something with this g_dbUserMaxAge. Why it resets to 0? I have set only 1 that cvar. I exec only 1 server config.

 

Can it be something with my xpsave.cfg path? I can't find xpsave file though.

 

Thanks in advance for help.

 

Link to comment
Share on other sites

  • Management

There is no g_XPSaveFile cvar. Your problem is that your launching the mod with the map command, when the g_XPSave is 0, and only after that you execute the server.cfg, which sets the correct value for it. You need to have the g_XPSave value set before the mod launches. You should read the Wiki for installation instructions and cvars.

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