SourcePlugins Index SourcePlugins
All Plugins for Valve's Source - Hosted by Mattie
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Board Navigation
Home
Forum
Search

Plugins:
All Plugins
Mattie's Plugins

Web Tools:
VDF Creator

Randomness:
Flash game for CS:S
ThinkGeek PC Mods ThinkGeek Computing

Browse Source Plugins
[View all]
access(1) admin(7) anti-camp(3) anti-cheat(2) chat(2) clan(1) database(1) deathmatch(3) dods(2) international(1) leveling(1) lite(3) management(1) map-management(3) metamod(10) metaplugin(3) mod(3) models(1) perspective(1) players(1) popular(9) punishment(1) respawn(3) rpg(1) scheduling(1) scripting(4) sounds(6) source-code(4) special-effects(1) stats(3) user:McFly(1) war(1) weapons(5) web(1) zombie(1)

Who is Online

In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

Registered Users: None

[ View complete list ]


Most users ever online was 97 on Tue Aug 03, 2010 10:06 pm


Search

Advanced Search

[26/7/07] SourceUtils v1.6
  Description: Utils For All Source Games!
  Tags: scripting database
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    SourcePlugins Index -> Plugins and Addons List
View previous topic :: View next topic  
Author Message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Tue Jun 19, 2007 2:57 pm    Post subject: Reply with quote

The-Killer wrote:
Windows, and first it was meta's server.dll being listed in the crashdumps but when i used ur vsp instead of mm it was one list at the top of the callstack in the crashdump


sendme your crashdump

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger



The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Tue Jun 19, 2007 11:00 pm    Post subject: Reply with quote

Stupid hosting company taking forever to provide the logs, also tried 1.3 mm and it still crashed the server, tried to get 1.4vsp but its really the mm version?
Back to top
View user's profile Send private message Send e-mail AIM Address
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Wed Jun 20, 2007 6:09 am    Post subject: Reply with quote

The-Killer wrote:
Stupid hosting company taking forever to provide the logs, also tried 1.3 mm and it still crashed the server, tried to get 1.4vsp but its really the mm version?


yes

but you should use v1.5

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Wed Jun 20, 2007 7:14 am    Post subject: Reply with quote

Here are some mdmps with meta and the 1.5 mm


css-srcds-mdmp.zip
 Description:

Download
 Filename:  css-srcds-mdmp.zip
 Filesize:  120.19 KB
 Downloaded:  265 Time(s)


dods-srcds-mdmp.zip
 Description:

Download
 Filename:  dods-srcds-mdmp.zip
 Filesize:  123.08 KB
 Downloaded:  230 Time(s)

Back to top
View user's profile Send private message Send e-mail AIM Address
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Wed Jun 20, 2007 9:00 am    Post subject: Reply with quote

is not sourceutils is doing this
_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Wed Jun 20, 2007 1:45 pm    Post subject: Reply with quote

Don't see how only happens when this util is loaded
Back to top
View user's profile Send private message Send e-mail AIM Address
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Wed Jun 20, 2007 1:53 pm    Post subject: Reply with quote

The-Killer wrote:
Don't see how only happens when this util is loaded


the crashdump say the crash is provacated by own css server

server.dll

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Wed Jun 20, 2007 2:06 pm    Post subject: Reply with quote

I thought that at first too, but both meta and css dll is server.dll, had to open with notepad2 and change one to a capital S to see which one it was and it was metamod and therefore most likely your plugin
Back to top
View user's profile Send private message Send e-mail AIM Address
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Wed Jun 20, 2007 8:29 pm    Post subject: Reply with quote

I've tried 1.3, 1.4, 1.5 vsps and mms and all crash the server
Back to top
View user's profile Send private message Send e-mail AIM Address
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Wed Jun 20, 2007 8:51 pm    Post subject: Reply with quote

Also mind you this is under quite high usage, 3/4 players being checked a minute on average, if it does crash when everyone is joining and being checked it can crash constantly
Back to top
View user's profile Send private message Send e-mail AIM Address
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Thu Jun 21, 2007 2:16 am    Post subject: Reply with quote

The-Killer wrote:
Also mind you this is under quite high usage, 3/4 players being checked a minute on average, if it does crash when everyone is joining and being checked it can crash constantly


the usage is not a problem

i test very mysql command at same time and no crash

the problem can be of the scritp too

try disable script only

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Mon Jun 25, 2007 10:07 pm    Post subject: Reply with quote

The server doesnt crash when the script isnt loaded because then nothing is using the plugin, but I just tried hand writing the query with the script not loaded and the server crashed.

I also tried a simple Select CURTIME() and that worked but seriously lagged the gameserver, seems that queries are not being threaded and therfore crash the server

Mind you i have tested this on CSS and DODS servers, the dods is 32 players and full 24/7 and this is the rapid usage one.

The css one however crashes with even just 5 people, this is not due to any script and you can fell the lag when multiple people join and the queries are executed.
Back to top
View user's profile Send private message Send e-mail AIM Address
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Tue Jun 26, 2007 4:48 am    Post subject: Reply with quote

mysql is threaded, the lag is normal because mysql is heavy under usage.

but use only a query by a player_activate will be good

and not use that in map change when all players activate!!!

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
The-Killer
New User


Joined: 18 Jun 2007
Posts: 10

PostPosted: Tue Jun 26, 2007 6:45 pm    Post subject: Reply with quote

