Environment
I'm debugging with WebStorm and NW.js. More details here https://forums.rpgmakerweb.com/index.php?threads/launching-and-debugging-in-ubuntu-webstorm.140188/
Here is a list of changes I have made so far. The order is approximate since I've been fiddling around a lot...
A. Added plugins
- Added FOSSIL https://github.com/FossilMZ/fossil-MV-MZ/blob/main/FOSSIL.js
- Added SRD Super Tools Engine http://sumrndm.site/super-tools-engine/
- Added SRD Character Creator EX http://sumrndm.site/character-creator-ex/
- Added default SRD CCEX resources to /img/SumRndmDude/character-creator-ex/
On the map created an Event with
- Text
- Plugin Command: FOSSIL
- OldPluginCommand = OpenCharacterCreator 1
- Copied the LZString library from https://github.com/pieroxy/lz-string/blob/master/libs/lz-string.js
- Added it to /js folder
- Added to index.html as follows:
<script type="text/javascript" src="js/lz-string.js"></script>
D. Removed references to CacheMap
This was the first error I encountered trying to launch the game.
- Opened SRD_CharacterCreatorEX.js
- Removed references to the CacheMap class:
// _.cache = new CacheMap(_);
_.loadImage = function(filename, hue) {
return ImageManager.loadBitmap('img/SumRndmDde/character-creator-ex/', filename, hue, true);
};
_.loadImageWPath = function(path, filename, hue) {
return bitmap = ImageManager.loadBitmap(path, filename, hue, true);
};
At first I tried replacing CacheMap with localStorage, but it didn't work out. I'm sure there's a better solution but I couldn't find a drop-in replacement from FOSSIL.
E. Launch game
At this point I can launch the game without errors, navigate to the Event and trigger it. The text appears as expected. But I get a "constructor" related error. This seems to be related to the Window_CharacterCreator_FolderList class in SRD_CharacterCreatorEX.js.
Can someone more familiar with these plugins confirm if this is a typical RMMV compatibility issue (in which case I will hopefully find examples of similar fixes in FOSSIL) or if it's particular to the SRD plugin. I have noticed some completely new HUD-related plugins from SRD http://sumrndm.site/hud-maker-ultra/ so I was wondering if something fundamental has changed when it comes to creating custom windows and HUDs in the game?