samirelanduk / hoi4.py Goto Github PK
View Code? Open in Web Editor NEWhoi4.py is a Python library for parsing HOI4 save files (whether binary or plain text) and for plotting useful information from them.
License: MIT License
hoi4.py is a Python library for parsing HOI4 save files (whether binary or plain text) and for plotting useful information from them.
License: MIT License
With Python 3.8.2
python -m hoi4 binary2plain -i iraq.hoi4 -o 1_converted_save_file.hoi4
Traceback (most recent call last):
File "*\Python38-32\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "*\Python38-32\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "*\Python38-32\lib\site-packages\hoi4\__main__.py", line 13, in <module>
text = load_as_text(args.input)
File "*\Python38-32\lib\site-packages\hoi4\parse.py", line 13, in load_as_text
return parse_binary_hoi4(f)
File "*\Python38-32\lib\site-packages\hoi4\binary.py", line 17, in parse_binary_hoi4
return decorate(raw_filestring)
File "*\Python38-32\lib\site-packages\hoi4\binary.py", line 65, in decorate
date = f'"{create_date(m[2])}"'
File "*\Python38-32\lib\site-packages\hoi4\binary.py", line 95, in create_date
datestring = datetime.strftime(dt, "%Y.%-m.%-d.%-H")
ValueError: Invalid format string
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.