MV Aetherflow Preload Everything

Hello,

I'm hoping others have experience with this plugin by Kaliya/Liquidize. I am trying to preload a subfolder directory named 'img/SumRndmDde/tas'. Normally I can select individual items to preload when using the in-game plugin manager, however, this plugin doesn't seem to recognize any .png files sitting in the 'img/SumRndmDde/tas' subfolders.

The description of the plugin says I can use script calls to preload an image but I don't see those commands anywhere. There are a few functions mentioned that seem promising:
ImageManager/AudioManager.addContainer("containerName"): Adds a container to the specified resource cache for that type.
ImageManager/AudioManager.addContainerItem("containerName", "itemKey"): Adds an item to the container. NOTE: It only adds a key to look up the item in the cache for purging, it does not preload or load an item for you, you will need to do that prior to adding it to a container.

Anyone have any experience with this plugin and have any ideas? I'm at a loss and anything would be appreciated...

Thanks.
got a link?
The plugin page is here: https://kaliya.itch.io/preload-everything

I didn't realize the functions I posted above are the script calls, but it's still not totally clear to me how I would preload anything by using them...
I don't think those do what you think they do. They are for caching, not preloading.

As this is a paid plugin, I can't look to see what's going on under the hood. From the screenshots, the only examples are loading individual images, not entire folders. It may be that it can only handle the default img folders. Can you copy the text from the Help window in the plugin manager and paste it here? (Put it in spoiler tags)
Yes, please see below. I don't fully understand how the caching works, but I figured I could add the image from the subfolder to the cache for every battle on Turn 0. You may be right though as the plugin may only recognize the default folders.

Spoiler: Help window
---------------------------------------------------------------------------------

Introduction

---------------------------------------------------------------------------------

This plugin is designed to allieviate your "preloading" problems. Tired of not

having your sound play right away when you need it? Tired of some images not

appearing? Well look no further because those days are a thing of the past. Not

only does this plugin preload your thingys, but it also acts as a basic caching

system to help with the problem of memory being overused (if done right). It is

not a perfect solution, but it should help all games.



NOTE: THIS PLUGIN REQUIRES RPG MAKER MV V1.6.1 IF YOU ARE NOT USING V1.6.1

THIS PLUGIN WILL NOT WORK AND WILL ERROR OUT. YOU HAVE BEEN WARNED.



---------------------------------------------------------------------------------

How-to

---------------------------------------------------------------------------------

The system is fairly straightforward, it uses "containers" to preload and store

resources. These containers come in two flavors:



GLOBAL: This is a singular container, it is used to store Global, or game wide assets

these assets are usually things you always want to be loaded. They are all loaded on

game start.



MAP: These containers are what you use to preload map resources. These containers

are loaded when the map associated with them is entered. Depending on your plugin

parameters they will also be released from the cache when you enter a new map.



In order to use the containers you simply modify and add to them via plugin parameters.



---------------------------------------------------------------------------------

Caching & How It Works

---------------------------------------------------------------------------------



The caching system stores assets in memory until they are no longer needed and

are manually purged via the available functions, or by being deleted by the system

itself when a new resource is loaded and the cache is full.



The cache size is determined by two plugin parameters:



Image Cache Size: The size of the image cache in bytes.



Audio Cache Size: The size of the audio cache in bytes.



These two plugin parameters are evaluated and thus you can use math to determine

what the size rather than having to write out a large number. (e.g: 10 * 1000 * 1000 is a 10MB cache).



You can use various functions in the cache classes to "Reserve" a resource. These

"reserved" resources will not be automatically purged, so be careful!



When a resource is added to the cache, the cache is sorted by the time the resources were all

last touched and then if a resource is not reserved it is purged and will need to be reacquired

again when next used.



---------------------------------------------------------------------------------

Containers

---------------------------------------------------------------------------------

For those users who are more hands on, the caching system has a type of object

known as a "Container". Think of this as a group of objects, that can all be cached

together and then can all be purged together at the same time, for easy cleanup and

management. These are not the same as containers you setup in the plugin parameters.

These containers are only accessed and used via code.



Various function exists to help with the ease and usage of containers. They are

all well documented throughout the plugin but a brief overview of them is as follows:



ImageManager/AudioManager.addContainer("containerName"): Adds a container to the

specified resource cache for that type.



ImageManager/AudioManager.addContainerItem("containerName", "itemKey"): Adds an item

to the container. NOTE: It only adds a key to look up the item in the cache for purging,

it does not preload or load an item for you, you will need to do that prior to adding it

to a container.



ImageManager/AudioManager.releaseContainer("containerName"): Releases all objects

within the specified container from the cache.



ImageManager/AudioManager.releaseContainerItem("containerName", "itemKey"): Releases

the specified item from the specified container if it exists, freeing it from the

cache.



---------------------------------------------------------------------------------

Credits

---------------------------------------------------------------------------------

This plugin is developed and maintained by Liquidize/Kaliya.

Some code was ninja'ed with permission from Pivoo (http://pivoo.me)



---------------------------------------------------------------------------------

Changelog

---------------------------------------------------------------------------------



1.0.2:

- Fixed a bug wherein due to slight changes in handling paths, Map based container for images were not being loaded.



1.0.1:

- Fixed a bug wherein due to a slight change before release, the path for audio files

would be incorrect.



1.0.0:

- Released!
I don't see anything in there at all about preloading. Containers are not what you're looking for. And there is no indication in the comments that you can specify a folder rather than a file, or a path that is not one of the defaults.

If another forum member has this plugin they may be able to help, or you may have to look for a different plugin.

It also mentions that your MV needs to be at version 1.6.1 - this does not refer to the editor version, but to your core files, which you can see by opening the project folder, going into the js folder, and opening the rpg_core.js file in a plain text editor. The version will be shown on the top few lines.
Hello,

I'm hoping others have experience with this plugin by Kaliya/Liquidize. I am trying to preload a subfolder directory named 'img/SumRndmDde/tas'. Normally I can select individual items to preload when using the in-game plugin manager, however, this plugin doesn't seem to recognize any .png files sitting in the 'img/SumRndmDde/tas' subfolders.

The description of the plugin says I can use script calls to preload an image but I don't see those commands anywhere. There are a few functions mentioned that seem promising:
ImageManager/AudioManager.addContainer("containerName"): Adds a container to the specified resource cache for that type.
ImageManager/AudioManager.addContainerItem("containerName", "itemKey"): Adds an item to the container. NOTE: It only adds a key to look up the item in the cache for purging, it does not preload or load an item for you, you will need to do that prior to adding it to a container.

Anyone have any experience with this plugin and have any ideas? I'm at a loss and anything would be appreciated...

Thanks.
We're also using that combination of plugins in Dino Hazard.
We still use Aetherflow's plugin to cache several other things. But specifically for SRD's TAS we use Galv's cache load plugin concomitantly.

For example:
At the start of each battle we run a common event with this script:
Galv.CACHE.load('SumRndmDde/tas','Arrows');
We're also using that combination of plugins in Dino Hazard.
We still use Aetherflow's plugin to cache several other things. But specifically for SRD's TAS we use Galv's cache load plugin concomitantly.

For example:
At the start of each battle we run a common event with this script:
Galv.CACHE.load('SumRndmDde/tas','Arrows');
Thanks I'll have to check it out. I've since removed some of SRD's battle plugins that didn't work reliably, but would be cool to add them back in!

Original thread: https://forums.rpgmakerweb.com/threads/aetherflow-preload-everything.131696/