Git Product home page Git Product logo

chrome-ogame-ui-extension's Introduction

A Google Chrome extension that enhances the OGame interface by adding elements and menu entries.

Available in-game languages :

  • 🇬🇧 English
  • 🇫🇷 French
  • 🇪🇸 Spanish
  • 🇹🇷 Turkish
  • 🇩🇪 German
  • 🇵🇱 Polish

This extension improves the user interface by adding several features :

  • Remaining storage time under current planet's resources
  • Statistices tab : look at all your planet's resources ticking in real time
  • Next recommended builds : know the ROI on your mines & build wisely
  • Pre-fill the solar satelite text field if you have negative energy
  • See the daily server top/flop (biggest point increase/drop)
  • Fast deploy/transport icons when you hover your planets
  • Add custom links in your left menu

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6

Screenshot 7

chrome-ogame-ui-extension's People

Contributors

cmartinezledo avatar eswak avatar ggcatu avatar pawelzwronek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chrome-ogame-ui-extension's Issues

Nearby Players (BUG) - Waiting XXXX seconds for a free mission slot

Hi, i have a problem when i want to spy players from the extension table (where you see a list of all inactives/etc). Sometimes works fine and i can send a number of spy missions equal to my free slots, but sometimes (now) it display a message as the one i write in the title: "Waiting XXXX seconds for a free mission slot", but i have all the slots free!

