Giter Club home page Giter Club logo

cotlsaveserializer's Introduction

CotLSaveSerializer

A Java program to encode and decode Cult of the Lamb save files.

Application Usage

  • Decoding a save file (output to output.json in the current directory by default) :
java -jar CotLSaveSerializer.jar -mDecode save_X.json
  • Decoding a save file (output to a spesific file) :
java -jar CotLSaveSerializer.jar -mDecode save_X.json output.json

๐Ÿ“Œ These commands will only output the raw JSON data, with no formatting.

  • Encoding a decoded save file (output to output.json in the current directory by default) :
java -jar CotLSaveSerializer.jar -mEncode file.json
  • Encoding a decoded save file (output to a spesific file) :
java -jar CotLSaveSerializer.jar -mEncode file.json output.json

FAQ

Q : where the save files at?

A : On Windows, the save file is most likely in C:/Users/{user}/AppData/LocalLow/Massive Monster/Cult Of The Lamb/saves

Building

Tested in Eclipse using JDK 17. just build it yourself I guess.

CotLSaveSerializer Class API

public String read(String fileName)

Reads and decodes the encoded save file. This will NOT work with the decrypted JSON file. If this fails, either because of the magic value mismatch, or other errors, it will be logged into the standard output.

Params :

  • String fileName - The path of the file

Returns :

  • String - The decoded save file data in UTF-8
public boolean write(String fileName, Object data, boolean isEncrypted)

Writes the data in a JSON file.

Params :

  • String fileName - The path of the target file
  • Object data - The data to be encoded (This just calls .toString() on the object!)
  • boolean isEncrypted - Whether or not to use AES encryption for the output file

Returns :

  • boolean - Status code of the save process

cotlsaveserializer's People

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.