OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: adriano on July 23, 2010, 02:22:37 PM



Title: OA Friends Finder
Post by: adriano on July 23, 2010, 02:22:37 PM
Hello,

our ex SoS player Ito (aka Ichi) writed a little program in perl. The program shows where your friends (from a friendlist) are playing and you can directly join to server in which they are playing.
An example:
Code:
:: Starting OPENARENA FRIENDS FINDER v0.4
:: Copyright 2010 Simone Sclavi 'Ito'
:: This is free software with ABSOLUTELY NO WARRANTY
:: For details type 'v' in the menu below
::
:: getting players...
:: found 4 player/s
::
   [1] *SoS*Adr!aNo ROFL CTF 4 FISHES 0.8.5
              10/12    ctf    oa_ctf4ish
   [2] LoL-Elendr1L ROFL CTF 4 FISHES 0.8.5
              10/12    ctf    oa_ctf4ish
   [3] /GaNja/^L!ght3r PURPLE DEFRAG
              5/18    dm    dkr02
   [4] betA,SilentCobra PURPLE DEFRAG
              5/18    dm    dkr02
::
:: # AVAILABLE COMMANDS #
:: [number] choose friend from 'friends list'(if present)
:: [s:number] show stats of the server your friend is playing in
:: [r] refresh friends list
:: [l] launch OA without connecting to any server
:: [v] print version and license information
:: [q] quit program
::
 >1
:: preparing to reach *SoS*Adr!aNo
ioq3+oa 1.36 linux-i386 Jan  3 2010
[cut]


Since version 0.4 you can see also stats of the server where a friend is playing (ping, frags and more):
Code:
:: # AVAILABLE COMMANDS #
:: [number] choose friend from 'friends list'(if present)
:: [s:number] show stats of the server your friend is playing in
:: [r] refresh friends list
:: [l] launch OA without connecting to any server
:: [v] print version and license information
:: [q] quit program
::
 >s:1  
   # SERVER STATS #
   address: 91.121.201.15:27961
   players: 10/12
   map: oa_ctf4ish
   gametype: ctf
   name: ROFL CTF 4 FISHES 0.8.5

   PING   FRAGS   NAME
   48ms   67   *SoS*Adr!aNo
   96ms   59   Quake|-|Na$sim
   55ms   52   .
   54ms   33   gibon
   29ms   26   UnnamedLagger
   51ms   20   pi.fakeman
   88ms   14   Dark
   82ms   7    MiK
   95ms   7    Quwertzuiop
   70ms   0    LoL-Elendr1L



