External resources renamer

Hi guys!


So i'm currently using a plugin that uses external spritesheets for characters. Is there a script call or plugin to help me rename that sprisheets so that i can change it with another?
Rename what exactly?


But if you need a software that just renames files very fast there is this one. There's probably a free equivalent but it's the only one I could find at that time.
Im using a plugin that takes a sprite from a folder in the project folder.


For example ,,Eren[walk].jpg,,.


Is there a plugin that will allow me to change the name of that image to ,,Eren1[walk].jpg,, ?


I need that so that i can evolve my character in-battle trough skill triggering.


If you don't understand then this is the plugin i'm using(don't get scared i,s pretty complicated) .View attachment 56892


All credits to MOGHunter.
@firststef


You need to specify where you want to change that - that is what is causing the confusion.


Do you want to change the actual filename? Like going into the windows forlder and changing it there?


Do you want to change the reference name? Like going to a setting in your project and telling it to load a different picture?


Do you want to change the plugin code for it to automatically select a different naming convention?


Or a combination of all three?


Because the three points are extremely different to each other, and nothing you wrote in either post indicates which way you want to go.
Mog,s plugin states the battler sprite sheet name in the note section.View attachment 56965


It shows what is the name of the sprite in the folder.View attachment 56967


So to make Leon evolve trough a skill i have to change his spritesheet.


How?


I though by changing the sprite name.


But how? I could do it in the note section but idk the script call, or i could rename the file...


Any ideas?


The plugin is above.


Capture.JPG


What would be the scriptcall/plugin command to load LBS battlers again in a common event?


is it        ImageManager.loadLMBSBattlers = this.loadBitmap('img/lmbs/battlers/', filename, 0, true); or something like that?
no - the notebox is static for a lot of reasons, and trying to change those contents ingame will cause a lot more problems and confusion.


The only way to achieve what you want is to modify Mog's plugin so that it will look for a different structure.


Currently it is looking for filenames that are constructed from "Basename"+"Pattern", with the basename read from the notetag and the pattern set by whatever part of the plugin needs the picture.


I would suggest a modification that changes this to "Basename"+"Variablenumber"+"Pattern", with the variable number read from a game variable you set for each actor.


Then changing the game variable by skill would change the final picture name from (for example) Leon00[Action2] to Leon02[Action2].


There are a few other ways, but such a modification should be the easiest to make - but "easiest" here does not mean that it is simple, you'll have to find and change every use of that filename in the entire plugin.


Edit:


@firststef Your edit with a screenshot of the code came while I was writing, I didn't see it before.


That screenshot is the wrong place to go to - you need to find the place where the filename is constructed and change it there.


Which means it needs to be changed at every place where one of those functions is called.
oh... yeah that actually makes sense


i learned a bit of java to edit this plugin, but i don,t know where to start really


So i need to change filename?


here?Capture.JPG


Should i ask for help on another thread?
theoretically yes - the problem here is when is that function above called?


If it is called only once in preperatuon of the game, it will need a lot more rewrite than simply adding a variable call in the line where posename is constructed.
View attachment 56892


THX! Appreciate you looked into it!


Your idea is great!


Sadly umm...I don,t really know how to read a full js code...


Should i look for someone on the js support to ask that?


Though i know it will take time...


Ok sso i found where i should edit the plugin.


View attachment 56991


So how do i put the variable ?


View attachment 56992


I don,t think it,s correct


I tried making a variable called evolve


Haven,t defined it yet...


So am i going on the right path?

Original thread: https://forums.rpgmakerweb.com/threads/external-resources-renamer.74063/