Another shot at Lua

Started by Pfaber11, April 13, 2022, 15:42:06

Previous topic - Next topic

Pfaber11

About 6 months ago I was having a shot at learning  Lua but gave up as could not produce a working exe file . I can do that now after a day or so playing around with various tools . In the end I used the latest version of srlua which is now working properly . I downloaded the compiled binaries for srglue.exe srlua.exe and the dll file required . Made life a lot easier. I now just need to learn lua luckily it's not completely different to basic but still have a ton load of stuff to learn . I have decided to share the binaries with you guys as some of you may find it useful.

HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz
HP Desktop AMD 3700 16GB ram 2 GB graphics card windows 10

Pfaber11

#1
That is all you need to produce an .exe file from a Lua script . I have decided to continue to use AGK Studio for the foreseeable future and to have  a go at learning Lua over the next year or so (might not take that long) without putting too much pressure on myself . I am using Zerobrane for my IDE as I like it and am somewhat  familiar with it . Happy coding
Forgot to mention the srlua is for the latest Lua so no problems there. 5.4.4
The reason I gave up on lua in the past was because of the issue of producing an .exe file but this time I worked it out with a little help from the guys over on Stack Overflow. Good day to you.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz
HP Desktop AMD 3700 16GB ram 2 GB graphics card windows 10

Alienhead

#2
Lua is 'ok. I use it with Leadwerks mainly..   It's not much different than basic, although it has some nasty quarks.  No Strict or SuperStrict,  everything defined outside a function is considered a global. No hooks to catch errors in variables names, so combined with no Strict and universal globals you could be in for some serious debug time if your not careful.

I got around all that by using Sublime text 4, theres some niffty plugins that simulate Strict and a few other things.. the downside to using Sublime is I traded the editor for the debugger, so still have to be 'Super' careful coding in it.. Pun intended. :)


guest8544

If you like Lua, you could try this Luajit binding for Raylib. You can create standalone exes with it.