Don't Starve

Don't Starve

Auto Equip (reworked)
108 Comments
LenneDalben 1 Jul @ 6:18pm 
Essential mod, thank you for sharing!
赵日天 Zhao Ri Tian 8 May @ 3:47am 
This happens with Wigfrid's battle spear. If I hold a battle spear and attack, the Cutlass Supreme in my inventory will auto equip. And auto equipping blow darts seems also have some problems. If I used up all the darts in my hand, no darts in my inventory will auto equip. If I hold darts and do some labors (tools auto equipped), sometimes another stack of darts (less than 20) will auto equip after the tool. Most of this happen in vanilla DS, since I fought here most. I can test in RoG and SW if it helps. Feel free to ask, if I didn't express myself clearly. And thanks for your attention.
[DBH].Whismerhill.{SSgt}  [author] 7 May @ 2:39pm 
Zhao Ri Tian
is this in Ds, RoG or SW ?
Does this happen with all weapons ?
赵日天 Zhao Ri Tian 4 May @ 7:18am 
Bug report: "option to always autoequip best melee weapon (default : off which means it will not override your weapon choices) " - Keeping it off will still override my weapon choices and autoequip my best melee weapon.
Vecho 5 Sep, 2024 @ 6:07pm 
Another problem is that when UnEquipping & returning to your previous tool/weapon is enable. Cutting wood would make character constantly swap tool/weapon for each cutting.
Vecho 4 Sep, 2024 @ 9:56pm 
- the "force inspect" hotkey (in don't starve controls) can be used for forcing default game behavior
- will now suggest digging up stuff when torch equipped instead of lighting them up on fire : the "force inspect hotkey" mentioned above overrides this & allows you to light stuff on fire.

Is this feature exist in controller? Or is it keyboard only?
Vecho 2 Sep, 2024 @ 1:58am 
To clarify, I use controller.
Vecho 1 Sep, 2024 @ 9:22pm 
A small issue: when cooking, press B would smash the cook instead of cooking.
Epilogue1212 17 Jun, 2023 @ 11:03am 
Thank you for your mods!
境界的彼方 25 Oct, 2020 @ 5:59pm 
自动换上当前需要使用的工具:steamhappy:
[DBH].Whismerhill.{SSgt}  [author] 21 Sep, 2020 @ 1:13pm 
@maki_maki
I doubt I can correct that since I don't own hamlet ....
MAKI 27 Aug, 2020 @ 1:58am 
I really like this mod because it's very useful.
However, I think this mod will be better if it corresponds to the action of the item added to hamlet.

Probably it doesn't correspond to the action (shear, chisel.. etc.) added in hamlet.
[DBH].Whismerhill.{SSgt}  [author] 30 Jun, 2020 @ 3:14pm 
ok, that's to be expected,
this mod was never intended nor tested for controller usage by previous developers AFAIK
and I sure as hell didn't test it as well ;)

I would have to get familiar with controller usage on DS to begin with and then rewrite this mod probably entirely....

unless it mostly works, in which case I would just need to add exceptions for specific cases by detecting the type of controls that the user is currently using, which as of right now I have no idea how to do in this game engine.
diazruy 30 Jun, 2020 @ 12:39pm 
Update: I did reproduce it with RoG when using the controller
https://imgur.com/a/HYiFcTc

If you have a hammer (even if not equipped), the B button will show Hammer instead of Cook

diazruy 30 Jun, 2020 @ 12:28pm 
Both issues are only a problem with the controller.

I'll try to reproduce it in RoG, but it might be a while, since I need to start a new game and get to the point where I can build a crockpot LOL.

To be honest, I'm half leaning towards abandoning play with a controller anyways, as I've found it lacking in a couple of other aspects (outside of this mod). The only thing it's much better at is combat, but otherwise, K+M might be the way to go.
[DBH].Whismerhill.{SSgt}  [author] 30 Jun, 2020 @ 3:04am 
ha....
this mod wasn't tested with controller
can you try it with mouse ?

was the first issue with crockpot in shipwrecked also happening with a controller ?
does it also happen in basegame / RoG ?
diazruy 29 Jun, 2020 @ 11:34pm 
First of all, thanks for putting in the time to maintain this mod. Just recently having gotten myself involved in modding, I get how challenging it can be.
It appears that this

> will now avoid providing the option to hammer when there's the following available actions on the object : turn on & off (ice flingomatic), open & close(wall gates mod), signedit(sign plus mod)

might not be working on the crockpot in shipwrecked. If you have a hammer in your inventory, the cook option will not show up until you drop the hammer.

As a separate issue, I've found that often the mod seems to incorrectly flip back and forth between the "best" tool and whatever you have equipped (e.g. you have the axe, and try to mine a rock, it will rapidly switch back and forth between axe and pick, and seems to randomly end up in one when you let go of the button). It might just be when using a controller, and it most often happens when trying to use the shovel to dig out a stump.
[DBH].Whismerhill.{SSgt}  [author] 24 Apr, 2020 @ 9:30am 
@StarNight
Thank you very much

@...
I can't help you with that much information

IF it's related to a mod weapons/tools I may or may not be able to do anything about it depends on how the author tagged it.
IF it's related to default objects I need more details to be able to pinpoint where is your problem

Also please remember there's a configuration, so you can disable some of its functionnality
StarNight【星夜】 24 Apr, 2020 @ 5:58am 
must have mod!!
... 18 Apr, 2020 @ 11:20am 
It switched to a wrong weapon when battle
[DBH].Whismerhill.{SSgt}  [author] 13 Apr, 2020 @ 2:20am 
I don't own hamlet but I have recieved no reports that it doesn't work
kon. 12 Apr, 2020 @ 6:09am 
does it work with hamlet?
Reianor 6 Apr, 2020 @ 7:52am 
I don't think that's much of a cheat actually. From what little I've seen only the names of objects are swapped. His examine qutes say he doesn't know what it is, and objects look blurry, but a blurry tree is still a tree.
I think his blurry vision is moslty just there to annoy players when he's not wearing special headgear. And thus indirectly force him to wear his special headgear all the time.
[DBH].Whismerhill.{SSgt}  [author] 6 Apr, 2020 @ 7:04am 
Thanks for testing stuff, there's actually a cheating mod "N Tools" I used to test this stuff out without having to play through everything to get the items needed for testing.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=191200196

I should probably actually implement an option for wagstaff so that the mod is "disabled" if he doesn't see clearly, because that sounds like a bit of a cheat ...
and yeah I just read the unarmed attack, indeed have no idea how it works and which adjustments I should do to make it work

Unfortunately my main computer is down (need new motherboard)
and this laptop can't run don't starve at more than 2 fps. So any updates gonna have to wait for me to grab a new replacement motherboard :p
Reianor 6 Apr, 2020 @ 5:08am 
Nevermind that I missed one of the quirks of one of his items.
https://dontstarve.fandom.com/wiki/Fryfocals
I'm guessing THIS is what Tristin meant.
You need to order an unarmed attack to shoot fireballs from them.
I'm not curious enough to test that theory RN though...
Reianor 6 Apr, 2020 @ 4:58am 
So... curiosity outdid lazyness and I went to see how this works for Wagstaff. Works perfectly fine AFAIK.
Even if he's not wearing glasses and a tree is named "marble" or something he still equips an axe when you click on it.
Reianor 6 Apr, 2020 @ 4:44am 
Yeah, but holding alt all the bloody time is in no way better than switching gears manually.
So I probably wouldn't hold my breath if I was Wagstaff.
I'm actually starting to get curios what the hell is it that doesn't work for him, my theory is that the mod freaks out because of how things that he can't see clearly are disguised as random other things.
[DBH].Whismerhill.{SSgt}  [author] 6 Apr, 2020 @ 3:37am 
@Reianor
Quote from description : - the "force inspect" hotkey (in don't starve controls) can be used for forcing default game behavior

in theory you should be able to override any problematic behavior with this hotkey including weapons, tools .... everything
in theory it should also work for wagstaff (never tested on my end)

As for how they conflict with each other
it depends on the other mod code
I honestly do not believe there'll be much conflicts
this mod uses tags to identify tools, weapons and such
it doesn't explicitly define each one of these
so it should work with everything out of the box, as long as tags are correctly defined

as for weapons changing between ranged & melee, really no idea, mostly depends on tags
but out of my head I don't exactly remember how melee vs ranged was handled in my code.
Honestly your game should not break because of AutoEquip
so trying it out shouldn't cause major issues as it doesn't save anything in your savegames.
Reianor 4 Apr, 2020 @ 4:44pm 
It definitely doesn't look like they'll be fully functionally compatible (auto-switching between axe mode and pickaxe mode is definitely not happening unless you're willing to go out of your way with writing extra code to support one extra fancy mod) but the important question is - how much will those two mods get into each-other's way?
Reianor 4 Apr, 2020 @ 4:44pm 
How does this handle custom items in mods?
I'm running Musha right now and some of her gear is pretty complex.
For example she has a weapon that switches between two modes one of which is also a shovel while the other is just a weapon. Or a weapon (a top tier weapon actually) which switches between axe mode and pickaxe mode.

I'm obviously not expecting your mod to be able to switch between those modes, but will it at least be able to detect such a tool as a tool?
Also will it be able to realize that I don't need to switch to a weapon if I attack with it?

And last but not least one of her weapons switches between ranged and mele modes. Will that be properly detected as a ranged weapon when it's in ranged mode?
Reianor 4 Apr, 2020 @ 4:43pm 
Wagstaff !

...

...

...

What?

https://dontstarve.fandom.com/wiki/Wagstaff

As for the reasons why it's not good for Wagstaff, I guess it's something to do with his sight disadvantage? Not exactly sure, haven't actually played him yet.

Aaaaaanyway... my turn to question...
[DBH].Whismerhill.{SSgt}  [author] 25 Mar, 2020 @ 11:35am 
Wagstaff ?
Tristin 24 Mar, 2020 @ 1:52pm 
Good mod, but not for Wagstaff
辛家坡 19 Apr, 2019 @ 4:59pm 
自动为工作配备合适的工具
Teshuwenzi 13 Jan, 2019 @ 7:58am 
This is already a very good MOD.
Almost every player knows it, and the default configuration will work well.
It's just my own poor understanding.
Thank you again.:creepy:
[DBH].Whismerhill.{SSgt}  [author] 12 Jan, 2019 @ 10:35am 
thank you for reporting the problem

I would like to make clearer option menus with longer explanations, but unfortunately the best configuration menus are only possible on Don't Starve Together :steamsad:
Teshuwenzi 12 Jan, 2019 @ 8:03am 
At the time, I tried to understand these options, I used online translation,
Maybe the language mode is different. I found that these options are double negative sentences.
After many attempts, I was particularly confused.
Thank you for replying me so seriously and updating the mod.
I just tried the new version and it works fine. Now I finally understand what these options mean.
Thanks again, hope you have a good day.:steamhappy:
[DBH].Whismerhill.{SSgt}  [author] 12 Jan, 2019 @ 3:20am 
and it is NOW fixed, should work fine with version 0.5.0
as a reminder there is a configuration panel
by default the mod will now avoid switching out your currently equipped weapon IF you have one in hand (tools are not considered weapons, but the spear is for example)
so let's say you have a spear & a dark sword in inventory, the mod will NOT autoswitch to the dark sword IF spear is in hand.
[DBH].Whismerhill.{SSgt}  [author] 11 Jan, 2019 @ 11:21am 
you're right : Only if no weapon equipped => should let you use that spear instead of dark sword IF the spear is in your hand
and apparently it doesn't work lol
good catch
I'm pretty sure it used to work but it's been a while I worked on this
Teshuwenzi 11 Jan, 2019 @ 7:05am 
Hello, I still don't understand those things. If you are not busy, I hope you can answer them. Thank you.:creepy:
[DBH].Whismerhill.{SSgt}  [author] 29 Dec, 2018 @ 1:13pm 
hello,
it's been a while and I don't remember exactly, I'll have to check those out once I come back home in about a week. don't hesitate to pester me again in about 10 days if I didn't reply by then
Teshuwenzi 29 Dec, 2018 @ 9:14am 
Hello, I don't know what the last two terms of this MOD configuration mean.
"EveryEquip Weapons Preference" option "Only if no weapon equipped" and "Always autoequip best"
I think it means,
Whether to automatically switch to the best weapon option when attacking,
But the effect of these two options is the same, both switch to the best weapon.
However, in actual use,
"Disable for Weapons" options "False (Default)" and "True"
"False (Default)", which is reflected in the game is automatically switched to the best weapon,
"True", reflected in the game is not to switch any weapons.
So I want to ask what is the function of this option?
Thank you
[DBH].Whismerhill.{SSgt}  [author] 18 Nov, 2018 @ 3:23am 
I have absolutely no idea, I don't own hamlet
EldVarg 17 Nov, 2018 @ 3:50am 
Works with Hamlet?
[DBH].Whismerhill.{SSgt}  [author] 10 Sep, 2017 @ 8:44am 
@wiwaxia
using mouseclicks spacebar or both ?
Wiwaxia 30 Aug, 2017 @ 4:19pm 
Getting a crash in SW when using this mod to swap to a shovel to finish digging a lava pile. You can dig to up to the last stroke fine, but that stroke will crash.
烟花绽放之刻 2 Aug, 2017 @ 5:59am 
mod名为:自动装备
[DBH].Whismerhill.{SSgt}  [author] 1 Jul, 2017 @ 5:01pm 
ok hum I just had to try because of your comments
if you can't manage it after that take screenshots & give me your log file

here's what is on my side http://prntscr.com/fqjrs3
note that mouse 1 is Catch & Mouse 2 is Attack

and here shows how to murder a bee from inventory : http://prntscr.com/fqjsj9
(any bee, not just killer bees)

if you don't have that, I need screenshots & log files (use http://pastebin.com )

[DBH].Whismerhill.{SSgt}  [author] 1 Jul, 2017 @ 4:50pm 
what ? no you don't have to release caught bees to kill them, just kill them directly from inventory !
Enchi 1 Jul, 2017 @ 1:47pm 
Whe I catch and try to kill the net coomes back in hand to catch again. I could try the chest idea...