Skip to content

Loader Tags

Devyn Myers edited this page Oct 10, 2021 · 6 revisions

On-Demand Load Style (NEW!)

Load Tags

item_data

Loads small bundles containing only initial asset data (FVRObjects, ISIDs, Ammo Data, etc). Not intended for large assets (guns, items, textures)

 

item_first_late

Loads large assets, but only when the player tries to spawn the items. Loading a bundle with this tag will load any dependency item_first_late bundles in the order they appear

 

item_unordered_late

Loads large assets, but only when the player tries to spawn the items. Loading a bundle with this tag will load all dependency item_first_late bundles

 

item_last_late

Loads large assets, but only when the player tries to spawn the items. Loading a bundle with this tag will load all dependency item_first_late and item_unordered_late bundles, as well as any item_last_late bundles before it

 

Example project.yaml File

version: 1
dependencies:
  hard:
    h3vr.otherloader: 1.0.0
assets:
  runtime:
    sequential: true
    nested:
      - assets:
        - path: example_*
          plugin: h3vr.otherloader
          loader: item_data
      - assets:
        - path: late_*
          plugin: h3vr.otherloader
          loader: item_first_late

For more info on building you mod for On-Demand loading, see this wiki page!

 

 

Full Injection Load Style

Load Tags

item

Loads bundles before other tagged bundles, and will load sequentially in the order you declare them.

 

item_unordered

Loads bundles after the item bundles, and will load in parallel with other item_unordered bundles

 

item_last

Loads bundles after the item_unordered bundles, and will load sequentially in the order you declare them.

 

Example project.yaml File

version: 1
dependencies:
  hard:
    h3vr.otherloader: 1.0.0
assets:
  runtime:
    nested:
      - assets:
        - path: first_*
          plugin: h3vr.otherloader
          loader: item
      - assets:
        - path: any_*
          plugin: h3vr.otherloader
          loader: item_unordered
      - assets:
        - path: last_*
          plugin: h3vr.otherloader
          loader: item_last

 

Other Load Tags

assembly

Loads a given assembly file during the setup stage

 

Example project.yaml File with assembly loading

dependencies:
  hard:
    h3vr.otherloader: 1.0.0
assets:
  setup:
    - path: Schockhammer.dll
      plugin: h3vr.otherloader
      loader: assembly
  runtime:
    nested:
    - assets:
      - path: w2_schockhammer
        plugin: h3vr.otherloader
        loader: item