AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [CS:GO] PTaH - V1.0.8 (https://forums.alliedmods.net/showthread.php?t=289289)

komashchenko 10-19-2016 12:53

[CS:GO] PTaH - V1.0.8
 
1 Attachment(s)
PTaH - P Tools and Hooks

include


Example/Test Plugin


Thanks to: Dr!fter, Peace-Maker, GoD-Tony, rom4s

Links
Source
Builds
Gamedata

Changelog

shavit 10-19-2016 15:28

Re: [CS:GO] PTaH - V1.0
 
hey, that's pretty good!
could you possibly add a threaded function with a callback for PTaH_GetHostByName?

headline 10-19-2016 20:38

Re: [CS:GO] PTaH - V1.0
 
Awesome!! Definitely going to have fun with this!

komashchenko 10-21-2016 14:03

Re: [CS:GO] PTaH - V1.0
 
Quote:

Originally Posted by shavit (Post 2463458)
hey, that's pretty good!
could you possibly add a threaded function with a callback for PTaH_GetHostByName?

can you give an example of what you would like to see?

shavit 10-22-2016 20:06

Re: [CS:GO] PTaH - V1.0
 
Quote:

Originally Posted by komashchenko (Post 2463807)
can you give an example of what you would like to see?

something like this i guess:
Code:

public void OnPluginStart()
{
        // uses the system's dns resolver
        PTaH_GetHostByName("google.com", OnDNSLookup_Success, OnDNSLookup_Failure);
       
        // custom dns resolver
        PTaH_GetHostByName_Custom("google.com", OnDNSLookup_Success, OnDNSLookup_Failure, "8.8.4.4");
}

public void OnDNSLookup_Success(int ipaddress[4])
{
        PrintToServer("IP: %d.%d.%d.%d", ipaddress >>> 24 & 255, ipaddress >>> 16 & 255, ipaddress >>> 8 & 255, ipaddress & 255);
}

public void OnDNSLookup_Failure(const char[] reason)
{
        PrintToServer("Lookup failed! Reason: %s", reason);
}


milutinke 10-23-2016 02:59

Re: [CS:GO] PTaH - V1.0
 
Cool, very useful :D
GJ !

komashchenko 11-01-2016 11:53

Re: [CS:GO] PTaH - V1.0.1
 
1.0.1
  • Added hook ServerConsolePrint
  • Fixed PTaH_GetEconItemViewFromWeapon for Windows (Thank you GoD-Tony)
  • PTaH_GetHostByName substituted for PTaH_GetAddrInfo

Quote:

Originally Posted by shavit (Post 2464122)
something like this i guess:
Code:

public void OnPluginStart()
{
        // uses the system's dns resolver
        PTaH_GetHostByName("google.com", OnDNSLookup_Success, OnDNSLookup_Failure);
       
        // custom dns resolver
        PTaH_GetHostByName_Custom("google.com", OnDNSLookup_Success, OnDNSLookup_Failure, "8.8.4.4");
}

public void OnDNSLookup_Success(int ipaddress[4])
{
        PrintToServer("IP: %d.%d.%d.%d", ipaddress >>> 24 & 255, ipaddress >>> 16 & 255, ipaddress >>> 8 & 255, ipaddress & 255);
}

public void OnDNSLookup_Failure(const char[] reason)
{
        PrintToServer("Lookup failed! Reason: %s", reason);
}


I could not make a feature for custom dns, but slightly increased functionality

metal_upa 11-16-2016 03:09

Re: [CS:GO] PTaH - V1.0.1
 
Good extension, can i request this hook too? https://forums.alliedmods.net/showthread.php?t=141109

komashchenko 11-29-2016 01:28

Re: [CS:GO] PTaH - V1.0.1
 
del

Divin12 11-29-2016 02:01

Re: [CS:GO] PTaH - V1.0.1
 
Can you fix error GetItemSchema after recent update it didn't work

Aymeric VII 11-29-2016 03:59

Re: [CS:GO] PTaH - V1.0.1
 
[PTaH] Failed to get GetItemSchema function.
and also ptah has "CDownloadListGenerator" that needs updating, thanks.

Divin12 11-29-2016 04:26

Re: [CS:GO] PTaH - V1.0.1
 
he already posted the updates, try and you will se it work fine now

Aymeric VII 11-29-2016 04:32

Re: [CS:GO] PTaH - V1.0.1
 
Quote:

Originally Posted by Divin12 (Post 2473513)
he already posted the updates, try and you will se it work fine now

wtf are you talking about
how can he post an update for linux when csgo updated today and broke it and the last pushed update on this was 11 days ago according to github. :roll:

Divin12 11-29-2016 04:44

Re: [CS:GO] PTaH - V1.0.1
 
I can;t upload it here I don;t know why pm me with your steam acc to give it

rogeraabbccdd 11-29-2016 04:50

Re: [CS:GO] PTaH - V1.0.1
 
Quote:

Originally Posted by Divin12 (Post 2473521)
I can;t upload it here I don;t know why pm me with your steam acc to give it

Can you upload it to dropbox or google drive or somewhere and post a link?

Aymeric VII 11-29-2016 05:00

Re: [CS:GO] PTaH - V1.0.1
 
Quote:

Originally Posted by rogeraabbccdd (Post 2473523)
Can you upload it to dropbox or google drive or somewhere and post a link?

he pm'ed me saying this "www . girlshare . ro / 3489605907.7 Without spaces! G"

Seems like a fishy link

Divin12 11-29-2016 05:01

Re: [CS:GO] PTaH - V1.0.1
 
I try now in this post! http://www.girlshare.ro/3489605907.7
Dude is an Romanian uploading site:))) scan with antivirus If you want.
In desktop.rar are 2 files you need to put txt file in gamedata and .so file in extensions
Restart server and Ptah work.

