How to use the Dencer VS Code Extension?

Status
Not open for further replies.
Level 2
Joined
Dec 12, 2023
Messages
5
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:
Status
Not open for further replies.
Top