I try to unnistall the extension, but the error persist :(

any idea, thanks

Spying from nearby players tab

Hello,

I want to report that spying players from the nearby tab is not possible anymore from today, it always tells that you have to wait x seconds for a free slot, where x is the first returning mission, even if you have all free slots.

Thank you

Console error : Cannot read property 'join' of undefined

Issue reported from the google chrome store

On a Linux mashine i'm clicked on a "Statistics" button and got error on Chromium console: (unknown) Uncaught TypeError: Cannot read property 'join' of undefined at :96:48 at Array.map (native) at HTMLLIElement. (:94:47) at HTMLLIElement.dispatch (https://gf3.geo.gfsrv.net/cdn8c/095a3a537441223e34647ad44e30ec.js:2:44760) at HTMLLIElement.r.handle (https://gf3.geo.gfsrv.net/cdn8c/095a3a537441223e34647ad44e30ec.js:2:41480)

Galaxy View & Spy Section

Hi,

I think that nowadays, the best galaxy view extension is UniverseView even better than AGO. Provides a clean and tidy UI and also enhance it with OTrashSim.

Wouldn't be better to rely on this extension for the Galaxy View?
And for the spy section, I think that Skynet 'Raidar' > AGO also. But as Skynet extension seems to be abandoned, we could go for UI++ version 😃

Hope my suggestion makes sense for UI++ backlog

Pre-fill solar sats text field when energy is below 0

it would be useful to know how many solar satelites should be built.

Like: I have -318 energy
On this planet, solar sats make 27 energy
So, the text field when focusing a solar satellite building panel should be pre-filled with "12" (ceil(abs(energy)/solarSatelliteProduction))

sats

Add transport/stay icons next to current player's planet list

@Miista's fork has an interesting feature addition : it adds 2 links to each planets in the right menu:

  • deploy to here
  • transport to here

I think it would be a nice additions, it's quite quick to do, and it can be seemless if we use the stock icons for transport/stay and just add 2 little squares right to the planet name.

Original code :

$('div#planetList > .smallplanet').each(function(_, planet) {
    var getPlanetCoords = function(planet){
      var coordsAsText = $(planet).find('a.planetlink > span.planet-koords').text();
      var start = coordsAsText.indexOf('[');
      var end = coordsAsText.indexOf(']');
      var trimmedCoords = coordsAsText.substr(start+1, end-start-1);
      return trimmedCoords.split(':');
    }

    var mkDiv = function(url, text) {
      return '<div style="text-align: center;"><a href="'+url+'">'+text+'</a></div>';
    }

    var coordinates = getPlanetCoords($(planet));
    var url = '/game/index.php?page=fleet1';
        url += '&galaxy='+coordinates[0];
        url += '&system='+coordinates[1];
        url += '&position='+coordinates[2];
        url += '&type=1'; // Don't know why it has to be type=1

    var transportLinkUrl = url + '&mission=3';
    var transportLink = '<div style="text-align: center;"><a href="'+transportLinkUrl+'">Transport to Here</a></div>';

    var deploymentLinkUrl = url + '&mission=4';
    var deploymentLink = '<div style="text-align: center;"><a href="'+deploymentLinkUrl+'">Deploy to Here</a></div>';

    // Expand the height of the planet view to accomodate for the new links
    var originalHeight = parseInt($(planet).css('height'));
    var newHeight = originalHeight + (2 * 15); // Each link is 15 pixels high
    $(planet).append(deploymentLink);
    $(planet).append(transportLink);
    $(planet).css('height', newHeight);
  });

Make counters real-time

Suggestion from the google store

can you make your counters real time(no need to reset information about building to see refreshed time). Game have his own real time timer for "Buildable in :"

[BUG] - Statistics section keeps showing data for relocated planets

The reason is that you are getting that info from the local storage and not from the Ogame API.

So when you relocate one planet, you can see that the local storage keeps both planets. (Old and new coords)
And as a result of that, you will see the planet duplicated in the Statistics section.

Missing resources feature and time to build doubts

Hi, I'm having some trouble to understand how some features work.

For instance, some times I see the missing time to build something, and some times I see the exact amount of materials needed to build it.

image

I haven't found any way to configure this, I'd like to know the time left to build something if I don't have the resources yet. Is there a way to configure it?

Also, I don't understand the ship resources toggle:

image

How does it work exactly? Does it mean the ship gives prefference to the selected resources when you attack? I can't find any guide.

Thanks a lot for your time and this excellent tool. I don't need any other extensions with this one.

Great work!

Nearby Idles - Spy not working

Hello,

When I enter the tab of nearby idles and try to spy someone, it just doesn't do anything, its like it the function isn't working at all

Thanks.

Retry on error not working

The queue mechanism was perfect, now everytime there is a fleet not available error the script doesnt recover.

Can you please restore the old way?

Next most rentable builds

Create a list of the next most rentable builds.
Now it's just an outline on the stats tab, and it only includes mines.

Problem : I don't know when I should build my next astrophysics levels, or if I should continue to upgrade my mines.

Question about my points

`Hello, I would like to know how I can do to get my growth data of economy, military and research.

I could see that in the path the information is saved, but I can not understand it if you could help me I would appreciate it.

best regards

path d="M50,165L50,159.417C52.485,159.227,54.97,159.053,57.455,158.849C61.1,158.549,64.746,158.153,68.391,157.863C71.481,157.618,74.571,157.489,77.66,157.2C80.684,156.918,83.707,156.387,86.731,155.985C89.803,155.576,92.875,155.153,95.947,154.767C99.01,154.381,102.074,154.014,105.137,153.663C108.255,153.306,111.374,153.072,114.492,152.642C117.563,152.218,120.633,151.386,123.703,150.919C126.758,150.454,129.813,150.134,132.868,149.744C135.87,149.361,138.872,149.026,141.874,148.599C145.019,148.151,148.164,147.542,151.31,147.071C154.397,146.608,157.484,146.332,160.572,145.778C163.577,145.238,166.581,144.252,169.586,143.519C172.683,142.763,175.781,142.176,178.878,141.309C181.99,140.439,185.101,139.339,188.213,138.138C191.284,136.952,194.355,134.806,197.426,134.021C199.685,133.443,201.945,133.294,204.205,132.771C208.001,131.891,211.796,130.229,215.592,128.981C218.75,127.942,221.909,126.758,225.067,125.898C228.093,125.074,231.118,124.658,234.144,123.768C237.217,122.863,240.29,121.131,243.363,120.12C246.468,119.099,249.573,118.647,252.678,117.5C255.131,116.594,257.583,114.727,260.036,113.671C263.734,112.079,267.431,111.094,271.129,109.683C274.193,108.515,277.257,107.424,280.321,105.964C283.37,104.512,286.418,101.51,289.467,100.67C291.988,99.975,294.509,99.908,297.03,99.272C300.643,98.36,304.255,96.691,307.868,94.618C310.97,92.837,314.073,88.582,317.176,86.765C319.697,85.289,322.218,84.407,324.738,83.32C328.362,81.757,331.986,79.969,335.61,78.898C338.682,77.989,341.754,77.665,344.827,76.731C347.773,75.836,350.72,73.715,353.666,72.953C356.865,72.126,360.064,72.155,363.263,71.189C366.253,70.286,369.242,65.766,372.232,63.913C375.385,61.959,378.537,60.107,381.69,59.187C384.742,58.295,387.795,58.292,390.848,57.292C393.937,56.28,397.026,52.662,400.115,49.955C403.171,47.277,406.227,43.714,409.283,40.965C412.369,38.189,415.455,36.04,418.541,33.275C421.594,30.539,424.647,27.33,427.701,24.368C430.79,21.372,433.879,19.469,436.967,15.403C437.05,15.294,437.133,15.134,437.216,15L437.216,165Z" class="ct-area"></path

#14 is still a [Bug]

Tried today, and same result #14. A 4h 3xm waiting, turns into 3d 4h 👎
Actual cost: 8.522M Metal
Actual Metal in planet: 8.015.046
Difference: 507.223

<div class="t_ContentContainer t_clearfix t_Content_cloud" style="width: auto; height: auto;">8.522.269 Metal</div>
Actual production: 111.405 metal per hour

untitled

A feedback text field

To ease for users giving feedback a text filed in UI++ settings tab with simple 'Send' button would be great. It would be faster and more anonymous than google store comments.

Don't spy newbie players

If a planet cannot be scanned because of newbie protection -- ignore all planets of the player in current spy session (queued spy actions). At least don't attempt to spy a second time.

Make settings tab more userfriendly

As @pawelzwronek mentioned, we should make the settings tab more userfriendly. The thing that bothers me most is the visualisation of the features. The red lines confused me as if the feature was on and the others were off.

Here Are some changes I would like to make, feel free to add or comment:

  • Change visualisation of features
  • Add small description for each feature
  • Add section titles
  • Change tab name to settings
  • Change reset buttons to checkboxes

Add button to share statistics

Most of the time, I screenshots the stats tab, upload an image to imgur.com, and copy the image link in chat.

This can be automated easily with imgur's API

Premade attack fleet in "nearby idles" tab

Suggestion from the google store

Could be nice if I could have some favorit idle players with premade attacker fleet for faster attacking :) <-- eg. 4 big transporters

[Bug] spy queue: waiting negative time

The extension works fine on my PC, but on my laptop it often flips out saying "Waitng -X seconds ...". And it's obvious that it continuously (with less than 1 second delay) tries to send a spy mission.

Yes, it says "waitng" in the message.

Google Chrome 63 (latest)

Favorites tab

I would pull the favorites tab, but there's still an issue.
Player data gets pulled from a Weekly updated info, so when you add some "New" planets, you can't see them on the favorite tab, since I made a way to add them by coords,

image

Need to add a way to update it faster.
Was thinking about adding another box to "Update player" witch would get all their planets from the DAILY updated info, so the planet would appear.

Is not really an Issue, just didn't know where to discuss about it, my first time contributing to a project.

Toggle features on/off

Suggestion from the google store

The ability to toggle features on/off has been asked several times. Like removing the buttons on the left (war-riders, simulator, …).

Translation tool

Should we provide an in-game or external tool to help people translate the app ?

(BUG) UI++ dont show correctly the feature "time to possible construction with trade"

The extension dont show correctly the feature "time to possible construction with trade" in the construction page. It should appear like this screenshot:

https://github.com/eswak/chrome-ogame-ui-extension/blob/master/uipp.3.png

But i cant see this two lines, only the amortization / rentable line:
https://postimg.org/image/3x48k4j7n/

i think my options are fine:
https://postimg.org/image/4mn0whz6r/

what can i do? thanks

Use Page-Language instead of Browser Language

It would be great if one could use the Game language instead of the Browser language.
My situation is that I have my OS and Browser set to English, but I'm playing in a German universe. Therefore the UI is German and it would be great if the extension would now also be German.

I can provide a Pull Request for this, if needed.

Thank you!

Wrong calculations with servers that use comma as their decimal separator

Recently moved to ogame.ar to take care of a friend account. And for my surprise buildings took years to finish 🤣 And when I moved the mouse to the building cost resources I saw the comma, so instead of picking up 3.00 it´s taking 300,00.
So all calculations are a disaster when playing on that universes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.