Page 4 of 5

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 4:19 pm
by cssbestrpg
daren adler wrote:OK,,where do i add it,, i looked for that to add and dont kno ?, please help

You need to go to /addons/source-python/packages/source-python/effects/hooks.py
and replace lines 90-98 with

Syntax: Select all

# =============================================================================
# >> HOOKS
# =============================================================================
@PreHook(get_virtual_function(engine_server, 'PlaybackTempEntity'))
def pre_playback_temp_entity(stack_data):
"""Handle pre hooks."""
temp_entity = TempEntity(stack_data[3])
try:
recipients = make_object(RecipientFilter, stack_data[1])
except RuntimeError:
recipients = RecipientFilter()
(stack_data[1] + 4).copy(
get_object_pointer(recipients) + 4,
get_size(RecipientFilter) - 4
)
recipients.update(*tuple(recipients), clear=True)
return temp_entity.template.handle_hook(temp_entity, recipients)

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 4:40 pm
by daren adler
Ok, i did and still gives errors

Code: Select all

2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 10:31:56 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\plugins\command.py", line 164, in load_plugin
    plugin = self.manager.load(plugin_name)
  File "..\addons\source-python\packages\source-python\plugins\manager.py", line 207, in load
    plugin._load()
  File "..\addons\source-python\packages\source-python\plugins\instance.py", line 74, in _load
    self.module = import_module(self.import_name)
  File "..\addons\source-python\plugins\lights\lights.py", line 273, in <module>
    @PreHook(get_virtual_function(engine_server, 'PlaybackTempEntity'))

NameError: name 'PreHook' is not defined


2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Plugin 'lights' was unable to be loaded.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 10:31:56 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 10:31:57 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 102, in pre_playback_temp_entity
    get_object_pointer(recipients) + 4,

NameError: name 'get_object_pointer' is not defined


2021-03-05 10:31:57 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 102, in pre_playback_temp_entity
    get_object_pointer(recipients) + 4,

NameError: name 'get_object_pointer' is not defined


heres what i am using, please have a look and maybe see what i am doing wrong. https://www.dropbox.com/s/zptd69kjgtx7w ... s.zip?dl=0 I did what you said to do, and still get errors.

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 4:46 pm
by cssbestrpg
In your lights.py its missing import, add this

Syntax: Select all

from memory.hooks import PreHook

in your lights.py

Edit:

The error also shows hooks.py is missing this import

Syntax: Select all

from memory import get_object_pointer

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 5:45 pm
by daren adler
still get this

Code: Select all

2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 11:42:10 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\plugins\command.py", line 164, in load_plugin
    plugin = self.manager.load(plugin_name)
  File "..\addons\source-python\packages\source-python\plugins\manager.py", line 207, in load
    plugin._load()
  File "..\addons\source-python\packages\source-python\plugins\instance.py", line 74, in _load
    self.module = import_module(self.import_name)
  File "..\addons\source-python\plugins\lights\lights.py", line 275, in <module>
    @PreHook(get_virtual_function(engine_server, 'PlaybackTempEntity'))

NameError: name 'get_virtual_function' is not defined


2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Plugin 'lights' was unable to be loaded.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 11:42:10 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 11:42:12 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 102, in pre_playback_temp_entity
    get_object_pointer(recipients) + 4,

NameError: name 'get_object_pointer' is not defined


2021-03-05 11:42:12 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 102, in pre_playback_temp_entity
    get_object_pointer(recipients) + 4,

NameError: name 'get_object_pointer' is not defined


2021-03-05 11:42:16 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 102, in pre_playback_temp_entity
    get_object_pointer(recipients) + 4,

NameError: name 'get_object_pointer' is not defined


2021-03-05 11:42:16 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 98, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 102, in pre_playback_temp_entity
    get_object_pointer(recipients) + 4,

NameError: name 'get_object_pointer' is not defined



Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:00 pm
by cssbestrpg
in yours lights.py is missing these import too

Syntax: Select all

from memory import get_virtual_function
from engines.server import engine_server

Edit:

Add this in yours hooks.py
The location for hooks.py is here: /addons/source-python/packages/source-python/effects/hooks.py

Syntax: Select all

from memory import get_object_pointer

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:12 pm
by daren adler
Still get this, im sorry,,i think im doing what you said right.

Code: Select all

