Search found 847 matches

by Ayuto
Fri Apr 21, 2017 4:31 pm
Forum: Plugin Development Support
Topic: Need help hooking these functions
Replies: 5
Views: 103

Re: Need help hooking these functions

Okay, these functions are very weird. You might want to try this: import memory from memory import DataType from memory import Register from memory import CallingConvention from memory.hooks import PreHook from memory.hooks import PostHook class WeirdConvention(CallingConvention): def get_re...
by Ayuto
Fri Apr 21, 2017 2:00 pm
Forum: Plugin Development Support
Topic: Need help hooking these functions
Replies: 5
Views: 103

Re: Need help hooking these functions

You are always missing an argument (this pointer). E.g. here: # CTFGameRules::GetPayloadToPush(CTFGameRules *this, int) get_payload_to_push = server[GET_PAYLOAD_TO_PUSH_IDENTIFIER].make_function( Convention.THISCALL, [DataType.POINTER, DataType.INT], DataType.VOID ) It should actuall...
by Ayuto
Tue Apr 18, 2017 5:34 pm
Forum: Plugin Development Support
Topic: anyway that i can get IpAddress and Port etc in cs:go?
Replies: 6
Views: 109

Re: anyway that i can get IpAddress and Port etc in cs:go?

The ConVar solution doesn't seem to work reliably for the port: Socket bound to non-default port 27016 because original port was already in use. WARNING: Port 27015 was unavailable - bound to port 27016 instead Socket bound to non-default port 27006 because original port was already in use. WARNING:...
by Ayuto
Tue Apr 18, 2017 5:22 pm
Forum: Plugin Development Support
Topic: Create own listener
Replies: 5
Views: 84

Re: Create own listener

To clarify it: you don't need it, but it's commonly used when creating modules to prevent cluttering your namespace when you import everything with the asterisk.
by Ayuto
Tue Apr 18, 2017 10:12 am
Forum: Plugin Development Support
Topic: Create own listener
Replies: 5
Views: 84

Re: Create own listener

Yep, that's exactly how you do it.
by Ayuto
Wed Apr 12, 2017 6:10 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 170

Re: [Help] Way to see cause of crash ?

Take a look at the last sentence of the text you quoted. :grin:
by Ayuto
Wed Apr 12, 2017 5:09 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 170

Re: [Help] Way to see cause of crash ?

existenz wrote:Why i haven't this error ?
A problem in Warcraft mod ?
Which error?
by Ayuto
Wed Apr 12, 2017 4:23 pm
Forum: Plugin Development Support
Topic: [Help] Way to see cause of crash ?
Replies: 21
Views: 170

Re: [Help] Way to see cause of crash ?

The point here is that you are unlikely to get any Python traceback in the crash case. You'll only get memory dumps which are useless. So to debug this issue, one needs to try the opposite approach - debugging Warcraft mod itself (if it's the cause of the crash). This is not quite correct. Adding t...
by Ayuto
Tue Apr 11, 2017 6:49 pm
Forum: Plugin Development Support
Topic: How do I use the KeyValues class?
Replies: 4
Views: 58

Re: How do I use the KeyValues class?

There you go: https://github.com/Source-Python-Dev-Team/Source.Python/commit/a40f83d963e4333b5102d828ff13e128fa4af32c Test code: from pprint import pprint from colors import RED from events.manager import game_event_manager from memory import get_object_pointer d = { 'key1': '0', ...
by Ayuto
Tue Apr 11, 2017 4:50 pm
Forum: Plugin Development Support
Topic: How do I use the KeyValues class?
Replies: 4
Views: 58

Re: How do I use the KeyValues class?

from keyvalues import KeyValues root = KeyValues('Admins') admin1 = root.find_key('Admin1', True) admin1.set_string('auth', 'steam') admin1.set_string('identity', 'STEAM_0:1:1337') admin1.set_string('flags',...
by Ayuto
Sun Apr 09, 2017 12:59 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 82
Views: 3141

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Maybe something like this will work: from memory import get_object_pointer buffer = ProtobufMessage('CCSUsrMsg_SayText2') args[3].copy(buffer, buffer.byte_size) # Do you stuff here get_object_pointer(buffer).copy(args[3], buffer.byte_size) But I can't really t...
by Ayuto
Sun Apr 09, 2017 9:45 am
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 82
Views: 3141

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

I think SM was allocating fake buffers. Those buffers seem to be allocated without RTTI data. That's similar to the issue we had here:
https://github.com/Source-Python-Dev-Te ... -232789719
by Ayuto
Sun Apr 09, 2017 9:32 am
Forum: Plugin Development Support
Topic: [CSGO/any] DataTable warning suppression
Replies: 2
Views: 62

Re: [CSGO/any] DataTable warning suppression

Data table warnings are probably sent via DataTable_Warning (engine function). So, the easiest way is probably to hook that function and completely block it from executing.
by Ayuto
Tue Apr 04, 2017 7:28 pm
Forum: Plugin Development Support
Topic: problem with psycopg2
Replies: 7
Views: 57

Re: problem with psycopg2

Did you try it with the 32 Bit version of Python 3.5?

Edit: Yes, according to the screenshot you installed it using the 64 Bit version. You will need the 32 Bit version.
by Ayuto
Tue Apr 04, 2017 6:45 pm
Forum: Plugin Development Support
Topic: problem with psycopg2
Replies: 7
Views: 57

Re: problem with psycopg2

Have you checked if that file exists? If it exists, the reason could be that Source.Python is using 3.5 and not 3.6.
by Ayuto
Tue Apr 04, 2017 6:38 pm
Forum: Plugin Development Support
Topic: problem with psycopg2
Replies: 7
Views: 57

Re: problem with psycopg2

Looks like you are missing the _psycopg module.
by Ayuto
Tue Apr 04, 2017 6:35 pm
Forum: Whatever
Topic: Hello everyone! i didn't know where to post so here i am!
Replies: 7
Views: 158

Re: Hello everyone! i didn't know where to post so here i am!

Not yet. It's still being worked on.
by Ayuto
Mon Apr 03, 2017 8:13 pm
Forum: Development Status Updates
Topic: Development status update (March 2017)
Replies: 0
Views: 63

Development status update (March 2017)

It's time for another development status update! :smile: ⋅ Fixes: ⋅  Fixed CS:GO offsets for mvps and clan_tag. ⋅  Fixed buy_internal signature for CS:GO/Linux. ⋅ Additions: ⋅  Added CEconEntity.item_definition_index and CTFPlayer.bump_weapon for TF2...
by Ayuto
Mon Apr 03, 2017 8:02 pm
Forum: Plugin Development Support
Topic: Help on TypedCommand
Replies: 7
Views: 124

Re: Help on TypedCommand

This is only one part of the issue. The main problem is that CCommand::Tokenize doesn't parse multibyte characters correctly. Somehow it splits those characters, which result in invalid bytes. from commands import Command cmd = Command() cmd.tokenize('ä 123 ä asd') print(...
by Ayuto
Mon Apr 03, 2017 4:20 pm
Forum: Plugin Development Support
Topic: A2S_INFO
Replies: 2
Views: 74

Re: A2S_INFO

Hi,

Since pretty much everything is possible with enough effort, I would like to ask what you want to do with that. There might be easier approaches to achieve what you want to do.

Go to advanced search