Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

xp save


  • Please log in to reply
16 replies to this topic

#1
OFFLINE   Tosa_Inu

Tosa_Inu

    Regular Member

  • Members
  • PipPipPip
  • 120 posts
13
A step in the right direction
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

#2
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3099 posts
216
On the road to fame
  • LocationPoland
Hehe, wait for the 0.2.0 release :) You will have that with "one click" :) Regarding specific configuration of xp save before 0.2.0 is available I believe @hellreturn or @gaoesa can be best to ask. So guys, any help from you? :)

#3
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
The g_XPSaveMaxAge_xp and g_XPSaveMaxAge take number of seconds by default.

http://mygamingtalk....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.

#4
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2693 posts
158
On the road to fame
Wait for 0.2 as Silencer and Gao mentioned :P I will be little free in weekend and i will re update your server. :)

#5
OFFLINE   Mardok

Mardok

    Member

  • Members
  • PipPip
  • 22 posts
1
A step in the right direction
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, 31 October 2010 - 01:46 PM.


#6
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
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.

#7
OFFLINE   Mardok

Mardok

    Member

  • Members
  • PipPip
  • 22 posts
1
A step in the right direction
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

#8
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
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.

#9
OFFLINE   Mardok

Mardok

    Member

  • Members
  • PipPip
  • 22 posts
1
A step in the right direction
OK now userdb work, levels admins is saving, but xpsave no work, xp dont wanna save

#10
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
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.

#11
OFFLINE   Mardok

Mardok

    Member

  • Members
  • PipPip
  • 22 posts
1
A step in the right direction
Server is one time reset for day
So I dont wanna lost anything

#12
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
Can you rephrase? I didn't understand.

#13
OFFLINE   Mardok

Mardok

    Member

  • Members
  • PipPip
  • 22 posts
1
A step in the right direction
once time in night server have automaticly restart
nightly server performs a reboot,

#14
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
I have daily automatic reboot also. The XP data is safe and will not get destroyed by the reboot.

#15
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
Which reminds me that including the shutdown option into the mod would be far better the cron tasks. It would make sure the reboot is done safely that way and the logs would have good data, for the statistics parsers of course. We will look into making it a mod feature.

#16
OFFLINE   Tosa_Inu

Tosa_Inu

    Regular Member

  • Members
  • PipPipPip
  • 120 posts
13
A step in the right direction

Wait for 0.2 as Silencer and Gao mentioned :P I will be little free in weekend and i will re update your server. :)


:( you must have forgotten me :(

#17
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2693 posts
158
On the road to fame

:( you must have forgotten me :(


Sorry, I have 2 interviews back to back! I will get your server fixed asap.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users