OGame Redesign: Easy Transport

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • OGame Redesign: Easy Transport

      +1

      • Info: Provides links to easily transport the resources needed for a building/research
      • Author: RiV-
      • Website: userscripts.org/scripts/show/106689
      • Support: userscripts.org/scripts/discuss/106689
        board.ogame.de/board497-fandom…-redesign-easy-transport/
        board.ogame.org/board684-ogame…-redesign-easy-transport/
      • Download: userscripts.org/scripts/source/106689.user.js
      • Screenshot:





      • Browser: Firefox + Greasemonkey, Chrome + Tampermonkey, Opera
      • Languages: English and German

        [spoiler=Description]
        Easy Transport provides features to easily transport the needed resources for buildings or researches. On every detail page of a building or research are links added which allow the user to add said building, i.e. the needed resources (all or only the missing), to a queue in order to transport the needed resources from one or more planets or moons to the target.

        The script memorizes the coordinates and the (remaining) resources, chooses the needed cargoes and fills in the coordinates and resources automatically. If the needed resources can't be sent all at once, the script allows the user to realize partial deliveries, while the script assumes any calculations.

        Different transport tasks with the same target can be merged together.

        Since the script considers the Deuterium consumption, you have to visit the research page once, so the script can read the levels of your drives.

        Supported Browsers
        Firefox + Greasemonkey/Scriptish | Chrome + Tampermonkey | Opera
        [/spoiler]

      The post was edited 5 times, last by RiV- ().

      kwinse likes this.

    • Nice script :)
      I have replaced code:

      Source Code

      1. if(uni == "uni50de") Sp = 2;
      2. if(uni == "uni60de") Sp = 2;
      3. if(uni == "uni70de") Sp = 2;
      4. if(uni == "uni105de") Sp = 4;
      5. if(uni == "uni106de") Sp = 2;
      6. if(uni == "uni111de") Sp = 2;
      7. if(uni == "uni30org") Sp = 2;
      8. if(uni == "uni35org") Sp = 5;
      9. if(uni == "uni40org") Sp = 2;
      10. if(uni == "uni42org") Sp = 2;
      11. if(uni == "uni105org") Sp = 4;
      12. if(uni == "uni110org") Sp = 2;
      Display All

      on

      Source Code

      1. switch (uni ) {
      2. case "uni50de" :
      3. case "uni60de" :
      4. case "uni70de" :
      5. case "uni106de" :
      6. case "uni111de" :
      7. case "uni30org" :
      8. case "uni40org" :
      9. case "uni42org" :
      10. case "uni110org" :
      11. Sp = 2;
      12. break;
      13. case "uni105de" :
      14. case "uni105org" :
      15. Sp = 4;
      16. break;
      17. case "uni35org" :
      18. Sp = 5;
      19. break;
      20. default:
      21. Sp = 1;
      22. }
      Display All

      and look at the scripts bontchev (userscripts.org/scripts/review/94540 userscripts.org/scripts/review/79700) conformance between the numbers and names of the universes.
      He has already offered to help you to identify the moon or planet ;)
      I stop working on the same script and was ready to join its adaptation to ogame.ru ^^
    • RiV- wrote:

      And for what exactly do I need the universe names? Isn't the number always displayed in the URL?

      If you enter the game through ogame.xx you get a link like uni888.ogame.xx.
      If you enter the game through gameforge.com or board.ogame.xx you get a link like name_of_uni.ogame.xx. for the universe, such as andromeda, barym, capella, etc.: andromeda.ogame.xx, barym.ogame.xx, capella.ogame.xx etc.
    • i've tested your script now, and maybe i habe a good idea ^^

      first: your script works fine and look good
      second (my idea): it is only able to plan one building yet. my wish is, to plan more than one buildings/... because, i (or someone else) could make a plan which building should be build next, if there are more things to do, the gamer could reserve more than one "flight"

      you know what i mean?
    • RiV- wrote:

      As a queue or add all costs of the selected buildings together and transport them at once? Latter would be used for a new colony for example.

      as a queue

      edit: reason for queue (more buildings on different planets/moons)
      edit: another reason for queue (you can send one building from one moon/planet and another building on the same target-planet/moon from another planet/moon)

      The post was edited 2 times, last by Eleria ().

    • RiV- wrote:

      - Compatibility to other browsers

      such as opera, first you need to modify code

      Source Code

      1. (function()
      2. {
      3. ...
      4. your code
      5. ...
      6. }) ()

      and

      Source Code

      1. function setValue(name, value) {
      2. GM_setValue(name + '|' + uni, JSON.stringify(value));
      3. }
      4. function getValue(name, defaultValue) {
      5. var val = GM_getValue(name + '|' + uni);
      6. if(val == undefined) return defaultValue;
      7. return JSON.parse(val);
      8. }

      Because the opera GM_getValue returns string instead of boolean or integer.
    • marshen wrote:

      you dont need the function dont you? thought it was only to get your own namespace (which you should because otherwise stupid things may happen)

      If you do not use the function, the opera is not possible to send any fleet due to glitches on the page of the fleet :crazy:
      You can still "return" to complete the script. Also helps with bugs ^^

      And RiV- use

      Source Code

      1. if(unsafe.resourceTickerMetal ["production"] == 0) moon = true;


      This is work on Opera11.50 and Opera-mobile ogame_redesign_easy_tran.user.txt
    • I removed the unsafeWindow method completely and used this instead:

      Source Code

      1. var isMoon = false;
      2. var tickerProduction = document.getElementsByTagName('script');
      3. for(var i = tickerProduction.length - 1; i > 0; i = i-1) {
      4. if(tickerProduction[i].text.search(/var resourceTickerMetal =/) > -1) {
      5. isMoon = tickerProduction[i].text.split('production:')[1];
      6. isMoon = isMoon.split(',')[0];
      7. isMoon = (parseFloat(isMoon) > 0) ? false : true;
      8. break;
      9. }
      10. }


      Thank you for your help :)