Open penguin-glitch opened 9 months ago
Hi @penguin-glitch, thanks for reaching out.
I've opened a PR addressing these issues: #19
Added.
I'm assuming you mean my use of '\\'
for file pathing in the code. I've removed some of them in the PR. Let me know if there's anything else that needs to be changed. For reference, a lot of the paths are saved to the file wikiTools.ini
.
I didn't write the script with Linux compatibility in mind, so that's probably causing a lot of issues.
Also, if you know if there is a default folder where Steam is usually located on Linux distros, you providing it could allow me to add it to the wikiToolsInit.py
script to speed up the part of the script that locates modman.jar
. Would avoid scanning the entire disk.
Thanks for replying.
Steam's FTL data on linux is usually located at ~/.steam/steam/steamapps/common/FTL Faster Than Light. This isnt always the case, like if steam is installed through flatpak it goes... somewhere else. People generally avoid using flatpak anyway so it's not a huge priority to work around.
This isnt guaranteed to be where modman.jar is, the official install guide for Linux tells users to extract slipstream into their downloads folder (personally I keep it in Documents), but it might speed things up in some cases.
This is a general issue report for the problems I've found running these tools on a linux system according to the instructions in the readme:
drive = pathlib.Path.home().drive
returns a blank string on a linux system as it does not recognise unix file structure. Fix: Somewhat of a band-aid fix, but I simply added this conditional to replace the drive with the home directory. It assumes that all files are located under the home directory, which is usually true:modmanCfgPath = f'{config[mainPaths][slipstream]}{modmanCfg}'
becomesmodmanCfgPath = os.path.join(f'{config[mainPaths][slipstream]}', modmanCfg)
This is just the first command -
python wikiToolsCLI.py --init
. Running the second results in every stage giving an invalid syntax java error, and I don't quite understand what these java commands are doing - the first one seems to be trying to executejava -jar modman.jar --validate Append Wiki blueprintLists.zip
. I'm not sure if the last part (Append Wiki blueprintLists.zip) is intentional or if that actually works as java command syntax. Haven't tried to run the third.