PC how i change configs from mod 1 with mod 2.

how i change configs from mod 1 with mod 2.

hello guys, im trying to change configs from mod1 with mod 2.

im a crying hahahaha, someone can help me or teacher me.

 
I don't think you can do this, if its what I think you're asking.

You have a mod, whose changes you want to further change with another mod?

afaik, you can't control the order mods are loaded.  In your case, you'd be absolutely dependent on the first mod loading first, and the second loading second.

I would just edit the first mod to your liking.

 
You can change the mod load order just by renaming the individual mod folders. Just put a z at the front of the 2nd mod to have it load later (unless the 1st mod also starts with z).

 
To fully explain (not a slight against seven), the game loads the mod in numerical order first (0-9) then loads them alphabetically.  So if you were to sort your mod folder by name, the one at top would be loaded first, then the next one after that as you go down the list.  TFP released a mod with A22 to support dll mods and labeled it as 0-TFP to ensure that it loads up first (all other mods should start with 1- to be on the safe side unless the mod doesn't need or conflict with TFP's modlet).  Here is a picture example of how it works

image.png.4682aa7bb09912bfaee714e01e5863b5.png

I did a couple of small modlets to help with some UI issues on Izayo's weapon mods.  Since Izayo's mods started with A21, mine would be loaded after the original mods since mine start with BFT2020.

This explains how to setup your mods to load up correctly (and in a specific order).  Now for more on what you need to do, we don't know exactly what you are trying to do and nobody will be able to assist you.

 
So, my idea is a mod where I can change the fuelperkm costs and change the fuel storage capacity. however, the game's vehicles and vehicle mods. but all in a single change mod. So I still use them that way

for those in the base game

set xpath="/vehicles/vehicle[@name='vehicleBicycle']/property[@name='velocityMax_turbo']/@value">7, 4, 9, 4</set>

    <set xpath="/vehicles/vehicle[@name='vehicleMinibike']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.3</set>
    <set xpath="/vehicles/vehicle[@name='vehicleMinibike']/property[@class='fuelTank']/property[@name='capacity']/@value">40</set>
    
    <set xpath="/vehicles/vehicle[@name='vehicleMotorcycle']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.1</set>
    <set xpath="/vehicles/vehicle[@name='vehicleMotorcycle']/property[@class='fuelTank']/property[@name='capacity']/@value">100</set>

    <set xpath="/vehicles/vehicle[@name='vehicleTruck4x4']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.030</set>
    <set xpath="/vehicles/vehicle[@name='vehicleTruck4x4']/property[@class='fuelTank']/property[@name='capacity']/@value">200</set>

    <set xpath="/vehicles/vehicle[@name='vehicleGyrocopter']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.070</set>
    <set xpath="/vehicles/vehicle[@name='vehicleGyrocopter']/property[@class='fuelTank']/property[@name='capacity']/@value">350</set>

FOR THE MODS THAT IS WHERE MY PROBLEM IS, I CANNOT CHANGE IT. I HAVE BEEN TRYING FOR A FEW DAYS.

I TRIED THIS WAY, BUT IT WASN'T THE ONLY WAY, SO DON'T JUDGE. I JUST ASK YOU TO TELL ME THE CORRECT WAY.

<insertBefore xpath="///vehicle[@name='BRABUS6X6']">
    <set xpath="/vehicles/vehicle[@name='BRABUS6X6']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.0120</set>
    <set xpath="/vehicles/vehicle[@name='BRABUS6X6']/property[@class='fuelTank']/property[@name='capacity']/@value">230</set>
</insertBefore> 

OR

<set xpath="/vehicles/vehicle[@name='vehicleHennesseyVelociRaptoR']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.0120</set>
    <set xpath="/vehicles/vehicle[@name='vehicleHennesseyVelociRaptoR']/property[@class='fuelTank']/property[@name='capacity']/@value">50</set>

    <set xpath="/vehicles/vehicle[@name='vehicleHumvee']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.0180</set>
    <set xpath="/vehicles/vehicle[@name='vehicleHumvee']/property[@class='fuelTank']/property[@name='capacity']/@value">700</set>

    <set xpath="/vehicles/vehicle[@name='vehicleHumveeTopless']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.0150</set>
    <set xpath="/vehicles/vehicle[@name='vehicleHumveeTopless']/property[@class='fuelTank']/property[@name='capacity']/@value">500</set>

 
Last edited by a moderator:
<insertBefore xpath="///vehicle[@name='BRABUS6X6']">
    <set xpath="/vehicles/vehicle[@name='BRABUS6X6']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.0120</set>
    <set xpath="/vehicles/vehicle[@name='BRABUS6X6']/property[@class='fuelTank']/property[@name='capacity']/@value">230</set>
</insertBefore> 


When you use insertBefore (or after or append), the next lines should be how the code will be in game.  You don't use a set command. In addition, you have one extra dash

<insertBefore xpath="//vehicle[@name='BRABUS6X6']/property[@class='engine']/property[@name='foodDrain']">
<property name="fuelKmPerL" value=".0120"/>

</insertBefore> 




This would be the proper structure for an insertBefore command

However, the vehicle mod should already have these properties in the new items so you should just be able to use a set command

   <set xpath="//vehicle[@name='BRABUS6X6']/property[@class='engine']/property[@name='fuelKmPerL']/@value">.0120</set>




Use the set command first and try it.  And then report back what error messages you are getting in the console when your modlet tries to load.

 
hi bro, sorry for my delay

2024-07-22T04:49:08 58.424 WRN XML patch for "vehicles.xml" from mod "AlterCostGasWellzao" did not apply: <set xpath="//vehicles/vehicle[@name='BRABUS6X6']/property[@class='engine']/property[@name='fuelKmPerL']/@value"  (line 17 at pos 3)
2024-07-22T04:49:08 58.425 WRN XML patch for "vehicles.xml" from mod "AlterCostGasWellzao" did not apply: <set xpath="//vehicles/vehicle[@name='BRABUS6X6']/property[@class='fuelTank']/property[@name='capacity']/@value"  (line 18 at pos 3)

 
So basically the game is telling you that those lines of code in your mod did not apply.  The mod you are trying to change, what is the full name of that mod file and what is the full name of your mod file?

Initial thought is that your mod is loading first before the mod that adds this vehicle.  Your mod needs to load last since the original mod adds the vehicle to the game.  If your mod is loading first, then the vehicle doesn't exist (and you see this message).

 
Last edited by a moderator:
Back
Top