Giter VIP home page Giter VIP logo

cookie-autosaver's Introduction

cookie-autosaver

v0.0.4

Develop by Hackbug.

What is this ?

Cookie-autosaver is Server-client application for cookie clicker to auto save your progress on your hard drive automatically

How does it work ?

A node.js server will run on your computer. His job is to receive your save and store it into a file.

You will add the client addon into your cookie clicker game. It will send each X minutes your actually save to the server.

To be sure the server will not erased your saved save, it will keep on your hard drive, X last save. It can be usefull in the case which, by accident, you remove your cookie (Ctrl + F5) for exemple.

To save manually, press Ctrl + ²

How can I install it ?

Firstly, download the whole project.

Server

Next you have to install Node.js : https://nodejs.org/en/

Start the Node.js command prompt and go into the poject folder.

Execute npm install express http fs logger properties-reader to install all the dependencies.

If you want customize some features of the server, you can edit the file conf.properties. But for now, please don't change the server.port, because you can't change it for the client-side.

By the way, the project should be runnable. Execute node cookie-autosaver.js to launch the server.

Client

Execute simply this command into the console developper tools.

javascript:(function() {
    Game.LoadMod('http://hackbug.fr/cookie-autosaver/autosaver-client.js');
}());

What's next ?

As soon as possible, the project will grow :

  • Transform the client into a real addon customizable
  • To allow the user to easily edit the server parameters

cookie-autosaver's People

Contributors

hagbuck avatar

Watchers

 avatar

cookie-autosaver's Issues

Error frontend Access to XMLHttpRequest

Remove the error from the client :

Access to XMLHttpRequest at 'http://localhost:2018/?save=***'
from origin 'http://orteil.dashnet.org' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.

Objectify front-side addon

If the addon front-side should be an object, it would be more easily customizable. Specially for the server URL and port, or for the time interval.

Client Js should be real Addon

Actually you have to import the client part directly by copy / past. The client side must be importable like any cookie clicker addon.

Manual save, too much save sent

Because if you keep press the manual save key, the server will receive too much data to save.

Or wait the event keyup before.

Account management

Propose to our users to create an account on a server and save his saves on it.

The goal is to allow a group of people to use the same server.

Obviously, the addon plugin should be upgrade to select the right server

Configuration file for the server

It should be great if the user could customize the server comportment from a file.conf

it would modify :

  • Server port
  • Save export folder
  • Logger lvl

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.