BlackRabbitMsk Posted September 11, 2021 Share Posted September 11, 2021 Good day to all! Tell me where you can configure the resource that is consumed when repairing vehicles? Link to comment Share on other sites More sharing options...
khzmusik Posted September 12, 2021 Share Posted September 12, 2021 That is an excellent question. Usually it's determined in items.xml by the item's "RepairTools" property. That property is inherited if you use the "Extends" property. But that does not seem to be how the vehicles work. They all extend "vehicleMinibikePlaceable", which itself extends nothing, and it does not have a "RepairTools" property. So there are a number of possibilities for where it gets the repair item: If there is no "RepairTools" property, the game defaults to a repair kit. They might use the "RepairTools" value of the engine (the "smallEngine" item). This wouldn't make sense for the bicycle, but it does for the minibike, and the bicycle extends that. Their parts extend from "partsMaster" and all those are also repaired with repair kits, so maybe they use the value of their parts? Those are in order of most to least likely, in my opinion. You could test this by adding a "RepairTools" property the the minibike item, and set it to be a small stone (or whatever). Then damage a vehicle a little bit, try to repair it, and see what happens. Link to comment Share on other sites More sharing options...
BlackRabbitMsk Posted September 12, 2021 Author Share Posted September 12, 2021 I tried the following options: <set xpath="/items/item[@name='smallEngine']/property[@name='RepairTools']/@value">resourceVehiclesRepairKit</set> <set xpath="/items/item[@name='partsMaster']/property[@name='RepairTools']/@value">resourceVehiclesRepairKit</set> <insertAfter xpath="/items/item[@name='vehicleMinibikePlaceable']/property[@name='EconomicValue']"> <property name="RepairTools" value="resourceVehiclesRepairKit"/> </insertAfter> Uses the regular repair kit anyway ( Link to comment Share on other sites More sharing options...
khzmusik Posted September 12, 2021 Share Posted September 12, 2021 (edited) Have you tried looking at this modlet? It's doing something similar: https://community.7daystodie.com/topic/18680-proper-repair-kits EDIT: Though, it looks like they couldn't figure out vehicles either. Edited September 12, 2021 by khzmusik (see edit history) Link to comment Share on other sites More sharing options...
BFT2020 Posted September 12, 2021 Share Posted September 12, 2021 Maybe @Gazzcan provide some insights if this is possible. I see his name quite a bit in the xml files 😁 Link to comment Share on other sites More sharing options...
bdubyah Posted September 12, 2021 Share Posted September 12, 2021 Pretty sure it's hard coded for vehicles. Only way around it with just xml is to change the repair kits for everything else. Then do whatever you need with the original kits for vehicle repair. Pretty sure there's a mod that has done this, possibly the one linked above. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now