Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am therealbill on github.
  • I am therealbill (https://keybase.io/therealbill) on keybase.
  • I have a public key ASAOnS0_40SI6GCzzFPqdUx6tr1JW4Ypn8oas6fHH9jnxgo

To claim this, I am signing this object:

In Terminal go to "~/Library/Application Support/Steam/steamapps/workshop/content/281990/". From there you'll need to identify the mod you want to modify by looking in "~/Documents/Paradox Interactive/Stellaris/mod" files. I look through them in Finder using preview. Get the "remote_file_id" value and go to the subdirectory in Terminal.
Then unzip the zipfle using 'unzip FILENAME' where FILENAME is the name of the zipfile there, ending in ".zip". Next you need to determine the localisation directory. Some mods use a subdirectory of "localisation/LANGUAGE/" some just put them in localisation. For this example, I'll assume "localisation/english/". The files in there need to have their BOM added.
So from the mod's directory (where the zipfile is) enter this in Terminal:
==========
for f in $(ls localisation/english/*.yml); do echo $f
cp $f $f.sav
sed -i .presed '1s/^/\\xef\\xbb\\xbf/' $f