Giter Club home page Giter Club logo

clausewizard's Introduction

Build Status PyPI version Python 3.7

ClauseWizard

Python-based JSON parser for files from the Clausewitz engine, used in multiple Paradox Interactive games. You can open the resulting files with any text editor, but since the file size can exceed the allowed limit for some editors, you can use other software such as HugeJsonViewer.

Currently supports both savegames and files from:

  • Europa Universalis 4
  • Crusader Kings 2
  • Hearts of Iron 4
  • Stellaris

  • Compressed games: supported.
  • Multiplayer games: supported.
  • Ironman games: not supported (in development). If the ironman save is not in binary format, it should work with this library. (For HoI4 games, you need to change save_as_binary=yes option from yes to no on your settings.txt configuration file).

Getting started

Installation

Use the package manager pip to install ClauseWizard.

pip install ClauseWizard

Binary packages are available for download in the Release page.

Python version is 3.7, will test other versions.

Usage

import ClauseWizard

ClauseWizard.cwparse(file) # returns a list of tokens
ClauseWizard.cwformat(tokens) # returns a JSON-formatted string

You can also run Scripts\CWParser from your Python setup directory.

Built With

Contributing

Pull requests are welcome, specially for performance upgrades, the current code takes too long to execute.

Author(s)

Donate

License

This project is licensed under the GNU GPLv3 - see the LICENSE file for details.

Acknowledgments

  • Paradox Interactive for their great games & the creation of the Clausewitz engine.
  • Anthorath for being a good listener and not falling asleep while I explain all the code.
  • to_be_filled.jpg

Disclaimer

This site is not affiliated with Paradox Interactive or Clausewitz Engine. All product names, trademarks and registered trademarks are property of their respective owners. All company, product and service names used in this website are for identification purposes only.

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.