2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'lights'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 12:07:47 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 12:07:48 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:07:48 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 282, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])

NameError: name 'make_object' is not defined


2021-03-05 12:07:48 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:07:48 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 282, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])

NameError: name 'make_object' is not defined


2021-03-05 12:07:51 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:07:51 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 282, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])

NameError: name 'make_object' is not defined


2021-03-05 12:07:51 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:07:51 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 282, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])

NameError: name 'make_object' is not defined



Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:15 pm
by cssbestrpg
Add this in lights.py

Syntax: Select all

from memory import make_object


Edit:

This to hooks.py

Syntax: Select all

from memory import get_size

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:31 pm
by daren adler
I did that and now this

Code: Select all

2021-03-05 12:26:22 - sp   -   EXCEPTION   An error occured during the data update.
Traceback (most recent call last):
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\exiles\hl2mp\addons\source-python\Python3\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\exiles\hl2mp\addons\source-python\Python3\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\exiles\hl2mp\addons\source-python\Python3\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\exiles\hl2mp\addons\source-python\Python3\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "C:\exiles\hl2mp\addons\source-python\Python3\http\client.py", line 964, in send
    self.connect()
  File "C:\exiles\hl2mp\addons\source-python\Python3\http\client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "C:\exiles\hl2mp\addons\source-python\Python3\socket.py", line 722, in create_connection
    raise err
  File "C:\exiles\hl2mp\addons\source-python\Python3\socket.py", line 713, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\exiles\hl2mp\addons\source-python\packages\source-python\__init__.py", line 130, in setup_data_update
    if is_new_data_available():
  File "C:\exiles\hl2mp\addons\source-python\packages\source-python\core\update.py", line 277, in is_new_data_available
    return DATA_ZIP_FILE.read_hexhash('md5') != get_latest_data_checksum(timeout)
  File "C:\exiles\hl2mp\addons\source-python\packages\source-python\core\update.py", line 286, in get_latest_data_checksum
    with urlopen(CHECKSUM_URL, timeout=timeout) as url:
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 526, in open
    response = self._open(req, data)
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 544, in _open
    '_open', req)
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "C:\exiles\hl2mp\addons\source-python\Python3\urllib\request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error timed out>
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 12:26:22 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'lights'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 12:26:23 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 12:26:30 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:26:30 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:26:54 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:26:54 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:36 pm
by daren adler
I removed what u said to put in hooks -> from memory import get_size, So it went back to this. if i add that bac, it says what i showed.

Code: Select all

2021-03-05 12:31:44 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'lights'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined



Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:37 pm
by cssbestrpg
It need to be in hooks.py and lights.py

Syntax: Select all

from memory import get_size

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:39 pm
by daren adler
ok, ill try again

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:44 pm
by daren adler
https://www.dropbox.com/s/6jc6ryhhfvqn9 ... s.zip?dl=0 here is what i did and the error again, so sorry.

Code: Select all

2021-03-05 12:31:44 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'lights'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 12:31:45 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:46 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:31:50 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 283, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\plugins\lights\lights.py", line 288, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'alpha_props'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'alpha_props'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'fiery_bolts'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fiery_bolts'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'fragcloud'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'fragcloud'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'headshot'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'headshot'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'lights'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'lights'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'killcam'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'killcam'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'nade_trail'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'nade_trail'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'npc_points'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'npc_points'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'sawblade_trail'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'sawblade_trail'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'scoreboard'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'silent_hill'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'silent_hill'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'spawn_effect'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'spawn_effect'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'temp_clawscanner'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'temp_clawscanner'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'throwables'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'throwables'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_effects'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_effects'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'weapon_manager'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'weapon_manager'.
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Loading plugin 'zoom'...
2021-03-05 12:38:58 - sp   -   MESSAGE   [SP] Successfully loaded plugin 'zoom'.
2021-03-05 12:38:59 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:38:59 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:39:04 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined


2021-03-05 12:39:04 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity
    recipients = make_object(RecipientFilter, stack_data[1])
RuntimeError: Access violation - no RTTI data!

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 104, in pre_playback_temp_entity
    get_size(RecipientFilter) - 4

NameError: name 'get_size' is not defined



Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:46 pm
by cssbestrpg
You need add in hooks.py
The location for it is \addons\source-python\packages\source-python\effects\hooks.py

