I'm trying to make a new different game that uses same assets from an existing game, and since I'm uploading the game I was wondering if there was a way to change where they load assets from so I don't end up uploading duplicate assets. By default it's loading from /img/backgrounds/, and I want to change it to say /assets/img/backgrounds/. Is there a way for me to do this? Thanks in advance!
Changing where assets are loaded from?
● ARCHIVED · READ-ONLY
-
-
You need to edit the core MV scripts.
-
You'll need to make a plugin. Below are the file paths that you can change in the ImageManager:
ImageManagerCode:ImageManager.loadAnimation = function(filename, hue) { return this.loadBitmap('img/animations/', filename, hue, true); }; ImageManager.loadBattleback1 = function(filename, hue) { return this.loadBitmap('img/battlebacks1/', filename, hue, true); }; ImageManager.loadBattleback2 = function(filename, hue) { return this.loadBitmap('img/battlebacks2/', filename, hue, true); }; ImageManager.loadEnemy = function(filename, hue) { return this.loadBitmap('img/enemies/', filename, hue, true); }; ImageManager.loadCharacter = function(filename, hue) { return this.loadBitmap('img/characters/', filename, hue, false); }; ImageManager.loadFace = function(filename, hue) { return this.loadBitmap('img/faces/', filename, hue, true); }; ImageManager.loadParallax = function(filename, hue) { return this.loadBitmap('img/parallaxes/', filename, hue, true); }; ImageManager.loadPicture = function(filename, hue) { return this.loadBitmap('img/pictures/', filename, hue, true); }; ImageManager.loadSvActor = function(filename, hue) { return this.loadBitmap('img/sv_actors/', filename, hue, false); }; ImageManager.loadSvEnemy = function(filename, hue) { return this.loadBitmap('img/sv_enemies/', filename, hue, true); }; ImageManager.loadSystem = function(filename, hue) { return this.loadBitmap('img/system/', filename, hue, false); }; ImageManager.loadTileset = function(filename, hue) { return this.loadBitmap('img/tilesets/', filename, hue, false); }; ImageManager.loadTitle1 = function(filename, hue) { return this.loadBitmap('img/titles1/', filename, hue, true); }; ImageManager.loadTitle2 = function(filename, hue) { return this.loadBitmap('img/titles2/', filename, hue, true); };
EDIT: It seems like a plugin that I'd be interested in creating in order to house several games using the same assets. Make a request in the plugin request forum and tag me and I'll look into later this week. -
@High Plains Design Studio Thank you! I made the thread and tagged you there. In case I didn't do it right, here's the link the the thread. https://forums.rpgmakerweb.com/index.php?threads/change-where-assets-are-loaded-from.100023/
-
you could have just reported your post and asked a mod to move it to plugin requests :)
-
Since you now have a request up for this, I'm going to close this one.