I wanted to practice by incorporating a generally simple JS library called PathFindingJS (https://github.com/qiao/PathFinding.js), into a plugin for C2. But I'm having some issues with the runtime.js I think. I copied over one of rexrainbow s plugins he made that referenced a JS library but I might have missed something. The plugin installs fine but I get an error when I run a basic template project that I added the plugin to.
Here is a screenshot of the error when the game starts
So basically for the plugin I made one expression that is supposed to call a function in the JS library to create a grid with a width and height that is specified.
Could anyone take a look at my couple js files and see if anything stands out as broken or set up incorrectly?
Also, if I am incorporating a JS library in the plugin, do you put ALL of that library's related files in the base folder with the runtime.js and such or do you keep them in a separate folder inside that folder?
Any help or suggestions would be greatly appreciated!