{"id":20858553,"url":"https://github.com/yard1/hoi4moddingpythonscripts","last_synced_at":"2026-04-06T06:04:31.629Z","repository":{"id":101531709,"uuid":"114365235","full_name":"Yard1/HoI4ModdingPythonScripts","owner":"Yard1","description":"Various useful Hearts of Iron 4 modding Python scripts","archived":false,"fork":false,"pushed_at":"2021-06-28T00:08:17.000Z","size":140,"stargazers_count":35,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T22:51:21.575Z","etag":null,"topics":["hearts-of-iron-4","heartsofiron4","modding","paradox-interactive","python","python-script","python-scripting","python-scripts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yard1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-15T11:52:23.000Z","updated_at":"2025-04-18T17:20:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5984016-c80e-4350-8b7a-cd56cfed5269","html_url":"https://github.com/Yard1/HoI4ModdingPythonScripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yard1/HoI4ModdingPythonScripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yard1%2FHoI4ModdingPythonScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yard1%2FHoI4ModdingPythonScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yard1%2FHoI4ModdingPythonScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yard1%2FHoI4ModdingPythonScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yard1","download_url":"https://codeload.github.com/Yard1/HoI4ModdingPythonScripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yard1%2FHoI4ModdingPythonScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31461534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hearts-of-iron-4","heartsofiron4","modding","paradox-interactive","python","python-script","python-scripting","python-scripts"],"created_at":"2024-11-18T04:46:29.148Z","updated_at":"2026-04-06T06:04:31.624Z","avatar_url":"https://github.com/Yard1.png","language":"Python","readme":"# HoI4ModdingPythonScripts\nVarious useful Python scripts to automate some tedious parts of Hearts of Iron 4 modding. Written in Python 2.7 (python2 folder) and Python 3.5 (python3 folder).\n\nReadmes and usage instructions are included as comments in .py source files.\n\nPython 2.7 scripts may work on Python 3.\\* but that is not guaranteed. Same goes for the other way around.\n\nScripts included:\n\n- hoi4transfertechsegen.py - HoI 4 Transfer Technology scripted effect generator - generates a transfer_technology scripted effect, which grants all technologies researched by one country to another.\n- hoi4localisationadder.py - HoI 4 Localisation Adder - adds empty localisation entries from a given event, national_focus or idea file.\n- hoi4focusgfxentry.py - HoI 4 Focus GFX entry generator - adds GFX entries from national_focus files.\n- DHtoHoi4MinisterConverter.pt - HoI Darkest Hour minister to HoI4 idea converter - converts Hearts of Iron Darkest Hour minister files to Hearts of Iron IV ideas, following a format specified by HoI4 Darkest Hour mod by Algerian General. Handles Unicode characters.\n- hoi4ideagfxentry.py - Idea GFX entry generator- generates idea GFX entries for all ideas in a given file.\n- hoi4fileformatter.py - Indents files for readability and consistency.\n- USAElectionGenerator.py - Generates events simulating first-past-the-post elections (US style) using a .csv spreadsheet.\n- hoi4statemapgenerator.py - Generates an image file of a map with every state/strategic region having a separate color and ID.  Examples: Vanilla: https://cdn.discordapp.com/attachments/463044308002406402/465588079579758602/out.png EaW: https://cdn.discordapp.com/attachments/463044308002406402/465591100237676554/out.png\n- focusgfxshine.py - Given a goals GFX file, add all missing shine entries to the goals_shine GFX file.\n\nMIT license (LICENSE) applies to every file in this repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyard1%2Fhoi4moddingpythonscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyard1%2Fhoi4moddingpythonscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyard1%2Fhoi4moddingpythonscripts/lists"}