Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-02-25 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 26, 2009, 12:50:33 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2   Go Down
  Print  
Author Topic: save exp  (Read 148 times)
stark
Level 0 Beginner

Offline Offline

Bulgaria 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]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 910



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« 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 Smiley


stark
Level 0 Beginner

Offline Offline

Bulgaria 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 Offline

Germany 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 Wink
« Last Edit: February 20, 2009, 03:53:22 PM by SynDraXx » Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 910



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« 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 Wink
shouldn't be to hard just find the block for the wcssave cmd Tongue
Logged

Server = work in progress Smiley


SynDraXx
Level 3 Trained Apprentice
***
Offline Offline

Germany Germany

Posts: 76


- Junior Coder -


« Reply #5 on: February 20, 2009, 04:32:48 PM »

okay, i understood

found that block in functions.txt
Code:
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?!
Code:
es wcs_saveplayer #a
« Last Edit: February 20, 2009, 04:44:07 PM by SynDraXx » Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 910



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« Reply #6 on: February 20, 2009, 05:18:18 PM »

okay, i understood

found that block in functions.txt
Code:
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?!
Code:
es wcs_saveplayer #a
i think not maybe a recode
ill discuss with beret Tongue
Logged

Server = work in progress Smiley


SynDraXx
Level 3 Trained Apprentice
***
Offline Offline

Germany 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]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 910



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« 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 Smiley


SynDraXx
Level 3 Trained Apprentice
***
Offline Offline

Germany 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?! Cheesy

sorry i'm new in that coding things, but i want to learn that Wink
Logged
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1644


Big Berettonawak is watching you...



Bifkids

myServer 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 Offline

Germany 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 Cheesy
Logged
WCA | Maxxi [NL]
Level 7 Expert
*****
Offline Offline

Netherlands Netherlands

Posts: 910



WWW
16maxpayne16

myServer 81.26.221.156:27015
(Warning: click connects through Steam)
« Reply #12 on: February 21, 2009, 11:44:59 PM »

Thanks beretta :]
i hope it works now, but i'm rlly confident Cheesy
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) Smiley
Logged

Server = work in progress Smiley


SynDraXx
Level 3 Trained Apprentice
***
Offline Offline

Germany 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 Embarrassed
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:
Code:
es_xforeachkey wcs_key in WCSuserdata "es wcs_saveplayer server_var(wcs_key)"

...
Logged
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1644


Big Berettonawak is watching you...



Bifkids

myServer 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:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Crowoner
February 25, 2009, 07:05:17 PM
lol i can't execute the program it gives me error CreateProcess Failed; Code 14001
February 25, 2009, 04:23:37 PM
or else test it on a ded and then do the same
February 25, 2009, 04:23:24 PM
download it and you can >.>
February 25, 2009, 04:21:37 PM
the server is rented i can't use hlsw
February 25, 2009, 04:09:53 PM
can you get the logs (with HLSW) when you say shopmenu2?
with eventscripts_debug 1 please :p
February 25, 2009, 04:04:15 PM
Yes it's all ok ... made es_load gold in autoexec all files are right as the tutorial of gold 0.4 says
no missing file I suppose as it's original
February 25, 2009, 04:01:04 PM
is it loaded well?
have you the "official" version?
no missing file? nothing else wrong?
Recent
[Today at 12:38:51 AM]

[Today at 12:34:28 AM]

[Today at 12:12:17 AM]

[Today at 12:09:47 AM]

[Today at 12:06:56 AM]

[February 25, 2009, 11:45:05 PM]

[February 25, 2009, 10:06:36 PM]

[February 25, 2009, 07:55:08 PM]

[February 25, 2009, 07:53:02 PM]

[February 25, 2009, 07:43:19 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.073 seconds with 27 queries.