vitaminded Posted July 20, 2018 Share Posted July 20, 2018 I am playing WotW and i wanted to add some new items but there's an error in SDX ERROR: This Assembly-CSharp.dll file has already been patched by SDX so can not be used as a backup. Reset your game files and try again. ERROR: Task Backup game files failed I saw in a tutorial video that you have to do it on a clean/new Assembly file This is just a heads up for those playing mods and want to add new items If there is another way to add items please leave a reply Link to comment Share on other sites More sharing options...
Subquake Posted July 20, 2018 Share Posted July 20, 2018 As far as I know you need to patch a vanilla Assembly-CSharp.dll whenever you want to add custom SDX code within it. Link to comment Share on other sites More sharing options...
KhaineGB Posted July 20, 2018 Share Posted July 20, 2018 Right, I noticed you said you're already playing a mod, so I'm going to assume the mod is already SDX patched. Now, in THEORY you should be able to add items easily if that is the case. Never mind, just saw it's WotW. What are you trying to add? Link to comment Share on other sites More sharing options...
vitaminded Posted July 23, 2018 Author Share Posted July 23, 2018 i want to add some mods other users made and eventually some models me and my friends make, i'm trying to add a crowbar mod from here https://7daystodie.com/forums/showthread.php?82416-crawbar-mod&p=827715#post827715 xyth said that i should add it manually i'll give it a go Link to comment Share on other sites More sharing options...
KhaineGB Posted July 23, 2018 Share Posted July 23, 2018 Try this for items.xml. <item id="3000" name="Crowbar"> <property name="Meshfile" value="#Crowbar?Crowbar" /> <property name="Material" value="metal" /> <property name="RepairTools" value="forgedSteel" /> <property name="HoldType" value="29" /> <property name="DegradationBreaksAfter" value="false" /> <property name="SoundJammed" value="ItemNeedsRepair" /> <property name="SoundDestroy" value="metaldestroy1" /> <property name="FuelValue" value="30" /> <property name="EconomicValue" value="500" /> <property class="Action0"> <!-- AttackAction --> <property name="Class" value="Melee"/> <property name="Delay" value="1.1"/> <property name="Range" value="2"/> <property name="Block_range" value="4"/> <property name="Sphere" value="0.1"/> <property name="Sound_start" value="swoosh"/> <property name="Stamina_usage" value="15"/> <property name="DamageBonus.boulder" value="2500"/> <property name="ActionExp" value="4"/> <property name="ToolCategory.Disassemble" value="1" param1="2" /> <property name="Sound_harvesting" value="wrench_harvest" param1="metal" /> <property name="Particle_harvesting" value="true" param1="metal" /> <property name="ToolCategory.Butcher" value="0" param1="10"/> </property> <property name="Group" value="Tools/Traps" /> <property class="Attributes"> <property name="EntityDamage" value="6,20" /> <property name="BlockDamage" value="1,1.1" /> <property name="DegradationMax" value="500,1400" /> <property name="DegradationRate" value="1,1" /> <property name="DismembermentBaseChance" value="-0.1,0" /> </property> <property name="ActionSkillGroup" value="Mining Tools" /> <property name="CraftingSkillGroup" value="craftSkillTools" /> <property name="PickupJournalEntry" value="miningTip" /> <property name="RepairExpMultiplier" value="5.5" /> </item> Then just put the crowbar.unity3d file in Mods/SDX/Resources. Link to comment Share on other sites More sharing options...
vitaminded Posted July 23, 2018 Author Share Posted July 23, 2018 wow it works perfectly, now the description is empty im guessing that in order to fill it i need to put some text in the localisation txt right ? Link to comment Share on other sites More sharing options...
KhaineGB Posted July 23, 2018 Share Posted July 23, 2018 Yep, you got it You also need to add a line to items.xml. <property name="DescriptionKey" value="crowbarDesc"/> That has to go under the crowbar entry, but you can put it anywhere. Then edit localization.txt and add something like this. Crowbar,items,Tool,KgNone,Crowbar,,, crowbarDesc,items,Tool,KgNone,"This is a Crowbar.",,,, Once that's all working, you can then edit the description however you like. Link to comment Share on other sites More sharing options...
vitaminded Posted July 23, 2018 Author Share Posted July 23, 2018 thank you it all works fine now , i have a couple more questions about modding do you have time ? Link to comment Share on other sites More sharing options...
KhaineGB Posted July 23, 2018 Share Posted July 23, 2018 Sure. I'm around pretty much all day Link to comment Share on other sites More sharing options...
vitaminded Posted July 23, 2018 Author Share Posted July 23, 2018 ok so this mod has some water barrels where you can store water you can equip them like a water bucket, go to a water source and fill them with water then you can place them like a block but only horizontally, you can then fill the empty jars with murky water from them and you can only fill them from water sources, i was thinking if there is a way to edit the xml and make it so i can also place them vertically and have the option to fill them with fresh water from a jar and maybe use the same action as drinking water when i'm bear handed i noticed all this time i'm playing that the wandering horde spawns and follows a line directly towards the player i want to change that and make it spawn a bit further and walk next to the player i don't know if this is possible though here's an example and btw is there a thread here that explains with detail what each line in the xml does ? i know there is a txt that explains some stuff but i wouldnt find what holdtype does if i didnt search the forums i think that's it if it's too much i understand XD Link to comment Share on other sites More sharing options...
KhaineGB Posted July 23, 2018 Share Posted July 23, 2018 Alright, I'll tackle the easy one first. Wandering Hordes - No. It's hard coded to spawn and walk towards the player. If you check your output_log, you'll see a message like "Spawning wandering horde from gamestage X and moving towards the player." Water Barrel - Maybe. Find this... <block id="455" name="waterBarrelEmpty"> <property name="CustomIcon" value="waterBarrelEmptyBucket"/> <property name="Extends" value="corrugatedMetalNoUpgradeMaster"/> <property name="Material" value="Mmetal_weak"/> <property name="Shape" value="New"/> <property name="Model" value="pipe_straight"/> <property name="Texture" value="537"/> <property name="RandomTintColor1" value="0,0,0"/> <property name="IsTerrainDecoration" value="true"/> <property name="HandleFace" value="South"/> <property name="ImposterDontBlock" value="true"/> <drop event="Destroy" name="waterEmptyBarrel" count="1"/> <property name="CanPickup" value="true" param1="waterEmptyBarrel"/> <property name="Group" value="Resources"/> <property name="EconomicValue" value="150"/> </block> Try adding this to it. <property name="OnlySimpleRotations" value="false"/> You can't fill them with water from a jar, unfortunately. You SHOULD be able to make it so you can drink from it directly but I will have to double check how to do that. As for XML tutorials? Nope! I had to poke it, see how I broke it and learn the hard way. Link to comment Share on other sites More sharing options...
vitaminded Posted July 23, 2018 Author Share Posted July 23, 2018 alright i'll try it out later see if it works :DDD Link to comment Share on other sites More sharing options...
vitaminded Posted July 24, 2018 Author Share Posted July 24, 2018 hey im back it worked !!! the barrels rotate now, crazy help man thank you as for drinking straight from them it's ok i don't need it the water it stores is murky it will result in dysentery if i drink straight from it, anyways now that this is done i can finally focus on adding more items to my game i also noticed you made a mod yourself, will download it and give it a shot Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.