GithubHelp home page GithubHelp logo

savemaster's Introduction

saveMaster

A Mindustry mod to manage saves. Provides a variety of practical functions.

Functions

  • Save editor
  • Multiplayer
  • Cloud save (need to build it yourself)

Cloud Save

protocol

read

Function: Read save
Interface: /read
Method: GET
Header:

  • key: the key to access the server
  • name: save name
  • time: The time when the save was last synchronized, in the form of 20240101123000, used to determine whether the local save needs to be updated

Returns: The request returns only 304 if the time passed in is newer than the one on the server. If an save named name is not found on the server, the request simply returns 404. Otherwise return the save file.

write

Function: Write save
Interface: /write
Method: POST
Header:

  • key: the key to access the server
  • name: save name
  • time: save creation time

Payload: save file
Return: 200 is returned if the writing is successful.

remove

Function: Delete save
Interface: /remove
Method: GET
Header:

  • key: the key to access the server
  • name: save name Return: 200 is returned if the deletion is successful.

limit

Function: Get server limits
Interface: /limit
Method: GET
Header:

  • key: the key to access the server

Return:

{
   "maxPayloadSize": 26214400,
   "maxNameSize": 512
}

deploy on cloudflare

Use cloudflare's workers and kv to build a free server. The code needed is in /cloud. Fill in the subdomain you want to use, the server key you want to set and the ID of your kv in wrangler.toml then use cloudflare's wrangler to deploy it.

savemaster's People

Contributors

dsfdsfwxp avatar

Stargazers

 avatar

Watchers

 avatar

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.