• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

What can depend on vars?

Pharanesch

Member
Joined
Dec 31, 2021
Messages
32
Reactions
40
To describe my question a bit more, I basically want find out anything that need some specific var to be present in the "AddonPackages" folder. Like, one var can depend on another, a preset in the custom folder can depend on a var. But are there more places?
And what are the easiest way of finding the dependencies? For var files, I can just look at dependency in meta.json. For presets, I currently think you have to just search through the file for any references to vars.
 
Any file storing an information can depend on a var. Anything: all presets, scenes, subscenes... everything : )

There is no way to find dependencies for "flat files" in VAM.
 
I'll try to figure out the different cases then. So far, a regex like r'"([^"]+):/[^"]*"' seems to find every var name in .vap files.
Will everything be placed in the custom folder as default? Presets, subscenes and the like?
I can see the Saves\scene folder contains .json, but those seem to fall under the same format as the .vap files.
 
You can simply do a "search in files" with notepad++ with .[0-9]+:/

This is how var path are made :
"assetUrl" : "hazmhox.thechristmasroom.1:/...."

So you just need to catch the ".1:/"
 
Yup, exactly what I was thinking. Though I still need the capture group of the regex for my script.
 
Back
Top Bottom