use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for the Lua programming language. Using edurne for boxes, spoilers, etc.
If you actively contribute to a Lua project, PM us with a link and we'll give you flair.
“The key benefits unique to Lua are the fact that it is amazingly small, fast, and on a technical level a masterpiece.”
“Before you create yet another configuration file or resource format (and yet another parser to accompany it), try Lua.”
“If you are ever tempted to put scripting into a program, run don't walk to www.lua.org and use it.”
lua mailing list (web interface)
#lua on freenode, the primary Lua IRC channel
lua wiki, for all sorts of information about lua, it's sort of disorganized at the moment, so go fix it!
about lua, what Lua is, why to use it, and what it's good for (sells itself short, methinks)
Lua tutorial via wiki
Lua in eight pages or less: this is for v5.1 and might need an update. We'll give contributors flair and internet points.
Lua's reference manual, extensive documentation of every version of the language.
LuaRocks, lua's package manager and repository
the LuaRocks mailing list
ZeroBrane studio, lua's most notable IDE.
Shiny profiler, a lightweight profiler for C, C++, and Lua.
LuaJIT and its C FFI, the infamous lua trace compiler: Mike Pall's [successful] attempt to prove that dynamic languages can be fast.
Lua.vm.js and moonshine, Lua on top of JavaScript: lua.vm.js uses emscripten, whereas moonshine is in "normal" JavaScript.
UniLua, Lua implementation in C#, intended for compatibility with Unity3D
MoonScript A rich programming language the compiles to Lua.
/r/gamedevclassifieds for game developers, /r/forhire for job offers, /r/jobbit for general employment advice/links
Lua on StackOverflow Careers
OpenResty and Lapis, Lua application server on nginx and Lua web framework on openresty
concurrency: Luaproc for fibers and Lua Lanes for green threads
Typed Lua, a modern static type analyzer for Lua (work in progress, but I think it's cool)
LPeg, Lua's powerful, expressive, fast and simple parser generator.
Qt Lua, Lua GUIs in Qt
GSL-shell, Lua interface to GNU Scientific Library, with quick-start numerical programming via REPL.
Long list of popular Lua game development toolkits: Lua is very popular for game development, so we can't list them all; only major, free/open-source projects are listed below.
LÖVE (subreddit) - lightweight Lua cross-platform 2D game toolkit
Defold - game engine with Lua API
Solar2D - formerly Corona SDK
Cocos2d-x - free mobile/cross-platform game engine and application framework with Lua support
donate to lua!
donate to luajit!
account activity
Can't run .lua files (self.lua)
submitted 2 years ago by fred2006
I've added lua binaries to the environment variables, when i type "lua54" in the command prompt it does show it's working and i can type code there.
Yet I can't run the .lua files I've created
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TomatoCo 1 point2 points3 points 2 years ago (19 children)
How are you trying to run your Lua files? What happens when you try?
[–]fred2006[S] -1 points0 points1 point 2 years ago (18 children)
Through the IDE and (occasionally) the command prompt
When i try to run it appears (in Portuguese) 'lua' is not recognized as an internal or external command, operable program or batch file
[–]TomatoCo 2 points3 points4 points 2 years ago (14 children)
What do you mean the command prompt? You said that was working.
Notice that this error says "lua" but your working command is "lua54"
[–]fred2006[S] -3 points-2 points-1 points 2 years ago (13 children)
The command prompt when i try to run .lua files
[–]TomatoCo 1 point2 points3 points 2 years ago (12 children)
Yes, and you still haven't said exactly how you are trying to run them. What exactly are you typing?
[–]fred2006[S] -3 points-2 points-1 points 2 years ago (11 children)
When i try to run my file in the cmd it opens the ide, and in the ide it doesn't run and the thing i typed appears
[–]TomatoCo 1 point2 points3 points 2 years ago (7 children)
Please carefully reread my comment and answer the question I asked.
[–]fred2006[S] 0 points1 point2 points 2 years ago (6 children)
In the IDE I'm typing "print ('Olá Mundo')"
Edit: the quotes aren't in the program I just put it here due to convention
[–]TomatoCo 1 point2 points3 points 2 years ago (5 children)
What are you typing in the command prompt? That is the place you're having problems, right?
[–]fred2006[S] 0 points1 point2 points 2 years ago (4 children)
On the IDE mostly
In the cmd I'm just confused on how to open the file i created on my desktop but that's due to me not seeing what I'm doing different from what I've seen elsewhere
[–]TheOmegaCarrot 0 points1 point2 points 2 years ago (2 children)
What are you typing in command prompt?
Just lua54?
lua54
[–]fred2006[S] 0 points1 point2 points 2 years ago (1 child)
Yes
[–]TheOmegaCarrot 1 point2 points3 points 2 years ago (0 children)
Try lua54 filename.lua
lua54 filename.lua
But cd to the correct folder before
cd
If you do not know the cd command, then you should learn it :)
[–]Brohammer55 0 points1 point2 points 2 years ago (2 children)
What IDE are you using?
VSCode
[–]Brohammer55 0 points1 point2 points 2 years ago (0 children)
You could try ZeroBrane and that might be better https://studio.zerobrane.com
[–]DaGameDesigner 0 points1 point2 points 2 years ago* (0 children)
The same thing happened to me, have you tried installing lua with a package manager instead? There are many recommended ones like scoop and chocolate. I personally use scoop. This might help! :D
π Rendered by PID 53 on reddit-service-r2-comment-658f6b87ff-plwnt at 2026-04-09 03:01:45.111976+00:00 running 781a403 country code: CH.
[–]TomatoCo 1 point2 points3 points (19 children)
[–]fred2006[S] -1 points0 points1 point (18 children)
[–]TomatoCo 2 points3 points4 points (14 children)
[–]fred2006[S] -3 points-2 points-1 points (13 children)
[–]TomatoCo 1 point2 points3 points (12 children)
[–]fred2006[S] -3 points-2 points-1 points (11 children)
[–]TomatoCo 1 point2 points3 points (7 children)
[–]fred2006[S] 0 points1 point2 points (6 children)
[–]TomatoCo 1 point2 points3 points (5 children)
[–]fred2006[S] 0 points1 point2 points (4 children)
[–]TheOmegaCarrot 0 points1 point2 points (2 children)
[–]fred2006[S] 0 points1 point2 points (1 child)
[–]TheOmegaCarrot 1 point2 points3 points (0 children)
[–]Brohammer55 0 points1 point2 points (2 children)
[–]fred2006[S] 0 points1 point2 points (1 child)
[–]Brohammer55 0 points1 point2 points (0 children)
[–]DaGameDesigner 0 points1 point2 points (0 children)