RimWorld

RimWorld

121 ratings
Configurable Deconstruct Percentage
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
222.143 KB
Aug 7, 2021 @ 2:38pm
Jan 21 @ 8:13am
5 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 1.5
Mod Default
Configurable Range
Deconstruct Building/Floor
50%
100%
0%-100%
Fail Construction
50%
80%
0%-100%
Cancel Building
100%
100%
0%-100%
Cancel Unfinished Worktable Item
75%
90%
0%-100%
Destroy Building Violently*
25%
50%
0%-100%
Minimum Quantity per Resource**
0
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.5, requires Harmony on RimWorld 1.2-1.5
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
65 Comments
Ionfrigate12345 Apr 4 @ 2:31pm 
不错,我可以试试用来平衡下SOS2。原版设定下SOS2回收敌船资源太多,特别是跳帮后夺船,实在太正义。我试试用这个调低下摧毁和拆除建筑的资源回收率。
Smeagol136 Jan 28 @ 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] Jan 22 @ 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 Jan 21 @ 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 Jan 21 @ 11:50am 
Oh -- I like the variability option this provides. Nice!
AmCh  [author] Jan 21 @ 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] Jan 21 @ 8:18am 
@Kofo Glad that it worked!
Kofo Jan 21 @ 7:57am 
Guys it works, I don't know what went wrong before but the 2.1.1. floor deconstruction returns are working for me now. New game, existing saves, with moded floors and other items too. SOLVED :steamthis::steamthis::steamthis:
Kofo Jan 21 @ 7:31am 
I sent you friend request. I'll be happy to troubleshoot there so we don't spam here :)
Kofo Jan 21 @ 7:14am 
In Game menu:
Mod version: 2.1.1 - the file from github here: https://github.com/AmCh-Q/RimWorldMod_Configurable-Deconstruct-Percentage/releases/tag/v2.1.1