Search found 1413 matches

by Ayuto
Sun Apr 24, 2016 2:01 pm
Forum: General Discussion
Topic: CS:S Windows crash when trying to hook function with a class method
Replies: 3
Views: 3786

Re: CS:S Windows crash when trying to hook function with a class method

Thanks for reporting! I have fixed the issue: https://github.com/Source-Python-Dev-Team/Source.Python/commit/f34bcf52f78bf9e3945a49a422dec6c0856fc0e3 As you can see here we were using a little hack to get around that issue. :D https://github.com/Source-Python-Dev-Team/Source.Python/commit/f34bcf52f7...
by Ayuto
Sun Apr 24, 2016 1:08 pm
Forum: General Discussion
Topic: SP does not work CS:GO
Replies: 13
Views: 9287

Re: SP does not work CS:GO

as long as valve doesnt obsfuscate the byte structure, which wont happen [...] It happens when they update a function, use different compiler settings or the compiler itself decides to generate different bytes, because it has been updated, changed or whatever. That's exactly the reason why signatur...
by Ayuto
Sun Apr 24, 2016 11:14 am
Forum: General Discussion
Topic: SP does not work CS:GO
Replies: 13
Views: 9287

Re: SP does not work CS:GO

I have updated the global pointer data. CS:GO on Windows should work again: https://github.com/Source-Python-Dev-Team/Source.Python/commit/7254aad46a6622c3433a8a262c406127051bb481 So, what you are suggesting is getting the signature of a function + a signature to retrieve the offset to the pointer? ...
by Ayuto
Wed Apr 20, 2016 8:12 pm
Forum: General Discussion
Topic: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook
Replies: 16
Views: 15094

Re: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook

Weird... I can't get Player instance inside of drop_weapon post-hook. @EntityPostHook(EntityCondition.is_player, 'drop_weapon') def on_drop_weapon(args, ret_val): player = make_object(Player, args[0]) crashses @EntityPostHook(EntityCondition.is_player, 'drop_...
by Ayuto
Tue Apr 19, 2016 8:02 pm
Forum: General Discussion
Topic: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook
Replies: 16
Views: 15094

Re: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook

Okay thanks! I will take a look at it tomorrow. :)
by Ayuto
Tue Apr 19, 2016 7:54 pm
Forum: General Discussion
Topic: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook
Replies: 16
Views: 15094

Re: CS:S Linux crash when dropping weapon in OnTakeDamage pre-hook

iPlayer wrote:Anyways, why is it OS-dependent?

Hooking/calling functions is highly OS dependent!

But I'm a bit confused now. Which code is causing crashes? Code to reproduce the issue would be nice or is the code in your first post already causing crashes?
by Ayuto
Thu Apr 07, 2016 6:40 am
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 84
Views: 58444

Better just call make_object(RecipientFilter, args[1]).add_all_players(). But I think there is a ConVar as well. Just can't remember its name.
by Ayuto
Mon Apr 04, 2016 6:09 pm
Forum: General Discussion
Topic: SP Not loading
Replies: 14
Views: 10380

Hm, that's funny, because the core.so shouldn't rely on the GLIBC library anymore. Do you have the possibility to update your GLIBC version to 2.17 or later?
by Ayuto
Sun Apr 03, 2016 5:10 pm
Forum: Development Status Updates
Topic: Development status update (March 2016)
Replies: 0
Views: 4457

Development status update (March 2016)

It's time for another development status update! :) ⋅ Fixes: ⋅  Improved performance of FireEntityOutput hook. ⋅  Fixed issue #110. ⋅  Fixed issue #114. ⋅  Fixed name conflict between _listeners._ListenerManager and listeners._ListenerManager. ⋅...
by Ayuto
Thu Mar 31, 2016 8:03 pm
Forum: General Discussion
Topic: SP Not loading
Replies: 14
Views: 10380

Are you really sure you replaced the core.so in ../addons/source-python/bin?
by Ayuto
Thu Mar 31, 2016 6:50 pm
Forum: Plugin Development Support
Topic: How to block the 'Fire in the hole.' sound in CSS?
Replies: 10
Views: 8093

Oops :o
by Ayuto
Thu Mar 31, 2016 6:13 pm
Forum: Plugin Development Support
Topic: How to block the 'Fire in the hole.' sound in CSS?
Replies: 10
Views: 8093

The user message you would want to hook is RadioText. However, there is a function called UTIL_CSRadioMessage() which is used by the engine to create the user message. So, you can simply hook this function instead: from core import PLATFORM import memory from memory import Convention from memory imp...
by Ayuto
Thu Mar 31, 2016 3:45 pm
Forum: General Discussion
Topic: SP Not loading
Replies: 14
Views: 10380

Okay, I have updated the core.so. Please re-download source-python.so and core.so:
http://build.affecta.net/job/Source.Python%20-%20Other%20Branches/game=csgo,label=master/lastSuccessfulBuild/artifact/
by Ayuto
Thu Mar 31, 2016 11:47 am
Forum: General Discussion
Topic: SP Not loading
Replies: 14
Views: 10380

by Ayuto
Wed Mar 30, 2016 8:49 pm
Forum: General Discussion
Topic: SP Not loading
Replies: 14
Views: 10380

Please post the full console output you get when starting the server.
by Ayuto
Wed Mar 30, 2016 10:36 am
Forum: General Discussion
Topic: Missing VCRUNTIME140.dll
Replies: 4
Views: 6192

The issue has been resolved already:
https://github.com/Source-Python-Dev-Team/Source.Python/issues/114

There is no need to install anything.
by Ayuto
Tue Mar 29, 2016 4:55 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 84
Views: 58444

No, I assume the example in the links shows how to get ProtobufMessage object of the sent message, then you can alter it, for example, [PYTHON]buffer.set_string('msg_name', "My message")[/PYTHON] Exactly! Though, I should mention that the code in the other thread isn't working anymore, because I ha...
by Ayuto
Mon Mar 28, 2016 3:20 pm
Forum: Custom Packages
Topic: ControlledCvars
Replies: 4
Views: 20383

This might be interesting for you:
https://github.com/Source-Python-Dev-Team/Source.Python/commit/3ad0dbf8127f81ab0344938923c09069abc20586

With this listener you don't need to add the notify flag anymore.

Go to advanced search