Great video! Although starting after setting the environment variable didn't work.. But I already started with lua54 instead of 53. Thanks for the clear explanation! Most tutorial always skip the basics, this is complete.
IT WORKS! THANK YOU SO MUCH! I am becoming an advanced user in Excel but was missing a more stable and proper place to develop scripts, thank god I found Lua.
@@cock_sauce8336 oh sorry! what i meant is that he is as helpful as an indian man, thanks for letting me know! also i meant no disrespect to him/any indian person
Thank you very much for encourage me to try Linux in Game Engine Fundamental series. When i first time installed in dual boot with windows. I never opened windows for development work. I only opened windows for gaming one time.
Thank You So Much!, I Searched A Lot For A Video That Shows How To Run Lua But Every Tutorial That I Watched Was Not Working, But Now I Know How To Do It Because Your Tutorial Worked!, Thank You!!!
Thanks for the contribution. A tip, you can browse for the file from the environment variables, and navigate through the folders to find Lua folder, which might be easier than writing. If you are brasilian, which your accent sounds like, then: Valeu, obrigado :)
Thank you so much Professor for all these nice content. I'm finishing your course from Udemy 2d game Engine With C++ and I'm loving it. I hope in a near future you make some more courses about C/C++.
Thank you Guilherme! I am recording a new OpenGL/C++ course as we speak and it will be available on pikuma.com very soon. I think you'll like it. Abraços!!!
for anyone have trouble on windows on the command prompt part make sure in the path part to copy and paste the file location of your lua file into the path. it works a lot better that way. was wondering why it wasnt working
ty! For anyone else struggling with Windows, here is how I did my arg with the filepath and this worked. "args": ["C:/Users/branc/Documents/luacode/myscript.lua"],
Same Problem I am Facing But When I type in command prompt lua.54 its running I gave print("Hello") So its gave us Hello But When I Use In Visual Studio Its Says Like Lua Is Not recognised as an internal or external command, operable program or batch file. Guys Pls Help Me
Hey! Great vid, just a question. I did what demonstrated in the video but in the console, I am getting this error - "lua53 : The term 'lua53' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + lua53 'C:\Users\aabne\OneDrive\Documents\Lua Files\my.script.lua' + ~~~~~ + CategoryInfo : ObjectNotFound: (lua53:String) [], CommandNotFoundExc eption + FullyQualifiedErrorId : CommandNotFoundException" What did I do wrong?
when i write: name = "derek" io.write("size of string", #name " ") it says: [C]: in ? The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command lua54 'C:\Users\selman\Documents\Lua course\mycreation.lua'" failed to launch (exit code: 1).
Sorry in my case when I type lua54 in cmd it works fine but when I try to run a lua file using vscode the error comes 'lua54' is not recognized as an internal or external command, operable program or batch file. So kindly suggest where am I wrong
You either don't have the PATH environment variable correctly set, or you might need to close VSCode and open it again for the PATH change to take effect.
@@pikuma Sorry I was about to delete the comment! I just figured out the I didn't refresh Vscode after opening it again it started working. Thanks again for the help and this amazing video !
ive been looking for so long, it keeps saying executing in folder lua: lua53 and i cant find it to delete it nowhere i look, im fustrated and need help
I keep getting an error when I run the terminal task that says "The term 'lua54' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." I followed everything correctly. Anyone know where this problem can be fixed? Edit: Nvm turns out i needed to just close and reopen VS other than that, awesome video
lua-course-files is any folder that you have in your machine that contains the scripts that you want to code. In my machine I had already a folder called lua-course-files. In your machine it can be any folder that you want.
I get this error and the lua program that i installed is lua54 what do I do ? lua54 : The term 'lua54' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + lua54 ${flie} + ~~~~~ + CategoryInfo : ObjectNotFound: (lua54:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command lua54 ${flie}" terminated with exit code: 1
I'm already having trouble on setting up the vscode idk if im going to do well on the programming part if i keep on getting this error " lua54: cannot open $(file): No such file or directory" "The terminal process "C:\WINDOWS\System32\cmd.exe /d /c lua54 $(file)" terminated with exit code: 1"
Make sure you are not using PowerShell in the VSCode terminal. We want the classic Windows cmd. There must be a dropdown list to select "cmd". Is this error in the cmd window or in VSCode terminal?
@@pikuma whenever I do CTRL + SHIFT + B that error always happens I've clearly followed what you did from putting the "C:\lua" on the system environment etc and downloading the lua binary which is "lua54" I've even tried copying the .json code you've provided
@@robbenog6021 I see. I'm sure it's something super small, just details. Don't give up! Try again from the start. Delete all folders and start again. 😉
I am getting this error while pressin run built task- lua53 : The term 'lua53' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + lua53 'C:\Users\asrivas4\Documents\office -corona\PTC\IIOT New\IOT CO ... + ~~~~~ + CategoryInfo : ObjectNotFound: (lua53:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
I usually use LuaRocks with my students. But LuaRocks does not work well with Windows. Therefore, I teach my Windows students to use Lua inside WSL. Then, they can use Windows as if they were using a traditional Linux command-line. That would be my suggestion.
im trying to get my VsCode to run Lua but I keep getting this message " Executing task: lua54 C:\LuaPractive\first.lua < The terminal process "C:\WINDOWS\System32\cmd.exe /d /c lua54 C:\LuaPractive\first.lua" failed to launch (exit code: 3221225781). Terminal will be reused by tasks, press any key to close it." and Im not so sure on what to do any suggestions?
Thanks man !!! what extension do you recommend to debug ? Is there any video tutorial ? Thanks... I've used ZeroBrane in the past, but in my workplace they're using VisualStudio Code, so I gotta move !
What might be happening is that it is just executing, i.e. just showing output. Can we give input through that terminal ? I tried typing ./myscript.lua and it opens my code file in notepad, while, ./myscript.exe doesnt run in terminal.. Thanks for tutorial !
It does work via cmd but not in VSC. I get this VSC error: Can´t find Node.js binary "node": path does not exist. Make sure Node.js is installed and in your PATH, or set the "runtimeExecutable" in your launch.json Did I mistype something in the build task code: { "version": "2.0.0", "tasks": [ { "label": "Run Lua", "type": "shell", "command": "lua54", "args":[ "${file}" ], "group": { "kind": "build", "isDefault": true } } ] } Thank you.
so i did everything but when i add it to the source code it puts up weird shapes with question marks on them some are blank boxes i am just really confused.
@@pikuma I couldn't find how to add the file to the 2019 version, so I just downloaded the version you used. I had a problem, but just now when I ran the code again to describe it it worked, though now something named "VSWorkspaceState.json" appeared on the work space
How do I run all of my files instead of the just the current one I have selected? If you're developing something big like a game engine or a game that has a lot of scripts, how would I debug it all.
Please, help. I'm on Windows 8.1 and I have this path folder problem. I did the instructions right. For Windows 8.1, I added a new path by using semi colon for a new path. CMD still can't recognize lua54.
Usually .a is used by Unix programmers. The "a" stands for archive and it is basically the same thing as a .lib. I guess whoever compiled the static library decided to keep the extension .a.
Great video! Although starting after setting the environment variable didn't work.. But I already started with lua54 instead of 53. Thanks for the clear explanation! Most tutorial always skip the basics, this is complete.
I put 54 instead of 53 but it doesn't work for me still...
@@ruchkastayfrosty same
anybody know how to solve this?
@@abyssaltheking honestly dude i just made it work on accident after 20 mins of youtube and reddit
@@ruchkastayfrosty But how did you fix it?
@@The_Canadian_Engineer I'd love to help you man but it has been so long I can't even remember
Wow Fantastic teacher! My head doesn't hurt after dealing with Lua stuff! Thank you!
IT WORKS! THANK YOU SO MUCH! I am becoming an advanced user in Excel but was missing a more stable and proper place to develop scripts, thank god I found Lua.
this is the indian man ive been looking for
Eeeem... nice joke but he's not Indian xD... check out his channel.
@@cock_sauce8336 oh sorry! what i meant is that he is as helpful as an indian man, thanks for letting me know! also i meant no disrespect to him/any indian person
@@Kazperh I can't understand why you English people use to say that indian guys resolve your problems.
@@marcelolupatini5553 eh, i just said this as a meme
damn marcelo doesnt understand a joke
Thank you very much for encourage me to try Linux in Game Engine Fundamental series.
When i first time installed in dual boot with windows. I never opened windows for development work. I only opened windows for gaming one time.
love your tutorial sir i searched everywhere but your tut was the only helpful
Bro, i love you so much, man i was looking for this for most 2 hours straight, thank you so much! your tutorial was perfect!
exactly what I needed; super clear and to the point. based tutorial.
Thank You So Much!, I Searched A Lot For A Video That Shows How To Run Lua But Every Tutorial That I Watched Was Not Working, But Now I Know How To Do It Because Your Tutorial Worked!, Thank You!!!
Thanks for the contribution. A tip, you can browse for the file from the environment variables, and navigate through the folders to find Lua folder, which might be easier than writing. If you are brasilian, which your accent sounds like, then: Valeu, obrigado :)
Grande! 🙂
YOUR A LIFESAVER
Im trying to get into game development with love in lua and this helps so much
THANKS AGAIN!!
Thanks, your "Vanilla" approach is refreshing...simple and concise!!!
Thanks mate, tutorial is clear, I really appreciate you helping me with this video!
Nice man, the only video which helped me XD i watched SO much other videos and I couldn't understand
Thank you so much Professor for all these nice content. I'm finishing your course from Udemy 2d game Engine With C++ and I'm loving it. I hope in a near future you make some more courses about C/C++.
Thank you Guilherme! I am recording a new OpenGL/C++ course as we speak and it will be available on pikuma.com very soon. I think you'll like it. Abraços!!!
@@pikuma Certainly! Looking forward to that. Abraços!
Thanks man you explained it very clearly this explained exactly what I needed.
This guy is awesome😊 I took his Atari 2600 course and it was comprehensive and excellent❤ great value!
for anyone have trouble on windows on the command prompt part make sure in the path part to copy and paste the file location of your lua file into the path. it works a lot better that way. was wondering why it wasnt working
ty! For anyone else struggling with Windows, here is how I did my arg with the filepath and this worked.
"args": ["C:/Users/branc/Documents/luacode/myscript.lua"],
so i bought the course, and now i find out everything is here for free on youtube, cool.
I don't understand Ties. Did anyone upload my course on youtube without my knowledge?
@@pikuma oh nevermind, my bad!
Thank you for the awesome course, I've been enjoiying it a lot!
@@ties_s Phew! Ok, that's good news. See you there. :)
I love u, for all those people having problems with js tasks, don't forget the especial syntax of js, like : after each component
thanks so much man, i couldn't find a legit video for this anywhere, this really helped
Very clear on how to setup LUA in Visual Studio Code, thank you!
Thanks so much, finally i can run lua in vsc
this was such a big help to get everything working so i can start tinkering. thanks a bunch.
Okay for people that are having problems, just restart visual studio code if lua54 is getting an error. worked for me
my problem to start using lua is solved thank you sir. you helped
Very complete tutorial, its clear you put in a lot of efford. Thank you.
Make sure you run build tasks on tasks.json to make sure it works or else you'll get an error and can't run the script. Nice video!
'lua54' is not recognized as an internal or external command,
operable program or batch file.
When you installed Lua, make sure you added an entry in the "path" environment variable to say where the files that run Lua are to be found.
Restart VSCode, it works.
@@SalihBALTALI Holly crap mate thanks alot. I was about to loose my mind XD.
Look up what is your lua version, mine was lua53 so i typed lua 53
Same Problem I am Facing But When I type in command prompt lua.54 its running I gave print("Hello") So its gave us Hello But When I Use In Visual Studio Its Says Like Lua Is Not recognised as an internal or external command, operable program or batch file. Guys Pls Help Me
Hey! Great vid, just a question. I did what demonstrated in the video but in the console, I am getting this error -
"lua53 : The term 'lua53' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ lua53 'C:\Users\aabne\OneDrive\Documents\Lua Files\my.script.lua'
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (lua53:String) [], CommandNotFoundExc
eption
+ FullyQualifiedErrorId : CommandNotFoundException"
What did I do wrong?
you need to close and relaunch vs after setting the path variable
Thank you I’ve been looking for a good Kia interpreter for a while
Fantastic video, thank you very much for taking the time to make it.
at 8:38 where do i find that code to paste it in?
He put a link in the Description
Thank you very much finally i can write in lua!!
Thank you for explaining. Without I surely never got it.
thank You soooooo much sir , I finally able to code on lua thank you
Make sure that you're on the file you want to run before pressing ctrl+shift+B
Amazing video great made easy to learn!!!!!!!
caracas tu é brabo msm funcionou aqui, eu nao estava conseguindo assistindo os videos dos gringos e o teu deu certo!
Feito! 😉
Just in-case anybody needs the code he ran on the timestamp of 8:33...
Press Read More*
{
"version": "2.0.0",
"tasks":[
{
"label": "Run Lua",
"type": "shell",
"command": "lua53",
"args": [
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Thank you for the tutorial !! Helps alot
Thank You very much for the tutorial
on linux replace lua53 with either just "lua" or "lua5.4" change the number to which version you want.
Nice and easy explication!
It's working...thnkx alot👍
when i write:
name = "derek"
io.write("size of string", #name "
")
it says:
[C]: in ?
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command lua54 'C:\Users\selman\Documents\Lua course\mycreation.lua'" failed to launch (exit code: 1).
Excellent tutorial
Setting up lua and vcs is fairly straightforward, but getting luarocks manager to install any modules is a nightmare.
Codigo del task:
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Lua",
"type": "shell",
"command": "lua53",
"args": [
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sorry in my case when I type lua54 in cmd it works fine but when I try to run a lua file using vscode the error comes 'lua54' is not recognized as an internal or external command, operable program or batch file.
So kindly suggest where am I wrong
You either don't have the PATH environment variable correctly set, or you might need to close VSCode and open it again for the PATH change to take effect.
@@pikuma Sorry I was about to delete the comment! I just figured out the I didn't refresh Vscode after opening it again it started working. Thanks again for the help and this amazing video !
Would love to find an entire Lua course here on your YT channel 🥰😍🇧🇷
I have one. 🙂
pikuma.com/courses
Had to put lua54 instead of lua53 in every prompt including in the tasks.json file, then it worked :))
Super! :)
Thanks for the content 😊
I renamed lua53 to 🚩 lua so that the tasks.json code 🚄 is always the same even if version number augments
ive been looking for so long, it keeps saying executing in folder lua: lua53 and i cant find it to delete it nowhere i look, im fustrated and need help
why whn im clicking the custom build nothing pop up like create .json file? how can i fix it? thanks
Thank you soooooo much. This helped beyond comprehension
Fantastic video thank you!
i tried to change the default terminal to cmd, but it still running in shell, what do i do?
where can i find what to put in the tasks.json file
Hi @BlueNoteCurtis, the link is in the video description.
im not getting any json file configurations whenever I need to start a build task.
youre a life saver fr, thank you
It works! I love you bro!
Do you know what do we have to do to install Luarocks (lua package manager) for Windows 10?
I downloaded the newer version of Lua and switched the Lua53 to Lua54 but it still doesn't work. Could somebody help me?
I keep getting an error when I run the terminal task that says "The term 'lua54' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again." I followed everything correctly. Anyone know where this problem can be fixed?
Edit: Nvm turns out i needed to just close and reopen VS other than that, awesome video
thank you!
what do i do, what do i put in "lua-course-files"
lua-course-files is any folder that you have in your machine that contains the scripts that you want to code. In my machine I had already a folder called lua-course-files. In your machine it can be any folder that you want.
I ran a test file after pasting the Json file and changing lua53 to lua54 it said that it wasn't recognized.
Me too
I get this error and the lua program that i installed is lua54 what do I do ?
lua54 : The term 'lua54' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ lua54 ${flie}
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (lua54:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command lua54 ${flie}" terminated with exit code: 1
same idk how to fix
i fixed it
just close vs then open it again (worked for me atleast)
i thought i did something wrong turns out it was just that the file was not lua53.exe it is now lua54
ohhhh thx
how did you fix it
Very useful guide!
PLEASE MAKE TUTORIAL ON HOW TO CHANGE TEXT DOCUMENT INTO LUA PLS! :(
finally a tutorial that works
I'm already having trouble on setting up the vscode idk if im going to do well on the programming part if i keep on getting this error
"
lua54: cannot open $(file): No such file or directory"
"The terminal process "C:\WINDOWS\System32\cmd.exe /d /c lua54 $(file)" terminated with exit code: 1"
Make sure you are not using PowerShell in the VSCode terminal. We want the classic Windows cmd. There must be a dropdown list to select "cmd".
Is this error in the cmd window or in VSCode terminal?
@@pikuma whenever I do CTRL + SHIFT + B that error always happens
I've clearly followed what you did from putting the "C:\lua" on the system environment etc and downloading the
lua binary which is "lua54"
I've even tried copying the .json code you've provided
@@robbenog6021 I see. I'm sure it's something super small, just details. Don't give up! Try again from the start. Delete all folders and start again. 😉
@@robbenog6021 any updates? did you fix it? i'm literally having the same issue and this is so frustrating.
@@filmisaiah3452 I fixed mine by giving a direct file path in the json with forward-facing slashes, like this:
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Lua",
"type": "shell",
"command": "lua54",
"args": ["C:/Users/branc/Documents/luacode/myscript.lua"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
to all the people who had trouble with the path (didnt work for me) do cd C:\lua and then do lua53
thanks man!
@@mrindolence8756 no problem! just wanna help some people out
THANK YOU SO MUCH DUDE
@@pot3to444 no problem i was also trying to get past that error
so how do you type it? this stuff is a little confusing for me and i’ve been trying for a bit and it hasn’t been working
I am getting this error while pressin run built task-
lua53 : The term 'lua53' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ lua53 'C:\Users\asrivas4\Documents\office -corona\PTC\IIOT New\IOT CO ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (lua53:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
lua54?
@@lindseyleverton9898 I tried changing the json to lua54 it didn't work
i got it too
i fixed it
just close vs then open it again (worked for me atleast)
Great tutorial!
How can I install & load modules for LUA? I already have installed LUA, but can code anything without this required modules
I usually use LuaRocks with my students. But LuaRocks does not work well with Windows.
Therefore, I teach my Windows students to use Lua inside WSL. Then, they can use Windows as if they were using a traditional Linux command-line.
That would be my suggestion.
im trying to get my VsCode to run Lua but I keep getting this message "
Executing task: lua54 C:\LuaPractive\first.lua <
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c lua54 C:\LuaPractive\first.lua" failed to launch (exit code: 3221225781).
Terminal will be reused by tasks, press any key to close it."
and Im not so sure on what to do any suggestions?
Thanks man !!! what extension do you recommend to debug ? Is there any video tutorial ? Thanks... I've used ZeroBrane in the past, but in my workplace they're using VisualStudio Code, so I gotta move !
My print("Hello, world") command isn't changing to its appropriate color, please help
Might be late but I also just looked it up, you need to use the "select language mode" from a bunch of small buttons in the bottom right corner.
thank you for the tutorial sir
What might be happening is that it is just executing, i.e. just showing output. Can we give input through that terminal ? I tried typing ./myscript.lua and it opens my code file in notepad, while, ./myscript.exe doesnt run in terminal..
Thanks for tutorial !
It does work via cmd but not in VSC. I get this VSC error: Can´t find Node.js binary "node":
path does not exist. Make sure Node.js is installed and in
your PATH, or set the "runtimeExecutable" in your launch.json
Did I mistype something in the build task code:
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Lua",
"type": "shell",
"command": "lua54",
"args":[
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Thank you.
Im getting "Unable to initialize device PRN" whenever i run a code
you have to type 'lua54' first
or 'lua53' depending on your version of lua
You saved my day man
so i did everything but when i add it to the source code it puts up weird shapes with question marks on them some are blank boxes i am just really confused.
Will this work with Visual Studio 2019 as well?
Sure
@@pikuma I couldn't find how to add the file to the 2019 version, so I just downloaded the version you used.
I had a problem, but just now when I ran the code again to describe it it worked, though now something named "VSWorkspaceState.json" appeared on the work space
You can also change the . To the Vscode file to .lua I think
Can you do a tutorial on how to setup and use luarocks (the npm of lua)?
Thats actually the hard part, the stuff shown in this video is the easy part.
I can't get the build code thing at the end to work in visual studio code.
Thanks you helped me alot!!!!!
why i cant edit the path (system environment variable)
How do I run all of my files instead of the just the current one I have selected? If you're developing something big like a game engine or a game that has a lot of scripts, how would I debug it all.
I dont suppose ur making a game out of lua?
Use a better language like C
@@eldar6914 roblox runs on lua
I want to know the difference the 35 mb file and this 800kb file
Please, help.
I'm on Windows 8.1 and I have this path folder problem. I did the instructions right.
For Windows 8.1, I added a new path by using semi colon for a new path.
CMD still can't recognize lua54.
'lua54' is not recognized as an internal or external command, operable program or batch file.
@@safziraph7719 Same issue here. Can't figure it out.
Why is the Windows 64-bit "library" download a *.a file and not lib? How am I supposed to use this with DMD?
Usually .a is used by Unix programmers. The "a" stands for archive and it is basically the same thing as a .lib.
I guess whoever compiled the static library decided to keep the extension .a.
@@pikuma OK I just wanna fix LuaD so I have a scripting language for D. LuaD doesn't handle class inheritance.
where do u download lua course files?
when i extract it The files rename into lua54 with not a exe ant than it diesen work with the CMD
I have an error that said -Command lua54 terminated with exit code 1