A* Modding Resource

If you liked this item, please rate it up on Steam Workshop page.

Author: Randi

Last revision: 3 Jul, 2023 at 18:41 UTC

File size: 110.59 KB

On Steam Workshop

Description:

This mod provides the A* pathfinding algorithm recreated in Hearts of Iron IV, made by @randi_moth on Discord. This generates a array of states in the path in order.
Do not ask why, I just wanted to make a road from arbitrary state A to arbitrary state B as a part of a mechanic in a mod, but it does have uses. (Edit: As of 1.11, railways became province buildings, meaning that I don’t need it anymore. Still leaving it up, in case it is used)

Information about how to use is in the readme.txt file inside the mod. The mod is located in steam/steamapps/workshop/content/394360/2397031175

This mod also provides a find_path console command, used like ‘find_path 179 336’, which shows the command in practice. The console command should be compatible with most mods, unless they replace_path to common/on_actions or common/scripted_effects.

Credit in the mod description is not necessary, leaving the credit within the files is enough.

Modding Den invite link: https://discord.gg/5NmKVGfZ3t