ULX

Author Topic: [Code Dump] Two addons from my now defunct TTT server  (Read 7666 times)

0 Members and 4 Guests are viewing this topic.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
[Code Dump] Two addons from my now defunct TTT server
« on: February 15, 2016, 01:01:59 PM »
So, my TTT server had a long run, but ultimately I was forced to close it down due to a major security hole that had slipped under my nose that allowed for an attacker with some know-how to grab a list of the current online players' IP addresses. For those who are curious, it's a known exploit in PAC3, and if possible you should use some sort of http redirect to prevent serving content from unknown sources.

Anyway. I have two addons lying around that I had put together (probably from some other people's code, but at this point it's been too long to tell) for the server that I would rather not go to waste. They're small and mundane, but I know at least someone will get some use out of them.

I tried reformatting and refactoring these so they were at least a tiny bit sensible, but I can't say for sure if they work now. If they don't, I can release the original, untouched, working versions... you'll just have to edit out the pony stuff.

TTT Killer Stats
All this does is print out some information about who killed a player to chat in a nice format. Useful for raging at yourself for getting someone down to 1 HP but not killing them, or for more serious things like determining RDM.
TO DOWNLOAD: See the attached files in small font below this post.

TTT Role Counter
LIke the last one, this is pretty simple. This just counts the number of players with each role on the start of a round, and prints it to chat and to server console. Useful for knowing how at-risk you are. :p
TO DOWNLOAD: See the attached files in small font below this post.

NOTE: You MUST be registered and logged in to see attached files!

Update: I've signed the zip files with my PGP key, so if you want to verify your download, you can use their signatures:
pp2_ttt_killer_stats.zip.asc
pp2_ttt_role_counter.zip.asc
(yes, it's kind of complicated -- run gpg --verify <filename>.zip.asc <filename>.zip and see if that works. ;P)
« Last Edit: March 20, 2016, 09:43:36 AM by Bytewave »
bw81@ulysses-forums ~ % whoami
Homepage

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #1 on: February 15, 2016, 05:19:23 PM »
Instructions unclear: Do I need to be logged in to see the files or no?
Once you get to know me, you'll find you'll have never met me at all.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #2 on: February 15, 2016, 06:18:50 PM »
Instructions unclear: Do I need to be logged in to see the files or no?
hue
bw81@ulysses-forums ~ % whoami
Homepage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #3 on: February 15, 2016, 07:09:43 PM »
Where/how do I download?
:D

Nice to see you contributing code again, even if due to bad reasons.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Tom Lucette

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • I am Tom Lucette
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #4 on: February 17, 2016, 10:47:23 AM »
Is there a way to make it so I can type "!rdm" like a ulx command and it tells me that information

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #5 on: February 18, 2016, 07:18:03 AM »
Is there a way to make it so I can type "!rdm" like a ulx command and it tells me that information
Not that I know of, unless you explicitly store attacker data. Perhaps it is possible, but my addons don't support it at this time. I may take a look into it, but no promises.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Vilobion

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #6 on: February 28, 2016, 11:56:17 AM »
Killer stats didn't seem to have any effect once I placed it into addons.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: [Code Dump] Two addons from my now defunct TTT server
« Reply #7 on: February 28, 2016, 02:43:20 PM »
Killer stats didn't seem to have any effect once I placed it into addons.
I suspected there might be some issues.
Do you get any errors on either the client or server? And how did you install the addon?
bw81@ulysses-forums ~ % whoami
Homepage

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given