Author Topic: [XP] User Logger for RMX-OS  (Read 11816 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] User Logger for RMX-OS
« on: December 02, 2009, 04:12:00 PM »
User Logger for RMX-OS
Authors: Blizzard
Version: 1.2
Type: RMX-OS Plugin
Key Term: RMX-OS Plugin

Introduction

This script adds a logging feature to the RMX-OS server. It displays users that connect and the current number of users online.

This script is to be distributed under the same terms and conditions like the script it was created for: RMX-OS.

Features

  • logs client connections and disconnections
  • can display log in command prompt window
  • can write log to file
  • can write online users list to file (users are separated with commas)

Screenshots



Demo

N/A

Script

Make a new file with an .rb extension in the Extensions folder of RMX-OS and copy-paste this script into it.
(click to show/hide)


Instructions

In the script in the first comment.

Compatibility

Requires RMX-OS to work.

Credits and Thanks

  • Boris "Blizzard" Mikić

Author's Notes

Remember to activate the server extension by adding the server extension filename to the list in the configuration.

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: March 23, 2019, 06:32:33 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #1 on: December 03, 2009, 05:53:37 PM »
kool keep up the good work blizzzard :haha:

hear have a little php code that you can use with this scrpt to
tell how many users are online on a web page

Code: [Select]
<html>
<body>
<?php readfile// (comment out)("/home/e/edwardthefma/RMX-OS Server/logs/users.log"); ?>

<?php $data file('/home/e/edwardthefma/RMX-OS Server/logs/users.log');
echo 
end($data);
?>

</body>
</html>
« Last Edit: January 12, 2010, 06:06:09 AM by edwardthefma »
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] User Logger for RMX-OS
« Reply #2 on: December 03, 2009, 09:59:54 PM »
JC asked for this the other day and I thought it would be a useful tool. Since it was relatively simple, I said I'd do it. I think it took me about half an hour.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #3 on: December 03, 2009, 10:07:20 PM »
kool
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #4 on: December 05, 2009, 05:05:09 AM »
im getting a No extensions found.
:) thout id try it out even tho i have no use for it
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline jcsnider

  • Transcended Spirit
  • ***
  • Posts: 223
  • LV: 9
    • View Profile
    • Ascension Game Dev
Re: [XP] User Logger for RMX-OS
« Reply #5 on: December 05, 2009, 05:49:55 AM »
The way I want to have it work is so that a php code could read the log, and then display on the forum 3 things....
1. Server is: (Online/Offline) [This is custom, has nothing to do with log]
2. Number of pLayers Online : #
3  Players Online: jcsnider, ect, ect, ect....

Not sure how to do it though, also low priority.
(Not useless to me XD )

Offline Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: [XP] User Logger for RMX-OS
« Reply #6 on: December 05, 2009, 11:01:41 AM »
Quote
im getting a No extensions found.
getting the same problem

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] User Logger for RMX-OS
« Reply #7 on: December 05, 2009, 12:12:16 PM »
Remember to activate the server extension by adding the server extension filename to the list in the configuration.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: [XP] User Logger for RMX-OS
« Reply #8 on: December 05, 2009, 01:06:02 PM »
*finds a wall to bash his head against*

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] User Logger for RMX-OS
« Reply #9 on: December 05, 2009, 02:03:49 PM »
JC, I'll change it so it works for you (only thing that needs to be done is the people who are online). I'll explain how you will get the other information.

EDIT: Ok, done. v1.1 is up.
« Last Edit: December 06, 2009, 08:42:40 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #10 on: December 19, 2009, 05:00:55 AM »
Blizzard could you give us a exampal  of exatly the way it should be typed out
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #11 on: December 19, 2009, 05:05:31 AM »
place the code in a file called 'logger.rb'
then go into cfg.ini and in the extensions add this 'logger' then it'll work when you start the server

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #12 on: December 19, 2009, 06:04:03 AM »
it workes but i would advise agnsed using this add on with a linux shell it causes your server to eat memory like like a a kid addicted to candy
« Last Edit: December 20, 2009, 12:43:34 AM by edwardthefma »
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] User Logger for RMX-OS
« Reply #13 on: December 20, 2009, 04:29:53 PM »
Then something's wrong with Linux. Sure, it does take a certain amount of memory, but only until the garbage collector kicks in. It works fine on Windows.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #14 on: December 21, 2009, 07:56:31 PM »
im going to have to think of a diffrent way i can do this perhaps with php maby
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] User Logger for RMX-OS
« Reply #15 on: January 03, 2010, 05:07:39 PM »
v1.11 is out. It works properly with RMX-OS v1.08.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #16 on: January 12, 2010, 06:07:40 AM »
i added some php to the second post
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline edwardthefma

  • Transcended Spirit
  • ***
  • Posts: 134
  • LV: 3
  • Gender: Male
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #17 on: January 16, 2010, 10:05:11 PM »
can you make in the new version of this whare it inputs the just the names
of the online users in to a text or a mysql table and then it removes the names
as the users log off
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
 shellium.org :) free linux shells pm me and i will gladly
help you get 1

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] User Logger for RMX-OS
« Reply #18 on: January 17, 2010, 01:52:47 AM »
No.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Midako

  • Trained Member
  • *
  • Posts: 10
  • LV: 0
    • View Profile
Re: [XP] User Logger for RMX-OS
« Reply #19 on: March 29, 2013, 08:48:48 PM »
He don't write in the users.log file.
onlinelist works fine. only users.log not.
:S
Extension is in cfg.ini
Users are showen in the Command Box
but no Loggs will created or writed.
maybe someone know how to fix it ?
« Last Edit: March 29, 2013, 08:56:38 PM by Midako »