Jump to content

Mac Loc File Installer - Example


stasis78

Recommended Posts

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.

 

# CHANGE THIS TO YOUR MOD FOLDER NAME
MY_COOL_MOD_NAME="TestMod"

 

This should be the name of your mod folder.

 

# 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!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...