Energy calculation for Satellites

Issue #20 resolved
Former user created an issue
  1. In the extimation of the sat amount for the up of a mine it fails in the calculation. E.g. in a planet with max temp=71° -> sat production=35 -> 701/35=20.02 so it should show " ≙ 21 satellites ", but as you can see it shows 19.

  2. In building/shipyard page, when i click on Sats icon it shows (under construction time) the production: e.g. (+35). If I write no number in the field it shows the correct energy produced; but if I write any number, the production per satllite change (e.g. it becomes (+38) ) so the sum doesn't match with real energy produced. (Even if I only click on the amount input box the green number "(+35)" changes into "(+38)" for example)

Maybe the error is related to the second error (infact if the sat production was 38 the extimation would be ok: 701/38=18.44 -> 19 sat) The screenshots are taken from the same planet

Comments (18)

  1. Martin Burchard repo owner

    Please show me a screenshot of the Overview Page also. This behaviour was not seen on German or English Servers before...

  2. Martin Burchard repo owner

    ogame_calc.png

    skynet_calc.png

    Looks good here... I need more details...

    The correct formula is: Math.round(Math.floor((maxTemp + 140) / 6) * amount)

  3. Simone Cappellini

    The calculus error changes by planet.

    Homeplanet: max temp: 17°C.  (+26) -> (+26) OK
    Colony 1: max temp: 62°C. (+33) -> (+35)
    Colony 2: max temp: 36°C. (+29) -> (+33)
    Colony 3: max temp: 63°C. (+33) -> (+38)
    Colony 4: max temp: 71°C. (+35) -> (+38)
    Colony 5: max temp: 70°C. (+35) -> (+38)
    Colony 6: max temp: 66°C. (+34) -> (+36)
    Colony 7: max temp: 69°C. (+34) -> (+36)
    Colony 8: max temp: 66°C. (+34) -> (+36)
    Colony 9: max temp: 36°C. (+29) -> (+30)
    

    As you can see, colony 2 and 9 have the same temperature but different error.

  4. Simone Cappellini

    I only use Skynet and Tampermonkey with TopRaider, InfoCompte and infocompte translation script.

  5. Martin Burchard repo owner

    Can't be reproduced. Has one of this planets be moved? Changes the planet temperature during this movement?

  6. Simone Cappellini

    No relocation have been done nor fusion from other universes. The same thing happens to another player of italian community.

  7. Martin Burchard repo owner

    I'm in the Channel mostly the whole day on working days. At the weekend it depends. Please simply try at the evening if I'm there

  8. Log in to comment