DOWNLOAD:
oaff 0.4.1 (http://www.mediafire.com/?jcrek3vsc674j7y) (manual included)
oaff 0.4 (http://clansos.sosforum.net/go/aHR0cDovL3d3dy5tZGZyLz8zNWZ5OG5uenI3ZmFpNjQ=) (manual down here)
I recommend you to download oaff 0.4.1.
The program works on GNU/Linux and on MS Windows. License: GNU GPL3 (http://www.gnu.org/licenses/gpl.html)












Manual for oaff 0.4:


Instruction (GNU/Linux):

The program requires Perl> = 5.10 (normally installed by default), plus two modules usually downloaded through the repository, LWP and HTML: TokeParser:: Simple
For example, if you are using Ubuntu just run:
Code:
sudo apt-get install libwww-perl libhtml-tokeparser-simple-perl

If you have installed from your distrobutions repositories, no need to do anything at this point, just run the program with
Code:
$ perl oaff.pl
or by giving execute permission (for example with chmod u + x oaff.pl)
Code:
$ ./oaff.pl
.

Otherwise you will need to open the file with a text editor and identify
the following piece of code:
Code:
   when ('linux')
    {
        $OPENARENA_BIN =  q{openarena};
        #uncomment the following lines if you didn't install oa from repository
        #and change q{openarena} with q{./openarena.i386} or
        #q{./openarena.x86_64} according to your system
        #
        #$OPENARENA_PATH = q{/home/simone/Desktop/openarena-0.8.1};
        #chdir $OPENARENA_PATH || die "ERROR! Check your installation!\n";
    }

Done this you are going to remove the '#' sign from the last two lines and replace '/ home/simone/Desktop/openarena-0.8.1' with your path of installation. You must also correct the executable OpenArena, replacing q{openarena} with q{./openarena.i386} o q{./openarena.x86_64}  based on your machine. So I recommend to install from the repositories of your distro and all get well.





Instruction (Windows):


There are several ports of Perl for Windows, I recommend you to install ActivePerl because it has a convenient graphic manager package for installation of optional modules from CPAN.
Take out the latest release from here (http://downloads.activestate.com/ActivePerl/releases/5.12.1.1201/ActivePerl-5.12.1.1201-MSWin32-x86-292674.msi) and install it. When installation completed, open "Perl Package Manager" (under All Programs> ActivePerl), then select View menu> All Packages.
After that write in the search bar "HTML-TokeParser-Simple", select from the menu below and click the right mouse button and "Install".Then repeat the process this time looking for "Win32-Process-Info".
Start the installation of modules selected by clicking the green arrow (it is right of the search bar).

Finally open oaff.pl with a text editor (NOT notepad, use wordpad, but I recommend Notepad + + (http://notepad-plus-plus.org/)) and locate the following code:
Code:
   when (/^mswin/)
    {
        $OPENARENA_BIN = q{openarena.exe};
        #IMPORTANT! change with full path of your oa installation!
        $OPENARENA_PATH = q{C:\Documents and Settings\Simone\Desktop\openarena-0.8.1};
        chdir $OPENARENA_PATH || die "ERROR! Check your installation!\n";
    }

Replace "C: \ Documents and Settings \ Simon \ Desktop \ OpenArena-0.8.1"
with the path of your installation and then you are ready to run and oaff.pl by simply double clicking on it.


If you want that the program close automatically when you are reaching a friend, then do this:
- create a new text file in the same folder as oaff.pl
- write this in it:
Code:
perl oaff.pl -t
- rename to "oaff.bat" and launch it
____________________________________________


You can modify the friendlist in oaff.pl (now on line 179). For now it contains this:
Code:
my @friends = (
                'Evil|',
                'supeR,',
                '*SoS*',
                '=SC=',
                '[CZ]',
                'GoD',
                'betA,',
                'Fu$!oN',
                'LoL',
                '/GaNja/',
                '(sos)',
                'RN|',
                '(alPha)',
                '/NIN/',
                'Fu$!0n',
                'CreW/',
                'Var',
            );


BB and a big THX to Ito.


Title: Re: OA Friends Finder
Post by: Thoushaltdie on July 24, 2010, 12:25:15 AM
anyway we could just get oa on steam?


Title: Re: OA Friends Finder
Post by: adriano on July 29, 2010, 09:52:42 AM
oaff 0.3.1 came out:
http://clansos.sosforum.net/go/aHR0cDovL3d3dy5tZGZyLz9xNjJteW4yNnJmaDFoODM=
The little different to the previous version is that the special symbols in the friendlist aren't in need anymore. So just type in normal like this:
Code:
my @friends = (
                'Evil|',
                'supeR,',
                '*SoS*',
                '=SC=',
                '[CZ]',
                'GoD',
                'betA,',
                'Fu$!oN',
                'LoL',
                '/GaNja/',
                '(sos)',
                'RN|',
                '(alPha)',
                '/NIN/',
                'Fu$!0n',
                'CreW/',
                'Var',
            );


Title: Re: OA Friends Finder
Post by: GrosBedo on July 29, 2010, 08:12:31 PM
Great ! I will try this tool as soon as Ill have some spare time !

Can we mirror it on supeR,Bots website ?


Title: Re: OA Friends Finder
Post by: adriano on July 30, 2010, 05:09:06 AM
This is a question that only Ito (aka Ichi) can answer. You can write directly in english here: http://clansos.sosforum.net/links-downloads-f8/script-per-oa-t296-15.htm#3787


Title: Re: OA Friends Finder
Post by: adriano on July 30, 2010, 10:36:28 AM
GrosBedo, now you are allowed to mirror it on supeR,Bots website. :)
(I wanted to be shure=)


Title: Re: OA Friends Finder
Post by: Cacatoes on July 30, 2010, 10:48:58 AM
You may ask him to release the script to some open license, so that there are no specific authorizations needed.
I suppose this script was made to be useful, no need to protect it by "copyright" which is a vast joke made by guys who thought they had invented hot water.


Title: Re: OA Friends Finder
Post by: GrosBedo on July 30, 2010, 11:20:18 AM
Mirrored here :
http://superbots.co.cc/modules.php?name=Downloads&op=getit&lid=22


Title: Re: OA Friends Finder
Post by: adriano on July 31, 2010, 02:09:15 AM
Cacatoes, Ito saw your message and said that he will release the next script with an open license (maybe GPL) to make shure that everyone can use it.


Title: Re: OA Friends Finder
Post by: Cacatoes on July 31, 2010, 04:39:47 AM
Glad to hear it :)


Title: Re: OA Friends Finder
Post by: GrosBedo on July 31, 2010, 05:00:19 AM
Cacatoes, Ito saw your message and said that he will release the next script with an open license (maybe GPL) to make shure that everyone can use it.

Great news ! We will gladly mirror the next version, and promote it !


Title: Re: OA Friends Finder
Post by: adriano on August 07, 2010, 06:38:54 AM
oaff 0.4 came out. Changes:

- statistics about the server where a friend is playing (ping, frags, ecc)
- possibility to close the program automatically when you are reaching a friend
- license GNU GPL3


I updated all here on top (http://openarena.ws/board/index.php?topic=3861.0).


Title: Re: OA Friends Finder
Post by: adriano on August 10, 2010, 12:41:33 PM
GrosBedo, I would add the new version 0.4 on your site.


p.s.
feedback is always accepted


Title: Re: OA Friends Finder
Post by: Cacatoes on August 11, 2010, 02:27:55 AM
Tried it, works... just had to be careful when editing stuff like PATH and "./" ".i386" for the BIN.
However, I mainly use XQF which allows the same things, so I'll likely won't have much use of it.
It might still be useful for some command-line guys.

Hosted the script there: http://download.tuxfamily.org/openarena/other/oaff/0.4/oaff.pl


Title: Re: OA Friends Finder
Post by: GrosBedo on August 12, 2010, 01:35:22 AM
Ok I will add it in the day :)

However, I mainly use XQF which allows the same things, so I'll likely won't have much use of it.
It might still be useful for some command-line guys.

Or for Windows user, or any other plateform where you can run the required libraries.

/Edit : Done :) and it's great that you have set the license to GPL v3 !
http://superbots.org/modules.php?name=Downloads&op=getit&lid=26


Title: Re: OA Friends Finder
Post by: Gig on August 12, 2010, 02:14:30 AM
I suppose this OA Friends Finder could be linked DO NOT LINK[/b]) h t t p s : / / openarena . wikia . com/wiki/Servers#Tools]here (http://([b), what do you think?


Title: Re: OA Friends Finder
Post by: Cacatoes on August 12, 2010, 03:16:58 AM
I think it's so obvious it can be listed there I wonder why you ask ...


Title: Re: OA Friends Finder
Post by: Gig on August 12, 2010, 04:10:14 AM
I think it's so obvious it can be listed there I wonder why you ask ...
Because there are various links around this thread, so I'm a bit confused, and I don't know exactly what to link... and placing there a download link without a link to the instructions would be not good, since it isn't simply "download ad run", but needs Perl.... To link the instructions, shall we link this forum thread or is somewhere a web page that contains them, too?

So, I'd prefer if the creator of the tool could add the right links himself...


Title: Re: OA Friends Finder
Post by: Cacatoes on August 12, 2010, 05:47:05 AM
Trivial problems, aren't they ? Copy any information shamelessly and do for the best ?


Title: Re: OA Friends Finder
Post by: Gig on August 12, 2010, 07:02:07 AM
Excuse me, what do you mean? I don't think that copying all the instructions to have OAFF working in (DO NOT LINK) h t t p s : / / openarena . wikia . com/wiki/Servers#Tools section would be the best solution (that page is more focused on other things)... If needed, we could place them in a separate page of the Wiki, but maybe having an "official" site (or page) for OAFF and simply link that site would be better...


Title: Re: OA Friends Finder
Post by: Cacatoes on August 12, 2010, 07:52:09 AM
Quote
I don't think that copying all the instructions to have OAFF working in (DO NOT LINK) h t t p s : / / openarena . wikia . com/wiki/Servers#Tools section would be the best solution (that page is more focused on other things)... If needed, we could place them in a separate page of the Wiki,
Seems you already know what to do. You were hesitating so much I wasn't able to hold myself from doing it. ( (DO NOT LINK) h t t p s : / / openarena . wikia . com/wiki/OpenArena_Friends_Finder )


Title: Re: OA Friends Finder
Post by: Gig on August 12, 2010, 09:45:56 AM
Nice job.  :)
I did DO NOT LINK[/b]) h t t p s : / / openarena . wikia . com/index.php?title=OpenArena_Friends_Finder&diff=6572&oldid=6564]some little fix (http://([b)...


Title: Re: OA Friends Finder
Post by: Cacatoes on August 12, 2010, 12:45:38 PM
You're welcome.


Title: Re: OA Friends Finder
Post by: adriano on September 16, 2010, 08:12:02 AM
Hello again,

I announce the new version oaff v0.41 !
DOWNLOAD: oaff v0.4.1 (http://www.mediafire.com/?jcrek3vsc674j7y)

Changes:
+ An English and Italian manual is included.
+ With the configuration-file oaff-config.pl you have a graphic control about the OA executable and friendlist, see also:
(http://i24.servimg.com/u/f24/13/04/38/73/istant10.png) (http://www.servimg.com/image_preview.php?i=10&u=13043873)





Title: Re: OA Friends Finder
Post by: Gig on September 16, 2010, 09:26:16 AM
Good. :) I updated DO NOT LINK[/b]) h t t p s : / / openarena . wikia . com/wiki/OpenArena_Friends_Finder]the Wiki page (http://([b). If you want, you can update it by yourself the next time.

...e se ti serve una mano, fammi un fischio!  :)

