• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Modding with SDX on already Patched Assembly

vitaminded

New member
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 :p

If there is another way to add items please leave a reply

 
As far as I know you need to patch a vanilla Assembly-CSharp.dll whenever you want to add custom SDX code within it.

 
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?

 
Try this for items.xml.

Code:
<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.

 
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 ?

 
Yep, you got it :)

You also need to add a line to items.xml.

Code:
<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.

Code:
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. :)

 
ok so this mod has some water barrels where you can store water

wow.jpg

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 :p here's an example

aaaaaaaaa.jpg

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 :p

i think that's it if it's too much i understand XD

sadadada.jpg

 
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...

Code:
<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.

Code:
<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. ;)

 
Last edited by a moderator:
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 :D i also noticed you made a mod yourself, will download it and give it a shot :D

 
Back
Top