• Hello Guest!

    We have recently updated our Site Policies regarding the use of Non Commercial content within Paid Content posts. Please read the new policy here.

    An offical announcement about this new policy can be read on our Discord.

    ~The VaMHub Moderation Team
  • Hello Guest!

    We posted an announcment regarding upcoming changes to Paid Content submissions.

    Please see this thread for more information.

LiveReload

Plugins LiveReload 1.0.0 / 5.var

Want to share something or need help? Join my Discord: https://discord.gg/2h8PgczkeW

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

Want to share something or need help? Come and chat on my Discord server: https://discord.gg/2h8PgczkeW
Author
everlaster
Downloads
3,484
Views
4,153
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from everlaster

Latest updates

  1. 1.0.0

    Fixes since alpha 2: - fix compatibility with plugins on atoms which have plugins with...
  2. 1.0.0-alpha2: A few bug fixes

    fixed issue where the incorrect plugin would reload when the same atom has multiple plugins that...
Back
Top Bottom