Author Topic: Small script to see who is online on laanx  (Read 6951 times)

Aiwendil

  • Guest
Re: Small script to see who is online on laanx
« Reply #30 on: December 11, 2009, 08:03:39 am »
Thanks weltall, will include this in the next version of course. For now it shouldn't be too hard to open the script in a text editor and find the following part near the start:
Code: [Select]
# hardcoded config
CONFIGDIR = '~/.PStools'
CONFIGFILE = CONFIGDIR + '/PS-PlayerS.py.ini'
XMLINFOFILE = CONFIGDIR + '/playerinfo.xml'
PLAYERTAGCOUNT = 192
REPORTTIMECOUNT = 98
REPORTTIMEOUTMSG = 'Timeout!'
RACES = ("unknown", "Ylian", "Xacha", "Dermorian", "Nolthrir", "Stonebreaker", "Hammerwielder", "Lemur", "Kran", "Diaboli", "Enkidukai", "Klyros", "Ynnwn")

Change the "PLAYERTAGCOUNT = 171" in line 37 to "PLAYERTAGCOUNT = 192" and save. The script should display the names after this change again.

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: Small script to see who is online on laanx
« Reply #31 on: December 12, 2009, 03:01:44 pm »
=== Update! See below. ===


=== PS PlayerS 0.03-qt3 ===

I've implemented a notification bubble to show you when your friends log in and out. I also implemented a 'Minimize to Tray' feature. You can disable the two features, if you want.
LinuxWindows
It even has an updater which retrieves the current list from the forum.


=== Mac users ===

Please install Xcode and X11 which are on the installation CDs/DVDs.
Then install MacPorts by downloading the disk image for Snow Leopard, Leopard or Tiger and double-clicking the pkg file that is contained in the disk images.
Please follow the instructions on the screen.

Afterwards you have to type the following two lines in the terminal:
Code: [Select]
sudo port selfupdate
sudo port install py26-pyqt4

And run the PS-PlayerS-qt.py file contained in the full package.

=== Downloads ===

IMPORTANT: After you installed the program please click on Config > Update GM list to get the current list of GMs. The one shipped with the program is outdated.

And here are the downloads:
The binaries for Linux and Windows together with the source code and the documentation.24MB (.tar.gz)  (.zip)
The binary for Linux and the documentation.15MB (.tar.gz)  (.zip)
The binary for Windows and the documentation.9,1MB (.tar.gz)  (.zip)

« Last Edit: February 18, 2010, 03:23:26 pm by Nakem »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Small script to see who is online on laanx
« Reply #32 on: January 23, 2010, 11:08:09 am »
Nakem, since I updated to openSUSE 11.2, your version doesn't run anymore. Aiwendil's runs fine. Qt is installed obviously, so is python-qt (if it matters). There is no console output, no stderr output either. Nothing at all happens if I try to start it. It doesn't hang either, just quits right after starting. The exit status is 0, i.e. success. Any clues what I might be doing wrong?

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: Small script to see who is online on laanx
« Reply #33 on: January 29, 2010, 08:18:51 am »
Found the bug and fixed it....
If you downloaded it before you have to replace the PS-PlayerS-qt file with this one: http://psbuddylist.svn.sourceforge.net/viewvc/psbuddylist/dist/PS-PlayerS-qt
(Please right-click on the link and select "Save as...")
Otherwise the downloaded file should work.
« Last Edit: January 29, 2010, 09:57:17 am by Nakem »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Small script to see who is online on laanx
« Reply #34 on: February 05, 2010, 06:58:48 pm »
Works again, thanks!

Edit: By the way, is there a way to make it use a different Qt theme?
« Last Edit: February 05, 2010, 07:01:23 pm by derula »

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: Small script to see who is online on laanx
« Reply #35 on: February 15, 2010, 08:39:08 am »
There are three ways to change the theme:
  • If you have KDE installed, you can set the kde theme to the theme you want.
  • If you have the tool qtconfig on your command line, you can change the theme with it.
  • You can add the following lines to ~/.config/Trolltech.conf:
Code: [Select]
[qt]
style=<the theme you want>
« Last Edit: February 17, 2010, 04:16:42 pm by Nakem »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Small script to see who is online on laanx
« Reply #36 on: February 16, 2010, 12:59:50 pm »
  • If you have KDE installed, you can set the kde theme to the theme you want.

I do use KDE, however the tool doesn't use KDE's theme (I use QtCurve). Instead, it uses something that looks like a native Windows (9x) theme. Maybe the bundled version of Qt is incompatible with the installed version of QtCurve? Would probably be easier (for KDE users at least) to have the modified Python script instead of the bundled binaries... :)

Koios

  • Hydlaa Resident
  • *
  • Posts: 144
    • View Profile
