Raised This Month: $12 Target: $400
 3% 

Metamod Query Cache


Post New Thread Reply   
 
Thread Tools Display Modes
quasemago
Senior Member
Join Date: Dec 2018
Location: Brazil
Old 11-24-2019 , 10:51   Re: Metamod Query Cache
Reply With Quote #71

Does anyone have a functional build for CS:GO (windows)?

I compiled the version posted by SM9 (#62), but although the plugin loads, it did not solve the attack problems:
Code:
IP rate limit under distributed packet load (12619 buckets, 407422 global count), rejecting 117.202.124.20:51829.
IP rate limit under distributed packet load (19124 buckets, 15001 global count), rejecting 215.231.79.88:59351.
IP rate limit under distributed packet load (8506 buckets, 15001 global count), rejecting 106.47.156.180:12138.
I did some tests and it seems that the receive detour is not working properly.
Irecvfrom_hook_RM is not triggered while sendto_hook is working properly.
__________________
I accept requests for plugins and configuration of servers.


If you liked my work, consider making a donation via PayPal.

Last edited by quasemago; 05-21-2020 at 15:36.
quasemago is offline
_Black_Yuzia_
Member
Join Date: Oct 2017
Old 04-18-2020 , 18:18   Re: Metamod Query Cache
Reply With Quote #72

Sometimes I was get a crash
https://imgur.com/xlPAbff

Tag me if u need more info.
_Black_Yuzia_ is offline
enderandrew
Senior Member
Join Date: Jun 2020
Old 08-02-2020 , 23:03   Re: Metamod Query Cache
Reply With Quote #73

Would it be possible to get a version that works with TF2 compiled for Windows and Linux?
enderandrew is offline
enderandrew
Senior Member
Join Date: Jun 2020
Old 08-04-2020 , 07:28   Re: Metamod Query Cache
Reply With Quote #74

My Linux build environment still isn't working properly and damned if I really know what I'm doing, however I believe I have this compiled for Windows using VS2019 against MM 1.10 source.

qcache_mm.dll
qcache_mm.ext.2.bgt.dll
qcache_mm.ext.2.blade.dll
qcache_mm.ext.2.csgo.dll
qcache_mm.ext.2.css.dll
qcache_mm.ext.2.dods.dll
qcache_mm.ext.2.doi.dll
qcache_mm.ext.2.eye.dll
qcache_mm.ext.2.insurgency.dll
qcache_mm.ext.2.l4d.dll
qcache_mm.ext.2.l4d2.dll
qcache_mm.ext.2.ob.dll
qcache_mm.ext.2.sdk2013.dll
qcache_mm.ext.2.swarm.dll
qcache_mm.ext.2.tf2.dll

I didn't really touch the source other than updating a few includes to get it to compile. I updated the VS project and solution as well as adding more build targets. 15 out of 21 built while the others were failing because it couldn't link to distorm.pdb even after I installed distorm and I don't have a distorm.pdb file anywhere on my computer.

I primarily just wanted to try this out for myself for TF2, but here are the files above along with the original source and the updated VS solution file.

I am trying to migrate to a Linux server so I would still appreciate if someone wants to try and get this compiled for Linux.
Attached Files
File Type: zip qcache_mm.zip (1.67 MB, 404 views)

Last edited by enderandrew; 08-04-2020 at 17:34.
enderandrew is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 09-01-2020 , 19:24   Re: Metamod Query Cache
Reply With Quote #75

Quote:
Originally Posted by enderandrew View Post
[...]
Which version of this MM:S plugin was compiled from? Original or updated?

Last edited by cravenge; 09-01-2020 at 19:27.
cravenge is offline
digin
Member
Join Date: Nov 2019
Old 09-06-2020 , 00:28   Re: Metamod Query Cache
Reply With Quote #76

i got this error when trying compile it

PHP Code:
[4214c++ -pipe -fno-strict-aliasing -Wall -Werror -Wno-uninitialized -Wno-unused -Wno-switch -msse -m32 -fvisibility=hidden -mfpmath=sse -g3 -ggdb3 -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-non-virtual-dtor -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -DMMS_GENERATED_BUILD -DSE_EPISODEONE=-DSE_HL2DM=-DSE_DOI=20 -DSE_DODS=-DSE_INSURGENCY=19 -DSE_LEFT4DEAD2=15 -DSE_NUCLEARDAWN=13 -DSE_ORANGEBOX=-DSE_BMS=10 -DSE_CSGO=21 -DSE_SDK2013=-DSE_LEFT4DEAD=12 -DSE_BLADE=18 -DSE_CSS=-DSE_TF2=11 -DSOURCE_ENGINE=12 -DCOMPILER_GCC -DNO_HOOK_MALLOC -DNO_MALLOC_OVERRIDE -/root/alliedmodders/mmsource-1.10/obj-linux/includes -/root/alliedmodders/mmsource-1.10/versionlib -/root/alliedmodders/mmsource-1.10/public -/root/alliedmodders/mmsource-1.10/query_cache -/root/alliedmodders/mmsource-1.10/query_cache/sourcehook -/root/alliedmodders/mmsource-1.10/loader -/root/alliedmodders/hl2sdk-l4d/public -/root/alliedmodders/hl2sdk-l4d/public/engine -/root/alliedmodders/hl2sdk-l4d/public/mathlib -/root/alliedmodders/hl2sdk-l4d/public/vstdlib -/root/alliedmodders/hl2sdk-l4d/public/tier0 -/root/alliedmodders/hl2sdk-l4d/public/tier1 -/root/alliedmodders/hl2sdk-l4d/public/game/server -/root/alliedmodders/hl2sdk-l4d/game/shared -/root/alliedmodders/hl2sdk-l4d/common -/root/alliedmodders/mmsource-1.10/core -/root/alliedmodders/mmsource-1.10/core/sourcehook --/root/alliedmodders/mmsource-1.10/query_cache/qcache_mm.cpp -o qcache_mm.o
In file included from 
/root/alliedmodders/hl2sdk-l4d/public/tier1/utlvector.h:23:0,
                 
from /root/alliedmodders/hl2sdk-l4d/public/tier1/convar.h:21,
                 
from /root/alliedmodders/hl2sdk-l4d/public/eiface.h:16,
                 
from /root/alliedmodders/mmsource-1.10/core/ISmmAPI.h:46,
                 
from /root/alliedmodders/mmsource-1.10/core/ISmmPlugin.h:39,
                 
from /root/alliedmodders/mmsource-1.10/query_cache/qcache_mm.h:18,
                 
from /root/alliedmodders/mmsource-1.10/query_cache/qcache_mm.cpp:19:
/
root/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.hIn member function ‘void CUtlMemory<TI>::Swap(CUtlMemory<TI>&):
/
root/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h:330:2errorthere are no arguments to ‘V_swap’ that depend on a template parameterso a declaration of ‘V_swap’ must be available [-fpermissive]
  
V_swapm_nGrowSizemem.m_nGrowSize );
  ^~~~~~
/
root/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h:330:2note: (if you use -fpermissive’G++ will accept your codebut allowing the use of an undeclared name is deprecated)
/
root/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h:332:2errorthere are no arguments to ‘V_swap’ that depend on a template parameterso a declaration of ‘V_swap’ must be available [-fpermissive]
  
V_swapm_nAllocationCountmem.m_nAllocationCount );
  ^~~~~~
