- 是否在寻找中文版本?
A Mindustry mod to manage saves. Provides a variety of practical functions.
- Save editor
- Multiplayer
- Cloud save (need to build it yourself)
Function: Read save
Interface: /read
Method: GET
Header:
key
: the key to access the servername
: save nametime
: The time when the save was last synchronized, in the form of20240101123000
, 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.
Function: Write save
Interface: /write
Method: POST
Header:
key
: the key to access the servername
: save nametime
: save creation time
Payload: save file
Return: 200
is returned if the writing is successful.
Function: Delete save
Interface: /remove
Method: GET
Header:
key
: the key to access the servername
: save name Return:200
is returned if the deletion is successful.
Function: Get server limits
Interface: /limit
Method: GET
Header:
key
: the key to access the server
Return:
{
"maxPayloadSize": 26214400,
"maxNameSize": 512
}
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.