redxlaser15 Posted August 10, 2019 Share Posted August 10, 2019 That was a bit of a longer title than I originally meant it to be, but, oh well. Link to comment Share on other sites More sharing options...
Cairath Posted August 10, 2019 Share Posted August 10, 2019 No, and no. Link to comment Share on other sites More sharing options...
agassijeremy19 Posted August 11, 2019 Share Posted August 11, 2019 i dont know how to make mods, but i use dnspy to allow heavy watt wire to run through the tiles Link to comment Share on other sites More sharing options...
redxlaser15 Posted August 11, 2019 Author Share Posted August 11, 2019 12 hours ago, agassijeremy19 said: i dont know how to make mods, but i use dnspy to allow heavy watt wire to run through the tiles Did you spell that wrong? There's no mod on the Steam Workshop called dnspy Link to comment Share on other sites More sharing options...
DraycosGoldaryn Posted August 11, 2019 Share Posted August 11, 2019 3 hours ago, redxlaser15 said: Did you spell that wrong? There's no mod on the Steam Workshop called dnspy not a mod. Quick Google search revealed: https://github.com/0xd4d/dnSpy Link to comment Share on other sites More sharing options...
agassijeremy19 Posted August 12, 2019 Share Posted August 12, 2019 WARNING! BACKUP YOUR Assembly-CSharp.dll file in you ONI Directories/OxygenNotIncluded_Data/Managed BEFORE DOING STEPS THAT I SHOWN. 1. download and install dnspy 6.0.5 2. open dnspy and click file on the top left corner and then press open 3. it will open a new window, go to your ONI directories/OxygenNotIncluded_Data/Managed 4. just CTRL+A and press open 5. click view on top left and select assembly explorer 6. there will be Assembly-CSharp (0.0.0.0) click it and scroll down until you found WireHighWattageConfig 7. click it and you will see the code like in my screenshot 8. you can see the BuildLocationRule.NotInTiles 9. to make the heavy watt wire can go through tiles, click edit on the top left and select Edit Class (C#) 10. Erase the NotInTiles and change to Anywhere. watch out for capitalization. press compile on the bottom right 11. click file on the top and select Save Module, don't change anything just click ok WARNING! BACKUP YOUR Assembly-CSharp.dll file in you ONI Directories/OxygenNotIncluded_Data/Managed BEFORE DOING STEPS THAT I SHOWN. 12. open your ONI to see if the edit work Sorry for the bad english. english is not my first language. hope this can help you if you do it right, it will look like this left : heavy conductive wire right: heavy watt wire Link to comment Share on other sites More sharing options...
Candide Posted August 15, 2019 Share Posted August 15, 2019 HeavyWattWire.dll using Harmony; [HarmonyPatch(typeof(WireHighWattageConfig), "CreateBuildingDef", new Type[] { })] internal class WireHighWattageConfig_CreateBuildingDef { private static void Postfix(BuildingDef __result) { __result.BuildLocationRule = BuildLocationRule.Anywhere; } } [HarmonyPatch(typeof(WireRefinedHighWattageConfig), "CreateBuildingDef", new Type[] { })] internal class WireRefinedHighWattageConfig_CreateBuildingDef { private static void Postfix(BuildingDef __result) { __result.BuildLocationRule = BuildLocationRule.Anywhere; __result.BaseDecor = -5; __result.BaseDecorRadius = 2; } } Here, like this I will add this to my mod with the next update (Customize Buildings) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.