Ikariam Search - Indexing Worlds

The biggest World wide index of Ikariam players, alliances and islands.

Skip to content

[Guide] Configuring Corsairs Tools.

How to install etc...

[Guide] Configuring Corsairs Tools.

Postby Harrowed on Wed Oct 15, 2008 10:55 am

Firstly.. Need to thank GBoz for the script in the first place..
Secondly, this guide was written as if you knew little/next to nothing about editing a text file/configuring a GreaseMonkey script.

This guide is for 2 kinds of people. The end-user and an Alliance co-ordinator.
End-user - Is the person who just wants to install the script themselves and forget about it there-after, until another alliance is added.
Allliance co-ordinator - Is the person in your alliance who maintains a list of all the alliances you are associated with. Who may also be required to watch other alliance's lists to make sure there are no miscommunications later.

I wont bore you with drivel.. Let's get into configuring the script for you to use.

In this guide I'll be using an example alliance called 'Nublets Ahoy' with an Alliance tag of '-N A-'.
As far as I know there is no such alliance as I pulled the name out of the air.

For the guide we'll also give a few example alliances.. 'Corsairs', with a tag of 'CoR' and 'Paladins Gold', with a tag of '- PG'.
Along with an Enemy Alliance of the name 'Pawners', 'PWNRS'.

And lastly, let's assume this is all on the server s1.ikariam.org

Let's get ready to rumble!

