User:Mras0/pdxparse
Jump to navigation
Jump to search
Discussion about the work being done on pdxparse (add any comments/requests in the talk section). Code available here. On Windows I recommend using WSL2 (In settings.yml point steam_dir to "/mnt/c/Program Files (x86)" if steam is installed in the default location).
Based on the original version by Hairy Dude with improvements by IgnoredAmbience and Grotaclas. Some major changes are:
- Most widely used commands/conditions supported (as of 1.31.3). Exceptions are listed below
- Generates wiki code for mission trees
- Tracks event triggers (including weighting for random events)
- Generates the opinion modifier template
Unsupported/TODO
- The generated text is very mechanical. It might be worth looking into whether some commonly used patterns could be recognized and rewritten in a more "human-friendly way" (e.g. All provinces in the X area, Limited to None of Is a core, .... Our country gains a permanent claim on this province, or None of: XXX is at least -> XXX is less than).
- Only partial support for showing the names of trade nodes (the easy cases - where the primary trade node province is referenced - should work though)
- Scripted triggers aren't "properly" supported. They have to be added manually like normal commands/conditions.
- A bunch of commands/conditions (153 as of 17:57, 25 May 2021 (UTC)) that are only used in one or two files (notably many things related to the revolution, industrialization events, consort events and mercenary events).
- Disasters are parsed, but only for the purpose of determining event triggers. Stub pages could be generated, but that currently doesn't seem to be worth the effort.
- The handling of pronouns (e.g. root, capital and in particular from) is not as good as it could probably be.
Talk
(See also the history of this page for concluded/stale discussions)
1.32 issues
so far I noticed the following issues when using pdxparse with 1.32:
- a lot of formation decisions now have code like
NOT = { has_idea_group = AKS_ideas }
to check if the country already has the new national ideas. pdxparse uses the icon template for the ideas here(e.g. {{icon|AKS_ideas|28px}}) which does not exist. Ideally pdxparse would detect which are idea groups and only use the icon template for those. Or the idea groups could just be taken from a fixed list. - change_ adm/dip/mil and the removal of fixed=yes(fixed is the default now) and force_republican_names are not handled by defineDynMember
- remove_heir/kill_heir is not yes/no anymore
- several cult relate change_cult, select_primary_cult, has_primary_cult, num_of_unlocked_cults
- create_colony_mission_reward
- unlock_estate_privilege adds an icon template, but I don't think that estate privileges will ever be important enough for the icon template. I think it would be sufficient to write "Unlock the “X” estate privilege" without using an icon --Grotaclas (talk) 17:52, 14 November 2021 (UTC)