RPGM MV Mod support system (v0.8)

Poppie's Mod System (WIP)
PMS for short (I can see the jokes already)

Spoiler: Sneek peak at code
ce5be9c285645fa724697a1ffae304b4.png
The plugin is about a few hundred lines long...

So, I wasn't able to find any mod systems for this engine anywhere. Being that I needed one for my game the only real option was to make my own, and i decided to make it a publicly available thing to anyone else who may wish to add such things to their own games. the following information will describe how it works and update progress, the mod system will allow the following things to be added to your games by your players;
  • [Data: ✓ Graphics: X] Actors
  • [Data: ✓ Graphics: ✓] Items
  • [Data: ✓ Graphics: ✓] Weapons
  • [Data: ✓ Graphics: ✓] Armors
  • [Data: ✓ Graphics: N] Classes
  • [Data: ✓ Graphics: N] Common Events
  • [Data: ✓ Graphics: X] Enemies
  • [Data: ✓ Graphics: ✓] Skills
  • [Data: ✓ Graphics: ✓] States
  • [Data: ✓ Graphics: N] Troops

Currently custom tilesets are not something that i plan on making, however it might be something that gets added on down the road. Plugin commands that allow for setting up in game situations that normally would rely on database IDs which are no longer static to be done easily.

How it works
There is so much behind the scenes stuff it hurts my small brain

All it really does is it goes into the mods that are in the mod folder and gathers all the data that the mods want to add into the game, then slaps them into respective JSON files in the data folder. all this happens before it goes and loads the information, effectively hijacking the files before they are loaded and inserting our data into it (honestly i was surprised it was all that simple).

Planned features
I am dumb so these might take a bit

*Plugin commands to actually use modded data
*Key based mod encryption
*Allow custom icons to be loaded for items, equipment, states, ect...
*Allow custom enemy graphics.
*Allow custom event graphics.
*Allow custom Tileset graphics to be loaded.
*Possibly allow custom plugins to be added.


Suggested plugins
People smarter than me have already made some neat stuff

Some things wont be done by my plugin on it's own, I am just going to go and handle the dumb database/file side of modding. However some things others have already gotten to doing, such as loading maps by file.

CT_Bolt Read Map Data (This guy is the real MVP here)

Downloads
Spoiler: Downloads
PMS v0.8:
Hey, this is awesome! Can't wait to see it released.

If I may suggest something, if possible, you should make it only be applied temporarily so that if a player closes the game, deletes the mod from the mod folder, and starts up the game again, their mod won't be present any longer.

It would also be a good thing if it worked with encrypted files somehow.
Hey, this is awesome! Can't wait to see it released.

If I may suggest something, if possible, you should make it only be applied temporarily so that if a player closes the game, deletes the mod from the mod folder, and starts up the game again, their mod won't be present any longer.

It would also be a good thing if it worked with encrypted files somehow.

Well the thing about encryption is that i am not smart enough to do it, i mean there might be a reasonable way to do it but that would require some searching to figure it out.

How it's set up is that it builds the new database to "Build_[insert thing].json" so the base files that belong to the game are not touched by the mod loader, so you can easily just delete the build files without having to worry about losing the base game's data.
Well the thing about encryption is that i am not smart enough to do it, i mean there might be a reasonable way to do it but that would require some searching to figure it out.

How it's set up is that it builds the new database to "Build_[insert thing].json" so the base files that belong to the game are not touched by the mod loader, so you can easily just delete the build files without having to worry about losing the base game's data.
Okay perfect, that's how I thought it operated but I just wanted to make sure! It almost sounded like it added stuff to the base files. That solves the question about encryption too because it would work with it. Sweet :3
Okay perfect, that's how I thought it operated but I just wanted to make sure! It almost sounded like it added stuff to the base files. That solves the question about encryption too because it would work with it. Sweet :3

Well how encryption would probably work would be Key based, basically the game you make would have a key to decrypt the mods, however if someone can decompile the game, they would be also able to decrypt the mods.

The mods wouldn't be encrypted the same way the game files are, the game files are their own thing and would be encrypted by the editor when you build the project. but mods that are added onto the game would have to use a different method.

Side note:
This mod system could also allow you to add patches and updates without having to release a whole new version of the game.
Side note:
This mod system could also allow you to add patches and updates without having to release a whole new version of the game.
I can see how that would be sort of useful, but you don't have to release a new version of the game. Updates can contain only the files you updated. I'm fairly certain that RPG Maker by default loads things from the game folder before it loads things that have been encrypted, so if you have a patch for a map, you only have to include that map in an update file in the correct location instead of including your entire encrypted file that contains every map. If I'm wrong on that I'd be happy to be corrected, though.
Having updates be slotted in the "mod" folder would be a little chaotic, too.
You could get a slightly smaller file size if you were doing something like adding or modifying an enemy, or changing an actor, or something, I suppose. Not by much, though.

