Friday, September 3rd 2010, 7:05pm UTC+1
You are not logged in.
Date of registration: Mar 16th 2008

Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire
Date of registration: Mar 16th 2008
I have absolutely no idea why that would be. Bit of a newb when it comes to javascript. Happy to fix it if someone tells me what's wrong. It's probably got something to do with the sorting. Don't know how countdowns work, but I imagine it needs to know where to change the display - the sorting probably screws that up.1. The countdown timer no longer moves when this is installed. You have to refresh the hideout view so see exactly how long until a spy arrives in the enemy city.
lol, I should have thought of that. I spent an inordinate amount of time trying to mine the co-ords (which is then used to calculate the travel time) from the string where it's displayed. Just realised it's going to farm any numbers in the name also. I'm guessing the towns you have problems with have numbers in the name? That shouldn't be too difficult a fix.2. Sometimes the calculations are way off. I have spies in two enemy towns on my island. Travel time should be 10m for both. One shows the 10m correctly, the other shows 4h 40m. This happens in more than one of my hideouts.
Probably. Haven't done anything with options and forms before but I can probably muddle my way through it.Feature request: could you make the sorting by distance optional? Some other scripts put their options on the options menu. Could something similar be done for this one?
Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire
Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire
This post has been edited 1 times, last edit by "brianpmack" (May 30th 2009, 2:42am)
Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire
Date of registration: Feb 27th 2008
Birthday: Dec 17th 1986 (23)
Gender: male
Location: Cambridge, UK
|
|
Source code |
1 2 3 4 |
var breadcrumbCoordinate = function(text) {
var result = /\[([0-9]+):([0-9]+)\]/.exec(text);
return result.length === 3 ? { x: result[1], y: result[2] } : false;
};
|
|
|
Source code |
1 2 3 4 |
var spyCoordinate = function(text) {
var result = /\(([0-9]+),([0-9]+)\)/.exec(text);
return result.length === 3 ? { x: result[1], y: result[2] } : false;
};
|
|
|
Source code |
1 2 3 4 |
var inputString = "<li class=\"city\" title=\"Residence\"> -Town- (12,13) </li>"; // this is an example, not real coordinates
var coordinate = spyCoordinate(inputString);
alert("found coordinate "+coordinate.x + ":" + coordinate.y); // in the example it, the message will read "found coordinate 12:13"
|

Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire
Date of registration: Mar 16th 2008
Just had a thought about a quick fix for the problem. I've udated userscripts wit hthe new one. Haven't done a lot of testing though so let me know if any problems crop up.@Rryst: Have you had any chance to look at this and see what you can do with it? I checked the userscripts page hoping you had updated there an not posted here, but that was not the case.
I think this script shows real promise. It would be a shame if it does not get improved.
Date of registration: Mar 6th 2008
Birthday: Aug 12th 1983 (27)
Gender: male
Location: Pancevo Serbia
Just had a thought about a quick fix for the problem. I've udated userscripts wit hthe new one. Haven't done a lot of testing though so let me know if any problems crop up.@Rryst: Have you had any chance to look at this and see what you can do with it? I checked the userscripts page hoping you had updated there an not posted here, but that was not the case.
I think this script shows real promise. It would be a shame if it does not get improved.
Date of registration: Mar 16th 2008
The countdown doesn't work. It's just something you'll have to live with if you want to use it for the time being. What it get's 'stuck' on is the time from when you loaded the page - it's correct, it just doesn't countdown in realtime.Just had a thought about a quick fix for the problem. I've udated userscripts wit hthe new one. Haven't done a lot of testing though so let me know if any problems crop up.@Rryst: Have you had any chance to look at this and see what you can do with it? I checked the userscripts page hoping you had updated there an not posted here, but that was not the case.
I think this script shows real promise. It would be a shame if it does not get improved.
just updated from the fist link, i still have the timer problem, and the blue travel time is incorrect. it says 20mins to next island, and my game shows a frozen timer on bellow 10min....
Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire

Date of registration: Apr 22nd 2009
Birthday: Jul 7th 1979 (31)
Gender: male
Location: Get off my lawn!
Occupation: n00b extraordinaire