Molvez Community Addon Wow
# Molvez_Addon
The first community addon !
Hello everyone! Welcome to the first community addon! Molvez
A UNIQUE addon that needs nothing but itself. An addon that takes everything into account: UI, collection, quests, details, chat, etc. etc... Here you can share your ideas, talk about anything and everything. My name is Pierre, and I'm pretty good at photo editing and I'm learning LUA Code, so I thought, why not practice on a wow addon. Might as well combine business with pleasure, right?
So I'm slowly learning, but even if I'm able to define frames graphically, I'm not yet at the level to create such a major addon on my own.
So I'm defining the addon's graphic approach, and if you'd like to take part in the coding, I'd be delighted to!
[https://discord.gg/zFPrryq8](https://discord.gg/zFPrryq8)
created by the players themselves
https://redd.it/1j0x21x
@r_lua
# Molvez_Addon
The first community addon !
Hello everyone! Welcome to the first community addon! Molvez
A UNIQUE addon that needs nothing but itself. An addon that takes everything into account: UI, collection, quests, details, chat, etc. etc... Here you can share your ideas, talk about anything and everything. My name is Pierre, and I'm pretty good at photo editing and I'm learning LUA Code, so I thought, why not practice on a wow addon. Might as well combine business with pleasure, right?
So I'm slowly learning, but even if I'm able to define frames graphically, I'm not yet at the level to create such a major addon on my own.
So I'm defining the addon's graphic approach, and if you'd like to take part in the coding, I'd be delighted to!
[https://discord.gg/zFPrryq8](https://discord.gg/zFPrryq8)
created by the players themselves
https://redd.it/1j0x21x
@r_lua
Discord
Join the Molvez_Addon Discord Server!
Check out the Molvez_Addon community on Discord - hang out with 1 other members and enjoy free voice and text chat.
ZeroBrane Studio WX Error
WX doesn't exist for some reason when I try to use "require("wx")", it says the wx.dll and etc doesn't exist at all, and when I check, it's not there, how do I download it? Or is it an error that shouldn't happen.
It also doesn't work with Turtle.lua.
The error. .\\turtle.lua:9: module 'wx' not found:
no field package.preload['wx'\]
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\lua\\wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\lua\\wx\\init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\wx\\init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\..\\share\\lua\\5.4\\wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\..\\share\\lua\\5.4\\wx\\init.lua'
no file '.\\wx.lua'
no file '.\\wx\\init.lua'
no file './wx.lua'
no file './wx/init.lua'
no file './lua/wx.lua'
no file './lua/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin/clibs54/wx.dll'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\wx.dll'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\..\\lib\\lua\\5.4\\wx.dll'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\loadall.dll'
no file '.\\wx.dll'
no file ''
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin/clibs54/wx.dll'
https://redd.it/1j1a3po
@r_lua
WX doesn't exist for some reason when I try to use "require("wx")", it says the wx.dll and etc doesn't exist at all, and when I check, it's not there, how do I download it? Or is it an error that shouldn't happen.
It also doesn't work with Turtle.lua.
The error. .\\turtle.lua:9: module 'wx' not found:
no field package.preload['wx'\]
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\lua\\wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\lua\\wx\\init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\wx\\init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\..\\share\\lua\\5.4\\wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\..\\share\\lua\\5.4\\wx\\init.lua'
no file '.\\wx.lua'
no file '.\\wx\\init.lua'
no file './wx.lua'
no file './wx/init.lua'
no file './lua/wx.lua'
no file './lua/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/wx.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\lualibs/wx/init.lua'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin/clibs54/wx.dll'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\wx.dll'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\..\\lib\\lua\\5.4\\wx.dll'
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin\\loadall.dll'
no file '.\\wx.dll'
no file ''
no file 'C:\\Users\\(My name)\\Downloads\\ZeroBraneStudio\\bin/clibs54/wx.dll'
https://redd.it/1j1a3po
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
I'm trying to convert markdown to pdf in lua but I have some questions about file systems
Hey, I want to make my own markdown to pdf convertor in lua, since I have a bunch of markdown in one of my qownnotes folders that is meant to be a book, and I want to learn how to generate files with lua. I know one could just read the files in the directory of wherever the lua noscript is, and be done with it, but how do I move to whatever directory the markdown folder is and then convert the files from there?
sorry if this doesn't make sense, I am a hobbyist coder just getting into it
https://redd.it/1j1bvx3
@r_lua
Hey, I want to make my own markdown to pdf convertor in lua, since I have a bunch of markdown in one of my qownnotes folders that is meant to be a book, and I want to learn how to generate files with lua. I know one could just read the files in the directory of wherever the lua noscript is, and be done with it, but how do I move to whatever directory the markdown folder is and then convert the files from there?
sorry if this doesn't make sense, I am a hobbyist coder just getting into it
https://redd.it/1j1bvx3
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
New to lua
Hi everyone, im new to lua and im tryna get better at it. What is the best way to learn? I know all of the basics, but i wanna know more
https://redd.it/1j1qba6
@r_lua
Hi everyone, im new to lua and im tryna get better at it. What is the best way to learn? I know all of the basics, but i wanna know more
https://redd.it/1j1qba6
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Plume - A templating langage that transpile to lua
I had already posted here (with another account) about "Plume", a Lua-extensible template language. github
Since then, I've completely restarted the project from scratch, reaching a result that I find vastly better ^(')
Plume is a template language that transpiles to Lua. You can test it here. Except for function calls, which aren't yet optimized, I find the transpiled code to be rather clean and efficient!
The transpiler is also written in Lua, and Plume can contain arbitrary Lua expressions, making it very easy to include in an existing ecosystem.
If you want a glimpse of the language, think of it as a hybrid of YAML and Lua!
myTable =
key: value
- foo
- bar
- baz
My key is $(myTable.value)
for i, x in ipairs(myTable)
myTable item n°$i is $x!
The cos of $i is $(math.cos(i))
https://redd.it/1j1uomq
@r_lua
I had already posted here (with another account) about "Plume", a Lua-extensible template language. github
Since then, I've completely restarted the project from scratch, reaching a result that I find vastly better ^(')
Plume is a template language that transpiles to Lua. You can test it here. Except for function calls, which aren't yet optimized, I find the transpiled code to be rather clean and efficient!
The transpiler is also written in Lua, and Plume can contain arbitrary Lua expressions, making it very easy to include in an existing ecosystem.
If you want a glimpse of the language, think of it as a hybrid of YAML and Lua!
myTable =
key: value
- foo
- bar
- baz
My key is $(myTable.value)
for i, x in ipairs(myTable)
myTable item n°$i is $x!
The cos of $i is $(math.cos(i))
https://redd.it/1j1uomq
@r_lua
GitHub
GitHub - ErwanBarbedor/PlumeScript: Powerfull Templating Language
Powerfull Templating Language. Contribute to ErwanBarbedor/PlumeScript development by creating an account on GitHub.
Personal beginner's project - looking for feedback on a Monopoly money counter
Hello all! I'm attempting to teach myself Lua, starting from a very limited knowledge of programming in general, and I decided to start off by writing a simple money counter for a game like Monopoly. For an added challenge, I attempted to add a layer of "idiot proofing": if you enter in a bad number or a wrong name, the program will prompt you to try again until you get it right. Here's what I've got so far:
-- a counter for monopoly money
-- this table contains all the players' names
Players = {}
-- this function displays the remaining money of all the players in the game
function DisplayTable(table)
for k,v in pairs(table) do
if v == 0 then
print(k .. " is bankrupt")
else
print(k .. " has " .. v)
end
end
end
-- this function checks a name against the table of names to see if you put in a valid input
function FilterName(table)
while true do
Name = io.read("l")
if Name ~= "Bank" and tableName == nil then
print("I don't recognize that name. Try a different name.")
elseif tableName == 0 then
print("That player is bankrupt! Try a different player.")
else
return Name
end
end
end
-- this function checks your input and filters it into a number between a specified range
function InputRange(start, stop)
while true do
Input = math.tointeger(io.read("l"))
if Input == nil then
print("That's not a valid input. Please try again.")
elseif Input < start or Input > stop then
print("That number is out of range. Please try again.")
else
return Input
end
end
end
-- this function filters out the bank every time money changes hands
function NotBank(gained, lost, amount, table)
if gained ~= "Bank" then
tablegained = tablegained + amount
end
if lost ~= "Bank" then
tablelost = tablelost - amount
end
end
-- this function makes sure that you don't put the same name twice for gaining and losing money
function NeedTwoNames(gained, table)
while true do
print("Who lost money?")
Lost = FilterName(table)
if gained == Lost then
print("You need two different names here.")
else
return Lost
end
end
end
-- this function checks to see if someone has won the game
-- this function isn't designed to handle what might happen if everyone went to zero, but hopefully that won't happen
function WinnerCheck(table)
StillAlive = 0
Winner = nil
for k, v in pairs(table) do
if v ~= 0 then
Winner = k
StillAlive = StillAlive + 1
if StillAlive > 1 then
return false
end
end
end
return Winner
end
print("Welcome to Monopoly Money Counter, the noscript that counts your money so you don't have to!\nTo read the full instructions, type in \"info\". Otherwise, type in \"start\" to get started.")
while true do
Input1 = io.read("l")
if Input1 == "info" then
print("When you start the game, you'll be prompted to enter in the names of 2 to 6 players. After entering in names, you'll then have the option of transferring money to and from players, either between players or between the player and the bank, named \"Bank\". Speaking of which, don't name any of your players \"Bank\", since that name is taken!\nIf a player would reach 0 dollars, you'll be asked to confirm whether or not you want that to happen, because going to 0 means that the player is bankrupt and out of the game. Once a player is out of
Hello all! I'm attempting to teach myself Lua, starting from a very limited knowledge of programming in general, and I decided to start off by writing a simple money counter for a game like Monopoly. For an added challenge, I attempted to add a layer of "idiot proofing": if you enter in a bad number or a wrong name, the program will prompt you to try again until you get it right. Here's what I've got so far:
-- a counter for monopoly money
-- this table contains all the players' names
Players = {}
-- this function displays the remaining money of all the players in the game
function DisplayTable(table)
for k,v in pairs(table) do
if v == 0 then
print(k .. " is bankrupt")
else
print(k .. " has " .. v)
end
end
end
-- this function checks a name against the table of names to see if you put in a valid input
function FilterName(table)
while true do
Name = io.read("l")
if Name ~= "Bank" and tableName == nil then
print("I don't recognize that name. Try a different name.")
elseif tableName == 0 then
print("That player is bankrupt! Try a different player.")
else
return Name
end
end
end
-- this function checks your input and filters it into a number between a specified range
function InputRange(start, stop)
while true do
Input = math.tointeger(io.read("l"))
if Input == nil then
print("That's not a valid input. Please try again.")
elseif Input < start or Input > stop then
print("That number is out of range. Please try again.")
else
return Input
end
end
end
-- this function filters out the bank every time money changes hands
function NotBank(gained, lost, amount, table)
if gained ~= "Bank" then
tablegained = tablegained + amount
end
if lost ~= "Bank" then
tablelost = tablelost - amount
end
end
-- this function makes sure that you don't put the same name twice for gaining and losing money
function NeedTwoNames(gained, table)
while true do
print("Who lost money?")
Lost = FilterName(table)
if gained == Lost then
print("You need two different names here.")
else
return Lost
end
end
end
-- this function checks to see if someone has won the game
-- this function isn't designed to handle what might happen if everyone went to zero, but hopefully that won't happen
function WinnerCheck(table)
StillAlive = 0
Winner = nil
for k, v in pairs(table) do
if v ~= 0 then
Winner = k
StillAlive = StillAlive + 1
if StillAlive > 1 then
return false
end
end
end
return Winner
end
print("Welcome to Monopoly Money Counter, the noscript that counts your money so you don't have to!\nTo read the full instructions, type in \"info\". Otherwise, type in \"start\" to get started.")
while true do
Input1 = io.read("l")
if Input1 == "info" then
print("When you start the game, you'll be prompted to enter in the names of 2 to 6 players. After entering in names, you'll then have the option of transferring money to and from players, either between players or between the player and the bank, named \"Bank\". Speaking of which, don't name any of your players \"Bank\", since that name is taken!\nIf a player would reach 0 dollars, you'll be asked to confirm whether or not you want that to happen, because going to 0 means that the player is bankrupt and out of the game. Once a player is out of
Personal beginner's project - looking for feedback on a Monopoly money counter
Hello all! I'm attempting to teach myself Lua, starting from a *very* limited knowledge of programming in general, and I decided to start off by writing a simple money counter for a game like Monopoly. For an added challenge, I attempted to add a layer of "idiot proofing": if you enter in a bad number or a wrong name, the program will prompt you to try again until you get it right. Here's what I've got so far:
-- a counter for monopoly money
-- this table contains all the players' names
Players = {}
-- this function displays the remaining money of all the players in the game
function DisplayTable(table)
for k,v in pairs(table) do
if v == 0 then
print(k .. " is bankrupt")
else
print(k .. " has " .. v)
end
end
end
-- this function checks a name against the table of names to see if you put in a valid input
function FilterName(table)
while true do
Name = io.read("l")
if Name ~= "Bank" and table[Name] == nil then
print("I don't recognize that name. Try a different name.")
elseif table[Name] == 0 then
print("That player is bankrupt! Try a different player.")
else
return Name
end
end
end
-- this function checks your input and filters it into a number between a specified range
function InputRange(start, stop)
while true do
Input = math.tointeger(io.read("l"))
if Input == nil then
print("That's not a valid input. Please try again.")
elseif Input < start or Input > stop then
print("That number is out of range. Please try again.")
else
return Input
end
end
end
-- this function filters out the bank every time money changes hands
function NotBank(gained, lost, amount, table)
if gained ~= "Bank" then
table[gained] = table[gained] + amount
end
if lost ~= "Bank" then
table[lost] = table[lost] - amount
end
end
-- this function makes sure that you don't put the same name twice for gaining and losing money
function NeedTwoNames(gained, table)
while true do
print("Who lost money?")
Lost = FilterName(table)
if gained == Lost then
print("You need two different names here.")
else
return Lost
end
end
end
-- this function checks to see if someone has won the game
-- this function isn't designed to handle what might happen if everyone went to zero, but hopefully that won't happen
function WinnerCheck(table)
StillAlive = 0
Winner = nil
for k, v in pairs(table) do
if v ~= 0 then
Winner = k
StillAlive = StillAlive + 1
if StillAlive > 1 then
return false
end
end
end
return Winner
end
print("Welcome to Monopoly Money Counter, the noscript that counts your money so you don't have to!\nTo read the full instructions, type in \"info\". Otherwise, type in \"start\" to get started.")
while true do
Input1 = io.read("l")
if Input1 == "info" then
print("When you start the game, you'll be prompted to enter in the names of 2 to 6 players. After entering in names, you'll then have the option of transferring money to and from players, either between players or between the player and the bank, named \"Bank\". Speaking of which, don't name any of your players \"Bank\", since that name is taken!\nIf a player would reach 0 dollars, you'll be asked to confirm whether or not you want that to happen, because going to 0 means that the player is bankrupt and out of the game. Once a player is out of
Hello all! I'm attempting to teach myself Lua, starting from a *very* limited knowledge of programming in general, and I decided to start off by writing a simple money counter for a game like Monopoly. For an added challenge, I attempted to add a layer of "idiot proofing": if you enter in a bad number or a wrong name, the program will prompt you to try again until you get it right. Here's what I've got so far:
-- a counter for monopoly money
-- this table contains all the players' names
Players = {}
-- this function displays the remaining money of all the players in the game
function DisplayTable(table)
for k,v in pairs(table) do
if v == 0 then
print(k .. " is bankrupt")
else
print(k .. " has " .. v)
end
end
end
-- this function checks a name against the table of names to see if you put in a valid input
function FilterName(table)
while true do
Name = io.read("l")
if Name ~= "Bank" and table[Name] == nil then
print("I don't recognize that name. Try a different name.")
elseif table[Name] == 0 then
print("That player is bankrupt! Try a different player.")
else
return Name
end
end
end
-- this function checks your input and filters it into a number between a specified range
function InputRange(start, stop)
while true do
Input = math.tointeger(io.read("l"))
if Input == nil then
print("That's not a valid input. Please try again.")
elseif Input < start or Input > stop then
print("That number is out of range. Please try again.")
else
return Input
end
end
end
-- this function filters out the bank every time money changes hands
function NotBank(gained, lost, amount, table)
if gained ~= "Bank" then
table[gained] = table[gained] + amount
end
if lost ~= "Bank" then
table[lost] = table[lost] - amount
end
end
-- this function makes sure that you don't put the same name twice for gaining and losing money
function NeedTwoNames(gained, table)
while true do
print("Who lost money?")
Lost = FilterName(table)
if gained == Lost then
print("You need two different names here.")
else
return Lost
end
end
end
-- this function checks to see if someone has won the game
-- this function isn't designed to handle what might happen if everyone went to zero, but hopefully that won't happen
function WinnerCheck(table)
StillAlive = 0
Winner = nil
for k, v in pairs(table) do
if v ~= 0 then
Winner = k
StillAlive = StillAlive + 1
if StillAlive > 1 then
return false
end
end
end
return Winner
end
print("Welcome to Monopoly Money Counter, the noscript that counts your money so you don't have to!\nTo read the full instructions, type in \"info\". Otherwise, type in \"start\" to get started.")
while true do
Input1 = io.read("l")
if Input1 == "info" then
print("When you start the game, you'll be prompted to enter in the names of 2 to 6 players. After entering in names, you'll then have the option of transferring money to and from players, either between players or between the player and the bank, named \"Bank\". Speaking of which, don't name any of your players \"Bank\", since that name is taken!\nIf a player would reach 0 dollars, you'll be asked to confirm whether or not you want that to happen, because going to 0 means that the player is bankrupt and out of the game. Once a player is out of
the game, you can't transfer any money to or from them.\nThis program doesn't keep track of any properties or houses. You'll have to do that yourself. This is only for counting money. This program is also not designed to keep track of any money in the \"Free Parking\" space. Sorry, folks.\nTo read this again, type in \"info\". Otherwise, type in \"start\" to get started.")
elseif Input1 == "start" then
print("Let's get started!")
break
else
print("Sorry, bad input. Can you try that again?")
end
end
print("How many players do you have? Put in a number between 2 and 6.")
Amount = InputRange(2, 6)
print("What are your players' names?")
for i = 1, Amount do
while true do
Input3 = io.read("*l")
if Input3 == "Bank" then
print("Sorry, that's the bank's name! Try a different name. Perhaps a nickname?")
elseif Players[Input3] == 1500 then
print("Sorry, that name's taken! Try a different name. Perhaps a nickname?")
else
Players[Input3] = 1500
break
end
end
end
print("Let's play the game!")
DisplayTable(Players)
while true do
while true do
print("Who gained money?")
GainedMoney = FilterName(Players)
LostMoney = NeedTwoNames(GainedMoney, Players)
print("How much money?")
MoneyChange = InputRange(0, 1000000)
if LostMoney ~= "Bank" and MoneyChange >= Players[LostMoney] then
print("This will bankrupt " .. LostMoney .. ". Are you sure? Type \"yes\" or \"no\".")
ConfirmChoice = io.read("l")
if ConfirmChoice ~= "yes" and ConfirmChoice ~= "no" then
print("Try again. \"yes\" or \"no\"")
elseif ConfirmChoice == "no" then
print("Then let's try this all over again")
break
else
MoneyChange = Players[LostMoney]
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
else
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
end
DisplayTable(Players)
Winner = WinnerCheck(Players)
if Winner ~= false then
print(Winner .. " has won!")
break
end
end-- a counter for monopoly money
-- this table contains all the players' names
Players = {}
-- this function displays the remaining money of all the players in the game
function DisplayTable(table)
for k,v in pairs(table) do
if v == 0 then
print(k .. " is bankrupt")
else
print(k .. " has " .. v)
end
end
end
-- this function checks a name against the table of names to see if you put in a valid input
function FilterName(table)
while true do
Name = io.read("l")
if Name ~= "Bank" and table[Name] == nil then
print("I don't recognize that name. Try a different name.")
elseif table[Name] == 0 then
print("That player is bankrupt! Try a different player.")
else
return Name
end
end
end
-- this function checks your input and filters it into a number between a specified range
function InputRange(start, stop)
while true do
Input = math.tointeger(io.read("l"))
if Input == nil then
print("That's not a valid input. Please try again.")
elseif Input < start or Input > stop then
print("That number is out of range. Please try again.")
else
return Input
end
end
end
-- this function filters out the bank every time money changes
elseif Input1 == "start" then
print("Let's get started!")
break
else
print("Sorry, bad input. Can you try that again?")
end
end
print("How many players do you have? Put in a number between 2 and 6.")
Amount = InputRange(2, 6)
print("What are your players' names?")
for i = 1, Amount do
while true do
Input3 = io.read("*l")
if Input3 == "Bank" then
print("Sorry, that's the bank's name! Try a different name. Perhaps a nickname?")
elseif Players[Input3] == 1500 then
print("Sorry, that name's taken! Try a different name. Perhaps a nickname?")
else
Players[Input3] = 1500
break
end
end
end
print("Let's play the game!")
DisplayTable(Players)
while true do
while true do
print("Who gained money?")
GainedMoney = FilterName(Players)
LostMoney = NeedTwoNames(GainedMoney, Players)
print("How much money?")
MoneyChange = InputRange(0, 1000000)
if LostMoney ~= "Bank" and MoneyChange >= Players[LostMoney] then
print("This will bankrupt " .. LostMoney .. ". Are you sure? Type \"yes\" or \"no\".")
ConfirmChoice = io.read("l")
if ConfirmChoice ~= "yes" and ConfirmChoice ~= "no" then
print("Try again. \"yes\" or \"no\"")
elseif ConfirmChoice == "no" then
print("Then let's try this all over again")
break
else
MoneyChange = Players[LostMoney]
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
else
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
end
DisplayTable(Players)
Winner = WinnerCheck(Players)
if Winner ~= false then
print(Winner .. " has won!")
break
end
end-- a counter for monopoly money
-- this table contains all the players' names
Players = {}
-- this function displays the remaining money of all the players in the game
function DisplayTable(table)
for k,v in pairs(table) do
if v == 0 then
print(k .. " is bankrupt")
else
print(k .. " has " .. v)
end
end
end
-- this function checks a name against the table of names to see if you put in a valid input
function FilterName(table)
while true do
Name = io.read("l")
if Name ~= "Bank" and table[Name] == nil then
print("I don't recognize that name. Try a different name.")
elseif table[Name] == 0 then
print("That player is bankrupt! Try a different player.")
else
return Name
end
end
end
-- this function checks your input and filters it into a number between a specified range
function InputRange(start, stop)
while true do
Input = math.tointeger(io.read("l"))
if Input == nil then
print("That's not a valid input. Please try again.")
elseif Input < start or Input > stop then
print("That number is out of range. Please try again.")
else
return Input
end
end
end
-- this function filters out the bank every time money changes
hands
function NotBank(gained, lost, amount, table)
if gained ~= "Bank" then
table[gained] = table[gained] + amount
end
if lost ~= "Bank" then
table[lost] = table[lost] - amount
end
end
-- this function makes sure that you don't put the same name twice for gaining and losing money
function NeedTwoNames(gained, table)
while true do
print("Who lost money?")
Lost = FilterName(table)
if gained == Lost then
print("You need two different names here.")
else
return Lost
end
end
end
-- this function checks to see if someone has won the game
-- this function isn't designed to handle what might happen if everyone went to zero, but hopefully that won't happen
function WinnerCheck(table)
StillAlive = 0
Winner = nil
for k, v in pairs(table) do
if v ~= 0 then
Winner = k
StillAlive = StillAlive + 1
if StillAlive > 1 then
return false
end
end
end
return Winner
end
print("Welcome to Monopoly Money Counter, the noscript that counts your money so you don't have to!\nTo read the full instructions, type in \"info\". Otherwise, type in \"start\" to get started.")
while true do
Input1 = io.read("l")
if Input1 == "info" then
print("When you start the game, you'll be prompted to enter in the names of 2 to 6 players. After entering in names, you'll then have the option of transferring money to and from players, either between players or between the player and the bank, named \"Bank\". Speaking of which, don't name any of your players \"Bank\", since that name is taken!\nIf a player would reach 0 dollars, you'll be asked to confirm whether or not you want that to happen, because going to 0 means that the player is bankrupt and out of the game. Once a player is out of the game, you can't transfer any money to or from them.\nThis program doesn't keep track of any properties or houses. You'll have to do that yourself. This is only for counting money. This program is also not designed to keep track of any money in the \"Free Parking\" space. Sorry, folks.\nTo read this again, type in \"info\". Otherwise, type in \"start\" to get started.")
elseif Input1 == "start" then
print("Let's get started!")
break
else
print("Sorry, bad input. Can you try that again?")
end
end
print("How many players do you have? Put in a number between 2 and 6.")
Amount = InputRange(2, 6)
print("What are your players' names?")
for i = 1, Amount do
while true do
Input3 = io.read("*l")
if Input3 == "Bank" then
print("Sorry, that's the bank's name! Try a different name. Perhaps a nickname?")
elseif Players[Input3] == 1500 then
print("Sorry, that name's taken! Try a different name. Perhaps a nickname?")
else
Players[Input3] = 1500
break
end
end
end
print("Let's play the game!")
DisplayTable(Players)
while true do
while true do
print("Who gained money?")
GainedMoney = FilterName(Players)
LostMoney = NeedTwoNames(GainedMoney, Players)
print("How much money?")
MoneyChange = InputRange(0, 1000000)
if LostMoney ~= "Bank" and MoneyChange >= Players[LostMoney] then
print("This will bankrupt " .. LostMoney .. ". Are you sure? Type \"yes\" or \"no\".")
ConfirmChoice = io.read("l")
if ConfirmChoice ~= "yes" and ConfirmChoice ~= "no" then
print("Try again. \"yes\" or \"no\"")
elseif ConfirmChoice == "no" then
print("Then let's try this all over
function NotBank(gained, lost, amount, table)
if gained ~= "Bank" then
table[gained] = table[gained] + amount
end
if lost ~= "Bank" then
table[lost] = table[lost] - amount
end
end
-- this function makes sure that you don't put the same name twice for gaining and losing money
function NeedTwoNames(gained, table)
while true do
print("Who lost money?")
Lost = FilterName(table)
if gained == Lost then
print("You need two different names here.")
else
return Lost
end
end
end
-- this function checks to see if someone has won the game
-- this function isn't designed to handle what might happen if everyone went to zero, but hopefully that won't happen
function WinnerCheck(table)
StillAlive = 0
Winner = nil
for k, v in pairs(table) do
if v ~= 0 then
Winner = k
StillAlive = StillAlive + 1
if StillAlive > 1 then
return false
end
end
end
return Winner
end
print("Welcome to Monopoly Money Counter, the noscript that counts your money so you don't have to!\nTo read the full instructions, type in \"info\". Otherwise, type in \"start\" to get started.")
while true do
Input1 = io.read("l")
if Input1 == "info" then
print("When you start the game, you'll be prompted to enter in the names of 2 to 6 players. After entering in names, you'll then have the option of transferring money to and from players, either between players or between the player and the bank, named \"Bank\". Speaking of which, don't name any of your players \"Bank\", since that name is taken!\nIf a player would reach 0 dollars, you'll be asked to confirm whether or not you want that to happen, because going to 0 means that the player is bankrupt and out of the game. Once a player is out of the game, you can't transfer any money to or from them.\nThis program doesn't keep track of any properties or houses. You'll have to do that yourself. This is only for counting money. This program is also not designed to keep track of any money in the \"Free Parking\" space. Sorry, folks.\nTo read this again, type in \"info\". Otherwise, type in \"start\" to get started.")
elseif Input1 == "start" then
print("Let's get started!")
break
else
print("Sorry, bad input. Can you try that again?")
end
end
print("How many players do you have? Put in a number between 2 and 6.")
Amount = InputRange(2, 6)
print("What are your players' names?")
for i = 1, Amount do
while true do
Input3 = io.read("*l")
if Input3 == "Bank" then
print("Sorry, that's the bank's name! Try a different name. Perhaps a nickname?")
elseif Players[Input3] == 1500 then
print("Sorry, that name's taken! Try a different name. Perhaps a nickname?")
else
Players[Input3] = 1500
break
end
end
end
print("Let's play the game!")
DisplayTable(Players)
while true do
while true do
print("Who gained money?")
GainedMoney = FilterName(Players)
LostMoney = NeedTwoNames(GainedMoney, Players)
print("How much money?")
MoneyChange = InputRange(0, 1000000)
if LostMoney ~= "Bank" and MoneyChange >= Players[LostMoney] then
print("This will bankrupt " .. LostMoney .. ". Are you sure? Type \"yes\" or \"no\".")
ConfirmChoice = io.read("l")
if ConfirmChoice ~= "yes" and ConfirmChoice ~= "no" then
print("Try again. \"yes\" or \"no\"")
elseif ConfirmChoice == "no" then
print("Then let's try this all over
again")
break
else
MoneyChange = Players[LostMoney]
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
else
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
end
DisplayTable(Players)
Winner = WinnerCheck(Players)
if Winner ~= false then
print(Winner .. " has won!")
break
end
end
So far, it seems to work! What I'd like help on is making it better. When you look at this, how would you make it prettier or more efficient? Does anything stand out to you as a bad thing to do? Are there any bugs that I've missed?
Thanks in advance for your time. This language is fun!
https://redd.it/1j1wnbg
@r_lua
break
else
MoneyChange = Players[LostMoney]
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
else
NotBank(GainedMoney, LostMoney, MoneyChange, Players)
break
end
end
DisplayTable(Players)
Winner = WinnerCheck(Players)
if Winner ~= false then
print(Winner .. " has won!")
break
end
end
So far, it seems to work! What I'd like help on is making it better. When you look at this, how would you make it prettier or more efficient? Does anything stand out to you as a bad thing to do? Are there any bugs that I've missed?
Thanks in advance for your time. This language is fun!
https://redd.it/1j1wnbg
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Full Program in Pure Lua?
I want to make a simple, shippable program in pure Lua, but for the life of cannot find how to do it.
I'm new to Lua and have been loving it. I was introduced to it through the Love game framework and want to use it to make more little CLI apps, but I can't find how to package things into a single file executable that I could easily share. The only way I know how to run a Lua program is 'lua file.lua' How can I turn Lua files into a packaged and installable program?
Is luarocks my answer? It feels like a thing for libraries and not full programs, or do I misunderstand it?
Are pure Lua programs not really the language's intend use case?
Thanks!
https://redd.it/1j1ze8s
@r_lua
I want to make a simple, shippable program in pure Lua, but for the life of cannot find how to do it.
I'm new to Lua and have been loving it. I was introduced to it through the Love game framework and want to use it to make more little CLI apps, but I can't find how to package things into a single file executable that I could easily share. The only way I know how to run a Lua program is 'lua file.lua' How can I turn Lua files into a packaged and installable program?
Is luarocks my answer? It feels like a thing for libraries and not full programs, or do I misunderstand it?
Are pure Lua programs not really the language's intend use case?
Thanks!
https://redd.it/1j1ze8s
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Lua book for including into C
Hi all,
Im busy building an embedded system and the noscripting language on top of it will be lua. Lua rocks and i want to enable more people to work with electronics controlled by lua.
However im at the stage of implementing it into my c code and im looking for a book specific about that part of lua. Any recommendations?
https://redd.it/1j23r70
@r_lua
Hi all,
Im busy building an embedded system and the noscripting language on top of it will be lua. Lua rocks and i want to enable more people to work with electronics controlled by lua.
However im at the stage of implementing it into my c code and im looking for a book specific about that part of lua. Any recommendations?
https://redd.it/1j23r70
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
MDT Pull Assist
Hello everyone,
can anyone tell me if something like this still works? (https://wago.io/qy8R3Dmgl) I'm trying to make a WA with ChatGPT that marks the MDT pulls for me, or has this been disabled?
Best regards
Bene
https://redd.it/1j361cc
@r_lua
Hello everyone,
can anyone tell me if something like this still works? (https://wago.io/qy8R3Dmgl) I'm trying to make a WA with ChatGPT that marks the MDT pulls for me, or has this been disabled?
Best regards
Bene
https://redd.it/1j361cc
@r_lua
wago.io
MDT Pull Assist
Wago.io is a database of sharable World of Warcraft addon elements
can you learn lua as 13 year old?
im a ninth grader that would like to learn lua for obiously a roblox game, however is it possible for me to do so? ill probably be too busy w school to learn every day but it will be like 4 or 3 times per week? im also pretty decent at math (but i can go back to learn old things that i never understood if needed) and i dont think im THAT dumb
https://redd.it/1j3j2ci
@r_lua
im a ninth grader that would like to learn lua for obiously a roblox game, however is it possible for me to do so? ill probably be too busy w school to learn every day but it will be like 4 or 3 times per week? im also pretty decent at math (but i can go back to learn old things that i never understood if needed) and i dont think im THAT dumb
https://redd.it/1j3j2ci
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Need an edit for a .lua folding function
Hello everyone,
I am currently working with a conky on my Linux box that employs .lua. Currently it takes a paragraph of weather conditions denoscription and splits it into 4 rows of text. It currently breaks at 20, 40, and 60 characters, but this causes words to be split into two rows of text. I have been working with chatGPT, asking it to edit so that the break occurs at the closes space to the 22nd character, but all its solutions do not work.
Non working examples:
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{print substr($0, 1, match(substr($0, 1, 22), /[^ ]*$/) - 1)}'}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{print substr($0, 1, match(substr($0, 1, 22), /^ $/) - 1)}'}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweather_conky_noscript/daily_forecast | awk '{print substr($0, 1, match(substr($0, 1, 22), /[^ ]$/) - 1)}'}
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{match(substr($0,1,22), /.* /); print substr($0,1,RSTART-1)}'}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{match(substr($0,1,22), /. /); print substr($0,1,RSTART-1)}'}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweather_conky_noscript/daily_forecast | awk '{match(substr($0,1,22), /. /); print substr($0,1,RSTART-1)}'}
Here is the line I need edited:
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c1-20}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c1-20}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c1-20}
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c21-40}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c21-40}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c21-40}$font
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c41-60}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c41-60}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c41-60}
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c61-80}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c61-80}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c61-80}
Can anyone help?
Thank you for reading,
Logan
https://redd.it/1j3llx4
@r_lua
Hello everyone,
I am currently working with a conky on my Linux box that employs .lua. Currently it takes a paragraph of weather conditions denoscription and splits it into 4 rows of text. It currently breaks at 20, 40, and 60 characters, but this causes words to be split into two rows of text. I have been working with chatGPT, asking it to edit so that the break occurs at the closes space to the 22nd character, but all its solutions do not work.
Non working examples:
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{print substr($0, 1, match(substr($0, 1, 22), /[^ ]*$/) - 1)}'}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{print substr($0, 1, match(substr($0, 1, 22), /^ $/) - 1)}'}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweather_conky_noscript/daily_forecast | awk '{print substr($0, 1, match(substr($0, 1, 22), /[^ ]$/) - 1)}'}
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{match(substr($0,1,22), /.* /); print substr($0,1,RSTART-1)}'}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast | awk '{match(substr($0,1,22), /. /); print substr($0,1,RSTART-1)}'}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweather_conky_noscript/daily_forecast | awk '{match(substr($0,1,22), /. /); print substr($0,1,RSTART-1)}'}
Here is the line I need edited:
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c1-20}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c1-20}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c1-20}
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c21-40}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c21-40}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c21-40}$font
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c41-60}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c41-60}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c41-60}
${execi 60 sed -n '6p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c61-80}${goto 135}${execi 60 sed -n '13p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c61-80}${goto 255}${execi 60 sed -n '20p' /home/logansfury/.conky/forlogan/conky/barographe/Accuweatherconkynoscript/dailyforecast|cut -c61-80}
Can anyone help?
Thank you for reading,
Logan
https://redd.it/1j3llx4
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Why Every Programmer Should Learn Lua
https://levelup.gitconnected.com/why-every-programmer-should-learn-lua-6d6a8bafbeba?sk=1f7d18e4fe2bddb160e7ca11f2319e70
https://redd.it/1j3xbks
@r_lua
https://levelup.gitconnected.com/why-every-programmer-should-learn-lua-6d6a8bafbeba?sk=1f7d18e4fe2bddb160e7ca11f2319e70
https://redd.it/1j3xbks
@r_lua
Medium
Why Every Programmer Should Learn Lua
Mastering the world’s simplest language, Lua teaches lessons that improve your programming skills
Is it possible?
So, if there is an IDE, that like, lets you make a game with LUA, that isn't LOVE2D, or ZeroBrane Studio, I wanna know, because I wanna take the challenge.
https://redd.it/1j3y01d
@r_lua
So, if there is an IDE, that like, lets you make a game with LUA, that isn't LOVE2D, or ZeroBrane Studio, I wanna know, because I wanna take the challenge.
https://redd.it/1j3y01d
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Love2d or defold?
After I read this kind of question many ppl always recommend love2d or defold and I can’t decide😅.
I have some little experience in game dev using pygame python and unity
I plan to make 2d game and I see a lot of u guys recommend both of these
So I want to focus only one tools(I’m really bad at learning many things in same time)
Can you tell me pros and cons? Which should I choose? Thx a lot
https://redd.it/1j4ncfj
@r_lua
After I read this kind of question many ppl always recommend love2d or defold and I can’t decide😅.
I have some little experience in game dev using pygame python and unity
I plan to make 2d game and I see a lot of u guys recommend both of these
So I want to focus only one tools(I’m really bad at learning many things in same time)
Can you tell me pros and cons? Which should I choose? Thx a lot
https://redd.it/1j4ncfj
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Best OpenGL binding for LuaJIT?
I'm looking to mess around with a simple 3D voxel renderer/engine in Lua, just for fun. My first step is to find an opengl binding, and so far I only found the following two:
https://github.com/nanoant/glua
https://github.com/sonoro1234/LuaJIT-GL
The first one seems a bit more involved but was last updated 12 years ago. The second was last updated about 6 months ago.
I currently have close to zero experience in OpenGL (hence, this learning excersive) so I'm not sure how to compare the two. Any pointers or guidance would be much appreciated!
1. Do you have an opengl Lua binding (that supports LuaJIT) which you would recommend?
2. If not, which of the two above would you recommend?
3. Or, if the two above are both for some critical reason unusuable, would you recommend I make my own FFI bindings instead?
Note that I do not care which OpenGL version it uses (so something above 1.x would be preferable), and that it needs to have LuaJIT support, not just PUC Lua (So moongl is out of the question).
Thanks!
https://redd.it/1j4y6dn
@r_lua
I'm looking to mess around with a simple 3D voxel renderer/engine in Lua, just for fun. My first step is to find an opengl binding, and so far I only found the following two:
https://github.com/nanoant/glua
https://github.com/sonoro1234/LuaJIT-GL
The first one seems a bit more involved but was last updated 12 years ago. The second was last updated about 6 months ago.
I currently have close to zero experience in OpenGL (hence, this learning excersive) so I'm not sure how to compare the two. Any pointers or guidance would be much appreciated!
1. Do you have an opengl Lua binding (that supports LuaJIT) which you would recommend?
2. If not, which of the two above would you recommend?
3. Or, if the two above are both for some critical reason unusuable, would you recommend I make my own FFI bindings instead?
Note that I do not care which OpenGL version it uses (so something above 1.x would be preferable), and that it needs to have LuaJIT support, not just PUC Lua (So moongl is out of the question).
Thanks!
https://redd.it/1j4y6dn
@r_lua
GitHub
GitHub - nanoant/glua: glua = LuaJIT + FFI + OpenGL/GLUT
glua = LuaJIT + FFI + OpenGL/GLUT. Contribute to nanoant/glua development by creating an account on GitHub.
i'm very new to coding in Lua, and i have a couple questions about it.
the first image is from a lua learning game in Roblox, where "MyPart" is the part we were working with, the second one is from the same game, and i have a few questions about the logic of lua. (feel free to correct me if im wrong in any type of way!!)
First of all, what is "Workspace"?
Why the periods after some words, and why those words? (first pic)
Why do i have to make some words go under others? (check second pic for refrence)
i could go on, and on because there are so many random things in lua that i'm just supposed to know for some reason i guess.
https://redd.it/1j50576
@r_lua
the first image is from a lua learning game in Roblox, where "MyPart" is the part we were working with, the second one is from the same game, and i have a few questions about the logic of lua. (feel free to correct me if im wrong in any type of way!!)
First of all, what is "Workspace"?
Why the periods after some words, and why those words? (first pic)
Why do i have to make some words go under others? (check second pic for refrence)
i could go on, and on because there are so many random things in lua that i'm just supposed to know for some reason i guess.
https://redd.it/1j50576
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Is lua good in 2025 for learning as new developer?
I have a solid understanding of golang and java and i have made couple of projects with it, recently i came across lua and everyone says that its so underrated and can be use in so many other things , but all i can find is people are using this mostly for game development , and i don't want to follow that track , so will it be good learning lua as a new developer for building different projects apart from game dev, Thanks! : )
https://redd.it/1j557eh
@r_lua
I have a solid understanding of golang and java and i have made couple of projects with it, recently i came across lua and everyone says that its so underrated and can be use in so many other things , but all i can find is people are using this mostly for game development , and i don't want to follow that track , so will it be good learning lua as a new developer for building different projects apart from game dev, Thanks! : )
https://redd.it/1j557eh
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community