Project Organization

● ARCHIVED · READ-ONLY
Started by Kaelan 7 posts View original ↗
  1. In Ace, I used a plugin that would allow me to organize my code into a proper folder structure, so I didn't have to keep everything in one place. That would let me have my plugin folder looking something like this:

    q41YLUh.png

    Is there an equivalent to this in MV? I'm a fan of having more smaller files instead of few large files to keep things organized, but it's a nightmare to dig through when everything has to be in the same folder. It would also be nice to be able to separate other people's plugins from my own.
  2. As far I know there is not such a plugin, but you can manually edit file paths in js/rpg_manager.js (but this is for more advanced users)
  3. @Kaelan
    I think you're mixing up a few things in your memory.
    Ace never had plugins, it had scripts and the script editor - which worked a bit differently and you couldn't place different scripts into different files because everything was combined anyway.
    The structure you're describing was for the resource manager because Tsukihime wrote a script that allowed redirecting the filepaths for the image and audiofiles.

    Additionally there is the problem that both scripts in Ace and plugins in MV are dependent on their order, and organising them into different folders will increase the chance of complete engine failure due to wrong order, so I strongly suspect that you're misremembereing and this was never available for Ace and would be a big problem if someone tried to do it with plugins.

    Making a plugin to allow organization of other resources could be a good idea, but for plugins and scripts it would be very bad.
    If you didn't misremember and someone really did this for Ace, could you give a link to that script so that we can check what exactly was done?
  4. @Andar

    I'm not misremembering, that's a screenshot of my project in Sublime Text. I remember how Ace worked, I used a script framework to have a different workflow. This isn't to do with MV, the framework I used itself termed .rb files as plugins, so I use the same terminology to be consistent with it.

    Link: https://github.com/TorD/rgss3-plugin-script-framework

    It leverages Tsukihime's external script loader, but the bulk of the work was done by Galenmereth. Loading order isn't a problem because it can be manually specified in a config file.

    @Landazar

    It's possible to do this in MV by just having a plugin that loads other .js files in some other folder(s) in your project, but that would prevent them showing up in (and being managed by) MV's plugin manager, because it doesn't search the folder recursively. I'm trying to find out if anyone's ever managed to get around that problem and have plugins in subfolders still be recognized by MV, or found some alternative solution.
  5. Not exactly sure if this is what you're looking for but I have created a CLI tool for the same type of workflow. I create plugins in multiple files, usually separated by class name and my CLI utilizes rollupjs to bundle all files into one. Feel free to have a look, it's open source and MIT and we'll documented, so you should be able to get started in a flash to try it out.. https://fenixenginemv.gitlab.io/fenix-cli/
  6. That sounds promising, I'll take a look!