With hotreloading enabled and the watch command being used you no longer have to restart the game, and move files around manually. If the installation was done correctly the transpiled JS file can be found in both the build directory and in the plugin directory of OpenRCT2. npm run watch build Automatically build everytime a source file is updated.npm run build Manually build the project.You can build your project using the following commands: In the package.json and src/index.js, replace MYPLUGINNAME with the name of your plugin, and replace OPENRCT2PATH with the path to your OpenRCT2 directory.Run npm install to install all the required packages (Download Node.js if npm is not recognized).Pull or download your project onto your computer.Click "use this template" to create a repo using this boilerplate.This boilerplate project (starting point to create OpenRCT2 plugins with) allows you to create a multi-file ES6 OpenRCT2 plugin and have it transpiled to a single ES5 file (Which OpenRCT2 supports).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |