Conquer Club

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.

Re: Clickable Maps :: Version 3.21

Postby yeti_c on Wed Oct 28, 2009 3:27 am

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Clickable Maps :: Version 3.21

Postby ask me2 on Wed Oct 28, 2009 9:22 am

my clickies are not working at all
User avatar
Major ask me2
 
Posts: 435
Joined: Sat Jan 17, 2009 11:50 pm
Location: Texas

Re: Clickable Maps :: Version 3.21

Postby ronsizzle on Fri Oct 30, 2009 12:36 pm

my clickies just stopped working???????????????
User avatar
Sergeant 1st Class ronsizzle
 
Posts: 2553
Joined: Mon Apr 09, 2007 8:30 pm

Re: Clickable Maps :: Version 3.21

Postby darkangelsguy205 on Tue Nov 03, 2009 6:57 pm

6453 people have downloded clickable maps
User avatar
Sergeant darkangelsguy205
 
Posts: 606
Joined: Tue Mar 10, 2009 5:10 pm

Re: Clickable Maps :: Version 3.21

Postby Scott-Land on Sun Nov 08, 2009 2:22 pm

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
Major Scott-Land
 
Posts: 2423
Joined: Tue Jan 23, 2007 9:37 pm

Re: Clickable Maps :: Version 3.21

Postby the.killing.44 on Sun Nov 08, 2009 2:25 pm

Uhā€¦no. But you have to be in a game to see it on the left sidebar.
User avatar
Captain the.killing.44
 
Posts: 4724
Joined: Thu Oct 23, 2008 7:43 pm
Location: now tell me what got two gums and knows how to spit rhymes

Re: Clickable Maps :: Version 3.21

Postby jammyjames on Sun Nov 08, 2009 2:39 pm

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
Corporal 1st Class jammyjames
 
Posts: 1394
Joined: Tue May 06, 2008 3:17 am

Re: Clickable Maps :: Version 3.21

Postby ender516 on Thu Nov 12, 2009 1:46 pm

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
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: Clickable Maps :: Version 3.21

Postby Grifter on Sun Nov 22, 2009 7:44 pm

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

Re: Clickable Maps :: Version 3.21

Postby sherkaner on Mon Nov 23, 2009 5:01 pm

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

Re: Clickable Maps :: Version 3.21

Postby Army of GOD on Sun Nov 29, 2009 8:30 pm

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
User avatar
Lieutenant Army of GOD
 
Posts: 7187
Joined: Tue Feb 24, 2009 4:30 pm

Re: Clickable Maps :: Version 3.21

Postby Army of GOD on Mon Nov 30, 2009 7:03 pm

Ok, can someone like help me to use this? I have no idea how to get it to work...
mrswdk is a ho
User avatar
Lieutenant Army of GOD
 
Posts: 7187
Joined: Tue Feb 24, 2009 4:30 pm

Re: Clickable Maps :: Version 3.21

Postby jleonnn on Mon Dec 14, 2009 7:29 am

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

Re: Clickable Maps :: Version 3.21

Postby jleonnn on Mon Dec 14, 2009 8:31 am

nvm... i got the v3.21 :oops:
Major jleonnn
 
Posts: 1808
Joined: Tue Jan 06, 2009 5:11 am
Location: The Communist Republic of Aoria

Re: Clickable Maps :: Version 3.21

Postby sherkaner on Fri Dec 18, 2009 3:36 pm

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

Re: Clickable Maps :: Version 3.21

Postby yeti_c on Sat Dec 19, 2009 3:06 am

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

Re: Clickable Maps :: Version 3.21

Postby sherkaner on Sat Dec 19, 2009 5:19 am

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

Re: Clickable Maps :: Version 3.21

Postby chipv on Sat Dec 19, 2009 8:08 am

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
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Clickable Maps :: Version 3.21

Postby chipv on Tue Dec 22, 2009 2:20 pm

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
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Previous

Return to Tool Archives

Who is online

Users browsing this forum: No registered users