Menu

Tree [47fb9a] master /
 History

HTTPS access


File Date Author Commit
 pyradox 2014-02-18 Albert Julius Liu Albert Julius Liu [47fb9a] faster lexing using omnibus string
 blank_map.py 2014-02-18 Albert Julius Liu Albert Julius Liu [74d5e4] remove extraneous statement from lexer
 casualties.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 climate_map.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 continent_map.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 country_table.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 edge_image_test.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 id_map.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 idea_test.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 license.txt 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 military_tech.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 native_map.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 province_base_map.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 readme.txt 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 region_map.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 reverse_unis.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 savetest.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 terrain_map.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 trade_center_map.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 trade_good_icon_map.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 trade_good_map.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 trade_good_province_count.py 2013-12-03 Albert Julius Liu Albert Julius Liu [aaf801] initial copy
 unify_islam_map.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes
 wargoal_table.py 2014-02-16 Albert Julius Liu Albert Julius Liu [aa8e28] various script changes

Read Me

Requires: 
* Python 3.3
* pyradox.worldmap requires PIL
* pyraodx.yml requires PyYAML

Some scripts are in the root directory. Make sure they actually run before using them as a base, though, I tend to break things after a while. I recommend looking at:
* country_table: Creates a wikitable showing country stats in EU4's 1444 start date.
* military_tech: Shows how to parse a single file.

Module summary:

The most important modules:
pyradox.config: Edit this to point to your game directory.
pyradox.struct: Defines the pyradox.struct.Tree class as well as a pyradox.struct.List class. You'll probably want to read this.
pyradox.txt: Parses Paradox .txt files and puts them into a pyradox.struct.Tree which combines aspects of dicts and ElementTrees. Only the three functions at the top are necessary to know for practical use; the rest is the parser itself.

Other modules:
pyradox.format: Some simple string formatting helpers.
pyradox.image: Some simple image processing helpers.
pyradox.primitive: Some helper functions for managing primitives, as well as a pyradox.primitive.Date and pyradox.primitive.Duration class.
pyradox.worldmap: Used for drawing on world maps. Requires PIL. Not the cleanest code, use at your own risk. Might clean it up later.
pyradox.yml: YML localization.

pyradox.eu4: EU4-specific functionality.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.