RimWorld

RimWorld

Configurable Deconstruct Percentage
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!
Kofo 21 Jan @ 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 21 Jan @ 7:31am 
I sent you friend request. I'll be happy to troubleshoot there so we don't spam here :)
Kofo 21 Jan @ 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
Kofo 21 Jan @ 7:07am 
I tried all the stone, steel and carpet floors. For those the result was same. I tried let my pawns do it themselves and I tried to do it manually via god mode/debug. Result was same. I didn't test the Hey floor or what the name is.
AmCh  [author] 21 Jan @ 6:17am 
@Kofo
Is it for all floors... or do you notice any specific floor? I am kinda surprised that happens.
Could you also check that you are actually loading the downloaded version? (that is, in the mod list, the mod actually says version 2.1.1 or 2.1)
Kofo 21 Jan @ 3:30am 
Hey, I have an issue with the floors too. I'm set to 100 % and im getting back half of the material. I tried Steam version and the 2.1. github version OP posted here in coments on 4th of Jan. It's not working for both moded and vanilla floors.

Edit: v2.1.1. github
Friendly 15 Jan @ 3:43pm 
@AmCh
I really appreciate you! Your update did exactly what I hope it would! I've tested it with several floors and modded floors. It seems to be working great. Thank you very much!
---
非常感谢!您的更新完全符合我的期望!我已经在多个地板和改装地板上进行了测试。效果似乎很好。非常感谢!
低熵之体 12 Jan @ 12:38am 
目前尚未发现其他问题,非常感谢作者大大的修改与更新!:steamthumbsup::steamthumbsup::steamthumbsup:
AmCh  [author] 11 Jan @ 8:17am 
@低熵之体
感谢报告!现在应该修复了……不知道什么原因,虽然地毯被游戏分类为“可建造物”,原版之前给我的“可建造物列表”里面不包含地毯……
新版本2.1.1的模组已经在GitHub上可以下载了 [github.com]
---
For some reason vanilla failed to include carpets in the list of "buildables", despite it being clearly classified as one... This caused deconstructing carpets to still return 50%, it should be fixed now in v2.1.1.
Mod Version 2.1.1 is now on GitHub for testing [github.com]
低熵之体 10 Jan @ 11:36pm 
不过拆除地毯类地板时似乎还是只会返还50%的材料,希望可以修复一下,非常感谢!
低熵之体 10 Jan @ 11:34pm 
非常感谢作者大大的更新!作者大大辛苦了!:steamhappy::steamhappy::steamhappy:
AmCh  [author] 4 Jan @ 4:44am 
Mod Version 2.1 is now on GitHub for testing! [github.com]
Fix: Deconstructing floor was not affected.
New Feature: Return percentage when cancelling buildings (vanilla default 100%) or unfinished worktable products (such as sculptures, vanilla default 75%).
Please help me by testing it. If I don't get any bug reports, I will upload it to the workshop within this month.
---
新版本2.1的模组已经在GitHub上可以下载了! [github.com]
修复:拆除地板的返还材料不受模组影响。
新功能:设置取消建筑(原版默认100%%)或者工作台(原版默认75%)的材料返还百分比。
拜托大家帮我测试一下,如果没有发现BUG的话我这个月会更新到创意工坊。
AmCh  [author] 3 Jan @ 4:46am 
@Friendly @低熵之体
I will try look into it today, hopefully I can get something working in 48 hours or let you know if I got stuck on it.
我今天看一下!希望48小时内能搞定吧,或者至少我再说一声卡住了。
Friendly 3 Jan @ 3:39am 
Is it possible to make this work for floors too? I'm still playing on 1.3
低熵之体 27 Dec, 2024 @ 7:00am 
好的,谢谢作者大大,作者大大辛苦了!:steamhappy:
AmCh  [author] 12 Dec, 2024 @ 5:51am 
@低熵之体
我有时间看一下~好久没玩了
低熵之体 8 Dec, 2024 @ 6:01am 
啊,还有地毯,非常感谢作者大大!:steamhappy:
低熵之体 16 Sep, 2024 @ 9:45am 
非常好的mod,感谢作者大大!!!不过当拆除地板时似乎还是只会返还50%的材料,不知道为什么。
Shiyuan 15 Jun, 2024 @ 2:13pm 
My bad, upon some testing I realized that it does return all the material, not sure why I thought it didn't in the first place.
AmCh  [author] 14 Jun, 2024 @ 10:28pm 
@Shiyuan
Cancelling a construction should already return 100% of the material in vanilla. I could make it configurable so that it returns less though...
---
原版游戏里 取消建筑本来就会返还100%的材料。不过我确实可以考虑添加一下设置,允许你把他设置成返还更少的材料……
Shiyuan 14 Jun, 2024 @ 10:22pm 
Great mod, thank you very much! Can you also add the function so that cancelling a building after the material is already hauled to the build site also returns the full amount?
见习天使猫猫头 26 May, 2024 @ 5:33am 
nice!:steamhappy:
AmCh  [author] 24 May, 2024 @ 7:17am 
New idea WIP: In Vanilla 1.0-1.5, when you cancel an unfinished thing (for example a WIP sculpture, component or cloth), only 75% of the ingredients are returned. I think I can make it configurable too.
---
新功能开发中:原版1.0-1.5里未完成的东西(例如做到一半的雕塑,组件,或者衣物)被取消时会返回75%的材料。我感觉我应该能把这个也搞成可以设置的项目。
XYM04689733 23 May, 2024 @ 8:44am 
正道的光 照在了大地上:steamthumbsup:
AmCh  [author] 20 May, 2024 @ 1:29pm 
v2.0 Updated! Let me know if you notice any bugs.
v2.0 更新完了!发现BUG的话戳我一下~
AmCh  [author] 20 May, 2024 @ 9:45am 
我快更新完了!测试找BUG中
新:1.0-1.5支持(1.0-1.1只支持部分功能)
建造失败时返还百分比可设置(原版:50%,模组默认:80%)
建筑摧毁时返还百分比可设置(原版:25%,模组默认:50%)
每种建筑材料至少返回X份(模组默认:X=1)
简体&繁体中文
AmCh  [author] 20 May, 2024 @ 9:42am 
Almost done updating!
New: 1.0-1.5 Support (limited functionality for 1.0-1.1)
Configurable return percentage when failing construction (Vanilla: 50%, mod default: 80%)
Configurable return percentage when building is violently destroyed (Vanilla: 25%, mod default: 50%)
Configurable minimum number of each item to return (mod default: 1 of each item) (@Maoman )
见习天使猫猫头 20 May, 2024 @ 2:22am 
1.5 please~:eothas:
XYM04689733 10 May, 2024 @ 10:21am 
1.5 mua
Pinselohrkadse 5 May, 2024 @ 7:21am 
I also loved this mod. I left it in with 1.5 but unfortunately its not working/showing up in mod options anymore.
AmCh  [author] 24 Apr, 2024 @ 12:02am 
@Dax
Try changing the mod settings once while in game and see if the percentage changes.
If yes, then that likely means one of the other mods is also affecting deconstruction percentage and overwrote this mod.
Dax 23 Apr, 2024 @ 8:24pm 
This mod worked perfectly with one of modlists I've used, but as I changed to a different modlist, it suddenly stopped affecting deconstruct chance. And the load order is about the same, just with different and extra mods beneath it. I also don't know how do I appropriately report this, if it even appears in any logs... So for now, just saying, the configuration sometimes stops functioning for whatever reason and I wonder if you happen to have a good guess on what is going on there, so I can try to troubleshoot it.
马蜂 18 Apr, 2024 @ 5:34am 
谢谢哥:steamhappy:
AmCh  [author] 14 Apr, 2024 @ 2:09pm 
@VeggiePirate Received!
So unfortunately it won't work on 1.5. No promises but I might try to rewrite it by the end of next weekend.
VeggiePirate 14 Apr, 2024 @ 1:36pm 
Looks to me like the method this was intercepting was removed in 1.5:

