Pages: [1] 2
  Print  
Author Topic: OA Friends Finder  (Read 38414 times)
adriano
Member


Cakes 4
Posts: 188



« 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 (manual included)
oaff 0.4 (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












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.
« Last Edit: September 16, 2010, 08:39:25 AM by adriano » Logged
Thoushaltdie
Lesser Nub


Cakes 0
Posts: 134



« Reply #1 on: July 24, 2010, 12:25:15 AM »

anyway we could just get oa on steam?
Logged

Victory needs no explanation, defeat allows none!
adriano
Member


Cakes 4
Posts: 188



« Reply #2 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',
            );
Logged
GrosBedo
Member


Cakes 20
Posts: 710


« Reply #3 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 ?
Logged
adriano
Member


Cakes 4
Posts: 188



« Reply #4 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
Logged
adriano
Member


Cakes 4
Posts: 188



« Reply #5 on: July 30, 2010, 10:36:28 AM »

GrosBedo, now you are allowed to mirror it on supeR,Bots website. Smiley
(I wanted to be shure=)
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #6 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.
Logged

Todo: Walk the cat.
GrosBedo
Member


Cakes 20
Posts: 710


« Reply #7 on: July 30, 2010, 11:20:18 AM »

Mirrored here :
http://superbots.co.cc/modules.php?name=Downloads&op=getit&lid=22
Logged
adriano
Member


Cakes 4
Posts: 188



« Reply #8 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.
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #9 on: July 31, 2010, 04:39:47 AM »

Glad to hear it Smiley
Logged

Todo: Walk the cat.
GrosBedo
Member


Cakes 20
Posts: 710


« Reply #10 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 !
Logged
adriano
Member


Cakes 4
Posts: 188



« Reply #11 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.
Logged
adriano
Member


Cakes 4
Posts: 188



« Reply #12 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
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #13 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
Logged

Todo: Walk the cat.
GrosBedo
Member


Cakes 20
Posts: 710


« Reply #14 on: August 12, 2010, 01:35:22 AM »

Ok I will add it in the day Smiley

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 Smiley and it's great that you have set the license to GPL v3 !
http://superbots.org/modules.php?name=Downloads&op=getit&lid=26
« Last Edit: August 12, 2010, 05:04:40 AM by GrosBedo » Logged
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #15 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, what do you think?
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #16 on: August 12, 2010, 03:16:58 AM »

I think it's so obvious it can be listed there I wonder why you ask ...
Logged

Todo: Walk the cat.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #17 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...
« Last Edit: August 12, 2010, 07:44:58 AM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #18 on: August 12, 2010, 05:47:05 AM »

Trivial problems, aren't they ? Copy any information shamelessly and do for the best ?
Logged

Todo: Walk the cat.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #19 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...
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #20 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 )
Logged

Todo: Walk the cat.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #21 on: August 12, 2010, 09:45:56 AM »

Nice job.  Smiley
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...
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #22 on: August 12, 2010, 12:45:38 PM »

You're welcome.
Logged

Todo: Walk the cat.
adriano
Member


Cakes 4
Posts: 188



« Reply #23 on: September 16, 2010, 08:12:02 AM »

Hello again,

I announce the new version oaff v0.41 !
DOWNLOAD: oaff v0.4.1

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:




Logged
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #24 on: September 16, 2010, 09:26:16 AM »

Good. Smiley I updated DO NOT LINK[/b]) h t t p s : / / openarena . wikia . com/wiki/OpenArena_Friends_Finder]the Wiki page. If you want, you can update it by yourself the next time.

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

PS: I noticed the "save and quit" button in the screenshot... what about a "quit without saving" button, too?
« Last Edit: September 16, 2010, 10:07:53 AM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Pages: [1] 2
  Print  
 
Jump to: