Don't Starve Together

Don't Starve Together

34 ratings
Selective Item Customization
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
174.784 KB
9 Jan @ 12:35pm
7 Feb @ 5:48pm
3 Change Notes ( view )

Subscribe to download
Selective Item Customization

Description
There are many mods out there that will let you tweak the generic damage of all spears or the generic defense of all log suits, but what if you wanted a specific spear to deal more damage, or deal planar damage, or pehaps be... edible? Maybe you want to spawn a pack of hounds and you want some of them to have less health and deal less damage while other have more health and deal more damage? Well then this is the mod you need.

This mod even includes a fancy menu to help with item customization. By default press V while hovering over an object to customize it. By default only admins can customize items (can be configured) and in the config you can have the chat announce when a player is customizing an item. The menu also allows you to make presets out of the recently changed settings, then the preset can be selected later to load the changes. Presets are saved on the client even between servers.

In addition to opening the menu with V (by default) you can also open the menu by using the console command "c_customize(item)".
You can also spawn in an item and instnatly apply a preset to it with the console command "c_spawnwithpreset(prefab, presetname, count)"
* All console commands can only be ran from the local console, if you are using the remote console press ctrl to switch to local console.

Many components are already very customizable with the mod as is, but other mods can add more components to the list with the `AddComponentDef` function from `customizable_componentdefs.lua`, see `customizable_componentdefs.lua` for details.

If you run into any crashes, let me know and I will see what I can do, but by nature of how components work, some crazy combinations can cause crashes. It's recommended to save often.

Plans
- Images for workshop page.
- Dapperness (sanity gain/loss) for equipable items.

Bugs
- Health and likely other stats need an upper limit.
- Strange oddities such as world migrators not taking you to the right location, or flowers being invisible.

Credits
- Dirt_the_cat: provided the initial idea and concept
- Niko: All the code and mod icon.
28 Comments
󰀏Niko  [author] 14 Jul @ 9:39am 
There are many mods that allow for making changes to items globally, I made this mod because there was no mod for making said changes to one item in particular.
AltRo 14 Jul @ 4:42am 
It would be nice to be able to make changes for all same items in world. Also I'd be glad to see an option to make changes generic and use them as prefabs for new worlds.
󰀏Niko  [author] 21 Mar @ 12:57am 
I'll add it to my to-do list (The workshop plans list needs updating :ebfbush:) Not sure when I will next get around to updating this mod though. I have a lot of projects in need of updating currently.
Evergreen 20 Mar @ 8:18pm 
Cold you maybe add an option for sanity gain/loss overtime when having things equipped, like the dark sword's negative sanity effect?
󰀏Niko  [author] 26 Feb @ 11:14pm 
lol, mods can be very mysterious sometimes. I like to call modding a form of magic, with both the good and bad that comes with the word. Sometimes things just magically work, sometimes they magically don't.
Happy to hear that it's working well for you now.
Abra⁧⁧cadabra 26 Feb @ 8:25pm 
As per usual with mods, it now works flawlessly lol, didn't change any settings at all, but it seems to be good now. Thanks for your help.
󰀏Niko  [author] 26 Feb @ 7:00pm 
Try changing the keybind in the config and see if a different key will work better. (Note that client config settings are only visible when viewing the config from the main menu's mods menu, not the world creation mods menu.)
If it still does not work, check if the console says something when you press the key, and if so tell me what it says.

In the meanwhile, feel free to use the console command to use the mod, here are some tips:
c_customize(c_select()) is the easiest to use and will let you customize whatever item is under your cursor, however I sometimes have issues of c_select() failing to find the item under the cursor.
c_customize(c_selectnext("<prefab name>")) is more reliable, but if there are multiple of that object nearby, it can be hard to tell which will be targeted.

To figure out a item's prefab name, I would recommend looking at the wiki page for the item, the "code" section mentions it's prefab name.
Abra⁧⁧cadabra 26 Feb @ 4:24pm 
Using the command you provided worked in Local console, but I am unable to utilize the hotkey for it at all. And yes the mod appears in the tab menu as well.
󰀏Niko  [author] 25 Feb @ 10:40am 
In the server, if you hold tab does the mod show up in the mods list?
Maybe try changing what keybind the mod uses in the client config, see if some other key will work. If you have not tried using the mod via command, try making a spear and typing c_customize(c_selectnext("spear")) into the local console. (If it says "remote" next to the console input, then press ctrl to switch it to "local") and if that still does not work, let me know if the console says anything after running the command.
Abra⁧⁧cadabra 25 Feb @ 12:29am 
I cannot for the life of me get this mod to work in any capacity. I have no clue as to why either.