Jump to content

Another newbie with xp problem


kommodus

Recommended Posts

Hi guys, recently i've decided to start silent server, and I have problem with reseting xp after server is restarted, when server is running rejoining don't cause xp reset. I'm not sure if it's important but admin lvl once added is not looseing after restart. So far i read few topics about xp, but  still something is missing for me and I couldn't solve my problem.

 

Now lets describe file structure.

 

end of server.cfg

 

 

// LOGGING

 
set g_log "etserver.log" // Game logging
set g_logsync 1
set logfile 2 // Console logging ( 1: enable 2: enable and sync )
 
exec silent.cfg
 
// MAP ROTATION
 
//exec campaigncycle.cfg // Campaign mode
//exec moja5.cfg 
//exec objectivecycle.cfg // Objective mode
//exec lmscycle.cfg // Last Man Standing mode
 
// WATCHDOG
 
// in case the game dies with an ERR_DROP
// or any situation leading to server running with no map
//set com_watchdog 10 // defaults 60
//set com_watchdog_cmd "exec campaigncycle.cfg" // defaults to quit

 

part of silent.cfg

 

.

.

.

 

//

//User datebase, XP Save, Shrubbot and Bans
set g_dbDirectory "database"
set g_dbUserMaxAge "365d"
set g_dbMaxAliases 3
set g_XPSave 21
set g_XPSaveMaxAge_xp "365d"
set g_XPSaveMaxAge "365d"
set g_XPSaveMinXP "-1"
set g_maxXP "-1"
set g_damageXP "1"
set g_damageXPLevel "50"
.
.
.
.
//
// Lua API
set lua_modules ""
set lua_allowedModules ""
 
exec objectivecycle.cfg
set com_watchdog 60
set com_watchdog_cmd "exec objectivecycle.cfg"

 

server.log

 

32:05 Start of round. 

32:05 Cheat logfile open: cheat.log
32:05 Execing default.cfg mapconfig for 6 players.
32:05   * Execed total of 20 commands from the config file.
32:05 Execing battery.cfg mapconfig for 6 players.
32:05   * Config file "mapconfigs/battery.cfg" was not found.
32:05 *=====INITIALISING USER DATABASE
32:05   * Opening user database file userdb.db.
32:05   * Opening user database file userxdb.db.
32:05   * User database files open. Caching database.
32:05   22 players cached from the user database.
32:05   No additional user records in the user database.
32:05   * Reading aliases database.
32:05   Read total of 16 aliases for 8 players.
32:05 *=====DATABASE READY FOR USE
32:05 ClientConnect: 0 

 

Sorry for poor english, and thanks for any advise.

 

Cheers.

Link to comment
Share on other sites

  • Management

It sounds like you might have g_XPSave 0 when the mod starts and the setting is changed after. It is important that the g_XPSave cvar has it's value before the map command is executed. As admin levels stay and the XP is not reset between maps, that sounds like the reason for the server start XP reset. Make sure you don't have duplicated config files. One in etmain and one in silent folder.

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