A issue with the distancies's calculator
![]() ![]() |
First, sorry for my bad english, i'm french.
On the map, if i want to calculate the distancie between a island and another island, by mouse's click, the script show.... NaNJ NaNh NaNm NaNs and when i click on the right arrow for precisions, it's the same thing, NaNJ NaNh NaNm NaNs Please fix this, thanks |
![]() ![]() |
the issue is with the capital to a island. I just tried to calculate a colonie to a island, and it's work. |
![]() ![]() |
Have you visited all the cities? |
![]() ![]() |
|
![]() ![]() |
same problem with me (french too) |
![]() ![]() |
yea...kinda weird! Me too =P |
![]() ![]() |
Only in french server? Are they modifying the game? |
![]() ![]() |
i don't think... |
![]() ![]() |
The fuction work now... awesome! |
![]() ![]() |
Hi, Buzzy, I had the same issue with distance calculator. I tried everything - I disabled another scripts, I reinstalled IR, I unistalled (even with settings) and again installed IR. Nothing helped. So I tried debug your script and I found that variable coordsInicio in function calcula is always undefined. So I defined global (i.e. outside of "calcula") variable coordsInicioRxR and I assigned it correct value in function panel (see bellow). Everything's working now. /** * Actualiza el tiempo cuando se selecciona una isla. */ var .
/**
* Crea la calculadora normal.
*/
function panel (){
var panel = document.createElement ("div");
panel.id = "calcDistancia";
panel.className = "dynamic";
if (panelesScript[3] == "1"){
var abierto = true;
var imagen = Img.PANEL_BOTON_MINIMIZAR;
var vis = "visible";
var hei = "155px";
}else{
var abierto = false;
var imagen = Img.PANEL_BOTON_MAXIMIZAR;
var vis = "hidden";
var hei = "0";
}
|
![]() ![]() |
thx RxR!! :D |

