Page 22 of 22

Re: Clickable Maps :: Version 3.21

PostPosted: Wed Oct 28, 2009 3:27 am
by yeti_c
n00blet wrote:
yeti_c wrote:Those stats aren't accurate...

Read the code to find out why... but it was the reason why I got banned from userscripts for BOB!

C.
I dont see it...but it just got another 11,000 downloads since last night :?

Haha what did you do??


Sherkaner is right - Edthemaster coded the script so it downloads itself to see if it has the latest version...

Every time someone plays a game it gets another "install"...

I thought this was a great idea and I robbed it for BOB... but BOB was much more widely used... and within a weekend it was number 1 and I'd cained their bandwidth (BOB is a much bigger script too)

I got banned (although they don't realise that they've left a backdoor into their site - which I could still update my scripts with) and they didn't accept my apologies!

So I changed my mechanism to just download a simple text file with a number in - which is less bandwidth - but userscripts only accept .js files - so I had to host that elsewhere...

I beleive the old mechanism is still in place - but is hosted by Sherkaner instead now.

C.

Re: Clickable Maps :: Version 3.21

PostPosted: Wed Oct 28, 2009 9:22 am
by ask me2
my clickies are not working at all

Re: Clickable Maps :: Version 3.21

PostPosted: Fri Oct 30, 2009 12:36 pm
by ronsizzle
my clickies just stopped working???????????????

Re: Clickable Maps :: Version 3.21

PostPosted: Tue Nov 03, 2009 6:57 pm
by darkangelsguy205
6453 people have downloded clickable maps

Re: Clickable Maps :: Version 3.21

PostPosted: Sun Nov 08, 2009 2:22 pm
by Scott-Land
Does anyone know why CM doesnt work without BoB? I've tried to turn off bob to eliminate the lag factor but turning off Bob turns off CM as well.

Re: Clickable Maps :: Version 3.21

PostPosted: Sun Nov 08, 2009 2:25 pm
by the.killing.44
Uh…no. But you have to be in a game to see it on the left sidebar.

Re: Clickable Maps :: Version 3.21

PostPosted: Sun Nov 08, 2009 2:39 pm
by jammyjames
karelpietertje wrote:Hello everybody,

I tried some stuff and failed some times but in the end, it was pretty easy to get rid of the error messages when misclicking, which irritated me.
So for anybody who wants to get rid of them as well, here's how to do it:

So right-click the monkey in the bottom right, and Manage User Scripts.
Select Clickable Maps and click Modify.

The error message system is in line 923 and 924:
Code: Select all
try{selectToCountry.value   = tIndex}catch(err){}
if ( selectToCountry.value != tIndex ) { wait('off'); setTimeout(function(){alert(tName+' is not accessible from '+fromTerritory)}, 500); return }

As far as I could understand it, this tries out if the territory you click is in the list of territories that connect to the territory from which you are attacking, and if it isn't, it pops up an error message and it sets a timeout of 500 (seconds i think, but I'm noob at this :lol:)

So basically what I did was I deleted the error message part and kept the timeout.
It looks like this:
Code: Select all
try{selectToCountry.value   = tIndex}catch(err){}
if ( selectToCountry.value != tIndex ) { wait('off'); setTimeout(500); return }

This way the script will just ignore a click to make an impossible attack, and you can just click the territory you actually meant to click next.

The forting goes the same way. You should alter lines 957 and 958 from this:
Code: Select all
try{selectToCountry.value   = tIndex}catch(err){}
if ( selectToCountry.value != tIndex ) { wait('off'); setTimeout(function(){alert(tName+' is not accessible from '+fromTerritory)}, 500); return }

To this:
Code: Select all
try{selectToCountry.value   = tIndex}catch(err){}
if ( selectToCountry.value != tIndex ) { wait('off'); setTimeout(500); return }


This worked for me :D!

NOTE:The script is very sensitive to deleting too much or too little. While trying to make it like this, I had to delete and reinstall thrice.
So if it doesn't work for you anymore, just delete the script and reinstall it again.

Have fun :)
KP


PS: If this script ever gets updated I hope that there will be the possibility of selecting if you want the error messages or not, but that is way too difficult for me to code myself, I'm a noob :lol:



KP some help with this. im struggling to locate the oeice of coding...

Re: Clickable Maps :: Version 3.21

