OGame: Resources in Flight

By Vess Last update Feb 15, 2010 — Installed 9,220 times.

Last update Debris Field

in
Subscribe to Last update Debris Field 4 posts, 2 voices



LordJon User
FirefoxWindows

"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.
Here are some of them:

English: Debris Field
German: Trümmerfeld
Dutch: Puin

 
Vess Script's Author
FirefoxWindows

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...

 
Vess Script's Author
FirefoxWindows

Nevermind. I think I found a rather elegant language-independent solution to this problem. ;)

 
LordJon User
FirefoxWindows

Okey, good to hear that! ^^

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