Maybe someone is interested in this. It's just a short python script I wrote to check who is online on laanx.
DownloadScreenshot:How to install:Just download the zip file and unpack it. To run the script you will need python around version 2.6, Python 3 won't work. If it's more commonly used I maybe convert the script. On linux I guess almost everyone will have python installed. You can check the version with "python --version" in a shell. After this all that is needed is a "chmod +x PS-PlayerS.py" on the file and then running it with "./PS-PlayerS.py". On windows most people will need to install python first. You can download python 2.6.3 here:
http://www.python.org/download/ . After installing python all that should be needed to start the script is double-clicking it in a windows explorer. Sorry about Mac users...it was never tested on a mac and I have no idea if it works there. If someone is brave enough to try it out please let me know.
The script writes a log file and uses a simple configuration file. Both can be found at "~/.PStools/" in linux, at "C:\Documents and Settings\<username>\.PStools\" in windows XP and at "C:\Users\<username>\.PStools\" in vista.
The configuration file:---
[config]
dialogwindowx = 990
height = 30
width = 20
frequency = 10.0
mainwindowx = 1109
mainwindowy = 0
dialogwindowy = 73
statuspage =
http://laanx.fragnetics.com/index.php?page=char_statslogfile = ~/.PStools/onlineplayer.log
[friends]
gms = Alerele Anqua Dahtess Dajoji Denorri Dohmo Eliseth Ingles Kander Katu Larizo Marathal Mektar Rhumdor Roberra Smekel Talad Taulus Tazen Venalan Vonor Xopal Zeetra Zordian
friends = Anaros Anumesa Caraick Dannae Detiey Domec Elvi Estava Hangatyr Hevore Ixala Jaguer Jaycol Kaisa Kitaja Lace Lhaa Lolitra Lucyenne Maudis Mordaan Morila Nixe Rigwyn Shew Stelanso Tinwei Vayl Zahii Zakrei
enemies = Paraya Aiwendil
---
[config] section
dialogwindowx: x coordinate where dialog windows appear in screen.
dialogwindowy: y coordinate where dialog windows appear in screen.
mainwindowx: x coordinate where the application window appear in screen.
mainwindowy: y coordinate where the application window appear in screen.
height: the number of lines in the text window showing the players online. By changing this you can change the size of the application.
width: how many characters fit in each line of the text window showing the players online. By changing this you can change the size of the application.
statuspage: the webadress of the status page of the server. Better not touch this.
logfile: Name and position of the logfile.
frequency: How long (in seconds) should the script wait before it checks the status page again.
[friends section]
gms: A list, separated by spaces, of GMs. Those names will show up blue in the application window
friends: A list, separated by spaces, of friends. Those names will show up green in the application window
enemies: A list, separated by spaces, of enemies. Those names will show up red in the application window
About the list:A player will only show up in one of the lists. If a player is a friend and enemy he/she will only show up as friend. The priority is: Friends - Enemies - GMs - remaining players
The default GM list has the name from the
PlaneShift Game Masters thread in the PS forum (from 18th of October 2009). The list must be maintained by the user if a new GM joins the team.
Known bugs in version 0.02- The text window with the player names messes up sometimes. It's usually correct again after the next update of the player list. I guess some multi-threading problem.
- The server status is not really tested...laanx crashes not often enough. And I have no idea what happens if the server is in the "locked" status for example, I guess the script shows it as "ok" then.
Oh...and up to now this script hasn't formated any hard-disks...but you never know. I can't think of much that can go wrong, but that doesn't mean anything...you don't blame me if something goes terribly wrong. Oh, and I know the sourcecode is pretty ugly...you don't have to look at it if you are disturbed by this.
Changelog: 0.02- Added a status label for laanx
- Added a status label for the status webpage
- Added Enemies and GMs lists
- Added Config menu
- Added Saving of current window position
- Added possiblitiy to specify where Dialogs appear on screen
- Added Menu items for the GMs and Enemies lists
- Empty names can no longer be added to the lists
- The same name can't be added again to a list