Editor - not using relative paths for all *.cgn data files !
Posted: Sun Aug 04, 2024 3:44 pm
Edit - I meant to post this in the "Technical Support" forum....
BACKGROUND
This is my typical workflow....
1. I have a local directory mapped to a remote github repository as:
c:\<local dir name>\<remote repo name>\_<scenario name>\....
(i know it is hard to visualize without seeing a better example....)
The following would be an example...
My Games\Strategic Command WWII - War in Europe\Campaigns\
2. When editing a scenario, I work against the local repo directory.
3. When done, those changes are saved and the updated scenario is "installed" by copying the entire contents of
My Games\Strategic Command WWII - War in Europe\Campaigns\
TLDR Summary:
I keep a mirror copy of scenario work in a different directory other than:
My Games\Strategic Command WWII - War in Europe\Campaigns\
ISSUE
The previous, so far, has worked fine and the Scenario Editor uses "relative paths" accordingly, with the exception of: localization.txt
In this case, when editing the scenario, it does not use a relative path for this file, but the absolute path of:
My Games\Strategic Command WWII - War in Europe\Campaigns\_<scenario name\localization.txt
So, changes to c:\<local dir name>\<remote repo name>\_<scenario name>\localization.txt are NOT picked up when editing
the c:\<local dir name>\<remote repo name>\<scenario name>.cgn file.
Instead, those changes are ignored and the editor uses My Games\Strategic Command WWII - War in Europe\Campaigns\_<scenario name\localization.txt.
CONCLUSION
The scenario editor is mixing "relative paths" and "absolute paths" for the associated scenario data files.

BACKGROUND
This is my typical workflow....
1. I have a local directory mapped to a remote github repository as:
c:\<local dir name>\<remote repo name>\_<scenario name>\....
(i know it is hard to visualize without seeing a better example....)
The following would be an example...
- c:\<local dir name>\Storm Over Europe(Mod 3).cgn
- c:\<local dir name>\Storm Over Europe\_Storm Over Europe(Mod 3)\
My Games\Strategic Command WWII - War in Europe\Campaigns\
2. When editing a scenario, I work against the local repo directory.
3. When done, those changes are saved and the updated scenario is "installed" by copying the entire contents of
- c:\<local dir name>\<remote repo name>\_<scenario name>\ and
- c:\<local dir name>\<remote repo name>\<scenario name>.cgn
My Games\Strategic Command WWII - War in Europe\Campaigns\
TLDR Summary:
I keep a mirror copy of scenario work in a different directory other than:
My Games\Strategic Command WWII - War in Europe\Campaigns\
ISSUE
The previous, so far, has worked fine and the Scenario Editor uses "relative paths" accordingly, with the exception of: localization.txt
In this case, when editing the scenario, it does not use a relative path for this file, but the absolute path of:
My Games\Strategic Command WWII - War in Europe\Campaigns\_<scenario name\localization.txt
So, changes to c:\<local dir name>\<remote repo name>\_<scenario name>\localization.txt are NOT picked up when editing
the c:\<local dir name>\<remote repo name>\<scenario name>.cgn file.
Instead, those changes are ignored and the editor uses My Games\Strategic Command WWII - War in Europe\Campaigns\_<scenario name\localization.txt.
CONCLUSION
The scenario editor is mixing "relative paths" and "absolute paths" for the associated scenario data files.