饥荒联机版

饥荒联机版

32 个评价
DJPaul's Sort Inventory Modifiable Keys
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.187 MB
2018 年 7 月 19 日 下午 10:28
2024 年 2 月 24 日 下午 3:59
4 项改动说明 ( 查看 )

订阅以下载
DJPaul's Sort Inventory Modifiable Keys

描述
***Just a heads up that my mods will no longer be getting updated or maintained. If you're reading this, and you're a modder who wants to use this for your own work, you have full permission to use this however you'd like***

Press - or F1 to sort your inventory. Now configurable with up to 4 active keys.

That's it.

Applies to all players on your server.





PSA for owners of dedicated servers:

This is a sample of how your modoverrides.lua section might look like if written correctly.
Use upper case for the values and use the value false to disable a keygroup.
Check modinfo.lua for possible values for each keygroup

--Sort Inventory ["workshop-1445690391"]={ configuration_options={ keybind_function="KEY_F10", keybind_control="KEY_RCTRL", keybind_special="KEY_PERIOD", keybind_letters="KEY_Z", }, enabled=true },
33 条留言
Co-optimus Prime  [作者] 10 月 21 日 上午 9:38 
@pixionus

I'm gonna update all my mods to reflect this, but I've long since moved on from the game haha

The code for these isn't protected or encrypted or copyrighted in any way, so if you find someone who wants to make that, they can 100% use this as their starting base
pixionus 10 月 20 日 下午 9:38 
What I really want is a mod which let's me define what items I want to go where. That's all.
NVZ 5 月 9 日 上午 6:49 
Rabbit King Cudgel can cause the module to crash.
prod-o 2024 年 11 月 30 日 下午 2:23 
In Beta branch atm. Sorting with the new Wortox Soul Jar crashes the game. Mod likely attempts to sort the Soul jar into the backpack, but it can't be moved in.
Vecho 2024 年 9 月 29 日 下午 4:50 
Thanks for the reply. I would be looking forward to update.

I used to play in DS and get used to automatically sorting. It is really convenient this way.
Co-optimus Prime  [作者] 2024 年 9 月 29 日 上午 11:46 
@Vecho I can probably make the server do a periodic call for auto sorting (chosen based on a config option). Will apply to all players though since this mod is server-side.

@Sir_Wun Not entirely sure. My idea is maybe have an editable config file that each player can choose to modify to their preferences, but I can't promise this will work/ I'll be able to figure it out. I think right now it's probably doing it alphabetically in those categories, but I haven't looked at this mod in a very long time and wasn't the original author, just the patcher
Vecho 2024 年 9 月 29 日 上午 5:02 
Is it possible to sort automatically instead of manually? I tired after pressing to sort frequently.
Sir_Wun 2024 年 9 月 1 日 上午 6:42 
Can i modify the order of tools / resources myself?
I see i can modify which resources are in the priority list, but how can i select the order?
(For example twigs at the end does not seem logic, i want them next to cut grass)
Rey 2024 年 5 月 24 日 下午 1:14 
lantern doesnt sort into the light when the torch does
Kain Morgen  [作者] 2024 年 1 月 29 日 上午 8:39 
@Cooptimus Prime
Found multiple copies of folders named 1445690391 and tested the following change to assign the '-' key (for me thats left from right-shift).
GLOBAL.TheInput:AddKeyDownHandler(92, function()
GLOBAL.TheInput:AddKeyDownHandler( 45 , function()

A folder for simple ingame-hosted DST
...\Steam\steamapps\workshop\content\322330\1445690391
Changes here will have effect on servers hosted from within the game client.
My inventory in a ingame-hosted world got sorted after pressing '-'.

Several folders for dedicated server hosting - one folder copy for each master cluster (Cluster_1, Cluster_2, etc)
...\Steam\steamapps\common\Don't Starve Together Dedicated Server\ugc_mods\Cluster_1\Master\content\322330\1445690391
Changes here don't appear to have effect here. My inventory in this dedicated server remained unsorted after pressing '-'.

I either can't override your code for dedicated servers OR the if-condition lines 386-393 might be broken.