stark
Level 0 Beginner
Offline
 Bulgaria
Posts: 2
|
 |
« on: February 20, 2009, 01:53:47 PM » |
|
How to save exp with ip or steamid unique when i restart my server some people loose their exp
|
|
|
|
« Last Edit: February 20, 2009, 02:53:08 PM by stark »
|
Logged
|
|
|
|
|
WCA | Maxxi [NL]
|
 |
« Reply #1 on: February 20, 2009, 02:05:59 PM » |
|
How to save exp whit ip or steamid unique when i restart my server some people looser their exp
just some people or all people?
|
|
|
|
|
Logged
|
Server = work in progress  
|
|
|
stark
Level 0 Beginner
Offline
 Bulgaria
Posts: 2
|
 |
« Reply #2 on: February 20, 2009, 02:16:10 PM » |
|
some people and i don`t now how wcs save exp default and from where i can change that for now i use cracked server with not uniqua steam id
|
|
|
|
« Last Edit: February 20, 2009, 02:22:52 PM by stark »
|
Logged
|
|
|
|
SynDraXx
Level 3 Trained Apprentice
 
Offline
 Germany
Posts: 76
- Junior Coder -
|
 |
« Reply #3 on: February 20, 2009, 03:51:29 PM » |
|
got the same problem, but ppl only loose there lvls at undead... and not at every restart... =/ //edit: the don't loose all lvls... it depends on anything, which i don't know... and it does not happen to everyone =/ but for example you can look up in the showtop10 the lvls from player xy and he got e.g. 250 and in playerinfo he got 230lvls... i only need the command to save all player levels so i can write it in my shutdown script 
|
|
|
|
« Last Edit: February 20, 2009, 03:53:22 PM by SynDraXx »
|
Logged
|
|
|
|
|
WCA | Maxxi [NL]
|
 |
« Reply #4 on: February 20, 2009, 04:14:39 PM » |
|
got the same problem, but ppl only loose there lvls at undead... and not at every restart... =/ //edit: the don't loose all lvls... it depends on anything, which i don't know... and it does not happen to everyone =/ but for example you can look up in the showtop10 the lvls from player xy and he got e.g. 250 and in playerinfo he got 230lvls... i only need the command to save all player levels so i can write it in my shutdown script  shouldn't be to hard just find the block for the wcssave cmd 
|
|
|
|
|
Logged
|
Server = work in progress  
|
|
|
SynDraXx
Level 3 Trained Apprentice
 
Offline
 Germany
Posts: 76
- Junior Coder -
|
 |
« Reply #5 on: February 20, 2009, 04:32:48 PM » |
|
okay, i understood found that block in functions.txt block wcs_savexp { es_xgetcmduserid wcs_userid wcs_getlanguage wcs_lng wcs_lng_savexp es_tell server_var(wcs_userid) #multi server_var(wcs_lng) es wcs_saveplayer server_var(wcs_userid) } would that work, as single command?! es wcs_saveplayer #a
|
|
|
|
« Last Edit: February 20, 2009, 04:44:07 PM by SynDraXx »
|
Logged
|
|
|
|
|
WCA | Maxxi [NL]
|
 |
« Reply #6 on: February 20, 2009, 05:18:18 PM » |
|
okay, i understood found that block in functions.txt block wcs_savexp { es_xgetcmduserid wcs_userid wcs_getlanguage wcs_lng wcs_lng_savexp es_tell server_var(wcs_userid) #multi server_var(wcs_lng) es wcs_saveplayer server_var(wcs_userid) } would that work, as single command?! es wcs_saveplayer #a i think not maybe a recode ill discuss with beret 
|
|
|
|
|
Logged
|
Server = work in progress  
|
|
|
SynDraXx
Level 3 Trained Apprentice
 
Offline
 Germany
Posts: 76
- Junior Coder -
|
 |
« Reply #7 on: February 20, 2009, 05:49:31 PM » |
|
why it does not work? i got a shutdown script, so if i shut down my server there is a script which delays the shutdown 15 seconds at it writes the seconds in chat, so i want to add the save player command at top of it... so the only thing i don't know is, how to save all player levels...
I'm not sure if it works with #a as userid, or do i have to get all steamids first and then put them in a variable?!
|
|
|
|
|
Logged
|
|
|
|
|
WCA | Maxxi [NL]
|
 |
« Reply #8 on: February 20, 2009, 06:08:59 PM » |
|
why it does not work? i got a shutdown script, so if i shut down my server there is a script which delays the shutdown 15 seconds at it writes the seconds in chat, so i want to add the save player command at top of it... so the only thing i don't know is, how to save all player levels...
I'm not sure if it works with #a as userid, or do i have to get all steamids first and then put them in a variable?!
#a doesnt work just like with other wcs_ cmds
|
|
|
|
|
Logged
|
Server = work in progress  
|
|
|
SynDraXx
Level 3 Trained Apprentice
 
Offline
 Germany
Posts: 76
- Junior Coder -
|
 |
« Reply #9 on: February 21, 2009, 02:27:26 AM » |
|
so first of all, i have to get all steamids on the server and then it should save the level from each steamid. But how?!  sorry i'm new in that coding things, but i want to learn that 
|
|
|
|
|
Logged
|
|
|
|
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
   
Offline
 France
Posts: 1644
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #10 on: February 21, 2009, 06:49:20 PM » |
|
es_xforeachkey wcs_key in WCSuserdata "es wcs_saveplayer server_var(wcs_key)"
|
|
|
|
|
Logged
|
MY INTERNET: 
|
|
|
SynDraXx
Level 3 Trained Apprentice
 
Offline
 Germany
Posts: 76
- Junior Coder -
|
 |
« Reply #11 on: February 21, 2009, 11:40:19 PM » |
|
Thanks beretta :] i hope it works now, but i'm rlly confident 
|
|
|
|
|
Logged
|
|
|
|
|
WCA | Maxxi [NL]
|
 |
« Reply #12 on: February 21, 2009, 11:44:59 PM » |
|
Thanks beretta :] i hope it works now, but i'm rlly confident  put that in the block unload from wcs and it will auto execute that piece of code when u reaload(its just unloading and loading) 
|
|
|
|
|
Logged
|
Server = work in progress  
|
|
|
SynDraXx
Level 3 Trained Apprentice
 
Offline
 Germany
Posts: 76
- Junior Coder -
|
 |
« Reply #13 on: February 24, 2009, 11:00:36 PM » |
|
my server seems to crash if the command is beeing executed  i wanted wcs to save the player levels, when i make a restart as well, as it does, if i unload wcs... i did not try it with unloading wcs, but if i write it in my shutdown script the server crashes, at the command: es_xforeachkey wcs_key in WCSuserdata "es wcs_saveplayer server_var(wcs_key)" ...
|
|
|
|
|
Logged
|
|
|
|
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
   
Offline
 France
Posts: 1644
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #14 on: February 25, 2009, 10:44:45 AM » |
|
In your shutdown script? I guess then, WCS has already been unloaded, and that's why... just put it in block unload of wcs... as maxxi said
|
|
|
|
|
Logged
|
MY INTERNET: 
|
|
|
|