Don't Starve Together

Don't Starve Together

42 betyg
Favorite InvSlot[收藏物品栏]
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
347.587 KB
19 dec, 2024 @ 18:29
7 feb @ 2:04
8 ändringsnotiser ( visa )

Abonnera för att ladda ner
Favorite InvSlot[收藏物品栏]

Beskrivning
[Description]
Set your favorite inventory layout(backpack as well)!

By clicking the button or shortcut, you can favorite the inventory slot.

There is a higher priority to put items and automatically move to the favorite slot.

[Important Notes Before Proceeding]
1. Due to an update from Klei on February 6, 2025, the scope of certain APIs, such as io.open, has been modified. Although the mod itself has not changed, this update has caused an "invalid filepath" error.
Not only does this affect this mod, but other mods that utilize local storage, such as the Memorandum (note-taking mod), have also stopped working.

2. You can refer to the video below or the help images in the gallery for a fix (similar steps should apply to other operating systems like Mac).
Note: This fix requires the mod users to take action manually. Simply relying on DST automation will not work.
This mod update only fixes the error, but if you don’t want your data to be lost every time you exit the game, please create an unsafedata directory.

Reference Video:
https://www.bilibili.com/video/BV1RzNWewEzB/?vd_source=234760f1645b7943d3b57ca98473a778

3. As for why Klei made such a troublesome change, it seems to be due to some mods being used to spread viruses.
The official update notes can be found here:
https://forums.kleientertainment.com/forums/topic/163699-game-update-653007/#comment-1793063

[Introduction]
There are three types of slots:
1. Uncollected (colorless): You can put in any item.

2. Collected (yellow): Only items of the current type can be placed in the slot.

3. Conflicted (blue): items placed in the slot are not of the same type as those already in the collection.

4. Multi-item collection tank (orange red): you can put multiple types of items.

[Optional Configurations]
1. Manually force item to be placed (default close)
Forces an item to be placed in the favorite slot when manually move.

2. Forced when full (default close)
Allow items to be placed in a slot when there is no suitable place to move them.
(This is useful if you are strapped for space, and need to use another backpack for temporary storage. )

3. Disable button (default close)
The Favorites button can no longer be clicked, preventing accidental access (it is still there, as a reminder).

4. Shortcuts (default Alt + R)
Use shortcuts instead of clicks, by default hold down Left Alt and click R to toggle through the slots.

If you find that the shortcut keys don't work, please check the settings in Options->Controls->Forced Inspect (mod) on the main screen to make sure the value is the left Alt key.
This can be solved by resetting the bindings below or manually changing the value of Forced Inspect(mod) to Alt.

5. Data reset
Use this option to reset the data if something unexpected happens that causes dirty data. Otherwise, this option is not enabled.

6. Style (takes effect when favorites button is disabled)
Modify the style type of the favorites slot

7. Expansion shortcut keys
Example Modify shortcut keys for expanding capacity

8. Shortcut keys for conflict recovery
Example Modify the shortcut keys for conflict recovery

9. The shortcut keys for expanding the UI are displayed
(On/off) Configuration UI for the multi-item favorites slot

10. Maximum number of collections
The maximum number of items that can be placed in a multi-item collection

[Function usage]
1. Style modification:
You can configure the style to be used in the mod configuration bar. Otherwise, the style does not take effect.

2. Open multi-item collection:
On the button that has been collected (yellow star), press the expansion key (default is "=" key) to open the multi-
item collection mode (orange-red star), which will display a backpack-like UI (UI), holding the item to be added to the
collection, click the space on the UI will leave a "residual shadow" of the item, indicating that the collection is
successful; Without holding the item, click on the box with the "shadow" to uncollect. Clicking the Shrink key (default
is the "-" key) will reduce the size of your collection. Clicking the UI Toggle key (default is the "O" key) will open or
hide the UI.

3. Conflict recovery function:
Clicking the L key by default will attempt to resolve all existing conflict grids.

