Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Arma directory from mod path on load and rename files after download #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Dzuelu
Copy link

@Dzuelu Dzuelu commented Jan 6, 2022

Mod paths are required to be under the arma3 directory with relative paths given to the executable. Linux is also case sensitive so we need to rename all mods downloaded lowercase or arma3 will fail to load.

See: Issue loading mods using HTML from launcher as I had this same issue.

Dzuelu added 3 commits January 5, 2022 13:18
* Add fix for mod paths to be relative to arma directory

* lowercase mods files after workshop download
@Dahlgren
Copy link
Contributor

Dahlgren commented Jan 9, 2022

It's better to keep a virtual symlinked copy of the workshop item which is lowercased instead of touching the steam workshop files directly. If the original workshop files are changed any steam workshop updates later on will have problems.

@Dzuelu
Copy link
Author

Dzuelu commented Jan 10, 2022

A symlinked copy of the workshop items would still require you to lowercase the files and if your adding that folder to /arma3/steamapps/workshop/content/107410 I don't see the difference. Unless your making lowercase hard link files, the file names will still be uppercase in a symlinked folder.

Also the current workshop script doesn't even check for updates and redownloads from the workshop on each launch which would break the arma3 launch if there are uppercased files.

@Dzuelu
Copy link
Author

Dzuelu commented Jan 10, 2022

Maybe because it doesn't check for updates, it would be better to delete the /arma3/steamapps/workshop/content/107410/mod_id directory for each mod before downloading again (I'm not sure if the rename command overwrites similar filenames). But that breaks caching of the workshop mods, but also seems it didn't work before either...

@Dahlgren
Copy link
Contributor

Dahlgren commented Jan 10, 2022

A symlinked copy of the workshop items would still require you to lowercase the files and if your adding that folder to /arma3/steamapps/workshop/content/107410 I don't see the difference. Unless your making lowercase hard link files, the file names will still be uppercase in a symlinked folder.

The symlinked version of the mod folder(s) should be kept separate from the originals.

lndir is a great tool for making a 1:1 symlinked copy which can be lower cased without impacting the original files. It's fine if the original files are uppercase as long as the loaded symlink file is lowercase.

Also the current workshop script doesn't even check for updates and redownloads from the workshop on each launch which would break the arma3 launch if there are uppercased files.

That depends on how you mount your volumes for persistence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants