Raised This Month: $246 Target: $400
 61% 

Notices

[EXTENSION] Query Cache 1.7 (Updated!)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-03-2010 , 22:18   [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #1

This is merely an updated version of recon0's Query Cache. The convars have been removed, and after installation, the only time you will need to update or maintain this extension is if the protocol changes, or if the extension is updated.

Purpose: Protect the server from A2S_INFO DoS attacks. Every 5 seconds, the data in the A2S_INFO is refreshed to reflect the current values.

Changes from recon0's extension:
  • Added a Linux binary
  • Now allows players to connect to the server (the "null entity packet" protection recon0's extension provided prevented any user from connecting to the server)
  • Extra data flag is now reported
Todo:
  • Report the actual tags. Currently the tags reported is "Tags, tags, MORE TAGS"
  • Fix the password bug on Windows
Credits:
  • recon0 - Wrote extension code
  • Afronanny (me) - updating and maintaining it
  • asherkin - Provided the code to get the gameserver's steamid
Download available here: http://code.google.com/p/querycache/downloads/list
Source Code available here: http://code.google.com/p/querycache/source/browse/

Note: If you want to compile this extension yourself, have Open Steamworks available.

If you encounter any problems please post them here.

Last edited by Afronanny; 08-16-2010 at 17:22.
Afronanny is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-03-2010 , 22:53   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #2

Thanks for fixing the issues!

*Edit: Still locks CS:S servers when loaded*
__________________

Last edited by thetwistedpanda; 08-03-2010 at 22:56.
thetwistedpanda is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-03-2010 , 23:44   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #3

Quote:
Originally Posted by thetwistedpanda View Post
Thanks for fixing the issues!

*Edit: Still locks CS:S servers when loaded*
What OS?
Afronanny is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-03-2010 , 23:47   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #4

Uhh Windows, server edition 03 iirc, although possibly 08.
__________________
thetwistedpanda is offline
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 08-04-2010 , 07:23   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #5

1)
Code:
[01] <FAILED> file "querycache.ext.so": /home/wsciekle/server_css1/orangebox/cstrike/addons/sourcemod/extensions/querycache.ext.so: cannot open shared object file: No such file or directory
seams like linux version file name should be querycache.ext.so not query_cache.ext.so
2) extension don't respect sv_visiblemaxplayers and shows all slots
3) Game Description is static, pls make it work with SDKHooks GameDescription hook
__________________
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-04-2010 , 07:46   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #6

Quote:
Originally Posted by KawMAN View Post
1)
Code:
[01] <FAILED> file "querycache.ext.so": /home/wsciekle/server_css1/orangebox/cstrike/addons/sourcemod/extensions/querycache.ext.so: cannot open shared object file: No such file or directory
seams like linux version file name should be querycache.ext.so not query_cache.ext.so
2) extension don't respect sv_visiblemaxplayers and shows all slots
3) Game Description is static, pls make it work with SDKHooks GameDescription hook

1. Oh blah. Smack me for doing this late at night. fixed now
2. Will do
3. I'll add something that works with SDKHooks.
Afronanny is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-05-2010 , 14:24   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #7

This may have issues on some windows servers, due to the Steam library doing batshit-insane load-order stuff.

Afronanny, grab me on IRC one day and I'll give you what you need to make sure it can't fail.
Also, as your using OSW already, there may be a better way to hook the packets, I can talk to you about that at the same time .

Anyway, Nice job continuing work on this.
__________________
asherkin is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-05-2010 , 17:40   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #8

Quote:
Originally Posted by asherkin View Post
This may have issues on some windows servers, due to the Steam library doing batshit-insane load-order stuff.

Afronanny, grab me on IRC one day and I'll give you what you need to make sure it can't fail.
Also, as your using OSW already, there may be a better way to hook the packets, I can talk to you about that at the same time .

Anyway, Nice job continuing work on this.

I assume you're talking about this when talking about fixing Windows loading issues, no?

Last edited by Afronanny; 08-05-2010 at 17:42.
Afronanny is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-05-2010 , 17:52   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #9

Quote:
Originally Posted by Afronanny View Post
I assume you're talking about this when talking about fixing Windows loading issues, no?
That's the stuff, but a reentrant function can do a much cleaner job of it.
__________________
asherkin is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 08-05-2010 , 18:09   Re: [EXTENSION] Query Cache 1.7 (Updated!)
Reply With Quote #10

Quote:
Originally Posted by asherkin View Post
That's the stuff, but a reentrant function can do a much cleaner job of it.
Which way does it better, yours or Wazz's?

Quote:
Originally Posted by asherkin View Post
Anyway, Nice job continuing work on this.
Thanks, but valve is going to hate my guts for doing it. You know why.
Afronanny is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:44.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode