connecting

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
west
Posts: 4
Joined: Sat Jul 05, 2008 10:17 am
Contact:

connecting

Post by west »

is there a command for console which could run Armagetron, immediately connecting me with choosen server?
for example:
armagetronad -connect IP:port
could you add this option in the next version of the game?=)
thx
User avatar
Ratchet
Match Winner
Posts: 780
Joined: Sat Mar 15, 2008 5:55 am

Post by Ratchet »

for what reason other than laziness?
Image
"Dream as if you'll live forever,
Live as if you'll die today." -James Dean
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

The --connect flag was added to trunk a few months ago.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

-Ratchet- wrote:for what reason other than laziness?
Probably for the same way I requested that and for the custom connect by IP to be retained, because it's quicker to type in an IP than it is to let every server be queried then figure out where it is in thelist.
Image
west
Posts: 4
Joined: Sat Jul 05, 2008 10:17 am
Contact:

Post by west »

thx)
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Tank Program wrote:
-Ratchet- wrote:for what reason other than laziness?
Probably for the same way I requested that and for the custom connect by IP to be retained, because it's quicker to type in an IP than it is to let every server be queried then figure out where it is in thelist.
Also so we can add a protocol type "armagetronad" to windows, kde/gnome/etc, and Mac OS X, so you can click links in web browsers that say "armagetronad://www.davefancella.com:4536" and armagetron will be opened up, connecting to that server.
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
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

That would certainly be neat :)
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

I added armagetronad:// protocol support for Mac OS X in trunk some time back. I think Lucifer added KDE support too.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

I played with KDE support, I don't remember if I actually added it to the trunk. It requires installing a .desktop file to a particular location that varies by distribution. :( But I did watch it work, anyway, clicking a link in Konqueror and having it open armagetron. ;)

At least, in windows, it's theoretically just a matter of adding registry entries to the installer. In Linux, it's going to take some work, grrr.... (Of course, distribution-specific packages won't have that problem, it's the autopackage and installing from source that have 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
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Surely with all the clever command line tools like sed and awk there ought to be someway to hunt down the proper location and stick the file there...

Edit: for gnome...

Code: Select all

gconftool-2 -t string -s /desktop/gnome/url-handlers/armagetronad/command "<path to>/armagetronad %s"
gconftool-2 -t bool -s /desktop/gnome/url-handlers/armagetronad/needs_terminal false
gconftool-2 -t bool -s /desktop/gnome/url-handlers/armagetronad/enabled true
Image
Post Reply