ArchiveXL: Resource linking

Summary

Published: May 18 2024 by manavortex Last documented update: May 18 2024 by manavortex

Starting with version 1.14, ArchiveXL allows you to create resource symlinks. This guide will teach you how to avoid duplicate meshes for dynamic substitution that way.

If you want to avoid duplicate material definitions, check ArchiveXL: Resource patching.

Why do I need this?

While ArchiveXL: body mods and refits has solved one problem, it introduced a new one. If you want to use the preferred approach of mesh path substitution, then you'll end up with a million duplicate files.

While ArchiveXL: Resource patching will let you keep your materials in one spot, why would the chest size be relevant for a pair of socks?

Rhetorical question, it's not. But body types don't care.

This is where linking comes in.

Linking resources

Like most other things, you do this by adding a block to your .xl file. The example below will re-use the item for rb (Hyst's realistic butt) for both ebbrb and ebbprb (boobs in various states of push-uppery):

resource:
  link:
    tutorial\archive_xl\my_item\l1_pwa_rb.mesh:
     - tutorial\archive_xl\my_item\l1_pwa_ebbprb.mesh
     - tutorial\archive_xl\my_item\l1_pwa_ebbrb.mesh

And just like that, we have one mesh instead of three.

Now we can do away with the extra components and simply use body mod substitution — and anything duplicate can be linked.

You can now also give your .mesh files passive aggressive filenames and then use substitution to hook them up to the body mods. The possibilities are endless!

Last updated