• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Mac Loc File Installer - Example

Hello there!

Here is an example of creating a Mac loc file installer script.

https://github.com/stasis78/7dtd-mods/tree/master/MacLocInstaller

Simply create your Localization.txt with some prefix (i.e. "myCoolMod_") on all the keys (the first column in the csv file).

Then you just need to modify the following lines in the script.

Code:
# CHANGE THIS TO YOUR MOD FOLDER NAME
MY_COOL_MOD_NAME="TestMod"
This should be the name of your mod folder.

Code:
# ALL LOC STRINGS SHOULD BE PREFIXED WITH THIS
MY_COOL_PREFIX="myCoolMod_"
This should be the prefix for all your string keys.

Note that if you are editing this on windows do NOT use the built in windows text editor. Notepad++ is highly recommended. If the LFs are converted to CRLFs then Macs will not be happy ;)

The InstallStrings.command is already chmod +x but you may need to verify this after editing. I’m not sure how well windows will handle Unix permissions after editing. Sorry!

 
Last edited by a moderator:
Back
Top