CircleDamageIndicator

Release your plugins here!
User avatar
qPexLegendary
Junior Member
Posts: 3
Joined: Wed Apr 14, 2021 2:26 am
Location: Russia
Contact:

CircleDamageIndicator

Postby qPexLegendary » Wed Apr 14, 2021 2:52 am

Hello everyone. It's my first plugin on SP. It show damage done to other player in around crosshair.

GitHub: https://github.com/qPexLegendary/CircleDamageIndicator

Screenshot:
Image
cssbestrpg
Senior Member
Posts: 120
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: CircleDamageIndicator

Postby cssbestrpg » Wed Apr 14, 2021 5:08 am

Hello, congratulations for your first plugin on SP and welcome to SP Forums
User avatar
Ayuto
Project Leader
Posts: 2140
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: CircleDamageIndicator

Postby Ayuto » Wed Apr 14, 2021 5:47 am

Very cool stuff!

Just one note: the PluginInfo class isn't meant to be created by the plugin. It's being created by SP, so it's also possible to retrieve information about unloaded plugins. To tell SP which information the instance should contain, you can create an info.ini file:
http://wiki.sourcepython.com/developing ... plugininfo
User avatar
qPexLegendary
Junior Member
Posts: 3
Joined: Wed Apr 14, 2021 2:26 am
Location: Russia
Contact:

Re: CircleDamageIndicator

Postby qPexLegendary » Wed Apr 14, 2021 6:25 am

Ayuto wrote:Very cool stuff!

Just one note: the PluginInfo class isn't meant to be created by the plugin. It's being created by SP, so it's also possible to retrieve information about unloaded plugins. To tell SP which information the instance should contain, you can create an info.ini file:
http://wiki.sourcepython.com/developing ... plugininfo

Thanks for the advice. I just barely looked at the documentation(Im lazy) and did it at random, but used basis of other plugin :grin:
cssbestrpg
Senior Member
Posts: 120
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: CircleDamageIndicator

Postby cssbestrpg » Wed Apr 14, 2021 8:18 am

I have the tested plugin in css. I noticed it gives the errors when did shoot enemy:

Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event
    callback(game_event)
  File "..\addons\source-python\plugins\circle_damage_indicator\circle_damage_indicator.py", line 54, in on_damage
    color1=Color(*color.get_as_tuple),

OverflowError: can't convert negative value to unsigned int
User avatar
qPexLegendary
Junior Member
Posts: 3
Joined: Wed Apr 14, 2021 2:26 am
Location: Russia
Contact:

Re: CircleDamageIndicator

Postby qPexLegendary » Wed Apr 14, 2021 11:24 am

cssbestrpg wrote:I have the tested plugin in css. I noticed it gives the errors when did shoot enemy:

Code: Select all

[SP] Caught an Exception:
Traceback (most recent call last):
  File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event
    callback(game_event)
  File "..\addons\source-python\plugins\circle_damage_indicator\circle_damage_indicator.py", line 54, in on_damage
    color1=Color(*color.get_as_tuple),

OverflowError: can't convert negative value to unsigned int

I have fixed this now. Thank you

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 2 guests