Dependency Bootstrapper

Plugins Dependency Bootstrapper

TBD

Well-known member
Messages
326
Reactions
463
Points
63
Patreon
tbdvam
TBD submitted a new resource:

Dependency Bootstrapper - automate installation of scene dependencies

Bootstrap your scenes' dependencies
Intended for scene creators, this plugin will supercharge dependency installation for users when creators include it with their scenes.
That doesn't mean it's not useful to users for scenes that weren't build with it in mind.

What is it and how does it work?
The plugin comes with a proxy scene, which downloads missing dependencies and redirects to the target scene once the download completes.
All the end user needs to do is...

Read more about this resource...
 
I must be missing something. What's the benefit here as opposed to using "Scan Hub For Missing Referenced Packages" to acquire all the referenced packages for all local resources?

I used to use the Package Manager, which is really slow to open and then also to Scan Hub For Missing Packages. Once I discovered the HUB has a similar scanning feature that is way faster, then that seems like a very efficient process. I simply download all the new stuff I want each day after starting up VAM, then run that scan from the HUB UI once, hit the button to download all, and every dependency that's available on the HUB is quickly downloaded.

It seems like perhaps a unique aspect here is the ability for a creator to set the "required" dependencies. I'm still not seeing much of a net win there though, as missing dependencies will still clutter up the error window and such. So, I really must still be failing to grasp something here...
 
As long as you're ok with downloading each and every dependency, the native "scan for missing" feature is totally sufficient. However, if you want to exclude some, there's no way to do that.

For example, you might want to keep only the latest versions of resources and delete the old ones. There might also be some you don't want to download altogether. Personally, there are many clothing items, plugins and assets, which I don't use. My AddonPackages would probably triple in size if I downloaded all of them.

You're right that you'll have to live with the error messages of missing dependencies. I don't think that's a big issue, though. In the package manager, you can disable error messages for individual vars if you want to.
I haven't looked at whether it's feasible to do the same programmatically, yet. It might be.
 
This is a great idea for usability, putting it upfront when loading a scene if a user is missing something.

But..
Is this, or can this be made smarter in the sense of "chained dependencies"?
Too often i find scenes with massive chained together downloading of dependencies, when it turns out it just needed a model of a candle 6 downloads in...
 
This is a great idea for usability, putting it upfront when loading a scene if a user is missing something.

But..
Is this, or can this be made smarter in the sense of "chained dependencies"?
Too often i find scenes with massive chained together downloading of dependencies, when it turns out it just needed a model of a candle 6 downloads in...
To be blunt, that's really the scene authors' responsibility. The Dependency Bootstrapper can be configured in a way to only require the candle in your example and make everything else optional. However, this doesn't alleviate the fact that the package's dependencies aren't set up correctly.

I plan on adding features to aid with var packaging. As a start, I could show some info on where and why a given dependency is being used in a scene.
 
To be blunt, that's really the scene authors' responsibility. The Dependency Bootstrapper can be configured in a way to only require the candle in your example and make everything else optional. However, this doesn't alleviate the fact that the package's dependencies aren't set up correctly.

I plan on adding features to aid with var packaging. As a start, I could show some info on where and why a given dependency is being used in a scene.
Oh no I agree, tho i will also note that the games default way of doing it is... sub par from what little i know of it.
I have attempted, on occasion to "drill into" the meta files to fix things. Not something that goes well all that often.

BUT i think the dependencies are listen properly inside the meta.inf file.
As in, the dependency chain is listed inside the meta.json, each level indented.
What i suspect is, if if was "read backwards" and we tried to pull from the bottom first we might be able to "skip" the chains in some cases.

For example, instead of:
(Need Z) W has X has Y has Z W -> X -> Y -> Z
Check from the "bottom" of the chain to see if Z is available independently, if not take a step up each time.

I'm no expert and may be talking out my ass. Would this not be possible?
 
Oh no I agree, tho i will also note that the games default way of doing it is... sub par from what little i know of it.
I have attempted, on occasion to "drill into" the meta files to fix things. Not something that goes well all that often.

BUT i think the dependencies are listen properly inside the meta.inf file.
As in, the dependency chain is listed inside the meta.json, each level indented.
What i suspect is, if if was "read backwards" and we tried to pull from the bottom first we might be able to "skip" the chains in some cases.

For example, instead of:
(Need Z) W has X has Y has Z W -> X -> Y -> Z
Check from the "bottom" of the chain to see if Z is available independently, if not take a step up each time.

I'm no expert and may be talking out my ass. Would this not be possible?
The problem is what's referenced in the scene json and/or any presets included in the var. The meta file just lists everything and shouldn't be tempered with.
Most commonly, large dependency trees happen if scene authors reference other scenes instead of e.g. assets or use appearances, which have dependencies themselves. References to other scenes should be avoided at all costs.
 
The problem is what's referenced in the scene json and/or any presets included in the var. The meta file just lists everything and shouldn't be tempered with.
Most commonly, large dependency trees happen if scene authors reference other scenes instead of e.g. assets or use appearances, which have dependencies themselves. References to other scenes should be avoided at all costs.
Yeah its an understandably annoying and understandable issue that not really fixable outside of the scene creator.

Whats the potential of limitimg depedancies in a more logical way? like... how to explain...

Often when a scene needs a dependency[1] it only needs a small part of that dependency[1], but often none of dependancy[1] own dependency[2]
Does that make sense?
Would there be a way to make the game ignore the missing, not needed depenancies? like stop the log spamming for 1.
 
Back
Top Bottom