Build failedquery_cache/qcache_mm.l4d/qcache_mm.
digin is offline
PlayBoy31
Senior Member
Join Date: May 2011
Location: into the void
Old 11-19-2020 , 05:17   Re: Metamod Query Cache
Reply With Quote #77

Some one have this metamod plugin working?

tested to compil it against last MM version for CSS, it crash on meta load

Code:
0 	0x9fca1c9
1 	libtier0_srv.so!VCR_Hook_recvfrom(int, char*, int, int, sockaddr*, int*) + 0x50
2 	engine_srv.so!NET_ReceiveDatagram(int, netpacket_s*) + 0x1e7
The load seems ok, QCachePlugin::Load with

Code:
	bOkay &=  recvfrom_detour.HookFunction((void*)recvfrom, (void*)recvfrom_hook_RM);
	
	bOkay &= sendto_detour.HookFunction((void*)sendto, (void*)sendto_hook);
return ok, sounds good but when recvfrom_hook_RM is called, it crash,

I have setup some traces, here the result

Code:
int _FPREFIX recvfrom_hook_RM(SOCKET s, char *buf, int len, int flags, struct sockaddr *from, int *fromlen)
{
	META_CONPRINTF("[QCache] recvfrom_hook_RM start.\n");
	
	META_CONPRINTF("[QCache] recvfrom_hook_RM recvfrom_Original.\n");
	
	recvfrom_f recvfrom_Original = (recvfrom_f)recvfrom_detour.OriginalPointer();
	
	META_CONPRINTF("[QCache] recvfrom_hook_RM sendto_Original.\n");
	
	sendto_f sendto_Original = (sendto_f)sendto_detour.OriginalPointer();
	
	META_CONPRINTF("[QCache] recvfrom_hook_RM Result.\n");
	
	int Result = recvfrom_Original(s, buf, len, flags, from, fromlen);
	
	
	META_CONPRINTF("[QCache] recvfrom_hook_RM end.\n");

	return Result;
}
console traces:

