PlumyGames / mgpp

The next generation of Mindustry modding.
https://plumygames.github.io/mgpp/
GNU General Public License v3.0
48 stars 3 forks source link

[Feature Request] Json/JavaScript Mod `auto work with--fromTask` #11

Closed liplum closed 2 years ago

liplum commented 2 years ago

Use cases

  1. In a multi-project mod, users want to test something on Json/JavaScript mod. However, when they run :runClient task, the Json/JavaScript mod isn't involving the mod work with--fromTask automatically as what jar does, that is, users have to add something like:
    add fromTask ":project:zip"
  2. If users are willing to use gradle and mgpp to develop Json/JavaScript mod, it's useful to start the game on their workspace in no time.
liplum commented 2 years ago

sure, but there are many ways to build a zip for Json/JavaScript mod. Users may apply distribution gradle plugin or just register a zip task for zipping all assets, such as scripts and textures. Therefore, there is no convention about how to build a zip.

liplum commented 2 years ago

The current problem is: normal Json/JavaScript mods don't need gradle, on other hand, mods specific for the multi-module projects might be for different purposes and have different forms. As an alternative, dad2f8c added a new feature: mgpp no longer forced the current project to apply the java plugin. Thus, the control power was handed over to users.