Syntax: Select all

from memory import get_size

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 6:55 pm
by daren adler
OK i will, then ill come back and show ya what it shows,,ty

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 7:19 pm
by daren adler
OK, no errors, but now it crashes with no error to read why. dont crash if i // the script out.

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 7:23 pm
by cssbestrpg
Weird, the code L'In20Cible gave is untested, try with this old hooks.py code, replace your hooks.py all code with this:

Syntax: Select all

# ../effects/hooks.py

"""Provides hooking effect functionality."""

# =============================================================================
# >> IMPORTS
# =============================================================================
# Source.Python Imports
# Core
from core import AutoUnload
# Effects
from effects.base import TempEntity
from effects.templates import temp_entity_templates
# Engines
from engines.server import engine_server
# Filters
from filters.recipients import RecipientFilter
# Memory
from memory import get_virtual_function
from memory import make_object
from memory.hooks import HookType
from memory.hooks import PreHook


# =============================================================================
# >> ALL DECLARATION
# =============================================================================
__all__ = ('TempEntityPreHook',
)


# =============================================================================
# >> CLASSES
# =============================================================================
class TempEntityPreHook(AutoUnload):
"""Decorator used to create temp entity pre hooks that auto unload."""

def __init__(self, temp_entity_name):
"""Initialize the hook object.
:param str temp_entity_name:
The name of the temp entity to hook.
"""
# Get and store the temp entity template...
self.template = temp_entity_templates[temp_entity_name]

# Set the callback to None...
self.callback = None

def __call__(self, callback):
"""Store the callback and try initialize the hook."""
# Store the callback...
self.callback = callback

# Initialize the hook...
self.template.add_hook(callback)

# Return the callback...
return callback

def _unload_instance(self):
"""Unload the hook."""
# Exit the call if the callback wasn't registered...
if self.callback is None:
return

# Unregister the hook...
self.template.remove_hook(self.callback)


class TempEntityPostHook(TempEntityPreHook):
"""Decorator used to create temp entity post hooks that auto unload."""

def __init__(self, temp_entity_name):
"""Initialize the hook object.
:param str temp_entity_name:
The name of the temp entity to hook.
"""
from warnings import warn
warn(
'TempEntityPostHook has been deprecated and will be entirely '
'unsupported in a future update. Use TempEntityPreHook instead '
'or register your own post hook on '
'CEngineServer::PlaybackTempEntity/CBaseTempEntity::Create.')

super().__init__(temp_entity_name)


# =============================================================================
# >> HOOKS
# =============================================================================
@PreHook(get_virtual_function(engine_server, 'PlaybackTempEntity'))
def pre_playback_temp_entity(stack_data):
"""Handle pre hooks."""
temp_entity = TempEntity(stack_data[3])
return temp_entity.template.handle_hook(temp_entity,
make_object(RecipientFilter, stack_data[1]))

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 7:33 pm
by daren adler
ok, will do, ty :grin: :grin:

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 7:39 pm
by daren adler
The darn thing does not like me very well.

Code: Select all

2021-03-05 13:35:36 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 96, in pre_playback_temp_entity
    make_object(RecipientFilter, stack_data[1]))

RuntimeError: Access violation - no RTTI data!


2021-03-05 13:35:36 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 96, in pre_playback_temp_entity
    make_object(RecipientFilter, stack_data[1]))

RuntimeError: Access violation - no RTTI data!


2021-03-05 13:35:39 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 96, in pre_playback_temp_entity
    make_object(RecipientFilter, stack_data[1]))

RuntimeError: Access violation - no RTTI data!


2021-03-05 13:35:39 - sp   -   EXCEPTION   
[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\effects\hooks.py", line 96, in pre_playback_temp_entity
    make_object(RecipientFilter, stack_data[1]))

RuntimeError: Access violation - no RTTI data!

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 7:44 pm
by cssbestrpg
It doesn't seem like you very much, unfortunately i can't help with that error, i have no idea what that causes, my scripting skills is limited

Re: [HL2:DM] Crossbow

Posted: Fri Mar 05, 2021 8:20 pm
by daren adler
cssbestrpg wrote:It doesn't seem like you very much, unfortunately i can't help with that error, i have no idea what that causes, my scripting skills is limited


Ok, ya, no errors but crashes now, ok, hopefully someone can, thank you for your help.