Search found 1411 matches
- Sun Jul 16, 2023 2:00 pm
- Forum: Plugin Development Support
- Topic: [TF2] Make Bot Walk
- Replies: 4
- Views: 1804
Re: [TF2] Make Bot Walk
If you interested in creating your own bots, you might be interested in this: https://github.com/Ayuto/ReplayBot/blob/master/addons/source-python/plugins/replay_bot/replay_bot.py It's a plugin to capture your movements and actions (also firing). After capturing you can replay everything by creating ...
- Thu Jul 06, 2023 8:29 pm
- Forum: General Discussion
- Topic: Source 2, anybody?
- Replies: 5
- Views: 4715
Re: Source 2, anybody?
There ist already a PR which started the work on it:
https://github.com/alliedmodders/hl2sdk/pull/125
To help you will need a good understanding of C++, IDA Pro/Ghidra (or something similar) and how the compiler translates C++ code into machine code.
https://github.com/alliedmodders/hl2sdk/pull/125
To help you will need a good understanding of C++, IDA Pro/Ghidra (or something similar) and how the compiler translates C++ code into machine code.
- Wed Jul 05, 2023 5:17 pm
- Forum: Plugin Development Support
- Topic: [CS:S] FX_FireBullets error
- Replies: 1
- Views: 1637
Re: [CS:S] FX_FireBullets error
The calling convention is not correct. It should be CDECL. Moreover, FX_FireBullets is just for creating the effect, but not for any damage. This has to be done manually e. g. by calling Player.take_damage.
- Thu May 11, 2023 3:45 pm
- Forum: Plugin Development Support
- Topic: Call AddLayeredSequence
- Replies: 5
- Views: 2346
Re: Call AddLayeredSequence
import memory from memory import Convention, DataType server = memory.find_binary('server') add_layered_sequence = server[b'\x55\x8B\xEC\x51\x53\xFF\x75\x0C'].make_function( Convention.THISCALL, [DataType.POINTER, DataType.INT, DataType.INT], DataType.INT ) add_layer...
- Tue Mar 28, 2023 4:42 pm
- Forum: General Discussion
- Topic: Source 2, anybody?
- Replies: 5
- Views: 4715
Re: Source 2, anybody?
Sorry for the late reply. I read it, but didn't have time to reply and then I forgot it :rolleyes: We haven't discussed that internally, yet. But I guess this will be a big thing due to the following points: ⋅ We need a new reverse engineered SDK. The guys at AlliedModders will probably be...
- Thu Dec 08, 2022 5:31 pm
- Forum: Plugin Development Support
- Topic: CSS: Moderator, connect/disconnect show
- Replies: 5
- Views: 3308
Re: CSS: Moderator, connect/disconnect show
Actually, a dictionary would also work, because the keys of the dictionary are checked. >>>moderator = {'[U:1:81936084]':'МЕДОЕД', 'uniqueid':'test'} >>>'[U:1:81936084]' in moderator True >>>'uniqueid' in moderator True >>>'something' in modera...
- Sat Oct 22, 2022 11:19 am
- Forum: Plugin Development Support
- Topic: [Cs:s] How to block kill command in console
- Replies: 3
- Views: 1696
Re: [Cs:s] How to block kill command in console
Just wanted to let you now that a new build is now available that includes get_command_index().
- Tue Sep 13, 2022 6:05 pm
- Forum: General Discussion
- Topic: Builds for older version
- Replies: 1
- Views: 1025
Re: Builds for older version
We only provide the latest version of Source.Python and don't support old/illegal game versions.
- Tue Sep 13, 2022 10:35 am
- Forum: General Discussion
- Topic: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
- Replies: 6
- Views: 1922
Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
As far as I understand, the performance improvements come from: ⋅ Improved frames ⋅ Improved function calls ⋅ Adaptive instructions The latter is explained in PEP659 . The interpreter will look for code with type stability during runtime and replaces the instructions wi...
- Mon Sep 12, 2022 3:04 pm
- Forum: General Discussion
- Topic: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
- Replies: 6
- Views: 1922
Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
Hey khaimovmr! Yes, there are and were plans to upgrade. With the release of 3.8 and 3.10 I twice started an upgrade, but discarded it due to the lack of time. But we should definitely do the upgrade. I will try to focus this very soon! Edit: The question is just if we should wait for 3.11, which is...
- Sat Sep 10, 2022 5:08 pm
- Forum: Plugin Development Support
- Topic: OnPlayerRunCommand not fired in TF2
- Replies: 7
- Views: 2484
Re: OnPlayerRunCommand not fired in TF2
Okay, I figured there was an issue with data.sourcepython.com which didn't update properly and provided old data. If you restart your server, it should work fine now.
- Sat Sep 10, 2022 4:17 pm
- Forum: Plugin Development Support
- Topic: OnPlayerRunCommand not fired in TF2
- Replies: 7
- Views: 2484
Re: OnPlayerRunCommand not fired in TF2
Data seems to be up-to-date. Could you please set sp_logging_level to 4 in your core_settings.ini, restart your server, load your plugin and join your server. In your console log you should see the following entry if you join the server: [Source.Python] Initializing core hook (run_command)... [Sourc...
- Sat Sep 10, 2022 2:49 pm
- Forum: Plugin Development Support
- Topic: OnPlayerRunCommand not fired in TF2
- Replies: 7
- Views: 2484
Re: OnPlayerRunCommand not fired in TF2
Game data is automatically updated by SP itself if you haven't disabled it (it's taking the latest data from data.sourcepython.com). However, it could be that our data ist not up to date. I will check that later today.
- Fri Sep 09, 2022 1:37 pm
- Forum: Plugin Development Support
- Topic: TF2 Conditions
- Replies: 5
- Views: 1989
Re: TF2 Conditions
Good catch! I also updated the code above.
I'm glad it's working!
I'm glad it's working!
- Fri Sep 09, 2022 12:21 pm
- Forum: Plugin Development Support
- Topic: TF2 Conditions
- Replies: 5
- Views: 1989
Re: TF2 Conditions
I don't think it can call via sourcemod, since Source.Python and sourcemod are different plugin. Unfortunaly i don't have any clue about those 2 functions how to call them I don't think it's impossible to call SM natives from Source.Python. A few years ago I made a proof of concept that makes it po...
- Fri Sep 09, 2022 10:19 am
- Forum: Custom Packages
- Topic: Enki
- Replies: 3
- Views: 6167
Re: Enki
This is very cool! 

