Last update Debris Field
![]() ![]() |
"Known problem: the script can't distinguish the current planet from its moon or debris field. For instance, the resources on a flight sent from a moon to its debris field will be added to the resources of the flights flying towards the planet. I don't see how to resolve this in a language-independent way (i.e., without having to maintain "debris field" in multiple languages)." Is it hard to maintain "debris field" in multiple languages? Because I can help you with the translations.
English: Debris Field
|
![]() ![]() |
Yes, it is hard. OGame supports much more than these 3 languages. Do you happen to know Chinese? ;) Plus, the script will have to determine the language from the URL of the server. Cumbersome. Inellegant. I could do some things in a language-independent way - but cannot cover all cases. For instance, I could detect moons by the presence of the ')' character before the coordinates. I could also check the last word before the coordinates and make sure that it matches the last word of the name of the current planet. Unfortunately, this is not enough - what if somebody names their planet "Corn field"? I won't be able to distinguish between that and the debris field around that planet... |
![]() ![]() |
Nevermind. I think I found a rather elegant language-independent solution to this problem. ;) |
![]() ![]() |
Okey, good to hear that! ^^ |

