Skip to main content

Configuring VSCode-like Programs to Handle Game Files


About

Here will talk about setting up VSCode similar programs to work with game files.

  • This article is based on Liner's article External link on setting up scripts as projects in VSCode
  • In this article the setup will be done in VSCodium.
warning

Not all files can be configured because there are no extensions for their viewing, reading (for example preview .dds textures and others). Some files can only be opened with third-party applications!

Step 1: Installing VSCodium

Just install VSCodium VS Codium

Step 2. Configuring extension associations

In the settings.json file, in the "files.associations": { specify:

settings.json
"*.script": "lua",
"*.ps": "hlsl",
"*.cs": "hlsl",
"*.gs": "hlsl",
"*.vs": "hlsl",
"*.s": "lua",
"*.level": "ini",
"*.ltx": "ltx",
"*.seq": "ini",
"*.part": "ini",
"*.part1": "ini"
info

At the moment these are all the extensions that can be opened in VSCodium

Step 3: Installing extensions

You need to install the following extensions:

  1. audio-preview by sukumo28 Microsoft Marketplace - provides more detailed data about the sound files. Needed for *.ogg Anomaly Modding Book files

  2. LTX Support by AziatkaVictor Microsoft Marketplace - adds support for *.ltx Anomaly Modding Book files

  3. Two extensions for Lua. Needed for .script files:

  4. Open in External App by YuTengjing Microsoft Marketplace - ability to open the file in other applications. Needed for *.ogf Anomaly Modding Book, *.object Anomaly Modding Book, .dm Anomaly Modding Book, *.omf Anomaly Modding Book, *.dds Anomaly Modding Book, .thm Anomaly Modding Book, *.ogm Anomaly Modding Book files

    • The extension can be configured by writing in settings.json in the "openInExternalApp.openMapper": [ needed programs. Example:
    settings.json
    "openInExternalApp.openMapper": [

    // 3D models (ogf, dm, object)
    {
    "extensionName": "ogf",
    "apps": "D:\\Needed\\Modding Tools\\OGF.Editor\\OGF tool.exe"
    },
    {
    "extensionName": "object",
    "apps": "D:\\Needed\\Modding Tools\\Object.Editor.4.35\\Object tool.exe"
    },
    {
    "extensionName": "dm",
    "apps": "D:\\Needed\\Modding Tools\\OGF.Editor\\OGF tool.exe"
    },
    // Textures (thm, dds)
    {
    "extensionName": "thm",
    "apps": "D:\\Needed\\Modding Tools\\THM_Editor_by_ValeroK\\THM Editor.exe"
    },
    {
    "extensionName": "dds",
    "apps": "C:\\Program Files\\paint.net\\paintdotnet.exe"
    },

    // Video
    {
    "extensionName": "ogm",
    "apps": "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe"
    },
    // Animations
    {
    "extensionName": "omf",
    "apps": "D:\\Needed\\Modding Tools\\OMF.Editor.1.2\\OMF_Editor.exe"
    },
    ],
  5. HLSL support and preview for shaders:

  6. TGA Image Preview by lunarwtr Microsoft Marketplace - Preview *.tga files