I have never touched a programming language in my life. This is the first time I have done so, ever.
I’m also probably violating eighty billion rules of the forum. This was the second result in google when I typed “lua forum.” I apologize in advance to the beleagered moderator who has to read these idiotic ramblings.
So now I’m trying to learn lua.
I’m following what appears to be the “Super Simple Guide to Lua for Dumb Stupid Babies:”
https://www.lua.org/pil/1.html
So I run the command print(“Hello World!”)
Awesome, works just fine.
Then it tells me I can make a .lua file, put that in there, and then just type lua filename.lua and it’ll do the same thing.
So I do that. I make print.lua, and then go into lua.exe and type
lua print.lua
and long story short, it doesn’t work. I later find out this is why: when I type lua in, I get:
>lua
nil
So I look up what nil means. nil means lua has no idea what I’m talking about. I get the same response if I type “Banana farts.”
I’m calling lua by _name _and it doesn’t know what that means.
Ok. Cool.
Now, I figure this might be because I’m using lua 5.3, and this Super Simple Dumb Baby Manual is for lua 5.0. After more research, it looks like I’m supposed to call the interpreter. That’s what typing “lua” is supposed to do.
I’ve googled interpreter lua 5.3. interpreter command lua 5.3. interpreter For God’s Sake Someone Help Me I Just Want To Run A File Lua 5.3. None of these work.
I’m just using basic old lua.exe, not CGILua or ABCLua or FBILua or Lua’s Weird Cousin That Visits on Christmas and Hands out Vodka Peanut Brittle.
What am I doing wrong here? Did I mess up the install? Am I supposed to type it 1ua or something? Have I angered God?
Someone help, I’m dumb.
Warmest Regards,
-Some Idiot