phantasm Posted August 27, 2011 Share Posted August 27, 2011 I added some commands to the shrubbot.cfg file in the database folder. The commands work fine, but doing this wiped out the player XP and admin levels. This is a problem. I realize that silent mod uses encryption to store player identities, and if you modify anything in the database folder it seems to ruin the encrypted data. In Jaymod I can modify files without worrying about losing XP. I am used to Jaymod, not etpub, so that is my perspective. Is there a way around this without using rcon for everything? I don't even want to have rcon enabled if I can avoid it. I would like to be able to add commands and directly modify admin levels from within the server file instead of doing it all through rcon. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted August 28, 2011 Management Share Posted August 28, 2011 You can edit all the files except the binary files by hand in the database folder. This mean, you can edit all files except the userdb.db and userxdb.db by hand. Editing files in database folder shouldn't wipe out the database. Can you explain more what happened. Also, can you post what is in the log for opening the database. Quote Link to comment Share on other sites More sharing options...
phantasm Posted August 28, 2011 Author Share Posted August 28, 2011 You can edit all the files except the binary files by hand in the database folder. This mean, you can edit all files except the userdb.db and userxdb.db by hand. Editing files in database folder shouldn't wipe out the database. Can you explain more what happened. Also, can you post what is in the log for opening the database. I just logged on my server five minutes ago and did not have my XP. But I have my admin level. So any help would be appreciated. This is from the server log. Looks like it is storing 272 users. [The players below are just omnibots, so no one has their identity at risk.] 0:00 *=====INITIALISING USER DATABASE0:00 272 users read and cached from the user database.0:00 *=====DATABASE READY FOR USE0:11 ClientConnect: 10:11 Userinfo: \name\=TSUNAMI=\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT01000000000000000000000000:11 ClientUserinfoChanged: 1 n\=TSUNAMI=\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:11 Userinfo: \name\=TSUNAMI=\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT01000000000000000000000000:11 ClientUserinfoChanged: 1 n\=TSUNAMI=\t\2\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\31\sw\7\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:11 Userinfo: \name\=TSUNAMI=\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT01000000000000000000000000:11 ClientUserinfoChanged: 1 n\=TSUNAMI=\t\2\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\31\lw\31\sw\7\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:11 ClientBegin: 10:11 Userinfo: \name\=TSUNAMI=\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT01000000000000000000000000:11 ClientUserinfoChanged: 1 n\=TSUNAMI=\t\2\c\2\r\0\m\0000000\s\0000000\dn\\dr\0\w\8\lw\8\sw\7\mu\0\ref\1\uci\255\lc\2\tv\0\sc\00:13 ClientConnect: 20:13 Userinfo: \name\^4SKYNET\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT02000000000000000000000000:13 ClientUserinfoChanged: 2 n\^4SKYNET\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:13 Userinfo: \name\^4SKYNET\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT02000000000000000000000000:13 ClientUserinfoChanged: 2 n\^4SKYNET\t\1\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\39\sw\2\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:13 Userinfo: \name\^4SKYNET\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT02000000000000000000000000:13 ClientUserinfoChanged: 2 n\^4SKYNET\t\1\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\39\lw\39\sw\2\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:13 ClientBegin: 20:13 Userinfo: \name\^4SKYNET\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT02000000000000000000000000:13 ClientUserinfoChanged: 2 n\^4SKYNET\t\1\c\2\r\0\m\0000000\s\0000000\dn\\dr\0\w\3\lw\3\sw\2\mu\0\ref\1\uci\255\lc\2\tv\0\sc\00:15 ClientConnect: 30:15 Userinfo: \name\GonadsInStrife\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT03000000000000000000000000:15 ClientUserinfoChanged: 3 n\GonadsInStrife\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:15 Userinfo: \name\GonadsInStrife\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT03000000000000000000000000:15 ClientUserinfoChanged: 3 n\GonadsInStrife\t\2\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\31\sw\7\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:15 Userinfo: \name\GonadsInStrife\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT03000000000000000000000000:15 ClientUserinfoChanged: 3 n\GonadsInStrife\t\2\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\31\lw\31\sw\7\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:15 ClientBegin: 30:15 Userinfo: \name\GonadsInStrife\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT03000000000000000000000000:15 ClientUserinfoChanged: 3 n\GonadsInStrife\t\2\c\2\r\0\m\0000000\s\0000000\dn\\dr\0\w\8\lw\8\sw\7\mu\0\ref\1\uci\255\lc\2\tv\0\sc\00:17 ClientConnect: 40:17 Userinfo: \name\HEZBOLLAH\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT04000000000000000000000000:17 ClientUserinfoChanged: 4 n\HEZBOLLAH\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:17 Userinfo: \name\HEZBOLLAH\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT04000000000000000000000000:17 ClientUserinfoChanged: 4 n\HEZBOLLAH\t\1\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\35\sw\2\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:17 Userinfo: \name\HEZBOLLAH\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT04000000000000000000000000:17 ClientUserinfoChanged: 4 n\HEZBOLLAH\t\1\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\35\lw\35\sw\2\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:17 ClientBegin: 40:17 Userinfo: \name\HEZBOLLAH\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT04000000000000000000000000:17 ClientUserinfoChanged: 4 n\HEZBOLLAH\t\1\c\2\r\0\m\0000000\s\0000000\dn\\dr\0\w\3\lw\3\sw\2\mu\0\ref\1\uci\255\lc\2\tv\0\sc\00:19 ClientConnect: 50:19 Userinfo: \name\WaffenSS\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT05000000000000000000000000:19 ClientUserinfoChanged: 5 n\WaffenSS\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:19 Userinfo: \name\WaffenSS\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT05000000000000000000000000:19 ClientUserinfoChanged: 5 n\WaffenSS\t\2\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\6\sw\7\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:19 Userinfo: \name\WaffenSS\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT05000000000000000000000000:19 ClientUserinfoChanged: 5 n\WaffenSS\t\2\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\6\lw\6\sw\7\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:19 ClientBegin: 50:19 Userinfo: \name\WaffenSS\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT05000000000000000000000000:19 ClientUserinfoChanged: 5 n\WaffenSS\t\2\c\2\r\0\m\0000000\s\0000000\dn\\dr\0\w\24\lw\24\sw\7\mu\0\ref\1\uci\255\lc\2\tv\0\sc\00:21 ClientConnect: 60:21 Userinfo: \name\^1Trauma\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT06000000000000000000000000:21 ClientUserinfoChanged: 6 n\^1Trauma\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:21 Userinfo: \name\^1Trauma\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT06000000000000000000000000:21 ClientUserinfoChanged: 6 n\^1Trauma\t\1\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\31\sw\2\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:21 Userinfo: \name\^1Trauma\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT06000000000000000000000000:21 ClientUserinfoChanged: 6 n\^1Trauma\t\1\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\31\lw\31\sw\2\mu\0\ref\1\uci\255\lc\0\tv\0\sc\00:21 ClientBegin: 60:21 Userinfo: \name\^1Trauma\rate\25000\snaps\20\ip\localhost\cl_guid\OMNIBOT06000000000000000000000000:21 ClientUserinfoChanged: 6 n\^1Trauma\t\1\c\2\r\0\m\0000000\s\0000000\dn\\dr\0\w\3\lw\3\sw\2\mu\0\ref\1\uci\255\lc\2\tv\0\sc\00:21 === ShutdownGame -------------------------------------------0:21 *=====CLOSING DATABASE0:21 Buffers cleaned.0:21 Big Memory Cache cleaned.0:21 *=====DATABASE IS CLOSED0:21 ShutdownGame: done. Closing log.0:21 ------------------------------------------------------------[-EnhancedMod-] Successfully detached g_log file[-EnhancedMod-] Successfully attached g_log file I also have enhanced mod running, to add an mp40 and thompson to all players, with 30/120 ammo. No panzers or anything funny. I have used it on Jaymod and never had a problem with XP. Here is my config, with the dangerous stuff XXXXd out, and my notes. Maybe I have something set up wrong and it is not storing XP properly. // silEnT mod - Sample server.cfg file// Generic server cvars set dedicated 2set net_ip XXXXXXXXXX //was localhostset net_port 27960set sv_maxclients 16 //was 20set g_password ""set sv_privateclients 0set sv_privatepassword ""set refereePassword ""set sv_maxRate 50000 //was 13000set sv_dl_maxRate 42000 //downloadzset sv_allowDownload 1set sv_wwwDownload 1 //was 0set sv_wwwBaseURL "XXXXXXXXXX"set sv_wwwDlDisconnected 0set sv_wwwFallbackURL ""set sv_fullmsg "Server is full." //motdset sv_hostname XXXXXXXXXXset server_motd0 XXXXXXXXXXset server_motd1 XXXXXXXXXXset server_motd2 XXXXXXXXXXset server_motd3 XXXXXXXXXXset server_motd4 XXXXXXXXXXset server_motd5 XXXXXXXXXXset sv_pure 1set sv_minping 0set sv_maxping 0 // silEnT mod supported cvarsset g_antilag 1set g_antiwarp 1set g_maxWarp 4set g_skipCorrection 1set g_heavyWeaponRestriction 100set g_altStopwatchMode 0set g_autofireteams 1set g_complaintlimit 6set g_ipcomplaintlimit 3set g_fastres 0set g_friendlyFire 0 //was 1set g_disableComplaints 0set g_minGameClients 0set g_maxlives 0set g_alliedmaxlives 0set g_axismaxlives 0set g_teamforcebalance 0set g_noTeamSwitching 0set g_doWarmup 0set g_warmup 20 //was 60set match_latejoin "1"set match_minplayers 4set match_mutespecs 0set match_readypercent 100set match_timeoutcount 3set match_warmupDamage 1set team_maxplayers 0set g_speed 320set g_gravity 420set g_knockback 1000set g_inactivity 0set g_spectatorInactivity 0set g_maxConnsPerIP 4set shoutcastPassword "XXXXXX"set g_spoofOptions 3set g_maxNameChanges 3set g_watermark ""set g_watermarkFadeAfter 0set g_watermarkFadeTime 0set g_inactivityOptions 3set g_ettvFlags 3 // Votes (I set all to 0 to disable voting)set g_voting 0set vote_limit 5set vote_percent 50set g_noVoteTime 0set vote_allow_comp 0set vote_allow_gametype 0set vote_allow_kick 0set vote_allow_map 0set vote_allow_matchreset 0set vote_allow_mutespecs 0set vote_allow_nextmap 0set vote_allow_pub 0set vote_allow_referee 0set vote_allow_shuffleteamsxp 0set vote_allow_swapteams 0set vote_allow_friendlyfire 0set vote_allow_timelimit 0set vote_allow_warmupdamage 0set vote_allow_antilag 0set vote_allow_balancedteams 0set vote_allow_muting 0set vote_allow_surrender 0set vote_allow_nextcampaign 0set vote_allow_restartcampaign 0set vote_allow_poll 0set vote_allow_maprestart 0set vote_allow_shufflenorestart 0set vote_allow_cointoss 0 // Logsset g_log XXXXXXXXXXset logfile 0set g_logOptions 0set g_logAdmin XXXXXXXXXX // XP saveset g_XPSave 1 //was 0set g_XPSaveMaxAge_xp 90d //was 86400set g_XPSaveMaxAge 90d //was 604800set g_XPDecay 0set g_XPDecayRate 0.0set g_XPDecayFloor 0.0set g_maxXP -1set g_damageXP 0set g_damageXPLevel 50 // Shrubbot and Databaseset g_dbDirectory "database"set g_dbUserMaxAge ""set g_minConnectLevel 0// see documentation about tyranny enabled commands and flagsset g_tyranny 0set g_greetingPos 0set g_warningOptions 31 //was 0set g_warningDecay 168 //was 24set g_maxWarnings 20 //was 3set g_autoTempBan 2 //was 0, 2 turns kick into banset g_autoTempBanTime 900 //was 1800 set g_shuffle_rating 3 // Censoringset g_censor ""set g_censorNames ""set g_censorNeil 0set g_censorNeilNames 0set g_censorPenalty 0set g_censorMuteTime 60set g_censorXP 5 // Intermissionset g_intermissionTime 40 //was 60set g_intermissionReadyPercent 100 // Skill points needed for levelset skill_soldier "20 50 90 140"set skill_medic "20 50 90 140"set skill_engineer "20 50 90 140"set skill_fieldops "20 50 90 140"set skill_covertops "20 50 90 140"set skill_battlesense "20 50 90 140"set skill_lightweapons "20 50 90 140"set g_serverInfo 1set g_killRating 7 //was 3set g_playerRating 3set g_playerRating_mapPad 50set g_playerRating_minplayers 8set g_stats 0 // Custom configsset g_mapScriptDirectory "mapscripts"set g_campaignFile "XXXXXXXXX"set g_mapConfigs "mapconfigs"set g_settings "XXXXXXXXX" // Miscellanousset g_skills 7 //was 0set g_teamDamageRestriction 0set g_minHits 6set g_weapons 7086 //was 0set g_mg42 3 //was 0set g_goomba 0set g_goombaFlags 0set g_spinCorpse 0set g_teamChangeKills 1set g_poison 0set g_poisonFlags 7set g_slashKill 28 //was 0set g_spectator 7 //was 0set g_medics 0set g_medicHealthRegen 0set g_coverts 1479 //was 0set g_truePing 1 //was 0set g_dropObj 0set g_hitsounds 1set g_playDead 1 //was 0set g_shove 300 //was 0set g_shoveNoZ 0set g_dragCorpse 1 //was 0set g_classChange 1 //was 0set g_forceLimboHealth 1set g_privateMessages 1 //was 0set g_packDistance 10 //was 0set g_dropHealth 3 //was 0set g_dropAmmo 3 //was 0set g_tossDistance 0set g_fear 2000set g_obituary 1set g_throwableKnives 1set g_maxKnives 10 //was 5set g_knifeChargeTime 800set g_constructibleXPSharing 1 //was 0set g_asblock 58 //was 0set g_panzersVulnerable 1 //was 0set g_panzersSpeed 2500set g_panzersGravity 0set g_realHead 1set g_dyno 0set g_canisterKick 300 //was 0, allows grenade and canister kickingset g_spreeOptions 1023 //was 0set g_multikillTime 1000set g_medicSelfhealTime 0set g_maxPanzerSuicides 3 //was -1set g_panzerPackDistance 0set g_maxSelfkills -1set g_voteResultsMinLevel -1set g_minCommandWaitTime 0set g_noSkillUpgrades 0set g_flushItems 1set g_headshot 0set g_instagibDamage 400set g_staminaRecharge 1.0set g_mineid 0set g_tactics 0set g_landmineNotifyType 2 //was 3 // Weapon damages and radius settingsset g_dmgKnife 10set g_dmgSten 14set g_dmgFG42 15set g_dmgPistol 18set g_dmgSMG 18set g_dmgPPSh 24 //was 19set g_dmgMG42 18set g_dmgMG 20set g_dmgFG42Scope 30set g_dmgInfRifle 34set g_dmgSniper 50set g_dmgFlamer 5set g_dmgGrenade 250set g_dmgGrenadeRadius 250set g_dmgGLauncher 250set g_dmgGLauncherRadius 250set g_dmgLandmine 250set g_dmgLandmineRadius 250set g_dmgSatchel 250set g_dmgSatchelRadius 250set g_dmgPanzer 400set g_dmgPanzerRadius 300set g_dmgMortar 400set g_dmgMortarRadius 400set g_dmgDynamite 400set g_dmgDynamiteRadius 400set g_dmgAir 400set g_dmgAirRadius 400set g_dmgArty 400set g_dmgArtyRadius 400set g_dmg 0set g_dmgHeadShotMin 40 //was 50set g_dmgHeadShotRatio 1.0 //was 2.0set g_dmgTMine 400 //was 260set g_knifeThrowDamage 50 // Team restrictionsset team_maxMedics -1set team_maxEngineers -1set team_maxFieldOps -1set team_maxCovertOps -1set g_maxTeamLandmines 20 //was 10set g_maxTeamTripmines 20 //was 3set team_maxPanzers -1 //was 1set team_maxMortars -1 //was 1set team_maxFlamers -1 //was 1set team_maxMG42s -1 //was 1set team_maxGrenLaunchers -1 //was 2 // Friendly fireset g_reflectFriendlyFire 0set g_reflectFFWeapons 31set g_friendlyFireOpts 12 //was 0, now engs will still trigger team landmines but no one else // Flood protectionset g_floodprotect 1set g_floodthreshold 6set g_floodWait 1000set g_voiceChatsAllowed 4 // Map votingset g_mapVoteFlags 9 //was 0set g_maxMapsVotedFor 32 //was 6set g_minMapAge 3set g_resetXPMapCount 0 // Omni-botsset omnibot_enable 1 //was 0set omnibot_path ""set g_bot_maxXP 3000 //was -1set g_bot_minPlayers -1 //use maxbots cvar in omnibot.cfg insteadset omnibot_flags 262220 //was 0 // Fun warsset g_sniperwar 0set g_panzerwar 0set g_riflewar 0 // Country flags, You need to have GeoIP database installed to use thisset g_countryFlags 0 // ETPub experimental, not advised to useset g_fixedphysics 0set g_fixedphysicsfps 125 // Lua APIset lua_modules ""set lua_allowedModules "" //exec campaigncycle.cfg //set com_watchdog 60//set com_watchdog_cmd "exec campaigncycle.cfg" //extra cvarsset g_punkBuster 1 //enables client pb for guid and ban enforcementset g_identOptions 15 //enables hardware-based bansset g_minArtyTime 5 //seconds between arty per team, def is 10set g_minAirstrikeTime 5 //seconds between airstrikes per team, def is 10set g_gametype 6 //6 allows mapvotingset g_misc 69 //1 gives double jump, 4 lets u see killer health, 64 no fall damageset g_mode 10 //1 is instant respawn, 2 is adren for all, 8 lets pick up any weaponset g_userAlliedRespawnTime "10" //works fineset g_userAxisRespawnTime "10" //works fineset sv_master1 "etmaster.idsoftware.com"set sv_master2 "master.gamespy.com:27900"set sv_master3 "master0.gamespy.com"set sv_master4 "clanservers.net"set sv_master5 "et.splatterladder.com" //Team Death Matchset g_TDMType 0 //0 turns it off 2 enables timelimit and score Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted August 28, 2011 Management Share Posted August 28, 2011 Ok. So the user database is still working correctly, but the XP was lost. I don't see anything actually wrong with the xp save settings. Here is what i have on my own server set g_XPSave 9 set g_XPSaveMaxAge_xp "30d" set g_XPSaveMaxAge "30d" set g_XPDecay 0 set g_XPDecayRate 0.0 set g_XPDecayFloor 0.0 set g_maxXP 10000 set g_damageXP 0 Does it now store XP or is it always resetted when you enter the server. What is the gametype you are using on the server (mapvoting, campaign, ..)? Quote Link to comment Share on other sites More sharing options...
phantasm Posted August 28, 2011 Author Share Posted August 28, 2011 I played for a bit today, got some fresh XP, and left the server. Then I came back on a minute later and my new XP was still there. So if I keep it running and don't change anything, it keeps the XP. This is what it makes it confusing. If I knew it was just enhmod, I would remove it, or a cvar, I could fix it. But it seems to happen if I change any files on the server, or even just restarting it. Quote Link to comment Share on other sites More sharing options...
Management gaoesa Posted August 28, 2011 Management Share Posted August 28, 2011 If you reconnect instantly, it can still remember your XP. You should test after map change or if you use campaign, after campaign change. Quote Link to comment Share on other sites More sharing options...
phantasm Posted August 29, 2011 Author Share Posted August 29, 2011 Does it now store XP or is it always resetted when you enter the server. What is the gametype you are using on the server (mapvoting, campaign, ..)? I haven't changed anything today. It has kept my XP all day like it is supposed to do. It has been running all day with no interruptions or file changes. So my installation is stable as long as I don't change anything. I have been using g_gametype 6 for mapvoting. 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.