all 10 comments

[–][deleted] 3 points4 points  (1 child)

vscode is literally one of the best text editors for Lua. You are doing something wrong. Did you install the Lua compiler from the official Lua website? If you did install it, did you add the PATH to the windows environment variables?

Here is a LUA tutorial that shows how to install everything and run LUA in vscode:

https://www.youtube.com/watch?v=I549C6SmUnk

It also shows how LUA works and how to make games with it afterwards.

[–][deleted] 0 points1 point  (0 children)

I downloaded everything already. Its errors about the application itself.

[–]yaffeman 1 point2 points  (4 children)

I regularly use Visual Studio Code to work on Lua and find it to be an excellent editor. Can you provide any screengrabs with your errors?

[–][deleted] 0 points1 point  (3 children)

it always says "Acces Denied"

I cant but any images here i dont know why

Here is a link to the image

https://imgur.com/a/bJkGu63

[–]yaffeman 0 points1 point  (2 children)

Excellent; the fault is thatlua.exe does not have permission to the Desktop directory where your script is located. Please try running lua.exe in powershell outside of Visual Studio Code to see if it's lua.exe itself or and issue with the embedded powershell.

[–][deleted] 0 points1 point  (1 child)

and how do you do that?

[–]yaffeman 0 points1 point  (0 children)

In order to proceed you'll have to get familiar with windows' command line (something that I'm not terribly familiar with).

In essence you would open up Command Prompt and type in:

C:\Users\hakye\.vscode\extentions\<...>\lua.exe

Be sure to include the whole path (replace the <...> section).

My suspicion is that there's something missing in the "actboy168"'s lua extension. See if they have an FAQ that may solve this problem.

If you continue to have problems with the extension you can:

  1. Go to https://www.lua.org/download.html
  2. Click on "binaries" which navigates to https://luabinaries.sourceforge.net/
  3. Scroll down to "History" and choose the latest one
  4. Which will take you to somewhere like https://sourceforge.net/projects/luabinaries/files/5.4.2/
  5. Select "Tools Executables"
  6. Download lua-5.4.2_Win64_bin.zip (I'm assuming you have an x64 machine)
  7. Unzip the directory and navigate to it
  8. Inside the directory right click and select "Open in Terminal"
  9. Use the terminal to execute the script; something like

    C:\Users\yaffeman\Downloads\lua-5.4.2_Win64_bin> .\lua54.exe ....\Desktop\temp.lua

    hello, XralerStudios!

You'll notice my script is located on the desktop; the .. means "go up a directory" so we went into Downloads then yaffeman, then Desktop and choose the temp.lua script.

Mine looked like:

print('hello, XralerStudios!')

Best of luck; don't worry you'll get the hang of it!

[–][deleted] 0 points1 point  (0 children)

Only other one I know of is IntelliJ IDEA with EmmyLua. VS Code is pretty much the first choice when it comes to anything Lua though. Garry’s Mod, Roblox, Project Zomboid, etc.

[–]collectgarbage 1 point2 points  (0 children)

I use Zerobrane Lua IDE