

You would have your mod file available for download straight from the repo.ĭon't forget to update README.md to reflect your mod and update version numbers for future releases. dist/ directory sounds like a cool idea. However creating a GitHub release using contents of. dist/ contents and push them to your remote or if you want to manually copy the contents of. dist/ directory will be created that will contain MOD_NAME.js. dist/ folder as MOD_NAME.js - this is your final mod fileĪfter running npm run build locally. Runs npm run lint and if no linting errors are found, compiles registerPlugin.ts and minifies it, then places it inside. src/ directoryĬompiles registerPlugin.ts and minifies it, then places it inside PATH_TO_OPENRCT2/plugin/ as MOD_NAME.js src/ directory for any changes you make to any files inside it Starts Nodemon server that will be watching. Template uses Terser to minify your output mod bundle file and to resolve any dependencies. src/ needs to be imported to registerPlugin.ts one way or another. src/, and it will build them accordingly. Upon starting Nodemon server, it will start watching changes you make to files in. That's the ones you will be writing code in.
#How to update openrct2 mods#
OpenRCT2 will notice file changes and it will reload the mods.src/registerPlugin.ts and place compiled file inside PATH_TO_OPENRCT2/plugin/ directory as MOD_NAME.js Each time you save any of the files in.Start OpenRCT2 with console and load save/start new game.run npm start (this will place compiled and minified mod inside PATH_TO_OPENRCT2/plugin/ directory).Make sure you've enabled OpenRCT2 hot reload feature by setting enable_hot_reloading = true in your /OpenRCT2/config.ini.If you want to alter plugin data, refer to OpenRCT2 scripting guide. Of course it's a template, so you can edit anything you like. Run npm run init - it will replace all the data and then commit the results.this path is the one that holds the plugin folder, not the installation path.make sure this path uses / instead of \.use the URL created as a result of step 2 (link to your mod repo) - it should look like.cd into your repo (wherever you cloned it).
#How to update openrct2 install#

