src/ directory for any changes you make to any files inside it Starts Nodemon server that will be watching.
Openrct2 mods mod#
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.
Openrct2 mods mods#
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).
Openrct2 mods install#
alternatively, you can make a symbolic link instead of copying the file, which will keep the file up to date whenever you install new versions of OpenRCT2.Find openrct2.d.ts TypeScript API declaration file in OpenRCT2 files and copy it to lib folder (this file can usually be found in C:\Users\\Documents\OpenRCT2\bin or C:\Program Files\OpenRCT2\openrct2.d.ts).Create your own repository using this one as a template and clone it anywhere to your PC.Install latest versions of Node and npm.js files, place them inside OpenRCT2 plugin directory, and let hot reload feature do the rest (i.e. The idea was to use Nodemon to start a local server that will be watching your mod files, then on each save make it build. This template repository comes with Nodemon, ESLint and TypeScript on board. I wanted to leverage OpenRCT2 hot reload feature to make it even more painless to write and debug mods in real time. This repository was created to serve as a template TypeScript mod repository for OpenRCT2. Template repository for OpenRCT2 mods written in TypeScript.