Step 1. Remove GBoz's alliance information already in the script.
Right click on the monkey in the bottom right hand corner of your Firefox window and select 'Manage User Scripts....'.
Should now see a window pop up with a title of 'Manage User Scripts'.
In the list of Scripts, select 'The Corsairs Tools' and click in the lower left part of the window 'Edit'. If you get a window asking you to choose an editor.. Choose your favourite one, OR just use Notepad (if you're on a win*cough*dows system that is). I personally use a reall great developer's one called UltraEdit.
With any luck, you're greeted with your chosen Text editor and it's listing the contents of a file called 'the_corsairs_tools.user.js'.
Scroll down till you see the line
the_corsairs_tools.user.js wrote:case 's4.ikariam.org':
hold shift and scroll down till the last
the_corsairs_tools.user.js wrote:break;
Just above the last close curl bracket '}'.
You should now have highlited all of the existing data. Tap your backspace key.

Step 2. Adding your own infomation.
Ok.. Now click the select all just bellow, and then CTRL+C (On Win/Linux machines) Apple+C on Mac's.
Code: Select all
   default:
      alliancefullnm='Some Alliance Name';
      alliancenm='SOMEA';
      alliance=[
            ['No Alliance',      NoAlliance   ],
            [alliancenm,      Alliance   ],
            ['ALLY',         Allies      ],
            ['ENEMY',         Enemies    ],
      ];
      chaturl='.;
      forumurl='.';
      forumurlnew='.';
   break;
   case: 's1.ikariam.org':
      alliancefullnm='Some Alliance Name';
      alliancenm='SOMEA';
      alliance=[
            ['No Alliance',      NoAlliance   ],
            [alliancenm,      Alliance   ],
            ['ALLY',         Allies      ],
            ['ENEMY',         Enemies    ],
      ];
      chaturl='.;
      forumurl='.';
      forumurlnew='.';
   break;

Change to your Text Editor window and Paste, either Right Click, select Paste, or CTRL+V/Apple+V.

Now.. If your server is different from s1.ikariam.org, change the one listed. Also change 'Some Alliance Name' to your alliance's full name and continue with your alliance Tag replacing 'SOMEA'.
alliancefullnm is just used in the Corsair Menu system, the one in the upper right hand corner.
Once you've done that.. You only need to add your alliance(s).
This is the easy bit... Each entry needs to on one line by itself and end in a comma ','
Using the one's suggested above it should end up looking something like
Code: Select all
   case: 's1.ikariam.org':
      alliancefullnm='Nublets Ahoy';
      alliancenm='-N A-';
      alliance=[
            ['No Alliance',      NoAlliance   ],
            [alliancenm,      Alliance   ],
            ['CoR',         Allies      ],
            ['- PG',         Allies      ],
            ['PWNRS',         Enemies    ],
      ];
      chaturl='.;
      forumurl='.';
      forumurlnew='.';
   break;
Save the file.

Step 3. Testing it out.
Go back to Firefox and click on 'Show Island'. Should now be shown a new view with allies/enemies in colour'd name box's as well as the owner's name beneath.

If you don't see anything, then likely is you've not closed off a bracket or added a comma in the right place.. in Firefox, click 'Tools' then, 'Error Console' or CTRL+SHIFT+J on Win machines, (unsure what it is on Mac's atm). And scroll down to the end of the list there.. It should tell you which line of which file.. Otherwise it'll say something to the effect of, 'undefined variable' blah.. with blah probably being a typo somewhere in your alliance list.

If you're a End user, you should be set and wont need to add anymore information unless you play on other servers, in which case, just copy/paste the example above changing all the required information.

If you're the Alliance Co-ordinator, then you will only need to upload this single file to webspace somewhere and post in an Alliance Message (possibly ingame) with the URL to the .user.js file. IT is important the filename includes .user.js so it is automaticly redirected to GreaseMonkey scirpt installer.

If you have any questions, feel free to start a new thread asking for some help and, time willing, I'll be able to assist you, or GBoz may before me.
[Spanking one (i)nactive at a time!]
Newbies, please click HERE before posting. Thanks.
User avatar
Harrowed
Good Fellas
 
Posts: 64
Joined: Mon Oct 06, 2008 6:40 am

Re: [Guide] Configuring Corsairs Tools.

Postby Harrowed on Wed Oct 15, 2008 11:11 am

Kept empty for additional messages.
[Spanking one (i)nactive at a time!]
Newbies, please click HERE before posting. Thanks.
User avatar
Harrowed
Good Fellas
 
Posts: 64
Joined: Mon Oct 06, 2008 6:40 am

Re: [Guide] Configuring Corsairs Tools.

Postby laLapa on Sun Oct 19, 2008 8:04 pm

I am ally coordinator. i have a question. When I am trying to edit file i shows me a message "System cannot find file"
When I am editing in through Notepad file that is downloaded on my computer everything is OK, but when I click "New script" and I select this file is opens me a Notepad window and sends same message. And the script isn't running.
laLapa
Small Fish
 
Posts: 2
Joined: Mon Oct 06, 2008 9:13 am

Re: [Guide] Configuring Corsairs Tools.

Postby Harrowed on Mon Oct 20, 2008 4:28 am

laLapa wrote:I am ally coordinator. i have a question. When I am trying to edit file i shows me a message "System cannot find file"
When I am editing in through Notepad file that is downloaded on my computer everything is OK, but when I click "New script" and I select this file is opens me a Notepad window and sends same message. And the script isn't running.


You don't use New Script to edit the file..Manage User Scripts... In the window that pops up, select "The Corsair Tools" and then Click the Edit button in the lower left hand corner. It should then open in your chosen Editor.. If for some reason you selected the wrong editor you'll have to change it.. google a howto online as it's a not so simple to post it here.
User avatar
Harrowed
Good Fellas
 
Posts: 64
Joined: Mon Oct 06, 2008 6:40 am

Re: [Guide] Configuring Corsairs Tools.

Postby laLapa on Mon Oct 20, 2008 6:22 pm

It's not a point. When I use Edit in Manage Scripts it sends me out a message that the he cannot find file. When I checked in Ctrl+Shift+J it sends out message that says file greasemonkey.js doesn't exitst... But I have it installed!
laLapa
Small Fish
 
Posts: 2
Joined: Mon Oct 06, 2008 9:13 am

Re: [Guide] Configuring Corsairs Tools.

Postby BURNIN AMBITION on Sat Nov 01, 2008 3:21 am

a question i have is this. i saved the js file in my pc. when i right click and choose open with firefox, it doesnt load the script but shows teh script like in notepad...strange...how can i "make" firefox, install the script? thank you so much
BURNIN AMBITION
Small Fish
 
Posts: 4
Joined: Tue Oct 28, 2008 1:05 am

Re: [Guide] Configuring Corsairs Tools.

Postby Harrowed on Sat Nov 01, 2008 3:28 am

File has to end in .user.js all lowercase.. dot user dot js. GreaseMonkey has it's hooks in any file ending in that so firefox doesn't even see the files afterwards.

Just drag it into the firefox window and the script installer will kick in
[Spanking one (i)nactive at a time!]
Newbies, please click HERE before posting. Thanks.
User avatar
Harrowed
Good Fellas
 
Posts: 64
Joined: Mon Oct 06, 2008 6:40 am

Re: [Guide] Configuring Corsairs Tools.

Postby Lord Baron on Sat Nov 01, 2008 6:05 am

I am trying to make it so people can see my alliance forums under Tools on the sidebar. Instead of going to "http//theolympians.roflforum.net", it tries to go to, "http//s3.ikariam.com/http//theolympians.roflforum.net". How do I drop that first section so it will link properly?
Lord Baron
Small Fish
 
Posts: 6
Joined: Sat Nov 01, 2008 5:59 am

Re: [Guide] Configuring Corsairs Tools.

Postby Harrowed on Sat Nov 01, 2008 6:07 am

[Spanking one (i)nactive at a time!]
Newbies, please click HERE before posting. Thanks.
User avatar
Harrowed
Good Fellas
 
Posts: 64
Joined: Mon Oct 06, 2008 6:40 am

Re: [Guide] Configuring Corsairs Tools.

Postby Lord Baron on Sat Nov 01, 2008 6:14 am

OMG! I feel like such an idiot! I stared at that script for like an hour!! LOL! :lol:
Lord Baron
Small Fish
 
Posts: 6
Joined: Sat Nov 01, 2008 5:59 am

Next



Return to Guides

Who is online

Users browsing this forum: No registered users and 1 guest