[CSGO New Sp] Error on tick listener

Please post any questions about developing your plugin here. Please use the search function before posting!
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

[CSGO New Sp] Error on tick listener

Postby existenz » Thu Apr 13, 2017 8:26 am

Hey !

I have an error with the new version of Sourcepython (Maybe it's due to csgo update)
Sourcepython is loaded without problem but when a player join i have this error and the warcraft mod is unload.

Syntax: Select all

Exception ignored in: <bound method GameThread.__del__ of <GameThread(Thread-1, started -428872896)>>
Traceback (most recent call last):
File "/srv/games/csgo/warcraft/csgo/addons/source-python/packages/source-python/listeners/tick.py", line 53, in __del__
on_tick_listener_manager.unregister_listener(self._tick)

ValueError: Callback not registered.


For errors of this type you would prefer that I declare an issue on git ?
Last edited by existenz on Thu Apr 13, 2017 2:53 pm, edited 1 time in total.
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby iPlayer » Thu Apr 13, 2017 2:01 pm

Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby existenz » Thu Apr 13, 2017 2:04 pm

This error occurred with the latest build, with this correction :/
User avatar
PhantomDancer
Member
Posts: 42
Joined: Wed Mar 15, 2017 10:39 am
Location: The Great Arctic Hemispheres

Re: [CSGO New Sp] Error on tick listener

Postby PhantomDancer » Thu Apr 13, 2017 2:07 pm

to fix your first error remove L52-L54

https://github.com/Source-Python-Dev-Te ... ick.py#L52
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby iPlayer » Thu Apr 13, 2017 2:19 pm

This error occurred with the latest build, with this correction :/

It's impossible. We have completely removed

Syntax: Select all

self._register_if_empty()

But it's in your traceback.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
PhantomDancer
Member
Posts: 42
Joined: Wed Mar 15, 2017 10:39 am
Location: The Great Arctic Hemispheres

Re: [CSGO New Sp] Error on tick listener

Postby PhantomDancer » Thu Apr 13, 2017 2:22 pm

he has to replace his local file
/addons/source-python/packages/source-python/listeners/tick.py
with the updated gitfile
https://raw.githubusercontent.com/Source-Python-Dev-Team/Source.Python/143be039938f9cf04a8de1e6ab2ec72ec9ba8c7e/addons/source-python/packages/source-python/listeners/tick.py
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby existenz » Thu Apr 13, 2017 2:46 pm

Thanks for your answer.
For the second error i have remove it it's not due to latest build my bad.
I will retest when i m back. But i have delete all sp package and put the new and this error appear so i don't know, maybe mishandling.
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby iPlayer » Thu Apr 13, 2017 5:55 pm

Update your addons/source-python/packages/source-python/listeners/tick.py with this version:
https://github.com/Source-Python-Dev-Te ... rs/tick.py

This version replaces GameThread class with a dummy, since with the latest updates it turns out that we don't need GameThread class anymore.
In your case it should fix everything (I mean exceptions, not crashes)

...or you can wait til the buildbot builts another SP version. For the time of writing this reply, it hasn't built it yet though.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby existenz » Thu Apr 13, 2017 7:02 pm

Nice ! I will try to update it.
existenz
Senior Member
Posts: 111
Joined: Thu Feb 09, 2017 3:33 pm
Location: France
Contact:

Re: [CSGO New Sp] Error on tick listener

Postby existenz » Fri Apr 14, 2017 11:36 am

Problem solved with the last Sp update :)
Thanks.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 26 guests