Package manager tools

Hey all,


I'm a long-time user of RPGMaker but first time poster on the forums here. I started using RPGMaker 2000 to try out various game ideas back in the early 00's and have dabbled in and out since. One thing I've always noticed about RPG Maker and some of the various other tools out there for games development is that there isn't any sort of package management platform for making it easy to share resources... so I thought I'd have a go at writing one.


I'm a software engineer by trade and regularly work in multiple languages with different package managers to get jobs done (NPM, Nuget, Maven, Gradle, CPAN etc), so I started writing a Maven-like package manager for RPG Maker with the aim of making it easy for content creators to submit their work to a public repository where anyone can download from. 


If you have used a package manager in any language before you'll know it makes it a hell of a lot easier to pull in third-party plugins when programming, and it saves time googling for things. It also helps manage updates and upgrades of these dependencies if the author releases newer versions. The package server contains a copy of all public packages (so if a creator goes away the content is still available), and you typically run a command line tool with parameters such as 'group name' and 'package name' to pull down the file you want.


So I have started writing a Package Manager application for RM and other IDE's which I'm calling 'AssetHub' - where an 'Asset' is a single file or collection of files. The files can be any suitable addition to a games project; images, audio, videos, scripts etc.  A json definition of the asset is then created containing the details of the author,files,dependencies etc and everything is bundled into an archive for transmission too/from the user and the asset server.  In your project you then add a 'package.json' containing an array of json objects that define the dependencies you want to pull from the AssetHub server.


As an illustration; Say you wanted Yanfly's 'Extended Message Pack 1' script in your project. Instead of hunting out downloads online you would add into your package.json file the following details:


{"dependencies": [
{"groupid":"yanfly.moe", "assetid":"ExtendedMessagePack1", "version":"1.10"}
]}


Then you would run the package manager tool which would read your dependencies and download any packages matching that description from the server. As This is ExtendedMessagePack1, this package itself relies on a parent plugin (Yanfly's MessageCore). The ExtendedMessagePack1's package.json file stored on the server would record this and your package manager would automatically retrieve the parent dependency and install it along with ExtendedMessagePack1 (that is if the MessageCore plugin was not already found in your plugins directory).


If RMMV is closed it would also append your new plugins to the end of js/plugins.js so when you open your project in RPG Maker they are installed (but not active).


I'm currently writing a GUI for creating packages and the package manager itself in C# for Windows systems. Once complete, if there is enough interest I will write a Java package manager for other environments and maybe switch the Windows libraries to Mono for convenience.


Package Managers are only ever as successful as the community behind them, so if you think this is cool - let me know. If you can't see the point or have any questions comment away and let me know. I'm only writing this because I think it's worth having. And although I'm targeting MV to start, it's easily capable of supporting all previous versions of RPG Maker for asset management, and other non-RPG Maker gaming IDE's too.


A note on copyright and author security;


You can use Package Managers to control copyright/licencing. I've included options to allow you to mark packages as subject to licence conditions and allowed for licence agreements to be included with the package. Although anyone can submit anything to the package server, all content is signed with a digital fingerprint - people can't spoof your work as their fingerprint won't match your submission, so if someone re-posted your work claiming it was from you, their fake package would be visible as not from the original author.

Original thread: https://forums.rpgmakerweb.com/threads/package-manager-tools.63991/