Who else love to use Lua for Shell Scripting? Im planning to make a shell from scratch with Lua configuration.
https://redd.it/1qb6gyt
@r_lua
https://redd.it/1qb6gyt
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Open sourcing lowkPRO
https://lowkpro.com/blog/open-sourcing-lowkpro.html
https://redd.it/1qbycax
@r_lua
https://lowkpro.com/blog/open-sourcing-lowkpro.html
https://redd.it/1qbycax
@r_lua
Squish 5.2+ I forked and updated the squish module for Lua 5.2+ compatibility
GitHub link
I was looking to use a minifier for my own module I've been working on and knew about squishy, but from what I could tell it was only compatible with 5.1 and lower. I checked out some existing forks but didn't find anything that suited what I needed, so I adopted that "sigma-coder mindset" and did it myself.
It's literally just squish but made to work with Lua 5.2+
The biggest "change" I made is updating the documentation to be more robust, mostly for myself but in case anyone else was confused as to how to build/use it since it took me forever to completely understand.
Some features like `gzip` and `debug` I haven't touched and are just as they were previously. I wasn't going to get into that since they were already experimental features for the existing versions. I'll look into it in the future cause it sounds interesting.
Hope this can be useful to someone other than me!
https://redd.it/1qd2hi7
@r_lua
GitHub link
I was looking to use a minifier for my own module I've been working on and knew about squishy, but from what I could tell it was only compatible with 5.1 and lower. I checked out some existing forks but didn't find anything that suited what I needed, so I adopted that "sigma-coder mindset" and did it myself.
It's literally just squish but made to work with Lua 5.2+
The biggest "change" I made is updating the documentation to be more robust, mostly for myself but in case anyone else was confused as to how to build/use it since it took me forever to completely understand.
Some features like `gzip` and `debug` I haven't touched and are just as they were previously. I wasn't going to get into that since they were already experimental features for the existing versions. I'll look into it in the future cause it sounds interesting.
Hope this can be useful to someone other than me!
https://redd.it/1qd2hi7
@r_lua
GitHub
GitHub - NathanTBeene/squish: [ 5.2+ ] Squish Lua libraries and apps into a single compact file.
[ 5.2+ ] Squish Lua libraries and apps into a single compact file. - NathanTBeene/squish
Using ipairs() – antipattern? It cuts half of the table upon field nil assignment.
> a = {1,2,3,4}
> for k,v in pairs(a) do print(v) end
1
2
3
4
> a2 = nil
> for k,v in ipairs(a) do print(v) end
1
> a = {1,nil,3,4}
> for k,v in ipairs(a) do print(v) end
1
>
Commentary: *I know* about pairs() and ipairs(). But I would be _really_ expecting 1,nil,2,3 and not loosing half of my table because I reasigned something to nil.
Is it intended that every assignment after a[2\] = nil must be transferred to the hash part? It is sooo confusing.
Am I arriving at the right conclusion that using ipairs() might be an antipattern and I should stick to pairs or numerical for loop? Unless I am _really reallyyy_ sure that I have a LIFO-like table..?
https://redd.it/1qdodl1
@r_lua
> a = {1,2,3,4}
> for k,v in pairs(a) do print(v) end
1
2
3
4
> a2 = nil
> for k,v in ipairs(a) do print(v) end
1
> a = {1,nil,3,4}
> for k,v in ipairs(a) do print(v) end
1
>
Commentary: *I know* about pairs() and ipairs(). But I would be _really_ expecting 1,nil,2,3 and not loosing half of my table because I reasigned something to nil.
Is it intended that every assignment after a[2\] = nil must be transferred to the hash part? It is sooo confusing.
Am I arriving at the right conclusion that using ipairs() might be an antipattern and I should stick to pairs or numerical for loop? Unless I am _really reallyyy_ sure that I have a LIFO-like table..?
https://redd.it/1qdodl1
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
lua lu
Can I get the readable text from a .lu file? I have the APK and everything is in the resource.car file, but the text inside is unreadable. I don't have a copy of the original code other than the APK, and I can't fix the errors right now because of that. Do you know of any way to do this?
https://redd.it/1qdnspz
@r_lua
Can I get the readable text from a .lu file? I have the APK and everything is in the resource.car file, but the text inside is unreadable. I don't have a copy of the original code other than the APK, and I can't fix the errors right now because of that. Do you know of any way to do this?
https://redd.it/1qdnspz
@r_lua
Lua Gotchas
Hi folks, I've been programming with Python for about 2 years now.
My coworker suggested that start embedding Lua into my projects to speed up the slower parts(I think he is getting annoyed by some of the slowness lol). Anyone know something that might bite me in the butt that is easy to overlook? From what I understand, I can install Lupa and get the runtime like that. He told me to use a bunch of tables. Is that correct for the most part?
https://redd.it/1qeuole
@r_lua
Hi folks, I've been programming with Python for about 2 years now.
My coworker suggested that start embedding Lua into my projects to speed up the slower parts(I think he is getting annoyed by some of the slowness lol). Anyone know something that might bite me in the butt that is easy to overlook? From what I understand, I can install Lupa and get the runtime like that. He told me to use a bunch of tables. Is that correct for the most part?
https://redd.it/1qeuole
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
It’s a shame what seems to be happening to luau
I was in discussions with someone on what noscripting 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.
https://redd.it/1qjkk8p
@r_lua
I was in discussions with someone on what noscripting 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.
https://redd.it/1qjkk8p
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
I'm making a tool for making and distributing terminal apps that use Lua, what are your thoughts?
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 noscripts, permissions even (so that some sensitive functions like
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
https://redd.it/1qjab4s
@r_lua
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 noscripts, 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
https://redd.it/1qjab4s
@r_lua
GitHub
TtyPack/docs/main.md at master · Ict00/TtyPack
TtyPack: Single-file Lua TUI apps with built-in APIs and sandboxing - Ict00/TtyPack
[Hobby] Garry’s Mod WW2 Server in dev. Looking for GLua/Lua Devs & Model Artists
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**
* Gamemode noscripting
* Fixing or improving existing systems
* Helping build core server features
* **Model artists**
* Fixing or improving existing models
* Making better replacements
What you get:
* Credit for your work
* Long-term collaboration if things go well
* Freedom to share ideas and help shape the server
* Something you can use for your portfolio
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](https://discord.gg/CdycaHdt6B)
**Youtube Channel for Dev Showcases:** [Youtube](https://www.youtube.com/@AlphaRoleplayWaW?sub_confirmation=1)
https://redd.it/1qjhad4
@r_lua
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**
* Gamemode noscripting
* Fixing or improving existing systems
* Helping build core server features
* **Model artists**
* Fixing or improving existing models
* Making better replacements
What you get:
* Credit for your work
* Long-term collaboration if things go well
* Freedom to share ideas and help shape the server
* Something you can use for your portfolio
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](https://discord.gg/CdycaHdt6B)
**Youtube Channel for Dev Showcases:** [Youtube](https://www.youtube.com/@AlphaRoleplayWaW?sub_confirmation=1)
https://redd.it/1qjhad4
@r_lua
Discord
Join the Alpha Roleplay World At War Discord Server!
Take on the role of a soldier, officer, or civilian, and live through the struggles of wartime. Step into an immersive and dynamic roleplay experience set within Germany during World War II. | 210 mem
Building an Interactive Lorenz Attractor in LÖVE2D
https://slicker.me/lua/lorenz/lorenz.htm
https://redd.it/1qinok9
@r_lua
https://slicker.me/lua/lorenz/lorenz.htm
https://redd.it/1qinok9
@r_lua
slicker.me
Building an Interactive Lorenz Attractor in LÖVE2D
i have no idea what i am doing at all, but ive learned that this is a lua based game- so i thought this would be a good place to ask
https://preview.redd.it/xzu2z984tfeg1.png?width=1916&format=png&auto=webp&s=c9eb4e87ffd2b11594a3993f0ab69305570204ac
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
https://redd.it/1qhs4j6
@r_lua
https://preview.redd.it/xzu2z984tfeg1.png?width=1916&format=png&auto=webp&s=c9eb4e87ffd2b11594a3993f0ab69305570204ac
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
https://redd.it/1qhs4j6
@r_lua
Help
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.
https://redd.it/1qhnzbb
@r_lua
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.
https://redd.it/1qhnzbb
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Open sourced Luat: server-side Lua for web apps. Curious if I’m alone liking this direction.
https://github.com/maravilla-labs/luat
https://redd.it/1qhimwi
@r_lua
https://github.com/maravilla-labs/luat
https://redd.it/1qhimwi
@r_lua
GitHub
GitHub - maravilla-labs/luat: Svelte-inspired server-side Lua templating for Rust
Svelte-inspired server-side Lua templating for Rust - maravilla-labs/luat
Did I make a mistake by starting to learn programming with Lua?
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.
https://redd.it/1qhej78
@r_lua
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.
https://redd.it/1qhej78
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Since Gmod uses a form of lua I was wondering can anyone help me with noscripting a attack animation
I’ve tried everything and there aren’t any tutorials about making a kill animation online
https://redd.it/1qi5gyy
@r_lua
I’ve tried everything and there aren’t any tutorials about making a kill animation online
https://redd.it/1qi5gyy
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Asking aga n but how do I give my custom npc that uses Drgbase a death animation on gmod
https://redd.it/1qjz1wc
@r_lua
https://redd.it/1qjz1wc
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
I want to learn Lua. But i dont know where to start
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
https://redd.it/1qk93qw
@r_lua
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
https://redd.it/1qk93qw
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Decided to start learning lua and made this simple tic tac toe program
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
https://redd.it/1ql65fl
@r_lua
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
https://redd.it/1ql65fl
@r_lua
GitHub
Lua-Playground/Tic Tac Toe/tictactoe.lua at main · StativKaktus131/Lua-Playground
Testing out small projects to learn lua . Contribute to StativKaktus131/Lua-Playground development by creating an account on GitHub.
Are there any Lua gamedev frameworks that run on the Xbox360? (Homebrew
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.
https://redd.it/1ql8ngf
@r_lua
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.
https://redd.it/1ql8ngf
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Free resource for roblox game dev?
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.
https://redd.it/1ql9sy0
@r_lua
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.
https://redd.it/1ql9sy0
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community