Code:
118 	187.694495 	[QCache] Hooking recvfrom - SUCCESS.
119 	187.694568 	[QCache] Hooking sendto - SUCCESS.
120 	187.694735 	Plugin "Sample Plugin" loaded with id 7.
121 	187.694812 	[QCache] recvfrom_hook_RM start.
122 	187.694858 	[QCache] recvfrom_hook_RM recvfrom_Original.
123 	187.694912 	[QCache] recvfrom_hook_RM sendto_Original.
124 	187.694943 	[QCache] recvfrom_hook_RM Result.
CRASH!!!!!!!
[QCache] recvfrom_hook_RM end is never called before the return it crash on the called of recvfrom_Original

any idea?

Last edited by PlayBoy31; 11-19-2020 at 05:21.
PlayBoy31 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 11-19-2020 , 23:45   Re: Metamod Query Cache
Reply With Quote #78

You can check this thread: https://forums.alliedmods.net/showthread.php?t=327107

There is an issue with crashing, but doesn't crash on Debian 9.
Maxximou5 is offline
PlayBoy31
Senior Member
Join Date: May 2011
Location: into the void
Old 11-20-2020 , 11:01   Re: Metamod Query Cache
Reply With Quote #79

Quote:
Originally Posted by Maxximou5 View Post
You can check this thread: https://forums.alliedmods.net/showthread.php?t=327107

There is an issue with crashing, but doesn't crash on Debian 9.
Yes im on debian 10. I tested to compil it under gcc (8.3.0) instead of clang (7.0.1) on AMBuild 2.2

Same problem, plugin crash at same level

I have tested to compil with last version of distorm, same

Quote:
Originally Posted by Maxximou5 View Post
Did you compile the extension with ambuild or the Makefile? If you're using Debian 10 or later you will need to make adjustments, the base extension when compiled will only work up to Debian 9.8.
You or someone else have an idea of what adjustments are ?

Last edited by PlayBoy31; 11-20-2020 at 11:52.
PlayBoy31 is offline
mrdiega
Member
Join Date: Dec 2020
Old 12-03-2020 , 10:51   Re: Metamod Query Cache
Reply With Quote #80

Hello. I have csgo server with SourceMod (1.10.0.6499), Metamod 1.11.0-1143, PTaH (1.1.3)
os: debian 10.6
kernel: Linux 4.19.0-12-amd64

I downloaded qcache_mm_ob.zip but it doesn't work: https://imgur.com/bgqhRU8
Also tried downloading from here https://forums.alliedmods.net/showpo...4&postcount=41 and https://forums.alliedmods.net/showthread.php?t=134373
None of this works
As I understand it, the extension needs to be recompiled for me, but I'm not even close to understanding how to do it

Last edited by mrdiega; 12-03-2020 at 10:52.
mrdiega 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 17:22.


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