Skip to content

Lower case characters on mods downloaded from the Workhop #178

@CCVia

Description

@CCVia

I'm opening a couple of issues with two separate things I've found. Sorry about the spam!

After downloading a lot of mods from the Workwhop using the steam-workshop-mods-status branch some of them are not usable because they contain upper case characters. This is happening on Linux because of a known limitation in Linux servers (https://community.bistudio.com/wiki/Arma_3:_Dedicated_Server#Case_sensitivity_.26_Mods).

I don't know if it's possible to circumvent that issue with a solution like the one described at the link (using ciopfs). A lot of the mods I'm using contain upper case characters, and if I can't solve this issue I will need to revert to the main branch and keep updating everything manually. Maybe somebody else has found a way of using the steam-workshop-mods-status branch on Linux solving this on the server side. Any help would be really appreciated.

When using the main branch I just uploaded the mods and renamed everything with this script:

#!/bin/bash
# Rename all directories. This will need to be done first.
# Process each directory^rs contents before the directory itself
find * -depth -type d | while read x
do
        # Translate Caps to Small letters
        y=$(echo "$x" | tr '[A-Z ]' '[a-z_]');

        # create directory if it does not exit
        if [ ! -d "$y" ]; then
                mkdir -p "$y";
        fi

        # check if the source and destination is the same
        if [ "$x" != "$y" ]; then

                # move directory files before deleting
                ls -A "$x" | while read i
                do
                  mv "$x"/"$i" "$y";
                done
                rmdir "$x";

        fi

done

# Rename all files
find * -type f | while read x ;
do
        # Translate Caps to Small letters
        y=$(echo "$x" | tr '[A-Z ]' '[a-z_]');
        if [ "$x" != "$y" ]; then
                mv "$x" "$y";
        fi
done

exit 0

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions