Don't Starve Together

Don't Starve Together

Extended Map Icons
Shello 6 Dec, 2017 @ 2:55am
How to (de-)activate icons individually
Since many people wish for a way to configure icons individually but the mod author has clearly explained why he doesn't want to provide this option, here's how you do it in a few single steps:

1. Locate the file "modmain.lua" under "[Your Steam Folder]\steamapps\common\Don't Starve Together\mods\workshop-1157975551". In my case it looks like this: "C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\mods\workshop-1157975551"

2. Copy the file so you get "Modmain-copy.lua". If you mess something up, this is your backup. If you want to restore the mod's original setting, rename the copy to "Modmain.lua" and delete the file you made changes to.

3. Open "modmain.lua" using Notepad or any similiar text editor. I personally prefer Notepad++, it's free and has some features and design elements that makes large amounts of text easier to navigate.

4. In this file you find multple tables that correspond to their respective configuration options. We will look at the options "Basic Mobs" and "More Mobs", but the following steps are applicable to every other table as well.

5. First find the table for basic mobs, it looks like this:

local basic_mobs = {
"babybeefalo",
"beefalo",
"bishop",
............
............
}

Basically every one of these lines stands for the mob it mentions. Most of them are self explanitory but if you don't know what a line stands for, use the official wiki. Here's an (unfortunately not quite complete) list of the prefabs: http://dontstarve.wikia.com/wiki/Console/Prefab_List

6. Now simply delete every line you don't want map icons for. Make sure to keep the table's structure correct. Every prefab has to be between quotation marks and ended with a comma. Only the very last prefab of the table MUST NOT have a comma at the end.

Originally posted by Hency_Chine:
using comment grammar "--" in front of the line you don't want may be more convenient than deleting it.


7. Now move on to the table "local more_mobs". Go through this list and if you spot a prefab you want as a map icon, copy the line and paste it into the basic mobs table from before. Again make sure to keep the code structure with quotation marks and commas intact. Once you have copied a line from "More Mobs" to "Basic Mobs", delete the line from "More Mobs". Same here, pay attention to comas and quotation marks. If you make a mistake here, your game won't run and it will be a pain in the butt to find the mistake you made in hundreds of lines of text that all look the same.

8. Start your game and activate the mod. In the mod configuration, set "Basic Mobs" to show and "More Mobs" to not show. You are now done!

Extra Step: In Step 6 instead of deleting the lines, copy them to the "More Mobs" table before deleting them. This way you have it handy if you should change your mind and want to activate it again.


If you have any questions, feel free to ask. I'd just like to say that I'm not a modder, this is only some basic stuff I've learned while modding my games for years. So if a problem goes too in depth I probably won't have a solution for it.


And if you like the mod, please show some love to the author for giving his time and efforts to make this mod possible!
Last edited by Shello; 19 Dec, 2017 @ 4:09am
< >
Showing 1-3 of 3 comments
Hency_Chine 6 Dec, 2017 @ 3:43am 
using comment grammar "--" in front of the line you don't want may be more convenient than deleting it.
Shello 19 Dec, 2017 @ 4:12am 
Thanks for the tip! As stated I am no modder or programmer, everything I know about mods is self-taught using my brain and logic.
Ryo 16 Jun, 2021 @ 5:41am 
I needed this, thank you very much!
< >
Showing 1-3 of 3 comments
Per page: 1530 50