Jump to content

xp save


Tosa_Inu

Recommended Posts

Hi,

 

I want xp save for atleast 1 year.

I don't know annymore how to do this.

I tryed many time to change someting, but every day the xp is gone.

 

Current settings:

 

set g_XPSave 4

set g_XPSaveFile "xpsave.cfg"

set g_XPSaveMaxAge_xp 86400

set g_XPSaveMaxAge 604800

set g_XPDecay 0

set g_XPDecayRate 0.0

set g_XPDecayFloor 0.0

set g_maxXP -1

set g_damageXP 0

set g_damageXPLevel 50

Link to comment
Share on other sites

  • Management

The g_XPSaveMaxAge_xp and g_XPSaveMaxAge take number of seconds by default.

 

http://mygamingtalk.com/silent/manual/#g_XPSaveMaxAge_xp

 

You have the setting g_XPSaveMaxAge_xp set to 86400 which is 24 hours. You can also use several modfiers with the value.

 

So setting the xp save to one year:

set g_XPSaveMaxAge_xp "365d"

set g_XPSaveMaxAge "365d"

 

The settings overlap a little, the other one is used to only reset XP, the other one resets XP and rankings. The value that is smaller is used for the XP.

 

Sorry about putting you to read the manual that is for the 0.2.0 and is not finished yet. I don't know where the 0.1.4 manual is. But regarding this setting, it is the same.

Link to comment
Share on other sites

  • 2 weeks later...

Hi I was try set Xp save, but that is dont wanna work

 

set g_XPSave 23

set g_XPSaveMaxAge_xp 1o

set g_XPSaveMaxAge 1o

set g_XPDecay 0

set g_XPDecayRate 0.0

set g_XPDecayFloor 0.0

set g_maxXP -1

set g_damageXP 0

set g_damageXPLevel 50

 

When server go restart, all xp is lost, and the same whit admins levels,

What I need set more ?

Edited by Mardok
Link to comment
Share on other sites

  • Management

What is the g_dbUserMaxAge setting you have in use? If you set that one to small but not to 0, it will erase the users from the db after each map.

 

Also, check from the logs that the user database is in use. Maybe it is failing to create one because of privileges issue. Please post the lines you have on map init regarding the database. There should be 4 lines that will tell what is the status of the database.

Link to comment
Share on other sites

set g_dbUserMaxAge 2o

 

Yes there is something wrong

 

Start of warmup.

readconfig: loaded 16 levels, 0 bans, 0 commands and 0 warnings

Gametype changed, clearing session data.

serverstats: loaded 0 mapstats

*=====INITIALISING USER DATABASE

Existing database file is for wrong server version or corrupted.

*=====DATABASE IS NOT IN USE

Enable spawning!

Disable spawning!

0 teams with 0 entities

Link to comment
Share on other sites

  • Management

Yes, after "Existing database file is for wrong server version or corrupted." the mod will not try to overwrite the existing file because it can't be sure what file it is. I didn't want to make it destroy any files admins may think are valuable.

 

The solution to this is to delete or rename that file so the mod can create a new one. The question still remains, why the file is not correct. If you like, I can take a look at whats inside it, but if you do give me the file and there's users in it, I suggest giving it to me secretly since there are the user guids. If it is just a new/empty file, then deleting it should be enough.

 

Just to make sure, the userdb.db is a binary file and it is nothing like any other user files that other mods use. So copying any data to it by hand is very difficult and care must be taken to edit all the correct places.

Link to comment
Share on other sites

  • Management

I don't see anything wrong with the settings. I use g_xpsave 9 on my server. The warning in the documentation of the flag 8 seems a bit outdated. The XP will not get lost if the client downloads new pk3s.

 

I'll test is there some combination that causes a bug to happen with g_xpsave 23. I don't think there is, but I'll make sure.

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