HL2DM-scoreboard and stats

A place for requesting new Source.Python plugins to be made for your server.

Please request only one plugin per thread.
User avatar
Kami
Global Moderator
Posts: 251
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM-scoreboard and stats

Postby Kami » Mon Dec 21, 2020 4:21 pm

Oh okay, yeah then delete the stats/player.db
User avatar
PEACE
Member
Posts: 50
Joined: Mon Oct 12, 2020 1:13 pm

Re: HL2DM-scoreboard and stats

Postby PEACE » Mon Dec 21, 2020 4:22 pm

Kami ,

Its working fine now here thank bro :)

/Peace
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Mon Dec 21, 2020 4:54 pm

I did the update 3 times, and it still says this about the bot.

Code: Select all

2020-12-21 10:50:48 - sp   -   EXCEPTION   
[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\scoreboard\scoreboard.py", line 453, in player_death
    stats_rank[attacker.steamid]['points'] = statsplayers[attacker.userid].kills-statsplayers[attacker.userid].deaths

KeyError: 'BOT'
User avatar
Kami
Global Moderator
Posts: 251
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM-scoreboard and stats

Postby Kami » Mon Dec 21, 2020 6:44 pm

Could you please send me your players.db? The problem is that you are using different bots then me, so I cannot recreate the bug.
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Mon Dec 21, 2020 6:55 pm

Kami wrote:Could you please send me your players.db? The problem is that you are using different bots then me, so I cannot recreate the bug.

ok here it is https://www.dropbox.com/s/fl01tgdd4uh4k ... b.zip?dl=0 Also, what bots are you using?. I am using hurricane bots HL2DM player bot plugin 1.3.4
User avatar
Kami
Global Moderator
Posts: 251
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM-scoreboard and stats

Postby Kami » Mon Dec 21, 2020 7:18 pm

Thank you. It's strange that you get that error, as none of your bots actually has the steamid BOT. I'll have to investigate that further before I can fix it. I am using Botrix bots.
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Mon Dec 21, 2020 7:22 pm

Kami wrote:Thank you. It's strange that you get that error, as none of your bots actually has the steamid BOT. I'll have to investigate that further before I can fix it. I am using Botrix bots.

ok thank you for all you are doing. :grin:
User avatar
PEACE
Member
Posts: 50
Joined: Mon Oct 12, 2020 1:13 pm

Re: HL2DM-scoreboard and stats

Postby PEACE » Mon Dec 21, 2020 7:35 pm

Kami,

We would use Botrix too if we didnt have to generate way points for 500 + maps lol and mine trigger say sounds so they chat and respond to key words and kills
User avatar
Kami
Global Moderator
Posts: 251
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM-scoreboard and stats

Postby Kami » Mon Dec 21, 2020 7:47 pm

I think I finally found the error. I used steamid which for bots is indeed just "BOT" but I should have used uniqueid which is "BOT_Nameofbot".

Please try the updated version.
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Mon Dec 21, 2020 7:55 pm

Kami wrote:I think I finally found the error. I used steamid which for bots is indeed just "BOT" but I should have used uniqueid which is "BOT_Nameofbot".

Please try the updated version.


got this

Code: Select all

2020-12-21 13:52:51 - sp   -   MESSAGE   [SP] Loading plugin 'scoreboard'...
2020-12-21 13:52:51 - 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\scoreboard\scoreboard.py", line 437
    if attacker.
               ^

SyntaxError: invalid syntax


OK its 173.28.178.152:27015
Last edited by daren adler on Mon Dec 21, 2020 7:58 pm, edited 1 time in total.
User avatar
Kami
Global Moderator
Posts: 251
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM-scoreboard and stats

Postby Kami » Mon Dec 21, 2020 7:58 pm

I'm sorry, maybe this time it works :D
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Mon Dec 21, 2020 8:01 pm

Kami wrote:I'm sorry, maybe this time it works :D


:grin: :grin: :grin: You got it, :smile: THANK YOU SO MUCH for your HARD WORK at this, IT WORKS WITHOUT errors. :wink: THANK YOU. :cool: :cool: :cool:
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Thu Dec 24, 2020 7:37 pm

Just got this today.

Code: Select all

2020-12-24 13:33:42 - sp   -   EXCEPTION   
[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\scoreboard\scoreboard.py", line 470, in npc_killed
    player = Player(event['entindex_attacker'])
  File "..\addons\source-python\packages\source-python\entities\_base.py", line 132, in __call__
    obj = super().__call__(index)
  File "..\addons\source-python\packages\source-python\players\_base.py", line 96, in __init__
    PlayerMixin.__init__(self, index)

ValueError: Index '250' is not a valid player.
User avatar
Kami
Global Moderator
Posts: 251
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM-scoreboard and stats

Postby Kami » Sat Dec 26, 2020 8:00 pm

Thank you for reporting. I'll make a new topic in the plugin release forum where I link to the github link. It's easier to update the plugin there instead of editing a post here.
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Tue Jan 26, 2021 10:08 pm

My timeleft (on botom) is off like 2 to 3 min, ends up saying -3,,how could i fix that?
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Sun Feb 07, 2021 9:38 pm

FIXED the error(all good) :cool: .
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Tue Nov 09, 2021 6:55 pm

Hello, what do i have to change/ or put for the time of day to be a 12 hour and not a 24 hour?
User avatar
satoon101
Project Leader
Posts: 2680
Joined: Sat Jul 07, 2012 1:59 am

Re: HL2DM-scoreboard and stats

Postby satoon101 » Tue Nov 09, 2021 7:07 pm

Change '%a, %m.%y. %H:%M:%S' to '%a, %m.%y. %I:%M:%S%p'

If you don't want the AM/PM, remove the %p at the end.

For reference: https://docs.python.org/3/library/time. ... e.strftime
Image
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Tue Nov 09, 2021 10:37 pm

Worked, Thank you. :smile: :smile:
User avatar
daren adler
Senior Member
Posts: 273
Joined: Sat May 18, 2019 7:42 pm

Re: HL2DM-scoreboard and stats

Postby daren adler » Wed Dec 01, 2021 10:19 pm

What can i do to have this also (auto) show up at map end by itself?

Return to “Plugin Requests”

Who is online

Users browsing this forum: No registered users and 1 guest