I'm also not worried about encrypting mods, btw. I was just making sure that mods would work with encrypted game files because I wasn't sure whether you meant that the mod data would be added into the original data or if the game would load the mod data after it had already loaded the original data. Since it is the latter, yeah, encryption doesn't matter 🙂 at least to me.
I can see how that would be sort of useful, but you don't have to release a new version of the game. Updates can contain only the files you updated. I'm fairly certain that RPG Maker by default loads things from the game folder before it loads things that have been encrypted, so if you have a patch for a map, you only have to include that map in an update file in the correct location instead of including your entire encrypted file that contains every map. If I'm wrong on that I'd be happy to be corrected, though.
Having updates be slotted in the "mod" folder would be a little chaotic, too.
You could get a slightly smaller file size if you were doing something like adding or modifying an enemy, or changing an actor, or something, I suppose. Not by much, though.

I'm also not worried about encrypting mods, btw. I was just making sure that mods would work with encrypted game files because I wasn't sure whether you meant that the mod data would be added into the original data or if the game would load the mod data after it had already loaded the original data. Since it is the latter, yeah, encryption doesn't matter 🙂 at least to me.

Oh, no mods will work regardless of if the game is encrypted or not, and how it works is like this;
Before the game goes and loads it's assets, it's told to go build a series of files, these files are modded databases.
then the game looks at these new files as it's told to load them.

Honestly the system is nothing all that complex So far at least until i do the graphics part

Hoped that helped to explain things!
The system now lets you get an item by name, all you have to do is use a simple function, specify a name and amount, and boom, it changes the inventory even including modded items.

It also lets you make it so that you can use a custom graphic for the items! including weapons and armor.

(this part was probably the most headache inducing.)

The order i will be doing things in is;
*Custom state graphics
*Custom Skill graphics
*Figuring out how to allow custom event graphics
*Custom actor face graphics
*Custom actor character graphics
*Custom actor SV battle graphics
*Custom Enemy graphics

Stick around! I plan on getting this pretty much completely done within the next couple days.
Nice! Can't wait till it's finished
Just a quick update;
status effects now have custom icons as well! It was a little annoying due to the fact that...states dont have a simple ".meta" to them, had to get data from a string.

Next step is skills!

Kinda great to finally be able to not at all have to deal with the restrictions of only being able to use files in a predetermined location, allows for much easier messing around...and of course mods!

771286aee925293a4f3bb44dcd12e4fa.png

2dfcf92e3019822d13dbabf55b495809.png


And of course this also works with modded states!

Edit: just wanted to give a little peek to show it works with battles too:
354dfeee660697cb75469fabefcdab6c.png
Changing the graphics of events party members and even vehicles is now possible to do by just specifying the file you want to change them to!

Here is a video preveiw of it doing it's thing.

the remaining things to work on before v1.0 is released;
Enemy graphics
face graphics
Some more public functions

and that's it!

(edit; the video is laggy becuase obs hates existing with anything else running on my 2 core laptop)
This is something I want to eventually have, very cool!

I hope you would complete the graphics mod support.
Sadly the plugin has been put on hold, My laptop died and until i can get replacement parts i am unable to access the project.
if memory serves me right i had even made a secondary version that worked with mv3d....which wasn't a fun task to figure out.
Sadly the plugin has been put on hold, My laptop died and until i can get replacement parts i am unable to access the project.
if memory serves me right i had even made a secondary version that worked with mv3d....which wasn't a fun task to figure out.
So, I know you commented this nearly 6 months ago (and you haven't been online in nearly 5 months), but has any progress been made towards replacing your laptop? It would be a shame if such an amazing plugin was left unfinished due to damaged hardware.
So is this a Mod API for MV?
So is this a Mod API for MV?
yeah, basically
Sorry about the lack of updates! I had to deal with life and a my computer with the project files on it dying, Recently I was able to get a cord off of ebay so i could access my old hard drives i had sitting around and figured that i should be working on this!
Also here is a link to what the project currently looks like;
Google drive copy of project

Mostly stuffing it into google drive so that this doesn't happen again.
While this isn't the actual same project that i had been showing off as that one just seems to be lost to time, this is a copy of a project that used it.

Edit: Please not that linked project is a bit of a mess and by no means should be used for your own projects, I will work on cleaning it up and making it a proper showcase of the system!

Original thread: https://forums.rpgmakerweb.com/threads/rpgm-mv-mod-support-system-v0-8.117223/