Re: Small script to see who is online on laanx
« Reply #37 on: February 16, 2010, 01:47:36 pm »
It worked just fine yesterday. Today, however, all I get is the player count and the list reads: "Friends:" Clicking refresh list have said "Please wait..." for 20 mins now. Really liked this app, please help? :)
Going to the Iron Temple makes you as much of a Laanx follower as going to Harnquist makes you a furnace.

* Talad made Laanx's boobs fall off by accident

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: Small script to see who is online on laanx
« Reply #38 on: February 16, 2010, 05:03:55 pm »
@derula
From the last release post:
Quote
The source code and the documentation.   ~136KB   (.tar.gz)  (.zip)
Otherwise, feel free to browse the code and build your own executables: http://psbuddylist.svn.sourceforge.net/viewvc/psbuddylist/
Please read the README.txt, too!

@Koios
Which OS do you have?
If you're on Linux, please run it on the console and post what it shows.
« Last Edit: February 18, 2010, 03:25:19 pm by Nakem »

Koios

  • Hydlaa Resident
  • *
  • Posts: 144
    • View Profile
Re: Small script to see who is online on laanx
« Reply #39 on: February 16, 2010, 07:40:26 pm »
*Koios slaps forehead* Knew there was something missing, sorry.
I'm on XP. It's weird, cause it's getting info. The player count vary and updates really quick, just nothing else showing than "Friends:"
*EDIT: It now shows two people in my Friends list, but more are on that aren't showing. ??? *
« Last Edit: February 17, 2010, 12:24:44 pm by Koios »
Going to the Iron Temple makes you as much of a Laanx follower as going to Harnquist makes you a furnace.

* Talad made Laanx's boobs fall off by accident

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Small script to see who is online on laanx
« Reply #40 on: February 17, 2010, 09:32:08 am »
@Nakem: Well I suppose I'm blind, then. Stupid me.

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: Small script to see who is online on laanx
« Reply #41 on: February 17, 2010, 04:48:46 pm »
@Koios
Did you try downloading the program again?
Don't worry it will keep your settings.
If it doesn't help, please download this file and save this file as start.bat (be sure the extension is the same and not something like .txt) in the same directory as the first file.
Afterwards run start.bat (with a double-click). You should now see the normal Window of the PS Buddylist. Please close it again and paste the content of the log.txt file in the forum please.

Koios

  • Hydlaa Resident
  • *
  • Posts: 144
    • View Profile
Re: Small script to see who is online on laanx
« Reply #42 on: February 17, 2010, 06:44:27 pm »
Log .txt:
Starting PS-PlayerS.py

The cmd window after double-clicking start.bat:
Traceback <most recent call last>:
  File "<string>", line 942, in updateText
  File "<string>", line 1001, in getLastname
  File "<string>", line 426, in getInfo
IndexError: list index out of range

Those 5 lines repeats themselves if the cmd is kept open.
Going to the Iron Temple makes you as much of a Laanx follower as going to Harnquist makes you a furnace.

* Talad made Laanx's boobs fall off by accident

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: Small script to see who is online on laanx
« Reply #43 on: February 18, 2010, 11:19:07 am »
=== PS-PlayerS-qt 0.04-qt ===

Sorry for the trouble.  :sweatdrop:
Found the bug and fixed it. The program couldn't handle empty comments and wasn't able to create the players list.

== Workaround for version 0.03-qt3 and older ==

Go to %userprofile%\.PStools\ (on Windows) or ~/.PStools/ (on Linux) and open the playerinfo.xml
Replace all lines looking like this ...
<Character Gender="unknown" Guild="" Lastname="" Name="Whatever" Race="unknown"/>
... with this ...
<Character Gender="unknown" Guild="" Lastname="" Name="Whatever" Race="unknown">.</Character>
... and it should work with the current version.

== Download ==

In the new version there are instructions for Mac Users in the Installation chapter inside the documentation as well as for Windows and Linux.
If you run the program the first time (and don't have the configuration form an older version), it now automatically updates the GM list.

Note: The documentation is included in all packages.
The source code~136KB(.tar.gz)  (.zip)
The Windows binaries10.3MB(.tar.gz)  (.zip)
The Linux binaries15.2MB(.tar.gz)  (.zip)
« Last Edit: February 19, 2010, 10:10:32 am by Nakem »

Koios

  • Hydlaa Resident
  • *
  • Posts: 144
    • View Profile
Re: Small script to see who is online on laanx
« Reply #44 on: February 21, 2010, 07:10:16 am »
It works again!  \\o// *Koios makes waffles for Nakem*
Going to the Iron Temple makes you as much of a Laanx follower as going to Harnquist makes you a furnace.

* Talad made Laanx's boobs fall off by accident