Escape From Duckov

Escape From Duckov

1,405 ratings
按重量/价值/价重比排序(Sort by weight/value/ratio)
4
5
9
4
3
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
Updated
2.593 MB
Oct 23 @ 2:53am
Nov 2 @ 8:03pm
16 Change Notes ( view )

Subscribe to download
按重量/价值/价重比排序(Sort by weight/value/ratio)

In 1 collection by JMC
自用无直接数值影响的实用MOD合集
16 items
Description
// Generated with the help of GPT

Sorting by Weight/Value/Value-to-Weight Ratio

1. Introduction
After playing the game for a while, I wanted to sort items by price or weight to make it easier to throw away junk. After waiting for several days without anyone creating this mod, I decided to make it myself.
GitHub Link [github.com]
Demo Video (Bilibili) (Old) [www.bilibili.com]
Demo Video (Bilibili) [www.bilibili.com]
Demo Video (YouTube)

2. Features
  • Added an extra row of sorting options below the “Sort” button in the backpack and stash, allowing sorting by Value, Weight, and Val/Weight.
    By default, Left-click sorts in descending order, and Right-click sorts in ascending order.
    You can change this behavior via a configurable parameter to swap the order directions.
  • The mod supports customizable visibility for buttons and texts.
    By default, the following are enabled: Sort by Price, Sort by Weight, Sort by Price/Weight Ratio buttons, and Item Price Text;
    and the following are disabled: Sort by Rarity, Sort by Unit Price, Sort by ID buttons, and Price/Weight Ratio Text.
    To customize, go to your save folder (not the game folder — the path can be found on the save selection screen), locate DuckSortConfig.json (launch the game once if it doesn’t exist; delete to reset defaults), and set the corresponding keys to true or false.
  • To change settings in-game, subscribe to and enable ModConfig, and place it above this mod (a restart is required the first time).
    Once enabled, you can modify the settings directly in-game.


3. Notes
  • This mod includes its own item price display, and when enabled together with other price display mods, duplicate prices may appear. In that case, disable this mod’s price display as described above.
  • Sort by Rarity uses the game’s built-in rarity system, similar to Colorful Fancy Items & Sounds.
  • Sort by Unit Price is mainly intended for players using infinite stack mods.
  • The localization texts (including buttons and README) for this mod, except for the Chinese language, were generated with the help of automatic translation. Contributions for text improvements are welcome. You can submit a PR or leave a comment. The Japanese translation was kindly provided by my friend さっちゃん.

4. Compatibility
  • This mod involves UI changes. Mods that heavily modify the UI may conflict with this one.
  • This mod uses the Harmony framework. Other mods that conflict with Harmony might cause issues with this mod.
  • This mod heavily relies on reflection, so it may become incompatible after future game updates.

5. TODO
  • The UI is quite basic at the moment and may be improved in the future.
  • Currently, the mod sorts in descending order by default. I may add an ascending/descending toggle button in the future. ✔️
  • A configuration menu may be added to quickly enable/disable certain features. ✔️
  • The code is a bit rough at the moment and will likely be optimized in the future. ✔️
  • The sorting seems a bit slow, and I will look into performance optimization later. ✔️

6. Others
If you have any feedback or suggestions, feel free to leave a comment in the discussion section or open an issue on GitHub.
You can view the changelog by clicking " Change Notes ( view ) " in the upper-right corner.

If you like this Mod, please consider giving it a thumbs-up!

You may use my code, but at least let me know in the comments and credit this mod’s Workshop page in your description.
188 Comments
云泥之别 Dec 6 @ 12:47am 
按钮位置能不能放在背包格子右边?出个选项定制位置也行,目前顶部的话,滚动到下面后想排序,还得滚回上面。再滚动到下面扔东西,再排序,再滚回上面,很麻烦。
JMC  [author] Nov 26 @ 10:01pm 
@[ ] 这个不太可能是这个MOD的问题。。。
[ ] Nov 26 @ 6:56pm 
为啥我用这个mod敌人就打不死了
liulicuo Nov 22 @ 2:47am 
我在使用过程中发现仓库下面出现3个整理 背包是正常的 可以正常使用 不知道是不是文本错误还是我自己的问题
JMC  [author] Nov 21 @ 4:18am 
@abcdefghill 你可以看看输出的日志,看看排序时输出了什么
abcdefghill Nov 21 @ 1:35am 
这两天调整了一下mod订阅情况,退了一堆其他mod,感觉好像排序速度变快了?可能不是和史诗背包扩容冲突,我再观察一下吧。
JMC  [author] Nov 17 @ 9:57pm 
@abcdefghill 等后面我看看吧,现在我在写一个大前置,快写完了,写完了再去看看,如果用了那个之后我的整理要几分钟的话那肯定是他那里动什么东西了,因为我是直接调用的原版的整理的核心逻辑,可能他改的时候完全没考虑其他模组的兼容性,估计引起了每整理一个物品打印了很多报错。
abcdefghill Nov 17 @ 7:59pm 
也许可以考虑一下做个兼容?
abcdefghill Nov 17 @ 7:59pm 
不清楚,但是那个mod自带的整理功能比你这里至少快了一个数量级
JMC  [author] Nov 17 @ 5:53pm 
@abcdefghill 我看他那个视频说把游戏内的排序改了,我没看具体代码,不过可能和这个有关系