PostPosted: Thu Nov 12, 2009 1:46 pm
by ender516
For everyone who is having trouble with territories with an "&" in the name (like on British Isles 2 and Oceania), I have posted a bit of an analysis here. I intend to locate all the existing problem XML soon and will then post one or more bug reports accordingly.

EDIT:
BREAKING NEWS: My earlier analysis was flawed. See here for details. Suffice it to say, the XML is fine, so Clickable Maps needs to be more careful about handling text with an ampersand in it.

Re: Clickable Maps :: Version 3.21

PostPosted: Sun Nov 22, 2009 7:44 pm
by Grifter
I have a problem with the Clickable maps add-on. When I right click to deploy or advance troops the browser context menu appears. It never did this before. I am using Firefox 3.5.5 on Windows Vista. I have version 3.29 for the add-on.

I love this add-on along with the BOB one. Makes the site so much easier to use.

Re: Clickable Maps :: Version 3.21

PostPosted: Mon Nov 23, 2009 5:01 pm
by sherkaner
Hmm, is it possible to include the images in the outer-map in stead of in the map-cell? That would make more sense, outer-map is relative so position won't depend on whether it is a tournament any more (I made that change for BOB, seems to work).
And then it's possible to put the chat above the map in BOB too without having to mess with the CM-script.

Re: Clickable Maps :: Version 3.21

PostPosted: Sun Nov 29, 2009 8:30 pm
by Army of GOD
This seems rather interesting. Guess I'm going to have to wait for one of my 4 effings games to have it be my turn until I can use it!

Re: Clickable Maps :: Version 3.21

PostPosted: Mon Nov 30, 2009 7:03 pm
by Army of GOD
Ok, can someone like help me to use this? I have no idea how to get it to work...

Re: Clickable Maps :: Version 3.21

PostPosted: Mon Dec 14, 2009 7:29 am
by jleonnn
no idea why, but mine doesn't seem to work anymore. The only thing that works is the "b" hotkey and the "r" one. When i click on the screen, it refreshes, even the "e" doesn't work anymore!

Re: Clickable Maps :: Version 3.21

PostPosted: Mon Dec 14, 2009 8:31 am
by jleonnn
nvm... i got the v3.21 :oops:

Re: Clickable Maps :: Version 3.21

PostPosted: Fri Dec 18, 2009 3:36 pm
by sherkaner
Ok, lack is gonna change something that will break this script (the fix is easy btw). And I wanted to make it fully compatible with BOB again (chat on top working directly would be nice :p). So I now have a slightly altered version that works.

But I have one question: should those circles be exactly around the numbers, or should they be slightly off? I've never seen them perfectly around the numbers actually, but it seems logical.

Re: Clickable Maps :: Version 3.21

PostPosted: Sat Dec 19, 2009 3:06 am
by yeti_c
sherkaner wrote:Ok, lack is gonna change something that will break this script (the fix is easy btw). And I wanted to make it fully compatible with BOB again (chat on top working directly would be nice :p). So I now have a slightly altered version that works.

But I have one question: should those circles be exactly around the numbers, or should they be slightly off? I've never seen them perfectly around the numbers actually, but it seems logical.


I think they're meant to be round the numbers...

Good luck taking this forward Sherkaner - I suggest you ask one of the Mods to reassign this topic to you - so that you can change the first post.

C.

Re: Clickable Maps :: Version 3.21

PostPosted: Sat Dec 19, 2009 5:19 am
by sherkaner
Ok, I've created a version 3.30 for now, location: http://userscripts.org/scripts/source/64539.user.js

If someone would like to test it out, go ahead. It should still work after the update.

Re: Clickable Maps :: Version 3.21

PostPosted: Sat Dec 19, 2009 8:08 am
by chipv
sherkaner wrote:Ok, I've created a version 3.30 for now, location: http://userscripts.org/scripts/source/64539.user.js

If someone would like to test it out, go ahead. It should still work after the update.


Excellent work and thanks for taking this on, sherkaner.

Can you start a new thread please and I'll lock this one.

Thanks

Re: Clickable Maps :: Version 3.21

PostPosted: Tue Dec 22, 2009 2:20 pm
by chipv
Thread locked.

Please use this thread from now for latest Clickable Maps information

viewtopic.php?f=59&t=104488