Ogame Redesign: Resources in Flight

By Vess Last update May 5, 2012 — Installed 121,272 times.

Destination planet

in
Subscribe to Destination planet 3 posts, 2 voices



LPuNKT Scriptwright
Firefox

with the new ogame version, 2.3.3, the resources in flight to a planet arent added to the existing resources on that planet (the sum of resources in flight are ok)

 
crusy Scriptwright
Firefox

Having the same issue here.

 
LPuNKT Scriptwright
Firefox

replacing originNames[i] = allFlights[i].parentNode.getElementsByTagName("span")[1].innerHTML; and destinationNames[i] by the following code it works ...

var mySpan = allFlights[i].parentNode.getElementsByTagName("span")[1];
if (mySpan.getElementsByTagName("span")[0]) {
var myInfo = mySpan.getElementsByTagName("span")[0].getAttribute('title');
myInfo = myInfo.substring(1,myInfo.length);
} else {
myInfo = mySpan.innerHTML;
}

originNames[i] = trim(myInfo);

function trim (myString)
{
return myString.replace(/^\s+/g,'').replace(/\s+$/g,'')
}

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel