shadark / clausewizard Goto Github PK
View Code? Open in Web Editor NEWPython-based JSON parser for files from the Clausewitz engine, used in multiple Paradox Interactive games.
License: GNU General Public License v3.0
Python-based JSON parser for files from the Clausewitz engine, used in multiple Paradox Interactive games.
License: GNU General Public License v3.0
Hey!
I'm trying to parse HOI4 technology files and i'm getting a crash when running the latest windows binaries on Hearts of Iron IV\common\technologies\infantry.txt for instance. Should it work on these kind of files?
Thanks
I am trying to parse CK2 files using this project and I am running into an issue where codecs.py
fails to decode latin characters. I've tested this code on a few save files and they each run into this issue where it can't handle one of these weird characters.
Save File:
West_Francia_Test.ck2
Code:
# test.py
import ClauseWizard
tokens = None
with open('./West_Francia_Test.ck2') as f:
tokens = ClauseWizard.cwparse(f.read())
Error message:
Traceback (most recent call last):
File "test.py", line 5, in <module>
tokens = ClauseWizard.cwparse(f.read())
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 7022: invalid continuation byte
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.