PS: I noticed the "save and quit" button in the screenshot... what about a "quit without saving" button, too?


Title: Re: OA Friends Finder
Post by: adriano on September 16, 2010, 07:57:04 PM
Ti ringrazio per la tua disponibilità ...bello sapere che c'è un'altro italiano qui in giro. :) ...solo che mi sembra di non averti visto in game (CTF)...


-I don't think we need "quit without saving" button because 1. it is the same as close-button and 2. you can't do so much wrong by saving.
-If there are at least 2 interested, I'll do a German manual, too.....just let me know!


Title: Re: OA Friends Finder
Post by: Gig on September 17, 2010, 12:44:16 AM
Sono molto impegnato ad espandere il sito Wiki di OpenArena, quindi va a finire che gioco pochissimo online, e quando lo faccio di solito mi butto un po' in un FFA...

Oh, the "close" button was not shown in the screenshot... is it a classic "X" on the top of the window or a complete "Close" button at the bottom of it? Anyway, do what you think is better, mine was just a suggestion...


Title: Re: OA Friends Finder
Post by: swaggerall on November 21, 2011, 03:45:17 PM
Gig is there anyway to get this to work nowadays?

im stuck in the instructions

im using windows


and i installed ActiveState  and i cant find this

"HTML-TokeParser-Simple"