komashchenko 11-29-2016 05:06

Re: [CS:GO] PTaH - V1.0.1
 
del

Hallucinogenic Troll 11-29-2016 06:47

Re: [CS:GO] PTaH - V1.0.1
 
Quote:

Originally Posted by komashchenko (Post 2473530)
A temporary version for Linux
does not work PTaH_ExecuteStringCommand end PTaH_ServerConsolePrint
http://rgho.st/private/7zmXZ6cvg/7ed...24150e709c6263

Well, with the update of sourcemod and your extension, my server is working perfectly (on Linux), at least until now, without any crashes.

komashchenko 11-29-2016 12:31

Re: [CS:GO] PTaH - V1.0.1
 
https://github.com/komashchenko/PTaH...rwards.cpp#L75
left to fix ExecuteStringCommand
If you run DETOUR that commands sent by a player not reach the server (although before all was normal),
I've tried all the options that came to my mind but nothing helped, if anyone can help to fix this issue.

Peace-Maker 11-29-2016 14:48

Re: [CS:GO] PTaH - V1.0.1
 
Quote:

Originally Posted by komashchenko (Post 2473668)
https://github.com/komashchenko/PTaH...rwards.cpp#L75
left to fix ExecuteStringCommand
If you run DETOUR that commands sent by a player not reach the server (although before all was normal),
I've tried all the options that came to my mind but nothing helped, if anyone can help to fix this issue.

Your signature is wrong. You're referencing the wrong chunk.
Code:

\x55\x89\xE5\x83\xEC\x18\x89\x5D\xF8\x8B\x5D\x08\x89\x75\xFC\x8B\x75\x0C\x89\x1C\x24\x89\x74\x24\x04\xE8\x2A\x2A\x2A\x2A\x84\xC0\x74\x2A

komashchenko 11-29-2016 15:36

Re: [CS:GO] PTaH - V1.0.2
 
1.0.2
  • Fix after update CSGO. Thank you Peace-Maker, GoD-Tony, rom4s

sneaK 01-13-2017 16:13

Re: [CS:GO] PTaH - V1.0.2
 
Code:

L 01/13/2017 - 01:22:22: [PTaH] Invalid detour address passed - Disabling detour to prevent crashes
L 01/13/2017 - 01:22:22: [PTaH] Detour failed CDownloadListGenerator.

Using latest available version and gamedata. Am I missing something or did this just break after last night's CS:GO update? I am using it for the first time.

komashchenko 01-13-2017 17:59

Re: [CS:GO] PTaH - V1.0.2
 
Quote:

Originally Posted by blackhawk74 (Post 2486234)
Code:

L 01/13/2017 - 01:22:22: [PTaH] Invalid detour address passed - Disabling detour to prevent crashes
L 01/13/2017 - 01:22:22: [PTaH] Detour failed CDownloadListGenerator.

Using latest available version and gamedata. Am I missing something or did this just break after last night's CS:GO update? I am using it for the first time.

OS ?

sneaK 01-13-2017 19:10

Re: [CS:GO] PTaH - V1.0.2
 
Quote:

Originally Posted by komashchenko (Post 2486269)
OS ?

Apologies for not specifying earlier, Windows.

komashchenko 01-14-2017 08:06

Re: [CS:GO] PTaH - V1.0.2
 
Quote:

Originally Posted by blackhawk74 (Post 2486288)
Apologies for not specifying earlier, Windows.

I am rechecked signature it is the same as here https://github.com/komashchenko/PTaH....games.txt#L10, checked on the test server everything is fine too i dont know why you have this issue.

JAA 01-14-2017 10:09

Re: [CS:GO] PTaH - V1.0.2
 
Amazing!

sneaK 01-15-2017 01:36

Re: [CS:GO] PTaH - V1.0.2
 
Quote:

Originally Posted by komashchenko (Post 2486421)
I am rechecked signature it is the same as here https://github.com/komashchenko/PTaH....games.txt#L10, checked on the test server everything is fine too i dont know why you have this issue.

Aha, I figured out the issue. I was incredibly confused since I was using the latest build & gamedata, yet it still wasn't working.

Here is my current extensions list:

Spoiler


Note the bolded extensions. When Nav File Download Blocker is installed, that's when I get this error:

Code:

L 01/13/2017 - 01:22:22: [PTaH] Invalid detour address passed - Disabling detour to prevent crashes
L 01/13/2017 - 01:22:22: [PTaH] Detour failed CDownloadListGenerator.

