Page 1 of 1

[HL2:DM] Jetpack use in [BMS]

Posted: Sat May 07, 2022 3:39 pm
by Painkiller
I am getting this error, could someone help me fix it ?

Code: Select all

2022-05-07 17:37:26 - sp.hooks.exceptions   -   EXCEPTION   [Source.Python]
[SP] Caught an Exception:
Traceback (most recent call last):
  File "../addons/source-python/packages/source-python/listeners/tick.py", line 79, in _tick
    self.pop(0).execute()
  File "../addons/source-python/packages/source-python/listeners/tick.py", line 160, in execute
    return self.callback(*self.args, **self.kwargs)
  File "../addons/source-python/packages/source-python/listeners/tick.py", line 607, in _execute
    self.callback(*self.args, **self.kwargs)
  File "../addons/source-python/plugins/aux_jetpack/aux_jetpack.py", line 207, in _jetpack_think
    aux = self.get_network_property_float('m_HL2Local.m_flSuitPower')

ValueError: Unable to find property 'm_HL2Local.m_flSuitPower'.

Posted: Mon May 09, 2022 12:16 pm
by Articha
Code, where exception is raised? I think, you trying to get property on wrong entity. May be this function called on bot?

Re: [HL2:DM] Jetpack use in [BMS]

Posted: Mon May 09, 2022 6:28 pm
by cssbestrpg
That error is caused, because the game doesn't have that property, when it tries get the property that doesn't exists, it causes that value error

Re: [HL2:DM] Jetpack use in [BMS]

Posted: Wed May 11, 2022 1:34 pm
by Articha
cssbestrpg wrote:That error is caused, because the game doesn't have that property, when it tries get the property that doesn't exists, it causes that value error
It's may be caused due to entity change. Your function can be called for another entity. Check for that. Also, send code or explain [BMS] to me. Personally I don't understand where find code.

Re: [HL2:DM] Jetpack use in [BMS]

Posted: Wed May 11, 2022 1:44 pm
by cssbestrpg
Articha wrote:
cssbestrpg wrote:That error is caused, because the game doesn't have that property, when it tries get the property that doesn't exists, it causes that value error
It's may be caused due to entity change. Your function can be called for another entity. Check for that. Also, send code or explain [BMS] to me. Personally I don't understand where find code.


Painkiller tried use the code in Black Mesa which was created for Half-Life 2: DeathMatch.
So i adoubt the property the code uses doesn't just exists in Black Mesa, but i can't tell for sure, since i don't have Black Mesa

Re: [HL2:DM] Jetpack use in [BMS]

Posted: Mon May 16, 2022 8:23 am
by Painkiller
Hello, just read this.

@cssbestrpg is right, I tried to use it in BMS.