Hello,
I tried to run the script with the newest version but it doensn't work. I used git bash to run the script but it doesn't generate the list even if i run it inside the starsector folder. Is it for the game update or am i doing something wrong?
Nothing should have changed, as far as I know. You will need to change version in `mod_info.json` to `0.95a` in the resulting mods.
Please do note that this mod is abandoned. Feel free to fork it and be a maintainer if you like. Do note, however, that the implementation is wrong - the correct way of replacing vanilla / mod portraits with your own ones is via file replace mechanism. Here's a short guide:
- Build a list of all portraits present in your modded game - males, females.
- Pick a list of the portraits you want to replace them with (also split into males and females).
- For each portrait in 1, pick a random portrait in 2 and copy it using 1s' name.
- For each portrait in 3 add a line in mod_info.json that your mod replaces this file.
Why it's incorrect, and replacement is needed - hardcoded portraits (not present in faction lists). Also regarding point 1 - build the list of portraits from faction files, then build a unique list of folders that those files live in, then search for any missing files in each of those folders (reference files in those folders against a list of portraits from faction files - you are searching for hardcoded portraits, hopefully modders will not put them elsewhere).