Vehicle Upgrade Framework

2.03kb

vuf.png

Vehicle Upgrade Framework

This mod arose as a tool to allow me and other modders to create vehicle equipment that changes stuff beyond flight height.

Just include this XML in your mod and do the following:

  • all vehicles that you want to be upgradeable by equipment must extend "vufb_vehicle"
  • all equipment on them that changes what they do must extend "vufb_equip"

Then you can use the tags inside vehicle equipment:

  • <statChange id="{stat_id}" value="{delta}" /> to change the stat by delta (supports "speed", "speedY", "max_weight", "flight_height", "health", "fuel"
  • <fuelChange id="{item_id}" fuel="{amount}" /> to override default fuel recipe with this (can be multiple recipes by adding multiple tags
  • <fuelChange type="{recipe_type}" /> adds all recipes of type as fuel
  • <electric /> to change the fuel type to "Power" (hides all other fuel the vehicle might have had and only displays the "Charge from batteries" option
  • <clearFuel /> drops all fuel on equip / unequip
  • <storeFuel /> stores fuel as durability on unequip and uses durabililty as fuel on equip
  • <repaitChange id="{item.id}" value="{repair_value}" /> changes default repair for the new one (can be multiple elements to do multiple repairs)

For example

<item id="nuke_engine" type="equipment" slot="engine" equipOn="zeppelin" cost="3000" weight="100" efficiency="0.5" icon="nuke_engine.ico"
    extends="vufb_equip">
        <statChange id="max_weight" value="1000" />
        <statChange id="fuel" value="10000" />
        <statChange id="speed" value="3" />
        <statChange id="speedY" value="2" />
        <fuelChange id="uranium" fuel="2500" />
        <fuelChange id="coal" fuel="25" />
        <storeFuel />        
</item>	

For example of usage, download latest version of Zeppelin mod.


Details

RankDownloadsCreatorAddedUpdated
47 of 6716 (0 today)gASK

Releases

FilenameSizeVersionAddedOptions
vuf_1_1_0.zip2.03kb1.1.0

vuf_1_0_4.zip1.45kb1.0.4

vuf_1_0_3.zip1.45kb1.0.3

vuf_1_0_2.zip1.19kb1.0.2

vuf_1_0_1.zip1.19kb1.0.1

vuf.zip1.08kb1.0.0

Comments