Configuring VSCode-like programs to handle game files


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

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

Attention! 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


Step 2. Configuring Extension Associations with a Programming Language

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

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

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 - provides more detailed data about the sound files. Needed for .ogg files

  2. LTX Support by AziatkaVictor - adds support for .ltx files

    • extension can be configured, to do this in his settings need to specify the path to the scripts of the game
    • More About
  3. Two extensions for Lua. Needed for .script files:

    • LUA by keyring

    • LUA by yinfei

    • You need a fully unpacked scripts folder to work. You also need to create a workspace for your project. Some files will always give error warnings (e.g. lua_help - This can be deleted or added to exceptions in the extension from yinfei)

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

    • The extension can be configured by writing in settings.json in the "openInExternalApp.openMapper": [ needed programs. Example:
    "openInExternalApp.openMapper": [
    
     // 3D models (ogf, dm, object)
         {
             "extensionName": "ogf",
             "apps": "D:\\Нужное\\Modding Tools\\OGF.Editor\\OGF tool.exe"
         },
         {
             "extensionName": "object",
             "apps": "D:\\Нужное\\Modding Tools\\Object.Editor.4.35\\Object tool.exe"
         },
         {
             "extensionName": "dm",
             "apps": "D:\\Нужное\\Modding Tools\\OGF.Editor\\OGF tool.exe"
         },
     // Textures (thm, dds)
         {
             "extensionName": "thm",
             "apps": "D:\\Нужное\\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:\\Нужное\\Modding Tools\\OMF.Editor.1.2\\OMF_Editor.exe"
         },
     ],
    
  5. HLSL support and preview for shaders:

  6. TGA Image Preview by lunarwtr - Preview .tga files