Closed mikoxyz closed 3 years ago
I am looking at https://github.com/Historical-Expansion-Mod/Greater-Flavor-Mod/blob/master/GFM/map/default.map. If that is the map file used for GFM, then the ..
is present in the file and was not added by the editor.
The real problem seems to be that the editor is treating the filename as relative to the game folder, while the game apparently treats it as relative to the map folder. At least on my Windows machine, having two dots in the path is perfectly valid as long as it results in a file that exists. But in your case the two dots drops us clear out of the Victoria 2 folder.
I'm not sure why the path has to be constructed that way. Doesn't it simply direct to the definition.csv in the mod's map folder? Why can't it just be "definition.csv"?
I am looking at https://github.com/Historical-Expansion-Mod/Greater-Flavor-Mod/blob/master/GFM/map/default.map. If that is the map file used for GFM, then the
..
is present in the file and was not added by the editor.The real problem seems to be that the editor is treating the filename as relative to the game folder, while the game apparently treats it as relative to the map folder. At least on my Windows machine, having two dots in the path is perfectly valid as long as it results in a file that exists. But in your case the two dots drops us clear out of the Victoria 2 folder.
I'm not sure why the path has to be constructed that way. Doesn't it simply direct to the definition.csv in the mod's map folder? Why can't it just be "definition.csv"?
Good question; it seems to break the mod in-game (seems to load the definitions from vanilla, instead), but I'm not really sure why. Removing the ../
from the definitions does seem to resolve my issue in the editor, but then it's unable to load the definitions in-game during loadtime.
Further research indicates that this is limited to just the definitions file, just in Victoria 2. Probably a game bug. I can special-case the parsing to account for files with .. in their paths.
Thanks!
On Fri, 6 Aug 2021, 04:03 mmyers, @.***> wrote:
Closed #29 https://github.com/mmyers/eug/issues/29 via 2b8a5c9 https://github.com/mmyers/eug/commit/2b8a5c9e37930b59a127683e01549475ce10ccb8 .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mmyers/eug/issues/29#event-5120525553, or unsubscribe https://github.com/notifications/unsubscribe-auth/APQQTOYUMAAAOSKLGTVKN4LT3M7HXANCNFSM5BE7YM2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
On Linux, you are unable to load a mod's definition.csv. This seems to be because the path gets mangled up somewhere in the process, which results in a
..
being added between the path to the game folder and the path to the mod itself.