Search found 16 matches

by Jezza
Wed Dec 01, 2021 7:33 am
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

I was not able to reproduce: I was expecting that, but yeah... gc.collect() used to work for me too, but for some reason it doesn't work properly sometimes, which is a mystery. Perhaps we could add a separate class for that, but as far as the current class is concerned, I think we should leave it a...
by Jezza
Tue Nov 30, 2021 2:14 am
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

Latest commit works for me on CS:S and CS:GO, and also add support for CollisionHash . Excellent work! However, there are two problems, one is that the global CollisionHash instance is not being destroyed properly when the plugin is unloaded. I'm not sure why, but it seems to be a problem with gc.c...
by Jezza
Sun Nov 28, 2021 6:40 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

Yes with the on_entity_collision, you are right, but in his previous posts on the first page of this thread, he already suggested a lookup table, that is what I was referring to. Good idea with this line tho if not pass_entity # aka if not args[1] as I didn't know you could do boolean checks for th...
by Jezza
Sun Nov 28, 2021 2:38 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

What you really need for your PassServerEntityFilter is a lookup table. Yes definitely would help, but I dont see how this any different from what was already suggested by L'In20Cible? That will depend on the results of your tests, because we do not know the performance status of your server. If L'...
by Jezza
Sun Nov 28, 2021 1:45 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

What you really need for your PassServerEntityFilter is a lookup table. # Python Imports # Collections from collections import defaultdict # Source.Python Imports # Entities from entities.helpers import index_from_inthandle # Listeners from listeners import OnEntityDeleted from listeners import OnNe...
by Jezza
Sun Nov 28, 2021 12:26 pm
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

velocity wrote:Nice, can't wait to try out, can you make a build for Linux/CS:GO?

Currently, it does not work with CS:GO. You need to wait for an update from L'In20Cible.
by Jezza
Sun Nov 28, 2021 9:17 am
Forum: Plugin Development Support
Topic: conversion error on index_from_pointer
Replies: 42
Views: 30100

Re: conversion error on index_from_pointer

L'In20Cible wrote:Here's a quick attempt at something: https://github.com/Source-Python-Dev-Te ... llisions.h

Does this disable collision? It doesn't seem to do anything. (CS:GO/Linux&Windows)
by Jezza
Sun Oct 17, 2021 2:52 am
Forum: Plugin Requests
Topic: HL2DM-cscanner spawned
Replies: 15
Views: 10110

Re: HL2DM-cscanner spawned

Have you updated to the latest Source.Python? http://downloads.sourcepython.com/ Getting this error off my windows 11 server sp plugin load temp_scanner [SP] Loading plugin 'temp_scanner'... [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\sour...
by Jezza
Mon May 03, 2021 12:31 am
Forum: Plugin Development Support
Topic: [CSGO] Setting Hand Viewmodel
Replies: 6
Views: 4702

Re: [CSGO] Setting Hand Viewmodel

To avoid overlapping of arm models, you need to prevent the precaching of existing arm models. # Source.Python Imports # Engines from engines.server import engine_server # Memory from memory import get_virtual_function from memory.hooks import PreHook @PreHook(get_virtual_function(engine_ser...
by Jezza
Thu Apr 22, 2021 8:05 am
Forum: Plugin Development Support
Topic: Delete Player Weapons On Death.
Replies: 7
Views: 4494

Re: Delete Player Weapons On Death.

Since players drop their weapons when they die, hooking "drop_weapon" is a simplest way to implement this. # Entities from entities.hooks import EntityCondition from entities.hooks import EntityPostHook # Memory from memory import make_object # Players from players.entity import Player # W...
by Jezza
Thu Jan 07, 2021 7:32 pm
Forum: Plugin Releases
Topic: [CSS/CSGO] Warcraft: Source
Replies: 106
Views: 269015

Re: [CSS/CSGO] Warcraft: Source

dAn13L wrote:I wanted to give this new version a shot and so I'm running a CS:GO server on Linux (Debian Buster 10.7) but facing a segmentation fault each time anyone should actually level up.

A problem with pointers has been fixed in Version: 703.
Please update to latest Source.Python and try it.
by Jezza
Wed Dec 02, 2020 9:25 pm
Forum: Plugin Development Support
Topic: Setting owner_handle of projectiles
Replies: 5
Views: 3904

Re: Setting owner_handle of projectiles

After the update of CTakeDamageInfo struct , CTakeDamageInfo::CTakeDamageInfo has also changed. The second argument of CTakeDamageInfo has been changed from CBaseEntity* to CSGOAttackerInfo*. Right now CBaseCSGrenadeProjectile(the base class of CMolotovProjectile) contains CSGOAttackerInfo, which wi...
by Jezza
Sat Oct 03, 2020 4:57 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 6944

Re: [HL2DM/ANY] Hooking VphysicsCollision

And using godbolt.org is an easy way to check.

Example: https://godbolt.org/z/4zn6rY
by Jezza
Sat Oct 03, 2020 4:40 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 6944

Re: [HL2DM/ANY] Hooking VphysicsCollision

Exactly! Btw. I don't think you need to register a converter. IIRC, you have to use the C++ class name (CBaseEntity in that case). I forgot about that, and yes, it's cleaner that way. Cool, I got one more question if you don't mind. :tongue: Am I terrible at counting or should the starting offset b...
by Jezza
Fri Oct 02, 2020 5:36 am
Forum: Plugin Development Support
Topic: [HL2DM/ANY] Hooking VphysicsCollision
Replies: 13
Views: 6944

Re: [HL2DM/ANY] Hooking VphysicsCollision

That's because your offsets are incorrect. class GameVCollisionEvent(CustomType, metaclass=manager): manager.register_converter("BaseEntity", BaseEntity._obj) pre_velocity = manager.static_instance_array("Vector", 32, 2, "Vector preVelocity[2]") ...
by Jezza
Sun Sep 13, 2020 7:34 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 11
Views: 20343

Re: Server crash on @EntityPreHook

A struct (Vector) is passed to the function as a hidden pointer, so callee has to clean up the stack for 4 bytes. https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html#index-callee_005fpop_005faggregate_005freturn-function-attribute_002c-x86 As L'In20Cible wrote, you can hook it by creatin...

Go to advanced search