Giter Site home page Giter Site logo

propaneaccessories's People

Watchers

 avatar  avatar  avatar

Forkers

oilcrest

propaneaccessories's Issues

Import/Export

Simple import export plugin for the "database". Currently the "database" is just a text file so to import/export one would simple copy the file. This plugin is more niche, and is for cross-server transferring.

The idea here is that the Propane instances, let's call them P1 and P2, are sharing the same data for redundancy. Say a massive Propane game is running, and we have a backup instance running on stand by. This PropAcc would allow the P2 to download P1's database on every set scoring interval in order to have the most accurate scoring data to restore instantly. Alternatively you can manually copy, but this would allow for an instant recovery since P2 is already running when P1 goes down.

Export DB PropAcc:

  • Copies the database on every scoring interval to the webroot where the scoreboard is running from to make it publicly accessible (this is just the scoring data which is already on the scoreboard so there is no risk here as scary as that sounds, it's benign as fuck)

  • That's it, good to go

Import DB PropAcc:

  • Downloads the database via curl/wget/or whatever is best on every scoring interval, and then copies it to the Propane App root.
  • Propane loads in the data on it's scoring interval like normal.
  • Again, that's it, good to go

score_sync not always syncing scores

If a game has been running for a while and scores are dynamically reset on the main scoring server, then in some cases the client will fail to actually sync.

The end result looks like the client's server is caching scores, it is not. The bug is suspected to be due to an issue with copyfile not copying blank files (even though the score file should always at least have the box names in when populated). As a result a solution might be to null out the client's score file before copying to ensure data is sync'd correctly.

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.