Get more from everlaster on Patreon
Creating plugins & content for Virt-A-Mate, the VR sex simulator
www.patreon.com
LiveReload
Monitors the source files of local plugins for changes and auto-reloads them. No more clicking on Reload every time just to see if you get an error. It automatically finds other plugins in the scene that are loaded from your local plugin dir and reads their source files. Detection of changes is done by byte array comparison.
Usage
You should be able to just add LiveReload to your session and keep it there while developing. The only reasons to go to the plugin UI are to disable monitoring for a specific plugin, or to toggle logging changes to message log.
When actually playing VAM using any of your own local plugins, you'll want to disable LiveReload since it does incur quite a performance cost especially when monitoring larger code bases for changes.
It can also be added as a scene plugin (this will ignore session plugins), or to any atom (this will only find plugins on that atom).
Development dir
Any monitored plugin's dir must be under Custom/Scripts/[CreatorName] where CreatorName is what you have set in User Preferences. Plugins that are under other dirs or in var packages are ignored.
Monitored files
Currently, LiveReload is hard coded to skip the following subdirs under the plugin dir:
Code:
.git
.vscode
bin
obj
Similarly, it is hard coded to detect changes only in the following file types:
Code:
*.cs
*.cslist
*.json
Feedback
Feedback and ideas - and contributions from other developers are very welcome! Github: https://github.com/everlasterVR/LiveReload