• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to use the Dencer VS Code Extension?

Level 2
Joined
Dec 12, 2023
Messages
2
Hi, I just started learning how to code in Lua and have found copy-pasting into the editor to be tedious.
I found the Dencer tool but can't figure out how to get it to work.

  • I've Created a new project
  • added a .w3x file to the directory
  • and when I run the "Pack Map" command I get this error
    • [Warcraft vscode] ENOENT: no such file or directory, open 'c:\Users\...\Temp.w3x\war3map.lua'

My warcraft.json file looks like this

Code:
{
  "mapdir": "Temp.w3x",
  "files": ["src/main.lua"],
  "lua": {
    "package": {
      "path": [
        "./?.lua",
        "./?/init.lua"
      ]
    }
  }
}

I've added nothing to the directory after running Create Project except for the w3x file.
Really the only functionality I'm looking for is to transfer my Lua code in VS straight into the world editor for me.

Thanks in advance!
 
Last edited:
Top