Author Topic: Steam ID logging  (Read 4345 times)

0 Members and 1 Guest are viewing this topic.

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Steam ID logging
« on: August 04, 2007, 07:10:41 AM »
Would it be possible to make the next version of ULX record everyones Steam Id as they join the server instead/as well as IP.

This addon will be greatly appreciated by me and other admins as my server does not allow spawning props; meaning there Steam Id is never recorded.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Steam ID logging
« Reply #1 on: August 04, 2007, 07:39:17 AM »
Though it may be possible to delay the logging of the join, or perhaps place a "player has spawn<steamid>" on initial player spawn after the join, the only bit of information available when the player connects is the ip address. STEAM_ID_PENDING is always the result when attempting to use steamid on join.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: Steam ID logging
« Reply #2 on: August 04, 2007, 07:45:06 AM »
That's what i did:

Code: [Select]
local function playerFirstSpawn( ply )
if util.tobool( GetConVarNumber( "ulx_logEvents" ) ) then
ulx.logString( string.format( "%s [%s][%s] joined the server.", ply:Nick(), ply:SteamID(), ply:IPAddress() ) )
end
end
hook.Add( "PlayerInitialSpawn", "ULXLogConnect", playerFirstSpawn )

But there is a small "bug": if a player disconnect before spawn it will record "Bla [STEAM_0_0_123456] left the server" but it's like he never joined..not a big problem anyway, just a small bug.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Steam ID logging
« Reply #3 on: August 04, 2007, 12:53:00 PM »
Yep, this is already implemented in SVN.
Experiencing God's grace one day at a time.

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: Steam ID logging
« Reply #4 on: August 05, 2007, 04:48:01 AM »
I still don't understand what SVN is, Is sounds like its to do with wire mod.
Ps. So can I have a link for downloading "SVN".

Thank you

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Steam ID logging
« Reply #5 on: August 05, 2007, 06:54:08 AM »
SVN only reminds you of Wire becasue that is how it was, and still is released.
SVN ( short for SubVersion ) is a team collaboration, and version control system. When we say it is implemented in SVN we mean our latest development version which is hosted on our SVN.

As far as getting the SVN version, we do have a select group of people who we have granted access to download and use the latest SVN version for testing perpouses. I'm not exactly sure what criteria Megiddo uses to decide who gets this access, but there is a chance that you could if you were willing to help us track down any bugs in these versions before release.

Edit: P.S. This is not an open invitation for everyone to join on the SVN train, please don't come and request access to SVN, you probably won't get it. If we think you deserve it we will come to you.
« Last Edit: August 05, 2007, 06:57:11 AM by spbogie »
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Steam ID logging
« Reply #6 on: August 05, 2007, 09:56:41 AM »
In simplest terms, when we say "implimented in SVN", we mean "it's in Beta", which means "prerelease".
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Steam ID logging
« Reply #7 on: August 05, 2007, 12:50:45 PM »
Usually the type of people that get SVN access are people who have shown a tendency of finding bugs in current releases or help us test on our server and have a server of their own to test on.

Again though, if you ask us for SVN access you probably won't get it. We'll ask you.
Experiencing God's grace one day at a time.

Offline Jethro

  • Newbie
  • *
  • Posts: 45
  • Karma: 1
Re: Steam ID logging
« Reply #8 on: August 05, 2007, 01:50:00 PM »
Ok thank you for your help.