herbix / hoi4modutilities

A VSCode extension that contains utilities for Heart of Iron IV mods developers
MIT License
74 stars 9 forks source link

[BUG] Cant find tech folder for any doctrine sinse it have moved #53

Closed AndreasBrostrom closed 1 year ago

AndreasBrostrom commented 1 year ago

Describe the bug PDX have since the changes to techtrees and how doctrines work. The doctrine tech now a own treeview.gui file interface\countrydoctrinetreeview.gui instead of interface\countrytechtreeview.gui

This now causes issue with the previewer no never finding the tech folder. image

To Reproduce Steps to reproduce the behavior:

  1. Open a land navy or air doctrine tech file.
  2. Click on the preview button
  3. See error

Expected behavior To be able to show the techtree

Screenshots image

Desktop (please complete the following information):

Console Logs N/A

AndreasBrostrom commented 1 year ago

Attempted hack solution seams not to work out of the box so it seams it needs some more fiddeling. Attempt below: Or = ["interface/countrytechtreeview.gfx", "interface/countrytechnologyview.gfx", "interface/technologies.gfx"]; to Or = ["interface/countrytechtreeview.gfx", "interface/countrytechnologyview.gfx", "interface/technologies.gfx", "interface/countrydoctrinetreeview.gui"];

herbix commented 1 year ago

I didn't realize that doctrine was moved to another file. Currently the file name was hard coded. Let me find a way to fix it.

herbix commented 1 year ago

Fixed in https://github.com/herbix/hoi4modutilities/commit/140f93f7cc92a0e5dbafd2aea8aa416599da18f1.