SylenThunder Posted November 30, 2018 Share Posted November 30, 2018 This is a working oven for players to craft. It's an added block, and does not replace any POI ovens. Updated: Change in b233 to blocks changed fridge ID. [ATTACH]26432[/ATTACH]Working Oven and Sinks.zip Link to comment Share on other sites More sharing options...
Jude Posted November 30, 2018 Share Posted November 30, 2018 how bout a food spoilage mod?! /nudge nudge =) Link to comment Share on other sites More sharing options...
DukeW74 Posted November 30, 2018 Share Posted November 30, 2018 Untested but this should get you going. <property class="Workstation"> <property name="Modules" value="tools,output,fuel,input"/> <property name="Collide" value="melee,bullet,arrow,rocket"/> <property name="CraftingAreaRecipes" value="PlayerOven,campfire"/> <!-- ADD THIS LINE --> </property> Link to comment Share on other sites More sharing options...
SylenThunder Posted November 30, 2018 Author Share Posted November 30, 2018 Untested but this should get you going. <property class="Workstation"> <property name="Modules" value="tools,output,fuel,input"/> <property name="Collide" value="melee,bullet,arrow,rocket"/> <property name="CraftingAreaRecipes" value="PlayerOven,campfire"/> <!-- ADD THIS LINE --> </property> Yep, that was it. I knew it had to be something simple I was overlooking, but after a long day at work I just couldn't think anymore. Download updated in OP. Link to comment Share on other sites More sharing options...
Engendro Posted November 30, 2018 Share Posted November 30, 2018 Yep, that was it. I knew it had to be something simple I was overlooking, but after a long day at work I just couldn't think anymore. Download updated in OP. great now I just need the sink Link to comment Share on other sites More sharing options...
FastBurst Posted November 30, 2018 Share Posted November 30, 2018 great now I just need the sink Working Sinks, Faucets and Fridge for water, Can add more, but I did these on mine and tested with the Fridge for example and Sinks, right click with an empty bottle fills with Murky Water, It can be done to Empty Cans I just didn't code that part yet Just add this to your items.xml modlet <!-- Water from sinks, fridge, faucets --> <append xpath="/items/item[@name='drinkJarEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntCabinetOldSink" /> <property name="Focused_blockname_7" value="cntGraniteSink" /> <property name="Focused_blockname_8" value="utilitySink" /> <property name="Focused_blockname_9" value="wallHungSink" /> <property name="Focused_blockname_10" value="cntFridgeTop" /> <property name="Focused_blockname_11" value="faucet02" /> <property name="Focused_blockname_12" value="faucet04" /> </append> Link to comment Share on other sites More sharing options...
FastBurst Posted November 30, 2018 Share Posted November 30, 2018 Here is the Empty Can one as well <append xpath="/items/item[@name='drinkCanEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntCabinetOldSink" /> <property name="Focused_blockname_7" value="cntGraniteSink" /> <property name="Focused_blockname_8" value="utilitySink" /> <property name="Focused_blockname_9" value="wallHungSink" /> <property name="Focused_blockname_10" value="cntFridgeTop" /> <property name="Focused_blockname_11" value="faucet02" /> <property name="Focused_blockname_12" value="faucet04" /> </append> Link to comment Share on other sites More sharing options...
Engendro Posted November 30, 2018 Share Posted November 30, 2018 Working Sinks, Faucets and Fridge for water, Can add more, but I did these on mine and tested with the Fridge for example and Sinks, right click with an empty bottle fills with Murky Water, It can be done to Empty Cans I just didn't code that part yet Just add this to your items.xml modlet <!-- Water from sinks, fridge, faucets --> <append xpath="/items/item[@name='drinkJarEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntCabinetOldSink" /> <property name="Focused_blockname_7" value="cntGraniteSink" /> <property name="Focused_blockname_8" value="utilitySink" /> <property name="Focused_blockname_9" value="wallHungSink" /> <property name="Focused_blockname_10" value="cntFridgeTop" /> <property name="Focused_blockname_11" value="faucet02" /> <property name="Focused_blockname_12" value="faucet04" /> </append> Here is the Empty Can one as well <append xpath="/items/item[@name='drinkCanEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntCabinetOldSink" /> <property name="Focused_blockname_7" value="cntGraniteSink" /> <property name="Focused_blockname_8" value="utilitySink" /> <property name="Focused_blockname_9" value="wallHungSink" /> <property name="Focused_blockname_10" value="cntFridgeTop" /> <property name="Focused_blockname_11" value="faucet02" /> <property name="Focused_blockname_12" value="faucet04" /> </append> Great job, I love you Link to comment Share on other sites More sharing options...
SylenThunder Posted November 30, 2018 Author Share Posted November 30, 2018 Updated modlet to include the sinks. Link to comment Share on other sites More sharing options...
Engendro Posted November 30, 2018 Share Posted November 30, 2018 Updated modlet to include the sinks. console error! 2018-11-30T16:00:21 108.977 ERR Failed loading and parsing XML (recipes.xml): 2018-11-30T16:00:21 108.977 EXC a name did not start with a legal character 45 (-) Line 10, position 5. XmlException: a name did not start with a legal character 45 (-) Line 10, position 5. at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x00000] in <filename unknown>:0 at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000] in <filename unknown>:0 at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0 at XmlFile.toXml (System.String _data, System.String _filename) [0x00000] in <filename unknown>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) Logger:masterLogException(Exception) Logger:Exception(Exception) Log:Exception(Exception) XmlFile:toXml(String, String) XmlFile:.ctor(String, String, String) XmlPatcher:LoadAndPatchConfig(String) <loadSingleXml>c__Iterator1:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (Filename: Line: -1) 2018-11-30T16:00:21 108.978 ERR XML loader: Patching 'recipes.xml' from mod 'Working Ovens' failed 2018-11-30T16:00:21 108.978 EXC Object reference not set to an instance of an object NullReferenceException: Object reference not set to an instance of an object at XmlPatcher.PatchXml (.XmlFile _xmlFile, .XmlFile _patchXml, System.String _patchName) [0x00000] in <filename unknown>:0 at XmlPatcher.LoadAndPatchConfig (System.String _configName) [0x00000] in <filename unknown>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) Logger:masterLogException(Exception) Logger:Exception(Exception) Log:Exception(Exception) XmlPatcher:LoadAndPatchConfig(String) <loadSingleXml>c__Iterator1:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (Filename: Line: -1) Link to comment Share on other sites More sharing options...
SylenThunder Posted November 30, 2018 Author Share Posted November 30, 2018 console error! 2018-11-30T16:00:21 108.977 ERR Failed loading and parsing XML (recipes.xml): 2018-11-30T16:00:21 108.977 EXC a name did not start with a legal character 45 (-) Line 10, position 5. XmlException: a name did not start with a legal character 45 (-) Line 10, position 5. at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x00000] in <filename unknown>:0 at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000] in <filename unknown>:0 at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0 at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0 at XmlFile.toXml (System.String _data, System.String _filename) [0x00000] in <filename unknown>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) Logger:masterLogException(Exception) Logger:Exception(Exception) Log:Exception(Exception) XmlFile:toXml(String, String) XmlFile:.ctor(String, String, String) XmlPatcher:LoadAndPatchConfig(String) <loadSingleXml>c__Iterator1:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (Filename: Line: -1) 2018-11-30T16:00:21 108.978 ERR XML loader: Patching 'recipes.xml' from mod 'Working Ovens' failed 2018-11-30T16:00:21 108.978 EXC Object reference not set to an instance of an object NullReferenceException: Object reference not set to an instance of an object at XmlPatcher.PatchXml (.XmlFile _xmlFile, .XmlFile _patchXml, System.String _patchName) [0x00000] in <filename unknown>:0 at XmlPatcher.LoadAndPatchConfig (System.String _configName) [0x00000] in <filename unknown>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) Logger:masterLogException(Exception) Logger:Exception(Exception) Log:Exception(Exception) XmlPatcher:LoadAndPatchConfig(String) <loadSingleXml>c__Iterator1:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (Filename: Line: -1) Would just figure I pulled the wrong build when I did this at lunch. Uploaded new file. It was missing the ! to comment out that line. I just removed it. (Had 6 items in craft, but only 5 show in the default client.) Link to comment Share on other sites More sharing options...
Cashean Posted December 1, 2018 Share Posted December 1, 2018 How do you install this mod? Link to comment Share on other sites More sharing options...
Baobab Posted December 1, 2018 Share Posted December 1, 2018 Full List if you want implement it !! <configs> <append xpath="/items/item[@name='drinkCanEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntGraniteSink"/> <property name="Focused_blockname_7" value="faucet02"/> <property name="Focused_blockname_8" value="faucet04"/> <property name="Focused_blockname_9" value="faucetBrass02"/> <property name="Focused_blockname_10" value="faucetBrass04"/> <property name="Focused_blockname_11" value="cntToilet01"/> <property name="Focused_blockname_12" value="fountain"/> <property name="Focused_blockname_13" value="cntCabinetOldSink"/> <property name="Focused_blockname_14" value="utilitySink" /> <property name="Focused_blockname_15" value="wallHungSink" /> <property name="Focused_blockname_16" value="cntFridgeTop" /> </append> <append xpath="/items/item[@name='drinkJarEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntGraniteSink"/> <property name="Focused_blockname_7" value="faucet02"/> <property name="Focused_blockname_8" value="faucet04"/> <property name="Focused_blockname_9" value="faucetBrass02"/> <property name="Focused_blockname_10" value="faucetBrass04"/> <property name="Focused_blockname_11" value="cntToilet01"/> <property name="Focused_blockname_12" value="fountain"/> <property name="Focused_blockname_13" value="cntCabinetOldSink"/> <property name="Focused_blockname_14" value="utilitySink" /> <property name="Focused_blockname_15" value="wallHungSink" /> <property name="Focused_blockname_16" value="cntFridgeTop" /> </append> <append xpath="/items/item[@name='bucketEmpty']/property[@class='Action1']"> <property name="Focused_blockname_6" value="cntGraniteSink"/> <!-- <property name="Focused_blockname_7" value="faucet02"/> <property name="Focused_blockname_8" value="faucet04"/> <property name="Focused_blockname_9" value="faucetBrass02"/> <property name="Focused_blockname_10" value="faucetBrass04"/> --> <property name="Focused_blockname_11" value="cntToilet01"/> <property name="Focused_blockname_12" value="fountain"/> <property name="Focused_blockname_13" value="cntCabinetOldSink"/> <property name="Focused_blockname_14" value="utilitySink" /> <property name="Focused_blockname_15" value="wallHungSink" /> <!-- <property name="Focused_blockname_16" value="cntFridgeTop" /> --> </append> </configs> Link to comment Share on other sites More sharing options...
Cashean Posted December 14, 2018 Share Posted December 14, 2018 How do you install this? Link to comment Share on other sites More sharing options...
Gamida Posted December 16, 2018 Share Posted December 16, 2018 How do you install this? What I did was make a folder called Working Oven and Sinks. Then I unzipped the files into that folder. I then put that folder in a Mods Folder I had made in my 7 Days To Die root directory. So in your game folder where the 7DayToDie.exe file is you should have a Mods folder. In the Mods folder there should be a folder called Working Oven and Sinks. In the Working Oven and Sinks folder there should be a folder called Config and a file called ModInfo. In folder called Config there should be a folder called XUi and 3 files called blocks, items and recipes. In XUi folder there should be a file called xui. That being said, SyleThunder, I have run into one little problem. When I open a campfire or an oven I get double items in them. Not sure if yours and another mod has conflicts or not. If I remove your mod then the player oven disappears (as it should I suppose) and the campfire has the correct number of items. Could it be a problem with the xui file? Link to comment Share on other sites More sharing options...
Quasimiyao Posted December 16, 2018 Share Posted December 16, 2018 I have the same here, double up of all the campfire recipes. I just looked at the xml's now, and I think its because the recipe.xml uses the append command and lists all the campfire recipes. Doesnt look like they are connected to the oven, instead the oven is classed a campfire. Sorry for poor explanation, I havent learned the xpath system yet.. Link to comment Share on other sites More sharing options...
Quasimiyao Posted December 16, 2018 Share Posted December 16, 2018 Fixed the duplicate recipes [ATTACH]26338[/ATTACH]Working Oven and Sinks.zip Link to comment Share on other sites More sharing options...
stallionsden Posted December 16, 2018 Share Posted December 16, 2018 What I did was make a folder called Working Oven and Sinks. Then I unzipped the files into that folder. I then put that folder in a Mods Folder I had made in my 7 Days To Die root directory. So in your game folder where the 7DayToDie.exe file is you should have a Mods folder. In the Mods folder there should be a folder called Working Oven and Sinks. In the Working Oven and Sinks folder there should be a folder called Config and a file called ModInfo. In folder called Config there should be a folder called XUi and 3 files called blocks, items and recipes. In XUi folder there should be a file called xui. That being said, SyleThunder, I have run into one little problem. When I open a campfire or an oven I get double items in them. Not sure if yours and another mod has conflicts or not. If I remove your mod then the player oven disappears (as it should I suppose) and the campfire has the correct number of items. Could it be a problem with the xui file? You shouldn't require to add any recipe that the camp fire has already as your oven will look for the recipes attached to camp fire. Adding them to the oven will give duplicates Link to comment Share on other sites More sharing options...
Gamida Posted December 16, 2018 Share Posted December 16, 2018 Thank you Link to comment Share on other sites More sharing options...
Quasimiyao Posted December 16, 2018 Share Posted December 16, 2018 You shouldn't require to add any recipe that the camp fire has already as your oven will look for the recipes attached to camp fire. Adding them to the oven will give duplicates Thats what I found out by loking at this mod. I removed the recipes for everything but the oven itself from the recipes.xml, and that worked I would love to make the oven run on electricity tho, but have no idea where to start. I'm guessing properties like RunTimeSwitch and RequiredPower is needed, but beyond that... Might be time to start going through all the tutorials, and also trying to learn the basics of xml Link to comment Share on other sites More sharing options...
SylenThunder Posted December 16, 2018 Author Share Posted December 16, 2018 Fnagit! I thought I uploaded the fixed version on the doubling recipe. Editing OP now. Link to comment Share on other sites More sharing options...
SMiThaYe Posted December 16, 2018 Share Posted December 16, 2018 Fnagit! I thought I uploaded the fixed version on the doubling recipe. Editing OP now. Sorry for nitpicking don't intend to... ZIP doesn't have a containing folder for the modlet to simply drop into Mods folder with the other modlets: Working Oven and Sinks.zip > Config (folder), ModInfo.xml Link to comment Share on other sites More sharing options...
Jude Posted December 17, 2018 Share Posted December 17, 2018 does this mod allow me to keep the current campfire? is it possible to only have the oven create certain recipes? is it possible to use this mod and kubikus' grill mod? what im looking for is the following a campfire with less recipes to cook on it even with the pot and grill a bbq(kubikus' grill mod) to only cook certain recipes there and this oven mod as for the sink... is it a craftable item or just all sinks in the world now provides water? Link to comment Share on other sites More sharing options...
Quasimiyao Posted December 17, 2018 Share Posted December 17, 2018 Yes you will also have the campfire. Should be able to use it with kubikus' grill, but it uses the same list of craftables as the campfire. So when used together, the same list of items kubikus removes from campfire to only be available in grill will also be removed from the oven. The sink is not craftable, but you can fill your waterjars from the sinks already in the world. Link to comment Share on other sites More sharing options...
Jude Posted December 17, 2018 Share Posted December 17, 2018 kubs grill removes the original grill from the game =( not sure how to just have it as an addition. I can only creative mode summon in the oven (cant craft it) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.