[bug fix]
1. Fixed an issue where the shortcut keys did not take effect in Single player local mode or single world (without
opening the cave).
2. Fixed the problem of data redundancy in data files (saving the data of many containers that cannot be used as
favorites, such as refrigerators and salt boxes).
62 kommentarer
아를라깔라똘라 14 okt @ 9:00 
scripts/entityscript.lua:1298 in (method) PushEvent_Internal (Lua) <1285-1314>
scripts/entityscript.lua:1317 in (upvalue) _PushEvent (Lua) <1316-1318>
../mods/workshop-3435352667/postinit/entityscript.lua:296 in (method) PushEvent (Lua) <282-297>
scripts/prefabs/inventory_classified.lua:432 in (field) fn (Lua) <413-438>
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
scripts/scheduler.lua:419 in (global) RunStaticScheduler (Lua) <417-425>
scripts/update.lua:178 in () ? (Lua) <169-220>
아를라깔라똘라 14 okt @ 9:00 
[string "../mods/workshop-3387619777/scripts/ui/fi_u..."]:242: attempt to index local 'fi_invslot' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-3387619777/scripts/ui/fi_ui_config.lua:242 in (field) match_fn (Lua) <237-251>
../mods/workshop-3387619777/scripts/fi_container.lua:386 in () ? (Lua) <376-393>
=(tail call):-1 in () (tail) <-1--1>
../mods/workshop-3387619777/scripts/fi_container.lua:707 in (field) MayMoveItem (Lua) <653-737>
../mods/workshop-3387619777/scripts/fi_container.lua:740 in (field) OnItemGet (Lua) <739-741>
../mods/workshop-3387619777/scripts/fi_container.lua:856 in (local) fn (Lua) <855-857>
一米阳光 16 sep @ 17:21 
移动物品,容易误触。实战并不好用……
云泥之别 7 sep @ 1:43 
用行为排队论捡东西,这个 mod 会打断行为排队,很影响体验,以至于我会放弃这个 mod,作者大大能优化下吗
mitone 16 jun @ 5:39 
最近更新后,一直游戏崩溃,提示是这个mod的问题
你好 11 apr @ 18:40 
我没在对应目录中看到那两个文件唉
croak 22 feb @ 17:11 
您好,我在游玩时遇到了报错的情况,是不定时的会引发这个错误,我保存了报错时的截图,有时间可以解决一下吗:steamhappy:
Geraint小白 9 feb @ 18:41 
操作有点小复杂,我在保存启迪冠和头盔到同一格的时候误操作导致身上其他格子也出现了启迪冠的图案,并且可以右键打开启迪冠,这时还只有一个真正的启迪冠,当我重启服务器后身上贴图的启迪冠变成了实体,因为不太熟悉操作,所以也不知道当时是怎么操作的了。还有当身上的收藏格子没有物品的时候,再捡起其他物品会优先进入背包栏(身上和背包有空余格子,身上和背包没有同类物品),物品会在鼠标上弹一下,并且会打断行为学。
Varrgas 2.0 8 feb @ 6:35 
Well... It's weird, I don't understand why but it work now, no more crash after activating the mod and apply.

To answer about what you said:
I'm on windows 10.
I was in the right folder location, no doubt about this.
I'm using you mod since many weeks now so not the 1st time or 1st install.
I tried to find the 2 .json files elswhere with a global search but found nothing...

But it's maybe normal ?
I didn't tried the loadout yet etc, so it's maybe because of that, no ?

In fact, I tried to unsub/sub again to somehow force update/fresh install the mod, tried to use the "reset data" option, but nothing changed.
What fixed my issue was to push the "reset" buton from the game when inside your mod settings.
I applyed it whith your mod activated, and after this the game was crashing before.
But this time the game restarted normaly and it work...
Noy sure if that will help you to understand something or not :potatodisapproval:
慢速中  [skapare] 7 feb @ 19:01 
@Varrgas 2.0 if you first install and use this mod, the two files is not exist.