When Cleaner is loaded, I get this error:
Code:

L 01/15/2017 - 00:34:24: [PTaH] Failed get signature ServerConsolePrint.
With neither of these extensions loaded, there are no errors, and no server crashes. It looks like there's some sort of conflict. For both of these extensions, neither of these exact signatures are specified in their gamedata files. Any thoughts?

asherkin 01-15-2017 05:39

Re: [CS:GO] PTaH - V1.0.2
 
Quote:

Originally Posted by asherkin (Post 2479475)
Wildcard the first 8 bytes of the signature to fix the conflict, though you might need to create a longer signature to ensure you're still matching the correct function.


sneaK 01-16-2017 13:10

Re: [CS:GO] PTaH - V1.0.2
 
Edit:

The original (working) signature for CDownloadListGenerator:

Code:

"windows"                "\x55\x8B\xEC\x81\xEC\x04\x01\x00\x00\x56\x8B\xF1\x8B\x4D\x08"
With the first 8 bytes wildcarded (I think I did this right?):

Code:

"windows"                "\x2A\x2A\x2A\x2A\x55\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\xEC\x2A\x2A\x2A\x2A\x81\x2A\x2A\x2A\x2A\xEC\x2A\x2A\x2A\x2A\x04\x2A\x2A\x2A\x2A\x01\x2A\x2A\x2A\x2A\x00\x00\x56\x8B\xF1\x8B\x4D\x08"
Was still resulting in

Code:

L 01/23/2017 - 02:25:43: [PTaH] Invalid detour address passed - Disabling detour to prevent crashes
L 01/23/2017 - 02:25:43: [PTaH] Detour failed CDownloadListGenerator.

Did I even do that right? Perhaps more is needed? I'm assuming I would also need to do the same for ServerConsolePrint.[/QUOTE]

Cripix 04-25-2017 09:27

Re: [CS:GO] PTaH - V1.0.4
 
Download build dead?

Sw33T3R 04-25-2017 11:19

Re: [CS:GO] PTaH - V1.0.4
 
Quote:

Originally Posted by Cripix (Post 2515124)
Download build dead?

https://ptah.zizt.ru/
Works fine for me

Aymeric VII 04-25-2017 17:31

Re: [CS:GO] PTaH - V1.0.4
 
Anyone have one working for Linux?
L 04/25/2017 - 16:25:13: [PTaH] Invalid detour address passed - Disabling detour to prevent crashes
L 04/25/2017 - 16:25:13: [PTaH] Detour failed CDownloadListGenerator.

sneaK 04-25-2017 18:25

Re: [CS:GO] PTaH - V1.0.4
 
Quote:

Originally Posted by Aymeric VII (Post 2515288)
Anyone have one working for Linux?
L 04/25/2017 - 16:25:13: [PTaH] Invalid detour address passed - Disabling detour to prevent crashes
L 04/25/2017 - 16:25:13: [PTaH] Detour failed CDownloadListGenerator.

What other extensions are you running?

Aymeric VII 04-25-2017 18:46

Re: [CS:GO] PTaH - V1.0.4
 
Quote:

Originally Posted by sneaK (Post 2515309)
What other extensions are you running?

https://bitbucket.org/SM91337/a2s-spam-ban

Spoiler

sneaK 04-26-2017 01:36

Re: [CS:GO] PTaH - V1.0.4
 
Try removing all other non-essential extensions (ones that come with SM) and running PTaH, ensuring you have latest gamedata.

If it works without those other extensions, it means there is a conflict. I had a similar issue with this extension: https://forums.alliedmods.net/showthread.php?t=192615 (caused a conflict)

So I had to remove it in favor of PTaH.

komashchenko 04-28-2017 16:04

Re: [CS:GO] PTaH - V1.0.4
 
Hello, can you guys suggest after latest update CSGO i can't find address functions not by signature not by name https://github.com/komashchenko/PTaH...wards.cpp#L231

I tried get address functions beside but also always received NULL, I ran out of ideas

ch4os 04-29-2017 05:01

Re: [CS:GO] PTaH - V1.0.4
 
Quote:

Originally Posted by komashchenko (Post 2516651)
Hello, can you guys suggest after latest update CSGO i can't find address functions not by signature not by name https://github.com/komashchenko/PTaH...wards.cpp#L231

I tried get address functions beside but also always received NULL, I ran out of ideas

Accelerator74 has the same problem for his Cleaner plugin.
Maybe you two can figure out a solution together: https://forums.alliedmods.net/showpo...&postcount=289

Accelerator 04-29-2017 06:37

Re: [CS:GO] PTaH - V1.0.4
 
Quote:

Originally Posted by komashchenko (Post 2516651)
Hello, can you guys suggest after latest update CSGO i can't find address functions not by signature not by name https://github.com/komashchenko/PTaH...wards.cpp#L231

Try to use dlsym function. Work for me.

komashchenko 04-29-2017 07:22

Re: [CS:GO] PTaH - V1.0.4
 
V1.0.4 build6
FIX ServerConsolePrint, thank you Accelerator74


All times are GMT -4. The time now is 09:20.

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