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:

ArmaSpy Advanced

Post by wrtlprnft »

Well, as iF's armabell is discontinued and doesn't run on linux anyways and weip doesn't seem to update his armaspy (and I don't wanna mess with its plainC code) I decided to make my own version.

It's called ArmaSpy Advanced, is a python app using pykde and my first project with pykde and my second one with python at all, so the code is a mess right now.

Here's a screenshot. The code is in SVN.
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 »

sounds very nice..

but i can not get it to run.. I use SPE with Ubuntu (dapper)..

do I need a special libary for it?

I have most python modules installed and I have SVN support...But in SPE it says:
"SyntaxError: invalid syntax
Script terminated."
(in almost every line)

..bare with me, I usually do not use python...
but it is something I would like to test...
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Can you try just running it from a terminal like you'd run any other program? ;) Then if it borks, copy the backtrace here so we can see it...
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

I tried running it from within SPE (after installing it and compiling all of its numerous depencencies), didn't notice any problems.
I asked Lucifer the python guy™, he says what you're reporting are typical symptoms of screwed–up indentations… you may wanna check that.
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 »

I tried running it with the terminal..
I think there is something missing on my system...(or screwed up)

Code: Select all

spunky@machine:~$ sh /home/spunky/Desktop/armaspy.py
/home/spunky/Desktop/armaspy.py: line 3: UPDATE_INTERVAL: command not found
/home/spunky/Desktop/armaspy.py: line 4: ARMAGETRONAD_COMMAND: command not found
/home/spunky/Desktop/armaspy.py: line 6: import: command not found
/home/spunky/Desktop/armaspy.py: line 7: import: command not found
from: can't read /var/mail/qt
from: can't read /var/mail/kdecore
from: can't read /var/mail/kdeui
/home/spunky/Desktop/armaspy.py: line 14: import: command not found
from: can't read /var/mail/xml.dom
/home/spunky/Desktop/armaspy.py: line 17: description: command not found
/home/spunky/Desktop/armaspy.py: line 18: version: command not found
/home/spunky/Desktop/armaspy.py: line 19: syntax error near unexpected token `('
/home/spunky/Desktop/armaspy.py: line 19: `    aboutData   = KAboutData ("", "", \'
spunky@machine:~$
thanks in advance
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

try "python armaspy.py" and see what that does
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Sorry, but I really had to laugh.
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 »

Jonathan wrote:Sorry, but I really had to laugh.
I know that feeling.. but everybody started as a noob... :)

/me uses Linux since 2 1/2 month now 8)
/me never "really" worked with python (just to get personal impressions with this program language)

but to get back to the point:

Code: Select all

spunky@machine:~$ python /home/spunky/Desktop/armaspy.py
  File "/home/spunky/Desktop/armaspy.py", line 3
    UPDATE_INTERVAL = 60 * 1000 #1 minute
    ^
SyntaxError: invalid syntax
spunky@machine:~$
so it says the same as SPE...
I will check my python dependences...
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Hmmm, how did you get it? This really feels like some sort of conversion happened that broke the file, like if you were to copy and paste it from Firefox to a text editor, or something like that.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

This is where you can usually download it

That is, if SF's SVN viewer isn't screwed up like it is right now, it just displays an error. The other way to get it would be via SVN:

Code: Select all

svn co https://svn.sourceforge.net/svnroot/armagetronad/private/wrtlprnft/armaspyadvanced/
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 »

New version :)

This one attempts to read your user.cfg and extract your server favorites. It displays these servers even if they're empty (but online) and shows a star next to them. Screenshot
There's no place like ::1
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

cool x)
Image
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 »

After installing 20 new Python packages, it finally runs...
nicely done... *thumbs up*

I don't know if it is me, but I have a bug tho...
If there are player using ''exotic'' letters like ''î'' or ''ø'' the terminal says:
''QPopupMenu: (KActionMenu::KActionMenuPrivate) Popup has invalid menu item''

and in the actual menu there is a blank instead of the player name...
...seems that it can not handle the unicode...

but besides of that it is really nice... i'm looking toward the final :wink:
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

If there's ever gonna be a final...
I'll be on that character bug tomorrow, thanks for the feedback :)
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 »

Actually the ladle is stalling right now, or at least my team is idling, so i fixed it. You don't need to update your client, it was a messup on my server.
There's no place like ::1
Post Reply