How to mod Don’t Starve on a Mac
I wrote this tutorial a while ago but things have since stopped working and tools I previously used are now paid for resources. So! Here’s an up to date guide on how to customise your Don’t Starve characters.
The tutorial will cover simply re-designing the artwork for your character, I’m not going in to customising items and stats. Your character will end up with the same stats as Wilson.
Things you need
Before you start there’s a couple of things you need to prepare:
- You need the Don’t Starve ‘Sample Character mod, which can be downloaded here: https://steamcommunity.com/sharedfiles/filedetails/?id=265459745
- Ktools, from here: https://forums.kleientertainment.com/files/file/583-ktools-cross-platform-modding-tools-for-dont-starve/
You’re also going to need to install the following via command line. To get started, open up ‘Terminal’ on your Mac:
- Install brew by opening up your Terminal screen and typing this command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install ImageMagick by typing in this command next:
brew install imagemagick
Note you might have to update Xcode and agree to some terms and conditions before ImageMagick will install. In the past I went through using CMAKE to make the commands easier for editing the files for your custom character, but apparently that no longer works. So:
Next we need to grab our mod files, to do this you need to access a hidden folder path, so open up Terminal and enable hidden folder viewing:
defaults write com.apple.finder AppleShowAllFiles TRUE
- Restart finder, and navigate to: /YourUsername/Library/Application Support/Steam/Steamapps/common/dont_starve
- Right click the ‘Don’t Starve’ app and go to ‘Show package contents’
- Go to ‘Mods’ > ‘workshop-265459745’ > ‘anim’
In this folder there is a ‘Sample dude.zip’
Copy the zip into your desktop/downloads or anywhere easier to access. Now unzip the folder and you will be given a file called ‘Atlas-0.tex’
Move Atlas-0.tex into ‘Downloads/ktools-4.4.0’
Then open up Terminal, and type
cd Downloads/ktools-4.4.0 to change directory so you are in the ktools folder within Terminal.
Now, you can use tools to convert .tex files into .png files, and vice-versa as follows:
This will dump an atlas-0.png file in that folder. You can then open this .png file with your preferred image editing software, I used Photoshop for mine.
When you have the file hoe you want it, use:
To convert the file back to a modified atlas-0.tex
Now you just need to go back to your unzipped Sample_Dude zip file, and replace atlas-0.tex with your new version of the file. Zip it back up and put the zip file back where you found it: YourUsername/Library/Application Support/Steam/Steamapps/common/dont_starve ‘Open package contents’ mods/workshop-265459745/anim
Important: The program you use to zip the files back up matters a lot. Unarchiver for example does not work properly, it encodes the zip file in a way that is unreadable and the mod will not work. A better zip program is ‘BetterZip’ or ‘Extractor’ from the App Store, both worked for me.
If you give this tutorial a go let me know how you get on, and any issues you face during. I would like to improve the guide as required.