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 2010-01-16 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 16, 2010, 04:15:10 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: Removing old players with SQLite (WCS v0.77)  (Read 1255 times)
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1109



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« on: March 08, 2008, 03:03:37 PM »

With that query, you can wipe old players from your user database!

The tool you need is a SQLite browser: http://sourceforge.net/projects/sqlitebrowser/

  • stop the wcs mod (es_unload wcs)
  • BACKUP your es_wcsdata.sqldb
  • open it with SQLite browser
  • go to execute SQL, paste in the code
  • save the file and upload on server, reload mod

Here is how you can find old players: (gives you the number) 14 days

SELECT COUNT(*) FROM WCSusers A WHERE strftime('%s','now')-14*24*3600 >= (SELECT xp FROM WCSusers B WHERE race = "_wcs_" and A.id = B.id) and race != "_wcs_"

Or delete all players being that long not playing: (14 days)

DELETE FROM WCSusers WHERE id IN (SELECT id FROM WCSusers A WHERE strftime('%s','now')-14*24*3600 >= (SELECT xp FROM WCSusers B WHERE race = "_wcs_" and A.id = B.id) and race != "_wcs_")

Hope this helps to keep your userDB smaller Wink
« Last Edit: March 08, 2008, 10:10:47 PM by kryptonite » Logged
unnamed62
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #1 on: March 17, 2008, 01:28:22 AM »

is there ANY way to edit your  es_wcsdata.sqldb   so taht i can basically copy one users levels and give them all to a new user so basically it would kinda look like this...

just and EXAMPLE

as if...
<steamid>
race 1 lvl 2
race 2 lvl 16
race 3 lv 123123
so on and so forth...

and new user is
steam id
race 1 lvl 0
race 2 lvl 0
so on and forth..
any way i can jsut copy a part of the first one and copy to second? so that they will be same lvls
do you understand what im attempting to say?

so all iwould have to do is search with ctrl + f and search the first users steam id and than copy the race lvl txt part and copy it to the new steam id
Logged


Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 14, 2010, 06:18:58 PM
here is the topic i created... please put the skills in there: http://warcraft-source.com/board/index.php/topic,9315.0.html
January 14, 2010, 06:15:26 PM
O.K. I started now the project for a new RaceCreator... I will programm it and upload it then.... would be nice if you could make a topic with all skills texno and all others (sepretated in "player_attacker" etc. )
January 14, 2010, 05:30:29 PM
yeah..
January 14, 2010, 04:11:46 PM
Oh i see... not very much skills / ultimates... and just maximum 4 lvl for the skills lol....
January 14, 2010, 04:08:57 PM
thanks, are there any bugs ?? I can't fix it because first : don't have the programm code and second : don't know if he wrote it in C#...^^
January 14, 2010, 11:37:50 AM
Here's the link... maby you can update it Termi ? "http://warcraft-source.com/board/index.php/topic,6199.0.html"

http://warcraft-source.com/board/index.php/topic,6199.0.html
January 13, 2010, 07:26:02 PM
No prob dude
Recent
[Today at 04:10:11 PM]

[Today at 12:56:34 PM]

[Today at 12:12:58 PM]

[Today at 02:12:10 AM]

[Today at 12:02:45 AM]

[January 15, 2010, 11:58:57 PM]

[January 15, 2010, 11:25:21 PM]

[January 15, 2010, 11:04:53 PM]

[January 15, 2010, 10:44:43 PM]

by NeSo
[January 15, 2010, 07:20:35 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.107 seconds with 23 queries.