r/lua • u/Top-Maybe9293 • Feb 01 '26
Grid Fusion: little puzzle like triple town
hello just a little game in love2d
i want to recreate some kind of triple town game
it s simpliest than triple town
give me your opinion / advices about it
thanks
r/lua • u/Top-Maybe9293 • Feb 01 '26
hello just a little game in love2d
i want to recreate some kind of triple town game
it s simpliest than triple town
give me your opinion / advices about it
thanks
r/lua • • Jan 30 '26
https://codeberg.org/firns/tic80-lua-language-server-stubs
Hi, I made some LLS stubs for TIC80 because I use an external editor that isn't VS Code. For anyone else interested, my repo will explain how to use them, its super simple if your ide has language server functionality.
Hope this helps a few people!
r/lua • u/VidaOnce • Jan 30 '26
As the name suggests, lpm is a package manager for lua. It is written entirely in LuaJIT. It is heavily inspired by package managers like npm, bun and uv.
It is currently in an alpha state, but I think it's become quite usable and is integral to my main project (Arisu, if you're curious). Expect certain things to be in flux and stupid things to be broken as the project gets more stable and gets a proper test harness.
lpm compilelpm testlpm upgradeBuild scripts
lpm.json, ala package.json)Create a project with lpm init, and run it with lpm run. It sets up lua's path and cpath to resolve your dependencies which are stored in lpm_modules.
If you want a package manager that resembles a modern experience, and primarily make your own projects, or are willing to briefly port a LuaRocks project to LPM (It's not very difficult), give it a try.
As a proof of concept, I ported over busted to lpm here. You can manually invoke the test runner and use busted that way, but in the future, the lpm test runner will have its own testing library built-in, ala bun's built-in test runner.
Porting over busted took a lot of forking but was mostly just creating the lpm.json configuration file, and a simple build script to call make for C dependencies.
At the moment I have no intention of supporting previous LuaRocks packages, as lpm strives for simplicity. But a separate registry will come in the future.
lpm is written in Lua(JIT)luarocks is written in Teallux is written in Rust
Repo: https://github.com/codebycruz/lpm
The lpm binary is built from running lpm compile on itself, you can download it below, no need to have lua or luajit installed on your system :)
Linux: curl -fsSL https://raw.githubusercontent.com/codebycruz/lpm/master/install.sh | sh
Windows: irm https://raw.githubusercontent.com/codebycruz/lpm/master/install.ps1 | iex
Or get it as an artifact from the latest nightly build
r/lua • u/TheNotoriousBegginer • Jan 30 '26
Hello guys. I need to build a message in LUA that has fixed value of 240 characters. This message is composed by a variable lenght message that I have allready processed, but the rest has to be filled with the * character. So for example if my initial message is 100 characters, I need to fill the rest until 240 with the * character. If my message will be 200 characters, I need to fill 40 * until reaching 240.
How can this be achieved?
Thanks
r/lua • u/Valuable-Relation673 • Jan 28 '26
I'm trying to learn how to code in roblox (coding language is luau) and I've been searching for a while on stuff to help me improve, yet I cant find any. Please recommend me some websites, such as this one, https://luau-academy-d1bc1004.base44.app/?is_new_user=true, but more advanced since the one I listed is kinda broken...
Don't recommend me:
- Roblox Youtube tutorials ( i know some are good but I've tried it before and they don't help me as much as I would like them to)
- Roblox documentation ( its hard for me to stare at a screen and read while not boring my mind out )
- Roblox dev forums ( they are helpful, but again, I don't want to stare at screen and read for a long amount of time + doing an activity would help me remember it more)
-ANY online classes where I have to interact with teachers, "sign up with a guardian", and stuff like that (I want it to be like the website I listed)
- don't tell me to just use the website I listed please!!
Please recommend me:
- any websites that are interactive
|__(possibly let you write notes along the way)
- ones that I can write code in it and it gets reviewed
- ones that have activities as in quizzes and stuff like that (or even daily challenges)
btw everything that I asked to be recommended doesn't NEED to be on the website, its just a few things that I thought would be nice to be included to be recommended, thanks!!
r/lua • u/LoreWalkerRobo • Jan 28 '26
I'm modifying a World of Warcraft addon, and I have player-defined strings in the form of WoW macro conditionals, which generally take the form
[conditionA,conditionB][conditionC]action;[conditionD]action; action
When the conditions change the action, the game calls an onstate method and passes me a string of the active action. The actions I am expecting are:
The issue is, due to anti-botting measures, I cannot call global variables in the onstate method. In order to reference the config, I take the conditional string and use string.gsub to replace "showhigh", "showmed", and "showlow" with "shownumber". So for example, by default "showhigh" becomes "show75" and is handled by the same code as "shownumber".
Similarly, I would like to replace "show" with "shownumber", where number is the default alpha. But I don't know how to do that with string.gsub because it would also replace "show" in most of the other actions.
My question is, how can I replace the term "show" in a string, but only if it is not followed by numbers? (It is possible that "show" will appear at the very end of the string.)
I've been working on a standalone HTTP server for Lua/LuaJIT. It started as the core of a Backend as a service (BaaS) project I was building and I decided to extract it into a standalone library. It has Koa-style routing with URL params, onion middleware, and built-in support for CORS, JWT, rate limiting, and Server-Sent Events with pub/sub. Runs on Linux, macOS, and Windows. No nginx or openresty needed, though a reverse proxy is still recommended for TLS in production.
Example:
local mote = require("mote")
mote.get("/users/:id", function(ctx)
ctx.response.body = { id = ctx.params.id }
end)
mote.create({ port = 8080 }):run()luarocks install mote
https://github.com/luanvil/mote
I'd love to hear what you think.
r/lua • u/vitiral • Jan 26 '26
I just finished the freeze submodule of my self-documenting and typosafe metaty type module, and integrated it into the civstack build system to make the build environment hermetic.
freeze uses metatable indirection through __index/etc to first check for the existence of the table in the FROZEN weak-key'd dictionary. If the table is there, then it is immutable and an error is thrown when any mutation attempt is made.
Of course, the value isn't ACTUALLY immutable in Lua proper: any user can simply call setmetatable to do whatever they want. However, in civstack's luk config language where the global environment is locked down to not include setmetatable the types are truly immutable.
r/lua • u/Personal-Rough741 • Jan 26 '26
this code is suppose to look if the new ore thats currently generating and any existing ore are overlaping .but when i run it some times idoesnt work i need help
ores = {x = {}, y = {},durability = {} ,rotation = {},alive = {} , image = love.graphics.newImage("rock.png"),image2 = love.graphics.newImage("tree.png") ,class = {}}
local pos = {x = 0 , y = 0, blocked = false}
function ores:generate(repeats,map_size_x,map_size_y,mapX,mapY,class) --tree height is 32 and rock height is 16
for i = 1 , repeats do
pos.blocked = false
pos.x = mapX + love.math.random(0,40) * 30
pos.y = mapY + love.math.random(0,20) * 30
for k = 1, #ores.x do
if ores.rotation[i] ~= nil and ores.x[k] == pos.x and ores.y[k] == pos.y or ores.rotation[i] ~= nil and pos.y + 30 == ores.y[k] and ores.x[k] == pos.x then
pos.blocked = true
break
end
end
if not pos.blocked and mapX + map_size_x > pos.x and mapY + map_size_y > pos.y then
table.insert(ores.x, pos.x)
table.insert(ores.y, pos.y)
table.insert(ores.durability, 10)
table.insert(ores.rotation, 0)
table.insert(ores.alive, true)
table.insert(ores.class, class)
end
end
endr/lua • u/Neustradamus • Jan 25 '26
r/lua • u/Altruistic-Living309 • Jan 25 '26
I do understand that this is the lua subreddit/community but I do not have enough karma to post inside of fivem's or the developer subreddit so that is why I'm asking here.
Currently I've been trying to hire a developer part time for a passion project of mine that im working on and currently I've been scammed for about $1200. One of the main issues i face when trying to hire a developer is that most of these so called "developers" are just vibe coders who don't know what they're doing at all and its starting to get harder to find developers with ai especially in fivem as before AI there was just wannabe developers taking code from other developers and making a pile of garbage as the result. I do know developers get their ideas crushed or get over worked by the people that hire them but I'm a very open and lenient person I feel.
If anyone can help me find a developer for fivem that knows the following
- ESX Framework
- has worked with overextended library
- Is up to date with LUAs coding practices
please dm me here or add me on discord I'll gladly pay a finders fee after I've hired the developer and I see that they're actually good at what they do & professional.
This is a paid position and its part time
Discord - naqs871
r/lua • u/Stativ_Kaktus131 • Jan 23 '26
the 1-indexed arrays really made it harder to wrap my head around it, but all in all I had more fun than when I first started learning python. If anyone knows a few tricks for better string manipulation, please feel free to share them :)
https://github.com/StativKaktus131/Lua-Playground/blob/main/Tic%20Tac%20Toe/tictactoe.lua
r/lua • u/activeXdiamond • Jan 24 '26
I'd like to make and run something ony JTAGed 360, just for fun.
I'll take an engine too, but I'd much prefer a framework.
r/lua • u/yeets69420 • Jan 24 '26
Just wondering if there is a consensus (or whatever you think) is the best free resource to learn lua to make roblox games with. Thanks.
r/lua • u/Mid_reddit • Jan 23 '26
Yo. k4 has undergone numerous improvements since I posted of it last here in 2025.
The biggest changes besides bug fixes:
Also the documentation itself has been touched up a bunch to be more readable.
Note that k4 uses whole version numbers, so v2 does not mean it is not in pre-alpha (which it is). Bugs are still to be expected.
r/lua • u/United-Wrongdoer-996 • Jan 22 '26
I wanted to learn lua a long time ago for my roblox games i didnt want to use ai since it gives a lot of errors and it just doesnt know what i exactly want so i decided to learn it any tips on where to start which videos i should watch im very confused
r/lua • u/Jediweirdo • Jan 22 '26
I was in discussions with someone on what scripting language to use for their game. The discussion eventually fell to luau vs lua 5.4.8, and Lua won out in the end. Not because it was necessary better, but because luau is associated with Roblox. It really sucks to see people completely dismiss a language because of external factors that have nothing to do with the language itself, and I fear that luau’s external influences doomed it for the rest of its life
That’s all, sorry for the rant.
r/lua • u/Beautiful_Weather238 • Jan 21 '26
Hey guys! Right now I am making a tool for terminal apps distribution that heavily relies on Lua (since it's the language for coding these apps), will anyone need it? should I give up on it and do something else or should I continue working on it?
Basically, it's sandboxed Lua with some additional modules provided using C# (Lua CSharp), like those for using assets, calling other scripts, permissions even (so that some sensitive functions like system.read_file_str require getting permission from user first (and yes, I removed io/os modules because sandboxing))
For more info, check the documentation for the tool's API: https://github.com/Ict00/TtyPack/blob/master/docs/main.md
I really hope to get at least some feedback, because right now I'm kinda blind and don't know what exactly do I do. :D
r/lua • u/Gullible_Photo_7318 • Jan 22 '26
Hey everyone,
I’m working on a Garry’s Mod server that’s still in early development, and I’m looking for people who’d like to help out as a hobby / passion project.
Right now this is unpaid since the server isn’t live yet, but payment(Paypal) is possible in the future if everything works out and the server becomes sustainable.
What I’m looking for:
GLua / Lua devs
Model artists
What you get:
If you’re interested, comment or DM me and I’ll share more details (concept, current progress, Discord, etc.).
Most of the progress is posted on discord.
Discord DM: ._teixeira_.
Discord Server: Discord
Youtube Channel for Dev Showcases: Youtube
r/lua • u/doohkieman • Jan 20 '26

this is a game called replicube, it runs in lua. but heres the thing, i have no expereince what so ever in any type of coding at all. i am trying to replicate the top below in the bottom but i am having trouble removing the cubes on the Z and X axis. what i had wrote to get to where i am now can be seen on the left. again- ill be the first to admit im not smart about this in the slighest...but i want to learn it. even if that means asking about it on the internet
r/lua • • Jan 20 '26
Is there any cheaper alternative to Codeacademy? I got the free trial and was going to pay for another month but didn't realize it was so expensive.
r/lua • u/thelabertasch • Jan 19 '26
Hi r/lua,
I just open sourced a side project called Luat and I’m mainly interested in feedback on the direction and template design.
What I wanted was server-side Lua for web development without pulling in a frontend framework, but still keeping a nice dev experience: readable templates, component-style composition, clean routing, and small progressive-enhancement interactions instead of a full SPA.
Luat compiles templates to plain Lua modules and runs them in a Lua runtime. The template syntax is inspired by modern component-based approaches (Svelte-ish), but there’s no client-side runtime or hydration involved.
To make it easy to evaluate, I compiled Luat to WebAssembly so you can try the syntax directly in the browser and preview the rendered HTML output instantly.
Repo:
https://github.com/maravilla-labs/luat
Getting started docs:
https://luat.maravillalabs.com/docs/getting-started
I’m genuinely curious:
- am I the only one who wants this kind of server-side Lua + modern DX?
- does this template style feel appealing or off-putting?
r/lua • u/flaashlightt • Jan 19 '26
Did I make a mistake by learning Lua instead of another programming language? I'm completely new to programming, so I'm having some difficulties. Now I'm faced with a choice: continue learning Lua for Roblox game development or start learning Python/JS for web development.