Clickable Maps :: Version 3.21

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Re: Clickable Maps :: Version 3.21

Post 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.
Image
Highest score : 2297
User avatar
ask me2
Posts: 435
Joined: Sat Jan 17, 2009 11:50 pm
Gender: Male
Location: Texas

Re: Clickable Maps :: Version 3.21

Post by ask me2 »

my clickies are not working at all
ronsizzle
Posts: 2553
Joined: Mon Apr 09, 2007 8:30 pm
Gender: Male

Re: Clickable Maps :: Version 3.21

Post by ronsizzle »

my clickies just stopped working???????????????
User avatar
darkangelsguy205
Posts: 606
Joined: Tue Mar 10, 2009 5:10 pm

Re: Clickable Maps :: Version 3.21

Post by darkangelsguy205 »

6453 people have downloded clickable maps
User avatar
Scott-Land
Posts: 2423
Joined: Tue Jan 23, 2007 9:37 pm

Re: Clickable Maps :: Version 3.21

Post 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.
User avatar
the.killing.44
Posts: 4724
Joined: Thu Oct 23, 2008 7:43 pm
Gender: Male
Location: now tell me what got two gums and knows how to spit rhymes
Contact:

Re: Clickable Maps :: Version 3.21

Post by the.killing.44 »

Uh…no. But you have to be in a game to see it on the left sidebar.
jammyjames
Posts: 1394
Joined: Tue May 06, 2008 3:17 am
Gender: Male

Re: Clickable Maps :: Version 3.21

Post 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...
Image
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: Clickable Maps :: Version 3.21

Post 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.
User avatar
Grifter
Posts: 224
Joined: Mon Jul 14, 2008 7:49 pm
Gender: Male
Location: Ontario, Canada

Re: Clickable Maps :: Version 3.21

Post 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.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: Clickable Maps :: Version 3.21

Post 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.
Army of GOD
Posts: 7192
Joined: Tue Feb 24, 2009 4:30 pm
Gender: Male

Re: Clickable Maps :: Version 3.21

Post 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!
mrswdk is a ho
Army of GOD
Posts: 7192
Joined: Tue Feb 24, 2009 4:30 pm
Gender: Male

Re: Clickable Maps :: Version 3.21

Post by Army of GOD »

Ok, can someone like help me to use this? I have no idea how to get it to work...
mrswdk is a ho
jleonnn
Posts: 1808
Joined: Tue Jan 06, 2009 5:11 am
Gender: Male
Location: The Communist Republic of Aoria

Re: Clickable Maps :: Version 3.21

Post 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!
jleonnn
Posts: 1808
Joined: Tue Jan 06, 2009 5:11 am
Gender: Male
Location: The Communist Republic of Aoria

Re: Clickable Maps :: Version 3.21

Post by jleonnn »

nvm... i got the v3.21 :oops:
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: Clickable Maps :: Version 3.21

Post 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.
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Re: Clickable Maps :: Version 3.21

Post 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.
Image
Highest score : 2297
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: Clickable Maps :: Version 3.21

Post 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.
User avatar
chipv
Head Tech
Head Tech
Posts: 3055
Joined: Mon Apr 28, 2008 5:30 pm

Re: Clickable Maps :: Version 3.21

Post 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
User avatar
chipv
Head Tech
Head Tech
Posts: 3055
Joined: Mon Apr 28, 2008 5:30 pm

Re: Clickable Maps :: Version 3.21

Post by chipv »

Thread locked.

Please use this thread from now for latest Clickable Maps information

viewtopic.php?f=59&t=104488
Last edited by Calidrmr on Tue Aug 16, 2011 11:37 am, edited 1 time in total.
Reason: moved the thread to archives
Locked

Return to “Tool Archives”