Project Zomboid

Project Zomboid

评价数不足
Quick Sort Build 42
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
6.159 MB
8 月 5 日 上午 3:06
8 月 18 日 上午 1:04
8 项改动说明 ( 查看 )

订阅以下载
Quick Sort Build 42

描述
DESCRIPTION
Adds Quick Sort options to items in your inventory/bags. Updated for Build 42, including new features!

The source code for this mod is available on GitHub at https://github.com/robob27/pzquicksortb42

The mod adds the following menu entries to non-favorited, unequipped items in your inventory:
  • "Quick Sort" - This will attempt to find a nearby container that has the exact same item in it, and transfer the item to that container.
  • "Quick Sort All" - This will attempt to sort all items from the same source inventory (e.g. your main inventory or a backpack) into nearby containers that have the same items in them.
  • "Quick Sort <Category>" - This will attempt to sort all non-favorited, unequipped items from the same category as the item you're Quick Sorting into nearby containers that have the same items in them. E.g. if you right click on a Bandage, this will read "Quick Sort <FirstAid>" and would attempt to sort all first aid items from the same source inventory into nearby containers that have the same items in them.

By default, these menu entries will be grouped together under a single "Quick Sort" submenu. You can disable this to go back to the old behavior of having separate menu entries for each action.

Favorited or equipped items are never sorted. The range for searching for containers to sort items into is configurable in the mod settings, and defaults to 7 tiles. Only explored containers are considered.

CATEGORY BASED SORTING OPTIONS
By default, if no containers with the exact item are found, it will search for containers with items in the same category as the item you're Quick Sorting and attempt to transfer to those containers.

For e.g. if you try to Quick Sort a Bandage, and no containers with Bandages are found, it will look for containers with other "FirstAid" items in them, and attempt to transfer the Bandage to those containers.

You can configure the following thresholds to control how category based sorting works:
  • The minimum number of items in a container that need to be present for it to be even be considered as a potential destination for category based sorting. (Default: 3)
  • The minimum percentage of items in a container that need to be of the same category as the item being sorted, for it to be considered as a potential destination for category based sorting. (Default: 51%)

SPECIAL FOOD TREATMENT
By default, food items are treated specially when Quick Sorting. If a fridge or freezer is found in range, food items will only be sorted into fridges/freezers, and non-food items will not be sorted into fridges/freezers. This can be disabled in the mod settings.

Category based sorting is enabled by default, but you can disable it in the mod settings.

MORE DETAILS/FEATURES
  • Supports all languages currently supported by the game.
  • It is possible to queue multiple "Quick Sort" actions back to back to quickly sort large amounts of items.
  • Multiple containers will be used if multiple containers are nearby that contain the item, but one container is unable to fit all of the items being sorted.
  • Using Quick Sort on an item in a backpack (or any container you access in your inventory) will first transfer the item to your main inventory, and then to the container.

DISCLAIMERS
  • As with any mod, there is a risk that unexpected things could happen, especially as the game is being updated lots. No warranty!
  • "Explored containers" means that you should have to have seen the inventory of the container before your character "knows" what items are there. The aim of this is to avoid being able to search for items in unexplored containers by using one you already have, without having to really look around. This seems to work, but it has not been tested long term and I'm not 100% sure on the mechanics of this.
  • All translations were done using AI. Feel free to suggest corrections in comments, or even better, submit a pull request on GitHub with the changes!

KNOWN ISSUES
  • Depending on the closest adjacent/open tile to a container, your character might deposit items through a wall sometimes. I might try to fix this at some point in the future but for now it seems Good Enough TM

Workshop ID: 3542556795
Mod ID: RPQuickSortB42
16 条留言
Robob27  [作者] 10 月 22 日 下午 7:11 
Hey @Osme, thanks for the feedback. Will work on this.
Osme 10 月 21 日 下午 2:27 
Seems it doesnt account for the organized perk when determining whether or not an item can be added. For example, the metal crate can hold 104 with organized, but quicksort stops adding items at 80.
Also resets any fast forwarding back to 1x, which is... painful when sorting a large number of items
Sinmor 8 月 24 日 下午 8:09 
Отличный мод, теперь без этого мода неудобно играть, спасибо автору!
Robob27  [作者] 8 月 19 日 上午 4:44 
@LungZ Good call! I'll get something added in the description about this soon. In the meantime if anyone reads this, it is completely safe to add or remove the mod from your game at any time.
LungZ 8 月 19 日 上午 3:05 
Haven't tested the mod yet (sounds great though) but it might be worth mentioning in the description if the mod works mid-game and if its safe to remove. I assume it is but some folks may hesitate to try it in such a case as they risk their save game. :)
Robob27  [作者] 8 月 18 日 上午 10:13 
@흉내쟁이 Thanks again for more good feedback. I'll try to come up with something here.
흉내쟁이 8 月 18 日 上午 1:31 
Thank you very much for the clever solution of adding an icon. This great mod really needs a thumbnail that explains it. Sometimes a few pictures can be more effective than a large amount of text.
Robob27  [作者] 8 月 18 日 上午 1:06 
@흉내쟁이 I updated the mod to group the menu entries by default. Steam should make the update available shortly.

I added a setting in the mod options for anyone who prefers the old behavior.
Robob27  [作者] 8 月 17 日 下午 11:10 
@Rhiannon Wild Thanks, I'm glad you like it!
Robob27  [作者] 8 月 17 日 下午 11:08 
@흉내쟁이 Thank you for the feedback and suggestion! I'll work on adding in a setting for this.