Eli Picture Sub Folder - Can show pictures inside subfolders made in the default picture folder!

1qoAhJp.png

Author: Hakuen Studio
​
This plugin will be no longer supported since the MZ has implemented this feature on the editor!
1.JPG



Spoiler: Original post
Introduction

If you use a lot of pictures in your game, you certainly thought it would be easier to organize them into subfolders within the pictures folder.
This plugin allows you to use subfolders to display your pictures.

Features

• Adds the possibility to show pictures using subfolders inside the picture folder.

How to use

It is very simple, you have three plugin commands that you have to use anywhere on the event page, but it must be BEFORE the show pictures command.
Also, don't put any name in the show picture command.

● Folder → Choose an id, folder, and filename in separate arguments.

● Folder (quick) → Same as above, but everything is inserted in a single argument:
id, folder, fileName

● Folder (batch) → Same as quick, however, you can define multiple ids and filenames.

NOTE¹: Do not use spaces in the name of files and folders.

Screenshots
Spoiler
Ucl4xBR.png

Pwd6D87.png

dL7Ndo7.png

Terms of Use

DOWNLOAD
Eli_PictureSubFolder.js
​

Update Log
Spoiler
Version 2.0.2 - 05/28/2021
- Removed "replaceAll" functions and changed them to replace using regex to remove blank spaces from folder and file names.
Version 2.0.1 - 05/27/2021
- Fixed an error that was duplicating the folder name in some cases, making the engine not find the proper path to load the pictures.
Version 2.0.0 - 12/18/2020
- Fixed the plugin commands error that was not finding the files in the subfolder.
Version 1.1.0 - 12/16/2020
- Compatibility with Eli Book 3.0.0
- Fixed a bug that did not found the subfolder on some occasions.
Version 1.0.0 - 18/11/2020
- Plugin release!
I love plug-ins that help with project organization! This is a big help, thank you!
the image says it's for MV and MZ, on site, only MZ and not MV D: but nice job.
keeps things really organized =)
*Updated the first post with some screenshots

the image says it's for MV and MZ, on site, only MZ and not MV D: but nice job.
keeps things really organized =)
Hi there!
Thanks for the heads up, I have fixed the image on the itch io page.
But it works for both MV and MZ. It was just the image that I have put it wrong xD
really... this feature (picture in subfolder) should be included in the Editor itself... why does RPG Maker did not make it this way 😀...

nice plugin btw... 😀.
really... this feature (picture in subfolder) should be included in the Editor itself... why does RPG Maker did not make it this way 😀...

nice plugin btw... 😀.
Yeah for sure. There is a lot of things the editor must-have. But.. xD

Thanks!
I've tried the MV version. Doesn't seemed to be working 🙁
I wonder, If I'm doing something wrong?
I've checked the folder and picture names a few times. "Jmemory" folder is both in pictures and img.
1617100911962.png
@KotoYama might be 1 reason, while the params target MZ and MZ eli book,
cannot say that this is exact cause, but do you have Eli.book too?
if not, you must have it in order to make it to work.
@KotoYama thanks for the report!
It seems that I updated the wrong file to itch io, but now I have put the right one.
Your plugin command was fine. It was my bad, sorry!
Please download the new one ^^
So... It's still not working for me
It completely ignores my folder and only displays the picture if it's in the "pictures folder .(
1617552100424.png

1617551997306.png

Here's my plugin command.

PicFolder 3 Jmemory J_memory2
So... It's still not working for me
It completely ignores my folder and only displays the picture if it's in the "pictures folder .(
View attachment 184981
View attachment 184980
Here's my plugin command.

PicFolder 3 Jmemory J_memory2
Your folder "Jmemory" must be inside the pictures folder. In your screenshot, it is inside the img folder. The correct path must be:

img/pictures/jmemory/j_memory1

Instead of

img/jmemory/j_memory1
It is. I just made two folders to be sure. Sorry for the wrong screenshot. Still doesn't work 🙁
I have my folders in img/pictures, but I have the same problem.
aa.png
aaaa.png

AAAAAAAAAAAAAAAAAAAAAAA.png
@Ludi_Tarantula what is your RPG maker version? if it's 1.6+ it should
work, otherwise, it probably doesn't, because it use ES6 js which is
not fully compatable with version 1.5+

otherwise, do you have Eli's Book above this plugin?
@KotoYama @Ludi_Tarantula
I'm sorry! I don't know how or why did I upload this plugin to MV version. I was taking a look at the code and I didn't understand why I did the things the way I did xD

I'm not in home right now, but I was able to made a quick fix. Please download the new version and tell me if it is working now. At least here I made the test and it's fine.

MV ONLY - Version 1.2 - 04/05/2021
- Quick Fix for the plugin work properly. Now the bitmap will be loaded properly on the Sprite_Picture update. A better fix will be made later.
@KotoYama @Ludi_Tarantula
I'm sorry! I don't know how or why did I upload this plugin to MV version. I was taking a look at the code and I didn't understand why I did the things the way I did xD

I'm not in home right now, but I was able to made a quick fix. Please download the new version and tell me if it is working now. At least here I made the test and it's fine.

MV ONLY - Version 1.2 - 04/05/2021
- Quick Fix for the plugin work properly. Now the bitmap will be loaded properly on the Sprite_Picture update. A better fix will be made later.
Thank you so much!! It works now!
-Ele, the chaotic spider
@Eliaquim
Now we're talking xD
Thank you! I finally can start organizing my files :0
Okay, I'm almost sure that it's not possible, but just in case. Could I use this plugin while showing pictures via Script Call?

Here's the code I use for custom animations.

Code:
var x = $gameVariables.value(248);
var y = $gameVariables.value(249);
var name = $gameActors.actor(5).name()+$gameVariables.value(115);
$gameScreen.showPicture(94, name, "center", x, y, 300, 300, 255, 0);
Hi there!
There is a script call that you can use:

JavaScript:
Eli.PictureSubFolder.loadFromSubFolder(folder, filename, picId)

So, you can try this, not sure if it will work:

JavaScript:
const name = $gameActors.actor(5).name()+$gameVariables.value(115);
const folderName = The name of your folder
Eli.PictureSubFolder.loadFromSubFolder(folderName , name , 94)
const x = $gameVariables.value(248);
const y = $gameVariables.value(249);
$gameScreen.showPicture(94, null, "center", x, y, 300, 300, 255, 0);

The name argument from the script calls $gameScreen.showPicture must be null.
I've tried every variation, but nothing really worked for me. Let me know if someone figures it ok. It's not a big thing, just wanted to keep my files clean. Thank you for the fast response though.

Original thread: https://forums.rpgmakerweb.com/threads/eli-picture-sub-folder-can-show-pictures-inside-subfolders-made-in-the-default-picture-folder.131894/