Example of a Visual Pinball plugin written in Rust
This is still work in progress and the API is not stable yet. All documentation is currently at https://github.com/vpinball/vpinball/blob/10.8.1/src/plugins/VPXPlugin.h
# build the plugin (this will also download the vpinball plugin header)
cargo build
# set the vpinball folder location env var
export VPINBALL_FOLDER=$HOME/vpinball
# copy the plugin to the plugin folder
mkdir -p $VPINBALL_FOLDER/plugins/vpinball_plugin_fps
# Mac
cp target/debug/libvpinball_plugin_fps.dylib $VPINBALL_FOLDER/plugins/vpinball_plugin_fps
# Linux
cp target/debug/libvpinball_plugin_fps.so $VPINBALL_FOLDER/plugins/vpinball_plugin_fps
cp fpscounter/plugin.cfg $VPINBALL_FOLDER/plugins/vpinball_plugin_fps
Add the following section to the $HOME/.vpinball/VPinballX.ini
config file
[Plugin.fps]
enable = 1
[Plugin.rainbow.dmd]
enable = 1