Jump to content

Modding with SDX on already Patched Assembly


vitaminded

Recommended Posts

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

Link to comment
Share on other sites

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

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

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

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

wow.jpg.1f021d0fbb2bf471125862a16df1f1c8.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.thumb.jpg.1358ad1cd83f8a561906a6bcf02f156b.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.thumb.jpg.e533cf4e3985da1b13fc70f7629f0b61.jpg

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...