ArmaSpy Advanced

Something else for Armagetron? Goody!
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

New version :)
This time with a buddy list. Screenshots:
There's no place like ::1
User avatar
iDiot / sPuNkY
Average Program
Posts: 54
Joined: Fri Apr 21, 2006 5:46 pm
Location: instruction trace cache
Contact:

Post by iDiot / sPuNkY »

looks nice.. but everytime I close the buddy/server window.. the program terminates...

Code: Select all

X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x3000042
spunky@machine:~$
but I already use it all the time 8)

keep going...
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Well, yeah, that's about half- intended. It's default KDE/QT behavior that the program exits if you close the main window ;)
If you just want to hide the settings window click the tray icon, it toggles its visibility. I'll look if i can find out how to catch the close button and make it just hide the window.

Edit: ok, fixed it :)
There's no place like ::1
User avatar
iDiot / sPuNkY
Average Program
Posts: 54
Joined: Fri Apr 21, 2006 5:46 pm
Location: instruction trace cache
Contact:

Post by iDiot / sPuNkY »

hehe did not work so well...

Code: Select all

Traceback (most recent call last):
  File "/home/spunky/armaspyadvanced/armaspyadvanced.py", line 26, in ?
    ARMAGETRONAD_COMMAND = config.getElementsByTagName('ArmagetronadCommand')[0].getAttribute('command')
IndexError: list index out of range
thats all I get..
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

I'll fix it later. The XML feed it gets its data from is down anyways. My server stopped working, so i need to fix that first.
There's no place like ::1
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

The XML feed is up again as long as my server doesn't cause any more trouble.
Also fixed the error you were getting, it was probably related to you already having an XML config file generated by an older version that didn't have some new config items. I changed the code so it only tries to read the new config if it actually exists.
There's no place like ::1
User avatar
iDiot / sPuNkY
Average Program
Posts: 54
Joined: Fri Apr 21, 2006 5:46 pm
Location: instruction trace cache
Contact:

Post by iDiot / sPuNkY »

runs great now.. thx
aGhostFoo
Posts: 2
Joined: Thu Oct 19, 2006 3:38 pm
Location: What's it to you?

Post by aGhostFoo »

:o Where can I download armaspy? :o
Image
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Last link in the first post :)
There's no place like ::1
aGhostFoo
Posts: 2
Joined: Thu Oct 19, 2006 3:38 pm
Location: What's it to you?

Post by aGhostFoo »

Ok now what do I do with all these codes? :o
Image
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Probably nothing if you're on windows. I'm using a library that isn't available for that platform.

If you're using some form of unix and have python and pyKDE installed you just download the file, make it executable, and run it :)
There's no place like ::1
User avatar
2020
Outside Corner Grinder
Posts: 1322
Joined: Thu Dec 29, 2005 9:21 pm
Location: the present, finally

mac python

Post by 2020 »

looks good

so i downloaded the python script
opened up the terminal
and tried to drag the script onto the terminal:
Permission denied
so i then did what luci said and got:
can't open file 'armaspy.py'

i do use a mac
if that is a factor...
hold the line
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

you either need to mark the script as executable with chmod +x /path/to/the/script and then run it normally or you need to run it with python /path/to/the/script.
There's no place like ::1
User avatar
Lucifer
Project Developer
Posts: 8683
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Re: mac python

Post by Lucifer »

2020 wrote: i do use a mac
if that is a factor...
You also need pyKDE. I don't know if that's even available for Mac.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Post Reply