Skip to content

Workshop

KiwifruitDev edited this page May 31, 2024 · 12 revisions

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.

Prerequisites

Creating an Effect

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.

Workshop Effect Management Button Workshop Effect Management Subpage

Interactables

The following interactable controls are available:

  • Addon Name Text Entry
    • 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 Text Entry
    • 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
  • Minimal Template Toggle Switch (Off)
    • Toggles whether to use the minimal template or not.
    • Default: Off
  • Theme Template Toggle Switch (Off)
    • Toggles whether to use the theme template or not.
    • Default: Off
  • Back Button
    • Returns to the Addons tab.
  • Reload All Button
    • 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 Button
    • Creates the addon using the specified parameters and returns to the Addons tab.

Editing the Effect

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.

Effect Settings and Libraries

The addon template uses the following settings:

  • Chance Roll Text Entry
    • 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.

See the built-in documentation for more information.

Testing the Effect

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 Button 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 Text Entry to make it more likely to appear.

Once ready, click on Start Rendering Button to start the rendering process.

Debugging the Effect

To view debugging and other useful information, press F5 to open the console.

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.

Selecting Workshop Tags

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 Button.

You will be prompted to select a few tags with toggle switches Toggle Switch (Off) next to them.

Workshop Tags Subpage

The following root library tags are available:

  • Video Toggle Switch (Off)
    • Select if this effect uses a Video library.
  • Audio Toggle Switch (Off)
    • Select if this effect uses an Audio library.
  • Image Toggle Switch (Off)
    • 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.

Publishing the Effect

After selecting tags, click on Submit Button to choose a thumbnail and publish the effect.

By default, the effect template would use the following thumbnail:

Thumbnail

You can change this by selecting a different image otherwise.

The recommended thumbnail size is 256x256 or a larger square image.

Viewing the Workshop Page

Once published, you can view the effect's workshop page by clicking on View Workshop Button 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.

Updating the Effect

To update the effect at any time, head to the Addons tab, click on your effect's Settings button, and then click on Publish Button again.

If you see View Workshop Button, then the effect can be updated without creating a listing.