- Fri Jun 24, 2022 8:39 pm
- Forum: Plugin Development Support
- Topic: CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****
- Replies: 3
- Views: 1949
Re: CS:GO - ***** OUT OF MEMORY! attempted allocation size: 4025578528 ****
I'm currently creating a new release based on the SDK update. This should also fix the TF2 issue.
The new release should be available in ~30 minutes.
The new release should be available in ~30 minutes.
- Mon Apr 18, 2022 8:18 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Hook remaining time of the map
- Replies: 7
- Views: 2942
Re: [Cs:s] Hook remaining time of the map
I can't say without testing, but performance shouldn't matter in this case as you are probably not invoking it a thousand times per frame. So, you better choose the non-signature solution. That way you don't have to maintain a signature which might break with a game update. Moreover, you are more cr...
- Thu Apr 14, 2022 1:51 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Hook remaining time of the map
- Replies: 7
- Views: 2942
Re: [Cs:s] Hook remaining time of the map
Ah, in that case you don't want to hook the function, but you want to call it instead. Usually, you only hook functions if you want to modify their behaviour. Try this: import memory from memory import Convention, DataType from engines.gamerules import find_gamerules from commands.typed import Typed...
- Thu Apr 14, 2022 7:15 am
- Forum: Plugin Development Support
- Topic: [Cs:s] Hook remaining time of the map
- Replies: 7
- Views: 2942
Re: [Cs:s] Hook remaining time of the map
You first version was quite correct. The message you see, is simply the output of your print statement. It's not an error. What exactly would you like to archieve? Maybe this helps a little bit more: import memory from memory import Convention, DataType from memory.hooks import PostHook server = mem...