Posts by LukaNebo

    v1.1.0 Changelog:

    • Added a feature that highlights empty queues red if the queues' slots are locked (e.g. Nanite Factory locks Lifeform Buildings queue and Shipyard queue, Research Lab locks Research queue, etc.).
    • Added timestamp to the OGame Clock when there is no OGLight addon. From now on, "Time threshold" feature works even without OGlight.
    • Added support for German (DE) and French (FR) language.
    • Info: A script to improve OGame's production overview: highlight earliest queue(s) and highlight empty queues.
    • Author: LukaNebo
    • Support: Discord
    • Download: https://openuserjs.org/scripts…roved_Production_Overview
    • Screenshot: See below
    • Browser: Chrome, Firefox, and all chromium based browsers with Tampermonkey or Greasemonkey support
    • Compability: Computers, Android phones (via Kiwi Browser or Mozilla Firefox)
    • Languages: All (tooltips: English, German, French, Slovenian) (everything seen directly is copied from OGame page; only descriptions in tooltips are in English by default or any other language that has been added)



    Improved Production Overview is a simple script that puts all queues for a planet in one row and highlights up to three earliest queues and it can also highlight empty queues for each construction category separately (if one so choses).


    This script allows you to optimize construction queues. When going to Production Overview page, you are presented where the earliest queue will finish first (the badge is added to Planet or Moon tab), so you can prepare and send resources there for your next construction. You can also customize in which construction categories (Research, Buildings, Lifeform Buildings, Lifeform Developments, and Shipyard) you want to have 100% upkeep, meaning you do not want to have empty queues. If you do so, it will show you how many empty queues are there (on the Planet or Moon tab) and it will highlight all queues in that category. You can set it up differently for Planet and Moon in options that are on the bottom of the page.


    By default settings (highlight one earliest queue and watch Buildings and Lifeform Buildings queues) it looks like this:
    IPO-SS-default.png


    These are the default options:

    IPO-settings-default.png


    The default settings are meant for a player that just started playing. He/she wants to look for empty queues in Buildings and Lifeform Developments category and also Research.


    In options you can customize:

    • Number of earliest queues. (When set to "#0", it hides them.)
    • Time threshold to highlight queue countdown timers that are below that threshold. (Countdown timer is highlighted with orange color. When set to "0h", it disables them.)
    • Setup for highlighting empty queues (for each category separately):
      1. Research
      2. Planets: Buildings, Lifeform Buildings, Lifeform Developments, and Shipyard
      3. Moons: Buildings and Shipyard



    With customized settings, where you want to watch only Lifeform Developments (where you want 100% upkeep) and maybe Research and moon's Shipyard, it looks something like this:

    IPO-SS-custom.png

    (Notice that it shows [1] for one empty queue inside Lifeform Developments and [1] for empty queue inside Moon's Shipyard. Here you can also see maximum number (3) of earliest queues. All of them are also displayed as badges on the planet/moon tabs in case the first/second/third queue is located on the moon.)


    Note, that if you have extra Mechas shipyard queue it will fit all 5 queues in one line. But as for now, you cannot watch empty queues for them (this only works for default shipyard).




    With v1.1.0 empty queues that are locked (i.e. that cannot be used due to other constructions) are highlighted with red color and are NOT counted as "empty" in the badge on the planet/moon tab. (For example, Nanite Factory locks Lifeform Buildings queue and Shipyard queue, Research Lab locks Research queue, etc.)




    Any feedback and suggestions are much appreciated! You can make them here or better yet, on Discord channel.


    Cheers!

    LukaNebo

    v1.5.1 Changelog

    • (User selected) language is fetched only on Galaxy page (instead on every page).
    • Fixed the bug where not supported language prevented the display of Galaxy Flight Duration bar. (Right now, if user selected language is not supported, it is set to default, i.e. english.)
    • Added support for Portuguese (Brazilian) (BR) language.

    v1.4.2 Changelog (2024-02-22)

    • Fixed Italian (IT) language.



    v1.5.0 Changelog

    • (User selected) language is now set from cookies (oglocale inside document.cookie).
    • Added option to display arrival and return time calculation (in addition to one or two way flight duration).


    *Saved settings (selected ships, speed modifier, etc.) are reseted to default because of a change in its local storage object.

    v1.4.1 Changelog

    • Fixed the bug where opening Sensor Phalanx on universes with fleet ignore empty/inactive systems settings return error message.
    • Added support for Italian (IT) language.

    v1.4.0 Changelog

    • Added support for universes with "Fleet ignore empty system" or "Fleet ignore inactive system" settings. (Thanks to Wonkydonky!)
    • Added additional information to tooltips (number of systems to ignore under "Distance", and which missions are for which fleet speed type under "Fleet Speed").
    • Changed from Math.floor to Math.round in function that calculates flight duration.

    v1.3.0 Changelog

    • Added option to right-click buttons: returns to previous selection (previous instead of next ship, +10% speed modifier instead of -10%, etc.).
    • Ships' speed are updated every time you visit Fleetdispatch page (instead of once per day).
    • Added support for German (DE) and French (FR) language.*


    *My German and especially French are not very good and I have mostly used Google Translate for the translations. If you find any mistakes or have any other feedback, please contact me. Also, I tried my best with abbreviated names for ships. Please contact me, if there is any community's convention concerning these acronyms that I have missed. (Keep in mind that the shortened names can be at most 10 characters long!) I am also open to support more languages in the future.

    What's the reason to limit this to once per day? IMO it can be updated every time the player visits fleetdispatch, no?

    I thought that it would save few milliseconds for each fleetdispatch page load. Maybe this does not matter because it maybe takes only few nanoseconds... I could easily change it so the speed values are saved every time you load a fleetdispatch.


    Thanks for the feedback!

    v1.2.0 Changelog:

    • Added a feature to update ships' speed from Fleetdispatch page once per day (instead of manually from Shipyard; this feature was removed). (Thanks to RiV- !)
    • Clicking on buttons automatically saves their state. Changed save button [S] to info button [ i ].
    • "Cargo", "Fast", and "Slow" ship types were changed to "First", "Second", and "Third" ship type, where a player can select any ship.
    • Prepared the script to support more languages. (Selected language is currently set only on "Messages" page from meta tag; if I find a better way to implement this, I will change it.)
    • Added support for slovene (SI) language.
    • Changed from setInterval to MutationObserver method for determining when co-ordinates were changed or when galaxy view was refreshed.
    • Various other improvements.
    • Info: A script to display flight duration inside Galaxy.
    • Author: LukaNebo
    • Support: Discord
    • Download: https://openuserjs.org/scripts…bo/Galaxy_Flight_Duration
    • Screenshot: See below
    • Browser: Chrome, Firefox, and all chromium based browsers with Tampermonkey or Greasemonkey support
    • Compability: Computers, Android phones (via Kiwi Browser or Mozilla Firefox)
    • Languages: English, German, French, Italian, Portuguese (Brazilian), Slovenian



    Galaxy Flight Duration is a simple script that calculates and shows distance and flight duration for three different types of ships inside Galaxy.

    Few use cases: It allows you to easily compare your flight duration to the enemy mission flight duration seen from Sensor Phalanx, for example. Or it allows you to easily determine which planet/moon is closer to a target. It also shows you if a distance is bigger than 20000, so it would be quicker to send a mission from neighbouring galaxy.

    The script adds a bar under Galaxy view and it looks like this:
    gfd-galaxy-View.png


    Each section or buttons can be pressed to change its state (apart from "distance"). From left to right they are as follows

    • Distance (Visual display of distance value; colored red if it is bigger than 20000, i.e. the distance to neighbouring galaxy)
    • Universe fleet speed settings (Can be clicked to toggle PEACEFUL [colored green], WAR [colored red], or HOLDING [colored orange] fleet speed.)
    • Flight briefing selector (Can be clicked to toggle ONE [ > ] or TWO WAY [ < ] flight duration or ARRIVAL [ >| ] or RETURN [ |< ] time calculation.)
    • Speed modifier (Can be clicked to change the values from 100% down to 10%.)
    • First ship type (Can be clicked to cycle through all ships.)
    • Second ship type (Can be clicked to cycle through all ships.)
    • Third ship type (Can be clicked to cycle through all ships.)
    • Info button (Can be hovered over with a mouse to display all saved speed values and other saved settings.)




    Quick guide:


    Flight duration values are colored red if the speed values are not yet updated.

    gfd-bar-red-Values.png


    To update speed values, go to Fleet page (Fleetdispatch). Script updates the values every time you visit Fleetdispatch. When you have updated speed values, the flight duration values will be colored white (if one way flight duration is selected) or gray (if two way flight duration is selected). You can left-click on any of the buttons to change its value (e.g. select next ship), or right-click to go to the previous value (e.g. select previous ship). The values are saved automatically.



    From version 1.4.0, script supports flight duration calculation in universes where "Fleet ignore empty system" and/or "Fleet ignore inactive system" settings are enabled! You can hover with your mouse over the Distance to see exact number of systems that are ignored (empty, inactive, and total number of systems to ignore). The Distance is colored green if any system is being ignored between your co-ordinates and viewed co-ordinates in Galaxy View.




    Cheers,
    LukaNebo



    P.S.: This is my first project in JavaScript, so any feedback or suggestions are more than welcome.