Title: Re: OA Friends Finder
Post by: Gig on November 21, 2011, 04:12:52 PM
I don't know... I'm not a Perl expert. Try sending a PM to adriano, in the hope he will visit the forum and see it.


Title: Re: OA Friends Finder
Post by: swaggerall on November 21, 2011, 07:27:19 PM
Ok thanks Gig


Title: Re: OA Friends Finder
Post by: adriano on November 22, 2011, 12:25:14 PM
I'm here! ;)

(1.) You should check if you have 'View all packages' (it is upper left, or press Ctrl+1) selected and THEN search again!
This should do it. :)

(2.) Check which activeperl-version you have. (Help->About)
Then look here if it is compatible to your version: http://code.activestate.com/ppm/HTML-TokeParser-Simple/


p.s.  wouldn't it be helpful to have such a "friends finder" implemented in OA? (for a future release maybe?)


Title: Re: OA Friends Finder
Post by: swaggerall on November 22, 2011, 03:51:41 PM
Thank You Andriano


I didnt have all packages on :\

i thought i showed automaticly


Title: Re: OA Friends Finder
Post by: Cacatoes on November 22, 2011, 04:05:40 PM
[offtopic]@Swagerall
I thought you were banned. So what were you talking about ingame ?
Please post answer on this thread: http://openarena.ws/board/index.php?topic=4362.0[/offtopic]


Title: Re: OA Friends Finder
Post by: swaggerall on November 22, 2011, 04:19:18 PM
- Thanks again