Warning: compiling the plugin yourself is atm not possible as it requires a modified version of v8pp.
This plugin adds JavaScript bindings to the bakkesmod sdk through node.js and v8pp.
- Make sure the
BAKKESMODSDK_DIRvalue in generate_sdk.py is set to the correct folder. - Generate the bindings with for example
generate_sdk.py bakkesmodplugin.cpp -v8pp-module - Fix all the errors, most of them should be detailed in bindings.cpp.
- Generate node.js project files with
vcbuild.bat -vs2019 -projgen -nobuild -static. - Add the BakkesMod plugin code and the generated binding files to the node project.
- Change the plugin directory by changing
jsp_plugin_dir, default is${BakkesModFolder}/plugins_js. - Load plugins with
jsplugin load ${plugin_name}.
- You can change the log level throught the
jsp_log_levelcvar. - Change the
node_env_debug_regexcvar to show node envenvironment debug logs. - Attach a debugger by adding
--inspectto thenode_argumentscvar.
BakkesMod logs may look different in the release build.
- see Examples