I wrote my own script last night that would only allow one query to be run at a time and after it checked 10 or 15 people it crashed the server, then when the server restarted and my script was loaded at startup with all the people joning it crashed about 3 times in a row before i could unload the script
Back to top
View user's profile Send private message Send e-mail AIM Address
ShadoX
New User


Joined: 12 Jun 2006
Posts: 8

PostPosted: Wed Jun 27, 2007 1:38 am    Post subject: Reply with quote

Do you know how to get SU v1.5 working with the latest version of the Warcraft 3 mod for CSS?

It works fine on v1.1 but lags presumably because that versions isn't multi-threaded.

I tried putting 1.5 on but the server won't retrieve data.

As far as i can tell the WC3 mod grabs returned data in the [Var] bit of the su_MySQL

su_MySQL <ServerIP> <Port | 3306 = Default Port> <UserName> <Password | "" = No Password> <"DataBase | "" = No db Command"> <"Cmd"> <[Var]>

but 1.5 doesn't seem to return data to that anymore? Does it only return data via the custom event you made?

I tried adding the event and saving the su_mysql_data event_var() to the variable the script uses but it seems the event returns each field of data individually rather as 1 long string (ie the WC3 mod wants 2 or 3 fields at once i think and the variable just keeps getting over written with the next fields data thus the WC3 mod can't retrieve data)

Is the <[Var]> bit on the su_MySQL command not sposed to return now (and if so why is it still there?) or is it broken (and if so when can we expect it to be fixed?) or how can i get around it so 1.5 works?
Back to top
View user's profile Send private message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Wed Jun 27, 2007 6:05 am    Post subject: Reply with quote

IN v1.5

var = get mysql userid for use with event_var(su_mysql_userid)

event su_mysql is fired 1 time per data

if reteruns is more than 1 event will fire more times

Quote:
"su_mysql"
{
"su_mysql_userid" "short" // Set Your Query "SELECT" Userid. Retured By su_mysql* <[Var]>
"su_mysql_status" "short" // 0 = Connection Fail | 1 = Query Fail | 2 = Sucessfull MySQL Job | 3 = Sucessfull MySQL Job With Returned Data
"su_mysql_data" "string" // Return Data Selected (SELECT *) (0 = No Select Command | OK = Finish Get All Data)
"su_mysql_db" "string" // db Used (0 = No db Used)
"su_mysql_cmd" "string" // Cmd Used
}



before in v1.3 - su get all data in a var

and cant suport big datas, eg. using syntax * for select all data in a db

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ShadoX
New User


Joined: 12 Jun 2006
Posts: 8

PostPosted: Wed Jun 27, 2007 8:31 pm    Post subject: Reply with quote

Hmm ok damn, i tried userid and it returns alot of times, but the sql query used is a SELECT * statement

I think it'll be too hard to edit WC3 mod to work aswell, guess i'll wait for a new version that suits SU v1.5

Thanks anyway
Back to top
View user's profile Send private message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Thu Jun 28, 2007 10:45 am    Post subject: Reply with quote

ShadoX wrote:
Hmm ok damn, i tried userid and it returns alot of times, but the sql query used is a SELECT * statement

I think it'll be too hard to edit WC3 mod to work aswell, guess i'll wait for a new version that suits SU v1.5

Thanks anyway


the current version is v1.5

example usage

Code:
event su_mysql
{
      if(server_var(sqlvar) = event_var(su_mysql_userid)) do
      {
             if(event_var(su_mysql_data) != "OK") do
             {
                      es_msg event_var(su_mysql_data)
             }
       }
}

you also can see a mysql usage example

http://forums.mattie.info/cs/forums/viewtopic.php?t=13908&postdays=0&postorder=asc&highlight=source+utils&start=0

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Thu Jul 26, 2007 10:30 am    Post subject: Reply with quote

New Version !!

v1.6 [26/7/07]

- added SourceUtils FreeLib can run without SourceUtils bin files (only mysql functions)
- added 'su_thread' event for threaded functions like geoip http
- added 'su_file' event for debug/print a file
- added file open/endwrite/list/remove/event commands
- added su_echo command
- added su_getexists mapent (allow know if exists an entity in map eg. buy_zone)
- added su_for command
- added su_FileCreate command (allow you create your own files!)
- added su_dumpclassprops command
- added su_dumpmapentitys command
- added su_dumpsclean command
- added a new folder 'addons/sourceutils/dumps' for dumps

- added 'su_nextmap' cvar to know nextmap
- added 'su_backmap' cvar to know backmap

- updated GeoIp.dat
- updated sourceutils_security.cfg with Files Options

- Improved su_compile command!
- Improved su_cvarforceset command!

- fixed all userid problems (crashs, not found userid)
- fixed "su_getnetinfo timeout" no setvalue to 0
- fixed all "su_getexists" no setvalue to 0

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Gud
New User


Joined: 05 Aug 2007
Posts: 18

PostPosted: Sun Aug 05, 2007 12:26 pm    Post subject: Reply with quote

I have a homepage,


In my homepage i have a pay botten, and then peapels buy V.I.P. via paypal, then they have pay the go back to my site.


http://clanroyal.dk/success.php

okay, i have a mysql database, then they get to this site, www.clanroyal.dk/donate.php , ther i get the steamid, are it possible to send steamid via a command from http://clanroyal.dk/success.php so they be writet to reserve.txt etc
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SourcePlugins Index -> Plugins and Addons List All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB.