Git Product home page Git Product logo

egginc-coop-tracker's People

Contributors

ayavilevich avatar mot3rror avatar

Watchers

 avatar  avatar  avatar

Forkers

ayavilevich

egginc-coop-tracker's Issues

Add command to list players with their coop egg laying buffs

Add a command to return what kind of coop buffs each team member has.
Mainly interested in the egg laying buff. Can also calc earning buff in case we want to show that in the future.

Example usage: "eb!TBD"

Output row for each player: name - rank - tach %

Output example:
UserA Mirror 10%
UserB Max 8%


Website alternative:

Change up the web version to default groupings as above, presort and add tach%

@MoT3rror fyi

Improve performance of php<->js communication

This communication is used to access the EI API.

Relevant files:
js/egg-inc.js
app/Api/EggInc.php

Currently every request is sync and invokes the node from php via a shell execution.
So web requests seem to be in series and not parallel, plus there is overhead of process invokation.

Perhaps the best solution would be to make the EI API calls in PHP.

protobuf also has PHP libs:
https://developers.google.com/protocol-buffers/docs/reference/php-generated
https://github.com/protobuf-php/protobuf

Can even do a "stale ok" caching strategy where if data for the user exists it is returned and then an async call is made to refresh the data in cache for next time.

However, for now we are going to do a hybrid solution but one that is parallel and has less overhead.

First, make a node webserver that can make the protobuf EI API requests and return json. It will be called by PHP over http, locally, without doing shell executions.
Second, have a method in the new web server that can fetch several user infos at once. Later use in PHP in an optimized manner.

Data table not behaving correctly visually

Table not showing icons in the header. Sorting works, though.
Looks like a client side issue.

The table is Vuetify https://vuetifyjs.com/en/components/data-tables/

Might be conflicting with bootstrap.


Strategic notes:
Can go full Vuetify.
Can switch to React and then use AntD (the system supports it using Inertia)

Current situation:
Laravel is doing all of the routing but Inertia just sets json on the page and uses whatever frontend you choose. https://inertiajs.com/client-side-setup

Rate in "tracker" command is not rounded correctly for low rate value

A player was showing the rate: 567907.20000002
in the table.

image

relevant api data:

        {
            "id": "x",
            "name": "x",
            "eggsLaid": 1693.9582188434606,
            "active": true,
            "_5": 2,
            "eggsPerSecond": 157.75200000000535,
            "_7": 0,
            "earningBonusOom": 20.777444270949154,
            "tokens": 0
        }

need to see why such low values are not rounded to the relevant unit.

@MoT3rror feel free to assign to me.

Support new lines in "add coop" command

Example:

eb!add ion-production-2021 idriveadv1a
idriveadv2l
idriveadv3d
idriveadv4c
idriveadv5m
idriveadv6j
idriveadv7w
idriveadv8f
idriveadv9k
 idriveadv10t
 idriveadv11a
 idriveadv12p
 idriveadv13r
 idriveadv14o

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.