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

)
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

!
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
