Skip to content

Getting Started

ItsDeltin edited this page Feb 19, 2023 · 4 revisions

Getting started

To program in OSTW, you need to install vscode and the 'Overwatch Script To Workshop' extension.

The VSCode extension

Settings:

  • ostw.codelens.implements: Determines if the implements code lens is shown.
  • ostw.codelens.references: Determines if the references code lens is shown.
  • ostw.deltintegerPath: The path to deltinteger.exe. Filling this field is required for OSTW to function.
  • ostw.optimizeOutput: Determines if the workshop output is optimized.
  • ostw.outputLanguage: The output language of the workshop code.

Commands:

  • ostw.virtualDocumentOutput: Create a panel for workshop code output.

Creating a script

OSTW supports the following file types:

  • .del
  • .ostw
  • .workshop

Opening a file with any of these file types will automatically activate the vscode extension. Simply create a file then open it in vscode. You can press ctrl+space to get a list of all the functions and variables.

Exporting your script to Overwatch

Copying the code

There are 2 ways you can copy the exported workshop code.

  • The vscode extension adds a channel in vscode's output tab with the compiled workshop code. This can easily be copied into Overwatch. Press ctrl + shift + u and open the Workshop Code tab. Click on the output window, press ctrl + a and copy the output to your clipboard.

  • Open the command palette (ctrl+shift+p) then running the Overwatch Script To Workshop: Create a panel for workshop output command will create a virtual document with syntax highlighting. Press ctrl + a and copy the code to your clipboard.

Pasting the code

If your code does not contain custom game settings, click the paste button in the workshop menu. If you have already pasted, somtimes you need to reset the variables before pasting (edit variable names > RESET TO DEFAULTS).

If your code contains custom game settings, click the paste button next to the summary and description:

Lobby paste button