External resources renamer

firststef

Veteran
Veteran
Joined
Jan 3, 2017
Messages
79
Reaction score
9
First Language
Romanian
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?
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
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.
 

firststef

Veteran
Veteran
Joined
Jan 3, 2017
Messages
79
Reaction score
9
First Language
Romanian
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
@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.
 

firststef

Veteran
Veteran
Joined
Jan 3, 2017
Messages
79
Reaction score
9
First Language
Romanian
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?
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

firststef

Veteran
Veteran
Joined
Jan 3, 2017
Messages
79
Reaction score
9
First Language
Romanian
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?
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
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.
 

firststef

Veteran
Veteran
Joined
Jan 3, 2017
Messages
79
Reaction score
9
First Language
Romanian
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?
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top