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

nullreference with changed RepairTools value on battery

Drconfused

New member
Testing out my mod that adds in the small battery to be a power source in my mini battery bank, I had changed this property

Code:
<property name="RepairTools" value="resourceRepairKit"/>
to

Code:
<property name="RepairTools" value="resourceScrapLead"/>
but found that when clicking on the dead battery in my inventory I was given a null reference error in 2 different games. I figured it must have been this material change because it seemed the only odd thing in my changes, by changing it either to resourceScrapIron or back to the resourceRepairKit it was fine and the null reference did not happen.

i feel the repair kit is a bit expensive to use as a repair method for this battery, and changing it to the scrap iron costs 50 of the suckers, again well out of the leauge of what it should cost to recharge AA batteries. IS there anyway that I can change the RepairTools value to something not normally used and if not is it possible to change how many iron it costs to repair?

 
Try adding this instead of that

Code:
   <property class="RepairItems">
       <property name="resourceForgedIron" value="10"/>
   </property>
 
Back
Top