RimWorld

RimWorld

138 ratings
Configurable Deconstruct Percentage
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
142.003 KB
7 Aug, 2021 @ 2:38pm
30 Jun @ 9:37pm
6 Change Notes ( view )

Subscribe to download
Configurable Deconstruct Percentage

Description
Adds many options to the amount of material returned when a building is deconstructed, failed to construct, cancelled, or destroyed.

There are many mods out there that do similar things, but to my knowledge, none others supports all of these.
Name
Vanilla (Version 1.5)
Vanilla (Version 1.6)
Mod Default
Configurable Range
Deconstruct Building/Floor
50%
50%
100%
0%-100%
Fail Construction
50%
50%
80%
0%-100%
Cancel Building
100%
100%
100%
0%-100%
Cancel Unfinished Worktable Item
75%
75%
90%
0%-100%
Destroy Building Violently*
25%
25%
50%
0%-100%
Minimum Quantity per Resource**
0
1 (constr. fail)
0 (others)
1
0-100

* Some materials are blacklisted by Vanilla and would never return, and some buildings have their own material return logic, for example a destroyed wall does not return its materials. This mod respects and does not alter those special cases.
** For example, when you deconstruct a Wastepack Atomizer, the Nano Structuring Chip may be lost, this setting allows you to guarantee that at least 1 is returned. It never returns more than the building had to start with. This setting does nothing if all of the percentages above are set to 100%.

Local Install & Source Code & License
Non-steam download from GitHub[github.com]
Open source on GitHub[github.com] via AGPL 3.0[www.gnu.org]

Loading the Mod & Applying Settings
Support RimWorld 1.0-1.6, requires Harmony on RimWorld 1.2-1.6
Any load position after Harmony and Core would work.
This mod is safe to add/remove mid-save.
No reload required upon settings change as they take effect immediately.

Performance
There should be negligible impact on performance.
In fact, this mod might reduces the amount of computation required compared to Vanilla so it could even be faster.

Mod Compatibility
This mod should be compatible with most other mods, including other QoL mods that add similar functions.
This mod is likely to take priority over other similar mods regardless of mod load order.
Technical Detail: This mod patches four vanilla methods using transpilers[github.com].

Languages
English (built-in)
Simplified & Traditional Chinese (简体&繁體中文) (built-in) 中文页面在这
Translators: Let me know if you made a translation mod and I'll include it here.

For RimWorld 1.0 and 1.1
There's no Harmony before RimWorld 1.2.
As a result this mod does not require Harmony in those two versions.
However, only the deconstruction return setting is available.

Questions?
Either leave a comment on Steam WorkShop
Or submit an issue on GitHub[github.com]
Or find me on RimWorld Discord[discord.gg] (Discord ID: "amch.")

My other mods
Need Bar Overflow
68 Comments
AmCh  [author] 19 Jul @ 11:02am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
神刀天姬 19 Jul @ 10:44am 
能否加个把具有品质的建筑(或者可以卸载的建筑)单独设置返还比例的功能。我希望能在拆除重建调整基地布局的时候不损失材料,但刷取高品质的建筑时仍然要消耗材料
AmCh  [author] 30 Jun @ 9:44pm 
我改主意啦,提前更新了 模组2.2.0版本 [github.com],支持边缘世界1.6版本。发现BUG或者想要别的功能可以戳我~
I've updated the mod to version 2.2.0 [github.com] to support RimWorld 1.6. Let me know if you notice any bugs or have feature requests.
Ionfrigate12345 4 Apr @ 2:31pm 
不错,我可以试试用来平衡下SOS2。原版设定下SOS2回收敌船资源太多,特别是跳帮后夺船,实在太正义。我试试用这个调低下摧毁和拆除建筑的资源回收率。
Smeagol136 28 Jan @ 11:16am 
thank you so much! this is just what I needed to feel better about remodeling my ships in sos2 without wasting tones of advanced components. Love all the configurability too!
AmCh  [author] 22 Jan @ 3:47am 
@3477125192
这个应该是更新后模组设置不兼容的小问题,应该只会更新后出现一次。可以忽略。
------
Upon updating the mod, you might see that error below. This should only happen once and can be ignored. It comes from incompatibility between old and new mod version's settings.
3477125192 21 Jan @ 9:10pm 
有红字 ,影响游戏吗?
太长了发不出来,这里就放第一句
Could not find class Configurable_Deconstruct_Percentage.DeconstructSettings while resolving node ModSettings. Trying to use Configurable_Deconstruct_Percentage.Settings instead. Full node: <ModSettings Class="Configurable_Deconstruct_Percentage.DeconstructSettings"><FailReturnPercent>90</FailReturnPercent><MinimumReturn>0</MinimumReturn></ModSettings>
beetlecat 21 Jan @ 11:50am 
Oh -- I like the variability option this provides. Nice!
AmCh  [author] 21 Jan @ 8:18am 
Mod Version v2.1.1 has now been updated on Steam Workshop!
You might need to re-subscribe to this mod if steam doesn't auto update.
Fix: Deconstruct settings not applying to floors.
New: Configure return percentage when cancelling buildings/worktable items
---
模组版本v2.1.1已经更新到创意工坊!
如果Steam没有自动更新,你可能需要重新订阅一下这个模组。
修复:拆除返还百分比对地面未能生效。
新功能:设置取消建筑/工作台物品时返还材料的百分比
AmCh  [author] 21 Jan @ 8:18am 
@Kofo Glad that it worked!