AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   Last Users Connected (https://forums.alliedmods.net/showthread.php?t=39755)

devicenull 02-26-2006 22:11

Last Users Connected
 
Current version: v0.18

What is it?
Ever had a player come onto your server, and insult you, or cause havoc, then leave before anyone can get a steamid? Or how about the players who tell you the name of someone who was causing problems, but didn't get a steamid. Or griefers that join your server, annoy everyone, then rejoin under a different name, with no one knowing.

Not anymore.
With this plugin, every player who comes onto your server has their steamid logged, along with any name they used on the server. You can then either view the names/steamid's of the last people to disconnect, or you can search for a name/steamid and see everyone who has used that name.

Changes:

v0.16->v0.17
  • Old databases will need to be deleted when upgrading to this version
  • All queries are now threaded when a player joins.. this means no more lag spikes when a player connects, regardless of database size.
  • Added lc_keepnames
For older changes, click here

How do I use it?
You need to download and Install SourceMM. Next, set it up like a normal plugin.

Commands:
Server:
lc_aka 1|0 - Turns AKA mode on/off (Will show a players previous names in chat when they connect)
lc_delay X - This is the minimum time between using any commands, in seconds, set to 0 to remove.
lc_showtime 0|1 - Show timestamps when displaying results?
lc_maxnames X - Only display X names for each steamid. This effects both AKA and console commands.
lc_keepnames X (default 168 (one week)) - Number of hours to keep names for, set to 0 to keep forever. When a user has no more names associated with them, they will be dropped from the database.

Client:
last X - Will show you the last X users to disconnect. If X is missing, it defaults to 25.
finduser <string> - Search for any user names containing <string>, <string> must be three or more characters.

Where can I get it?

[b]NOTE: When upgrading to 0.18, you must delete this file: /addons/last_connected/data/database.sq
here (win32 and linux)
here (source code)

Opossum 02-26-2006 22:46

Yes, that's a really nice idea. This could be very, very usefull. I'll give it a try within the next days.

Rebell 02-28-2006 08:07

TNX :D

[FON]BlackHole 02-28-2006 08:13

You mean I can get out of the habit of pressing my bound "status" key every 5 minutes now? OMG!

Loaded it up on the server we'll see how it goes. =)

Rebell 02-28-2006 08:35

Works good - but would be nice to see it not only in the console !

With "last" in the chat and a ingame list would be nice ( like mani-menu and others does )

And all the fakeclients by L.Duke are listed, too. Can this be filtered ?

good work so far - cya :wink:

L. Duke 02-28-2006 10:10

Best way to filter them would be to not include players whose SteamID=="BOT"

devicenull 02-28-2006 13:55

Quote:

Originally Posted by L. Duke
Best way to filter them would be to not include players whose SteamID=="BOT"

I'll do this when I get home from work, and add support for doing it in chat. Not sure about menu's, I'll have to take a look.

Rebell 02-28-2006 18:22

Sounds good , thanks :D

And would it be to hard to make a readeble .txt-file of it ?!?
I mean to make a little php script to show the last XX players on server would be cool.


cya :roll:

devicenull 02-28-2006 18:57

Quote:

Originally Posted by Rebell
Sounds good , thanks :D

And would it be to hard to make a readeble .txt-file of it ?!?
I mean to make a little php script to show the last XX players on server would be cool.


cya :roll:

PHP can use the sqlite database... http://us2.php.net/sqlite

awuh0 02-28-2006 22:27

This is a really sweet plugin, would you mind adding a cvar for how many users to track at a time?

devicenull 02-28-2006 22:43

Quote:

Originally Posted by awuh0
This is a really sweet plugin, would you mind adding a cvar for how many users to track at a time?

Not sure what you mean here.. the way it's set up, it will have a record of every user that has ever connected to your server since you have been running it. This should not hurt preformance too much.. I think sqlite can handle it :)

I could probably set up a cvar so it will start deleting older records after it reaches the number in that cvar. Is this what you were talking about?

awuh0 03-01-2006 00:02

Not really what I was going for, I thought you only stored 100 steamid's at a time, but now that you mention it a cleanup would be nice for extremely old entries. :)

[FON]BlackHole 03-01-2006 08:41

All I can say is it works, but I'd also like to see the steam IDs next to the player names:

ASSHAT - STEAM_0:0:000000

devicenull 03-01-2006 17:51

Quote:

Originally Posted by [FON
BlackHole]All I can say is it works, but I'd also like to see the steam IDs next to the player names:

ASSHAT - STEAM_0:0:000000

It's a bug that it's not showing them.. I could have sworn it was.

Rebell 03-02-2006 00:46

Quote:

Originally Posted by devicenull
It's a bug that it's not showing them.. I could have sworn it was.

*gg*

but how about the ingame "chat" commant and menu ? cya :D

devicenull 03-02-2006 12:46

Can someone who is having the problem of steamids not appearing, send me the database.sq file in addons\last_connected\data?

When the steamid's aren't appearing, is it a linux or win32 server?

Rebell 03-02-2006 16:19

I use linux and see only the names ...


cya

devicenull 03-02-2006 17:45

Quote:

Originally Posted by Rebell
I use linux and see only the names ...


cya

Can you send me the database.sq file in addons\last_connected\data?

devicenull 03-02-2006 19:43

Updated, added a few things, fixed that linux bug.

Rebell 03-03-2006 01:56

When i get home ( im at work now... ) i can send you the file.

What means : Will show a players previous names in chat when they connect ? ( sorry for my bad english *gg* )

Q: can you add a timestamp from the server like :

2006-03-03 17:33:12 -- Rebell -- STEAM:ID:007

Q: thought about the ingame chat commant last xx that shows the list at the left side ?


--- cya :D


PS: just found a nice SQLite browser : http://sqlitebrowser.sourceforge.net

awuh0 03-03-2006 06:27

nice find rebell, my database is empty though :(

Rebell 03-03-2006 06:29

Just wanna post a link with servers running lastconnected :

http://www.game-monitor.com/search.p...ersion&ruleval

@awuh0: aaeehmmm... what means "nice find rebell" ? im not sooo good in english *gg*

cya

awuh0 03-03-2006 08:56

nice database browser you shared with us


devicenull, with the new version I get
[META] Failed to load plugin addons\last_connected\bin\lastconnected_mm. Could not find interface ServerGameDLL003

linux server.

Rebell 03-03-2006 10:46

1 Attachment(s)
Ok, then i will wait for v0.12

here is the acual sqlite file ... should contain :

Code:

Stomp.13ambo0cha,
 treff nix,
 e.Sports -].CsC.[- GZ - ²,
 STALKER,
 $exy Lothaar,
 <<THC>>[xG]AnrtaX,
 [Junky]Overkill,
 AlterJunge,
 haZe^  -drunken-,
 fds,
 dj,
 [(Un?)MonsterKiller],
 paves,
 Samurai Pizza Cat,
 -=doc=-,
 $LIPKN0T_Mike,
 Storm,
 absolutepower,
 miChi,
 KillerV,
 deadline.schakalbaby,
 eXe_dE,
 [Z] Muckl,
 aAk|DeLuXa,
 $kuLL#miedsegadse,
 Jon,
 MasterGandy,
 orioner42,
 ﮒρАwЙ,
 Fritz,
 Shadow Fisc,
 behinder,
 -<»»sTuC4n´Ҳ««>-,
 The Matrix 5,
 HardCorA,
 -inVERT-,
 ^LîzårĐ,
 ska-fighter,
 BI77Y L3 BORGN3,
 Power DJs @-.-@ pH0en@bsoffn,
 ***laballapuffyplayboy***@scout,
  Mad,
...
...
...


devicenull 03-03-2006 17:59

Quote:

Originally Posted by awuh0
nice database browser you shared with us


devicenull, with the new version I get
[META] Failed to load plugin addons\last_connected\bin\lastconnected_mm. Could not find interface ServerGameDLL003

linux server.

What mod? It loaded fine on my Win32 Sourceforts server, and my linux HL2MP server, I'm downloading css to test on that right now.

Also, the database is empty until the plugin sucessfully runs to create the table :)


Rebell: The bug with it not showing steamid's is fixed in 0.11.
The aka mode thing displays this:

devicenull AKA: devicenull.exe, devicenull.sma, NSPlayer...etc
when a player connects to the server... not sure why you would wait for 0.12. I think that the say interface won't be needed with the above feature.

Rebell 03-04-2006 03:45

Ah - understand now.

OK - ill try the new one and repost. But an ingame menu would be nice...

cya :wink:

Rebell 03-04-2006 04:05

hmmm... load failed with v0.11
Code:

[01] Mani Admin Plug  1.2Beta  Mani        RUN
[02] GoreMod          2.4.0b    c0ldfyr3    RUN
[03] Statsmeminimum    1.3.0.2  Roger Devil  RUN
[04] FakeClients      1.2.0    L. Duke      RUN
[05] -                -        -            FAIL

took the old one (V0.1) all ok again ...
Code:

[01] Mani Admin Plug  1.2Beta  Mani        RUN
[02] GoreMod          2.4.0b    c0ldfyr3    RUN
[03] Statsmeminimum    1.3.0.2  Roger Devil  RUN
[04] FakeClients      1.2.0    L. Duke      RUN
[05] Last Connected    0.1      devicenull  RUN


devicenull 03-04-2006 18:54

Updated to fix interface not found problems.

Rebell 03-05-2006 04:16

Yep, the latest fix does it :
Code:

meta list
-Id- Name              Version  Author      Status
[01] Mani Admin Plug  1.2Beta  Mani        RUN
[02] GoreMod          2.4.0b    c0ldfyr3    RUN
[03] Statsmeminimum    1.3.0.2  Roger Devil  RUN
[04] FakeClients      1.2.0    L. Duke      RUN
[05] Last Connected    0.12      devicenull  RUN


Rebell 03-05-2006 06:57

V0.12 crashes my server ...

Alway when im typing "last" in console...

:cry:

devicenull 03-05-2006 18:04

Quote:

Originally Posted by Rebell
V0.12 crashes my server ...

Alway when im typing "last" in console...

:cry:

I can't seem to make it crash.. want to send me the database file again?

awuh0 03-05-2006 20:31

I still get this...

20:34:05 -Id- Name Version Author Status
[01] GoreMod 2.4.1b c0ldfyr3 RUN
[02] CS:S DM 0.84a BAILOPAN RUN
[03] - - - FAIL
20:34:08 meta refresh
20:34:08 [META] Failed to load plugin addons\last_connected\bin\lastconnected_mm. Could not find interface ServerGameDLL003
20:34:08 [META] Loaded 0 plugins from file (2 already loaded)

devicenull 03-05-2006 21:08

What is the md5sum of your binary?

The correct one is
55e357fe20a355de14290470a7784c31 *lastconnected_mm_i486.so

If they don't match.. redownload it to a new folder somewhere, and try again..

I'm not sure what to tell you, I just downloaded the lastest release, and extracted it to a linux css server that was updated today.. and everything worked fine.

Rebell 03-06-2006 10:50

Uploaded latest V0.12 but crashes when i write last in console...

here the last from serverconsole :
Code:

L 03/06/2006 - 16:50:28: World triggered "Round_Start"
NUM_FOR_EDICT: bad pointer
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Mo Mär  6 16:50:31 CET 2006: Server restart in 10 seconds


perhap it is : NUM_FOR_EDICT: bad pointer what makes a problem...

cya

[FON]BlackHole 03-06-2006 11:08

0.12 crashes my linux box as well...

Also recommending you rename your download file to reflect version numbers instead of using the same file name.

I'm sorry I can't get more detail for you at the moment, but if you need something else let me know...and let me know how to get it just in-case I don't know.

Currently running:

MetaMod 1.2.1
ForgiveTK 1.1.1
BAT 1.1.3

awuh0 03-06-2006 19:39

/srcds/cstrike/addons/last_connected/bin$ md5sum lastconnected_mm_i486.so
55e357fe20a355de14290470a7784c31 lastconnected_mm_i486.so

Still has the error, still will not load, I updated meta mod from 1.2 to 1.21 as well with no apparent effect.

Rebell 03-07-2006 00:44

Version 0.1 worked.

Please upload this one - i dont have it anymore...

cya

ratty 03-07-2006 07:16

$ md5sum -b lastconnected_mm_i486.so
55e357fe20a355de14290470a7784c31 *lastconnected_mm_i486.so

At the game console, I type
Code:

meta load addons/last_connected/bin/lastconnected_mm_i486.so
response is
Code:

Failed to load plugin addons/last_connected/bin/lastconnected_mm_i486.so (libstdc++.so.6: cannot open shared object file: No such file or directory).
But I most definately have libstdc++.so.6 on my system and in my library path.
I noticed no other metamod plugin I have uses that library: spawnhealth, stripper, statsme, fakeclients. It might not be necessary.

Here's a full output of ldd on the .so

Code:

linux-gate.so.1 =>  (0xffffe000)
vstdlib_i486.so => /home/ratty/steam/source/bin/vstdlib_i486.so (0xf7f79000)
tier0_i486.so => /home/ratty/steam/source/bin/tier0_i486.so (0xf7f4b000)
libdl.so.2 => /lib/libdl.so.2 (0xf7f3d000)
libstdc++.so.6 => not found
libm.so.6 => /lib/tls/libm.so.6 (0xf7f1a000)
libgcc_s.so.1 => not found
libc.so.6 => /lib/tls/libc.so.6 (0xf7def000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xf7ddd000)
/lib/ld-linux.so.2 (0x56555000)


devicenull 03-07-2006 10:26

I fixed the libstdc problem, I had forgotten about it.

Can someone who was having crashes load the plugin again and try this: Rather then just typing last in console, add a number from 0-100 after it.. like "last 25".

I'm wondering if the error is being caused when it tries to get an argument to the command that doesn't exist.

Rebell 03-08-2006 05:31

Ive deleted all and uploaded it again. Now it works !
Code:

] last

STEAM_0:0:11XX03:  Rebell, [-DFT-]Rebell, Ringo

But i think the bot "Ringo" was added to my steam ID. I let this plugin runn for a while and post a report. cya :wink:


All times are GMT -4. The time now is 19:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.