-
-
Notifications
You must be signed in to change notification settings - Fork 3
Workshop
This page illustrates how to submit custom video/audio effects to the Steam Workshop.
For further Lua documentation, see Lua Documentation.
By default, the Lua templates are set up to use localization. See Localization for more information.
- Nonsensical Video Generator installed on Steam.
- Visual Studio Code
Effects can easily be created using a template from within the software.
To do so, open Nonsensical Video Generator and head to the Addons tab.
Then, click on the Workshop Effect Management button to start the process.
The following interactable controls are available:
-
Addon Name
- The name of the addon. This will be used as the title of the addon in the Steam Workshop.
- The title on the Steam Workshop will be suffixed by the type of addon automatically, so don't add it here.
- Default:
Untitled
-
Addon File Name
- The internal name of the addon. This will be used as the name of the addon's folder and file under a
.lua
extension. - Default:
untitled
- The internal name of the addon. This will be used as the name of the addon's folder and file under a
-
Minimal Template
- Toggles whether to use the minimal template or not.
- Default:
Off
-
Theme Template
- Toggles whether to use the theme template or not.
- Default:
Off
-
Back
- Returns to the Addons tab.
-
Reload All
- Removes all effect libraries, updates Steam Workshop subscriptions, and re-queries Lua scripts.
- This should be pressed after updating the addon script as they are only run once otherwise.
- For themes, this will update metadata such as colors.
-
Create
- Creates the addon using the specified parameters and returns to the Addons tab.
Once created, the addon can be edited by right clicking on its name in the addon list.
This will open code
on your computer, which is the application name for Visual Studio Code.
If you'd like to view the containing directory, you must right click on a stock addon to view the stock
directory.
See Prerequisites for more information.
Your Visual Studio Code window should look like this:
The built-in documentation of the non-minimal template should be enough to get you started.
The addon created by the template will contain an effect that performs a speed up or slow down with either an increase in contrast or inverted colors.
The addon template uses the following settings:
-
Chance Roll
- Out of 100, chance for which addon to apply.
- This is what determines whether to slow down or speed up the video.
- Default:
50
No libraries are used by default, but if you are using any, you should add them to the libraries
table in the Query
function.
To test the effect, head back to Nonsensical Video Generator, head to the Addons tab, click on the Workshop Effect Management button, and then finally click Reload All to update the effect libraries.
This page will be kept open when you visit a different tab, such as the Generate tab.
To test the effect, make sure it's the only effect enabled and then visit the Generate tab.
You might want to increase the Addon Chance to make it more likely to appear.
Once ready, click on Start Rendering to start the rendering process.
To view debugging and other useful information, press F5
to open the console.
You can also keep the temporary effect working directory after rendering by setting HiddenKeepTemporaryJobFolders
to true
in Options.json
This will let you see which files were output by your effect.
There is also the HiddenVerbose
option which when set to true
, will output FFmpeg and other commands to the in-app console.
Once you're happy with the effect, you can publish it to the Steam Workshop.
To do so, head to the Addons tab, click on your effect's Settings button, and then click on Publish .
You will be prompted to select a few tags with toggle switches next to them.
The following root library tags are available:
-
Video
- Select if this effect uses a Video library.
-
Audio
- Select if this effect uses an Audio library.
-
Image
- Select if this effect uses an Image library.
No libraries are used by default, but if you are using any, you should select the appropriate tags.
After selecting tags, click on Submit to choose a thumbnail and publish the effect.
By default, the effect template would use the following thumbnail:
You can change this by selecting a different image otherwise.
The recommended thumbnail size is 256x256 or a larger square image.
Once published, you can view the effect's workshop page by clicking on View Workshop in the effect's Settings.
While it's optional, you may edit the description of the effect to better describe it.
See the Remix Effect listing on the Steam Workshop for an example.
Remix Effect
Applies a stutter loop to the beat.
Uses the Remix library.
To update the effect at any time, head to the Addons tab, click on your effect's Settings button, and then click on Publish again.
If you see View Workshop , then the effect can be updated without creating a listing.