Jump to content

Photo

Another newbie with xp problem


  • Please log in to reply
4 replies to this topic

#1
OFFLINE   kommodus

kommodus

    Newbie

  • Members
  • Pip
  • 3 posts
0
Unknown

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.



#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4474 posts
362
I am just really nice
  • LocationFinland

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.



#3
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2842 posts
163
On the road to fame

Please don't post "part" of configs. Because with half parts we can't help you much.

 

Post the full config and we will see your XP save issue is resolved.



#4
OFFLINE   kommodus

kommodus

    Newbie

  • Members
  • Pip
  • 3 posts
0
Unknown

Actually I'm in work and so far I checked ftp and i had server.cfg in etmain aswell in silent folder, when I'll at home I'll check if deleting server.cfg from etmain solved problem if not I'll post full configs.

 

THX for replies.



#5
OFFLINE   kommodus

kommodus

    Newbie

  • Members
  • Pip
  • 3 posts
0
Unknown

Ok problem solved, after deleting server.cfg from etmain so far everything seems to be fine.

 

Once again thanks for help.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users