|
View previous topic :: View next topic |
| Author |
Message |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Tue Jun 19, 2007 2:57 pm Post subject: |
|
|
| 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 |
|
 |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Tue Jun 19, 2007 11:00 pm Post subject: |
|
|
| 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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Wed Jun 20, 2007 6:09 am Post subject: |
|
|
| 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 |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Wed Jun 20, 2007 7:14 am Post subject: |
|
|
Here are some mdmps with meta and the 1.5 mm
| Description: |
|
 Download |
| Filename: |
css-srcds-mdmp.zip |
| Filesize: |
120.19 KB |
| Downloaded: |
265 Time(s) |
| Description: |
|
 Download |
| Filename: |
dods-srcds-mdmp.zip |
| Filesize: |
123.08 KB |
| Downloaded: |
230 Time(s) |
|
|
| Back to top |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Wed Jun 20, 2007 9:00 am Post subject: |
|
|
is not sourceutils is doing this
_________________ My Plugins:
SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs. |
|
| Back to top |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Wed Jun 20, 2007 1:45 pm Post subject: |
|
|
| Don't see how only happens when this util is loaded
|
|
| Back to top |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Wed Jun 20, 2007 1:53 pm Post subject: |
|
|
| 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 |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Wed Jun 20, 2007 2:06 pm Post subject: |
|
|
| 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 |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Wed Jun 20, 2007 8:29 pm Post subject: |
|
|
| I've tried 1.3, 1.4, 1.5 vsps and mms and all crash the server
|
|
| Back to top |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Wed Jun 20, 2007 8:51 pm Post subject: |
|
|
| 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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Thu Jun 21, 2007 2:16 am Post subject: |
|
|
| 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 |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Mon Jun 25, 2007 10:07 pm Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Tue Jun 26, 2007 4:48 am Post subject: |
|
|
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 |
|
 |
The-Killer New User
Joined: 18 Jun 2007 Posts: 10
|
Posted: Tue Jun 26, 2007 6:45 pm Post subject: |
|
|
| 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 |
|
 |
ShadoX New User
Joined: 12 Jun 2006 Posts: 8
|
Posted: Wed Jun 27, 2007 1:38 am Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Wed Jun 27, 2007 6:05 am Post subject: |
|
|
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 |
|
 |
ShadoX New User
Joined: 12 Jun 2006 Posts: 8
|
Posted: Wed Jun 27, 2007 8:31 pm Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Thu Jun 28, 2007 10:45 am Post subject: |
|
|
| 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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Thu Jul 26, 2007 10:30 am Post subject: |
|
|
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 |
|
 |
Gud New User
Joined: 05 Aug 2007 Posts: 18
|
Posted: Sun Aug 05, 2007 12:26 pm Post subject: |
|
|
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 |
|
 |
|