RimWorld

RimWorld

503 ratings
Dismantle Ancient Junk
3
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
651.004 KB
Oct 3, 2022 @ 6:07pm
Aug 6 @ 2:55pm
24 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Dismantle Ancient Junk

In 1 collection by Proxyer
Proxyer's RimWorld Japanese Mods
230 items
Description
IMPORTANT :
Now it adds compatibility with Biotech DLC. You should now be able to get "mechanoid transponder".

As a countermeasure to the Biotech DLC transponder reported by @int_541, Mod have switched to a non-patching method for Ancient scraps that would probably be the case if checked the Biotech DLC.
This fix will not affect anyone who has not purchased or disabled the Biotech DLC.


Description:
This is simple mod, allows dismantle ALL Ancient Junks, added in the Ideology DLC.
If you dismantle ancient junks, you will get twice as many resources as destroy it.
Even if turn off Ideology DLC in the RinWorld options, the error does not appear.

Compatible :
Added compatibility patch for Vanilla Factions Expanded - Ancients. Ancient buildings (Ancient supply slingshot, Vault wall, Vault door, Large locked door) will be dismantleable.

Added compatibility patch for Medieval Overhaul. Ancient/Ruin buildings (Ancient ruined battering ram, Ancient ruined siege tower, some doors, etc.) will be dismantleable.

Added compatibility patch for Biotech DLC. Ancient Exostrider Parts, Ancient Mech Gestator, Ancient Basic Recharger, Ancient Standard Recharger, Ancient Band Node, etc... will be dismantleable.
But ancient exostrider midsection can't dismantleable. Because you won't be able to get the "mechanoid transponder".

Added compatibility patch for Anomaly DLC. Make the cube sculpture dismantlable and leave some materials behind.

Added compatibility patch for Odyssey DLC.
- Added work times and resources to ancient structures from the Odyssey DLC.
- Made Life Support Units, Ancient Lights, and Ancient Emergency Lights claimable, dismantled, minifiedable, and movable.

Added compatibility patch for Mechanoid Upgrades. Ancient buildings (ancient mech upgrader, ancient basic upgrades assembler, ancient advanced upgrades assembler, ancient upgrades storage, ancient large upgrades storage) will be dismantleable.

Added compatibility patch for Vehicles Wrecks Expanded. Ancient ancient car wreck will be dismantleable.

If you are using Tweaks Galore with this mod and an error occurs, reviewing the options in Tweaks Galore may resolve the issue. Thanks to BlackSmokeDMax for reporting this issue.

Incompatible :
Cannot be used together with the following mods that have the same function.


Notes :
If you have any problems, please report them by comment.

Copyright :
The photos in the preview image use http://pixabay.com free materials taken by Alexas_Fotos[pixabay.com].

F & Q :
Q: Why did create this Mod when a similar Mod already exists?
A: That's because the existing Mod can't dismantle ALL the ancient scraps, so I wanted to be able to dismantle them all.

Q: Sometimes when I dismantle scrap, nothing comes out?
A: Colonists luck and building skills seems to vary the resources available.

In the vanilla game, deconstructions return 50% of the used building materials, If you want to make this 100%, recommend using Configurable Deconstruct Percentage.

Popular Discussions View All (2)
2
Sep 23, 2024 @ 9:45am
ancient urban ruins
MrFlux
0
Mar 15, 2024 @ 8:35pm
BuckUp Link
Proxyer
161 Comments
kagora2 Aug 8 @ 11:02am 
the pawn is a Sanguophage, but this also happens with a Impid or normal human
i started a new game
will have a look if it happens there too
Proxyer  [author] Aug 8 @ 9:08am 
The only thing that bothers me is that the error log "Verse.Pawn,string,System.Exception,Verse.AI.JobDriver", which makes it seem like a non-human pawn is doing the work.
Proxyer  [author] Aug 8 @ 9:04am 
I also checked the muffalo corpse and there were no problems. Try starting a new game with the mod list intact and see if the same problem occurs. If the error doesn't occur, it may be due to your save data.
Proxyer  [author] Aug 8 @ 9:00am 
@kagora2
In error log, "Thing_Corpse_Mech_Militor166514", so something may be wrong with the save data. For now, I'll check out the muffalo's corpse.
kagora2 Aug 8 @ 8:44am 
thx for your test, but i didnt try to smash a mechanoid.
i tried to butcher an animal at the butcher table.
it was a muffalo
Proxyer  [author] Aug 8 @ 8:42am 
Tested with a minimum configuration (30 mods).

Workbench used: crafting spot
Corpse used: Militor x2
Bill used: smash mechanoid

Test result: No errors

The materials for the Militor are set in Recipes_MechGestator_Light.xml in the RecipeDefs folder of the Biotech DLC under Name="LightMechanoidRecipe" on line 14. They are 50 steel, and are not affected by the patch included in the mod.

This is likely a compatibility issue with another mod.
This mod is patch-only, so changes are made at game start. If there are any mods in the game that modify bills using dlls, etc., they will be overwritten. If that dll does not contain a null check such as "if (products == null || products.Count == 0)," a NullReferenceException will be returned and an error will occur.

It is unclear from the error message you submitted which mod in your mod list is causing the conflict. Sorry I couldn't find a solution.
Proxyer  [author] Aug 8 @ 8:20am 
Hello kagora2.
From the error, it looks like you're trying to process Corpse_Mech_Militor with CraftingSpot. I'll look into it.
kagora2 Aug 8 @ 6:19am 
Part 2 of the error in my log:

(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.ReadyForNextToil_Patch1 (Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.ReadyForNextToil_Patch1 (Verse.AI.JobDriver)
Verse.AI.Toils_Recipe/<>c__DisplayClass2_0:<DoRecipeWork>b__2 (int)
Verse.AI.JobDriver:DriverTickInterval (int)
Verse.AI.Pawn_JobTracker:JobTrackerTickInterval (int)
Verse.Pawn:TickInterval (int)
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch4 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
kagora2 Aug 8 @ 6:18am 
hi,
i butchered a mufflo but didnt get any meat
i removed your mod and it was working again

part 1 of the error in my log:

JobDriver threw exception in toil FinishRecipeAndStartStoringProduct's initAction for pawn Astarion driver=JobDriver_DoBill (toilIndex=31) driver.job=(DoBill (Job_3140661) A = Thing_CraftingSpot65237 B = Thing_Corpse_Mech_Militor166514 C = (134, 0, 124) Giver = JobGiver_Work [workGiverDef: DoBillsUseCraftingSpot_SmashCorpseMechanoid_DesignationWorkGiver])
System.NullReferenceException: Object reference not set to an instance of an object
[Ref FFB58A53] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Proxyer  [author] Aug 6 @ 2:55pm 
Update : 7 Aug, 2025
v1.6.11
- Fixed update Mechanoid Upgrades mod patch.