Error while instantiating a mod of type Deconstruct_Percentage.Deconstruct_Percentage: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: void

https://pastebin.com/eGc2SFq0

Investigating a different approach to hooking this seems like it would take most of the effort of re-writing it anyway.
AmCh  [author] 12 Apr, 2024 @ 2:56pm 
@[Sledge] I lost the source code to this mod since release of 1.4, so even if I update, it would have to be a rewrite which is not my priority right now. Sorry.
It might still work though, would you mind checking and posting the result here?
[Sledge] 12 Apr, 2024 @ 1:28pm 
Hey AmCh, I love this mod, any plans to update for v1.5?

计划更新到 1.5?
Maoman 13 Oct, 2023 @ 6:19am 
I imagine this would be a little more complicated to implement, but when you get around to re-writing this after losing your source code, do you think you could add a checkbox that's something like "always drop at least 1 of every material"? That way you could leave the settings at 50% like vanilla if you wanted the challenge, but buildings such as the Wastepack Atomizer would still drop the Nano Structuring Chip when deconstructed (the fact that it doesn't is ridiculous imo).
LookAtMeNow777 29 Oct, 2022 @ 1:07pm 
什么瞒天过海暗度陈仓哈哈哈
AmCh  [author] 29 Oct, 2022 @ 1:03pm 
啊对忘了打中文解释了:
刚刚“更新”了一下1.4版本,说是“更新”但其实我一行代码没动(也动不了了——源代码丢了,未来要更只能重写),只是改了版本号测试了5分钟没崩,就传上来了。
理论上没啥问题,但是我毕竟没认真测,出事别怪我,好好告诉我,我再修~