Skip to content

Working with source

Lassebq edited this page May 31, 2022 · 3 revisions

There are a few things that need to be noted when working with source.

Recompiling and Running

You can run edited source in IDE, like normal, but you can also use Run task to run the game from RetroMCP
For that you need to:

  • GUI:
    • Recompile source by pressing the button that says "Recompile"
    • Start client or server by selecting the option in MCP dropdown in the menu bar
  • CLI:
    • Recompile source by running recompile command
    • Start client or server by running start client or start server command

Adding resources and libraries

  • If you want to include external library .jars to the classpath during recompilation add them to a folder called lib. If you want to keep libraries localized to a specific side added them to lib/client and lib/server for client and server respectfully
    If you want to include these libraries in IDE you'll have to add them manually
  • To add new resources to the game, put them in the same directory as source for client or server. That way if you're using IDE those assets will be included there too.
Clone this wiki locally