This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Where Is Lua Used, Outside Of Minecraft?
Started by ZagKalidor, 06 August 2013 - 01:49 AMPosted 06 August 2013 - 03:49 AM
Just as the title sais. Which devices or environments use lua, outside of minecraft?
Posted 06 August 2013 - 03:56 AM
I think some games use Lua (not as the primary programming language, but at some scripting parts), and you can make websites with lua, for example my router uses lua for his NAS Filemanager.
Posted 06 August 2013 - 04:00 AM
You can use Love2D to write cross platformed, 2D games in Lua.
Lots of modding/scripting for games is done in Lua too, such as in WoW.
Lots of modding/scripting for games is done in Lua too, such as in WoW.
Posted 06 August 2013 - 04:32 AM
It's the most widely used scripting language in the Games industry, by far. I've never worked on a game proffesionally that doesn't use Lua in some way. Pick 10 games at random off the shelf, and I bet more than half have some Lua in them somewhere.
Posted 06 August 2013 - 04:41 AM
I have a couple examples.
- You can make games in Roblox using Lua scripts.
- The man that introduced me to Java had some contact to this director for Ubisoft. This director almost demanded him to learn Lua.
Posted 06 August 2013 - 05:44 AM
could it be possible to run, let's say: my own coded databank that i wrote in lua, on a website based or local httm page?
Posted 06 August 2013 - 06:23 AM
could it be possible to run, let's say: my own coded databank that i wrote in lua, on a website based or local httm page?
If you're talking running Lua in some httpd environment, yes. I've written an entirely Lua driven webserver before, and I'm sure there's some sort of Lua module for Apache and whatever webserver of your choice. You can also run Lua inside a browser using lua.vm.js, which is an entirely Javascript-driven Lua VM environment.
Posted 06 August 2013 - 06:46 AM
Thank you for that info Lochie,
that now makes me looking forward for that, could you show me how to do that? I'm thinking of a httm page that runs this virtual machine for me, making me able to use my own programs. I don't need a server based environment. Basicly i'd like to run it just on my local PC.
that now makes me looking forward for that, could you show me how to do that? I'm thinking of a httm page that runs this virtual machine for me, making me able to use my own programs. I don't need a server based environment. Basicly i'd like to run it just on my local PC.
Posted 06 August 2013 - 06:49 AM
Here is a list of all that I can think of:
- ComputerCraft (ofcourse)
- Gmod
- Roblox
- MTA:SA
- Love2D
- World of Warcraft
Posted 06 August 2013 - 06:51 AM
Thank you for that info Lochie,
that now makes me looking forward for that, could you show me how to do that? I'm thinking of a httm page that runs this virtual machine for me, making me able to use my own programs. I don't need a server based environment. Basicly i'd like to run it just on my local PC.
Sure – you can mess around with the httpd source here - you'll need to install some Lua 5.1 binary in the same directory, and the LFS and Socket libraries for Lua, they're not hard to find. You can meddle around with the demo files in the /http/ directory to get an idea as to what sort of code you can and can't run, and how it can be run. Assuming all goes well, you can setup a little lua-httpd running on port 8080 on your local machine and mess around with the basic HTTP/1.1 methods (GET/POST).
If you want to go a totally Javascript option, here's lua.vm.js over on Github as well - it assumes you have decent HTML and Javascript experience, however, and as far as I'm aware it only provides Lua 5.2x VM's.
Posted 06 August 2013 - 07:02 AM
very nice,
unfortunately i'll have to get me to my work now, I will see over it in the evening. But as i can see by far, I think i need a little more help with that.
My knowledge now is, to code http but I have no java experience. Maybe I'll get a little of that by doing that.
thank you guys, I'll be back in the evening…
unfortunately i'll have to get me to my work now, I will see over it in the evening. But as i can see by far, I think i need a little more help with that.
My knowledge now is, to code http but I have no java experience. Maybe I'll get a little of that by doing that.
thank you guys, I'll be back in the evening…
Posted 06 August 2013 - 07:06 AM
The PSP uses lua :D/>
Posted 06 August 2013 - 07:14 AM
very nice,
unfortunately i'll have to get me to my work now, I will see over it in the evening. But as i can see by far, I think i need a little more help with that.
My knowledge now is, to code http but I have no java experience. Maybe I'll get a little of that by doing that.
thank you guys, I'll be back in the evening…
Javascript*
There is big difference, never confuse the two. :)/>
Posted 06 August 2013 - 10:55 AM
Hope my chief is not reading this im at work now.
Years ago i made several things in shockwave. Some people said to me it was a bit similar to javascript. Maybe it helps a little.
Till evening guys. Have fun - life is short
Years ago i made several things in shockwave. Some people said to me it was a bit similar to javascript. Maybe it helps a little.
Till evening guys. Have fun - life is short
Posted 06 August 2013 - 04:44 PM
There is a full Wikipedia page for this: http://en.wikipedia.org/wiki/Category:Lua-scripted_video_games
Posted 07 August 2013 - 06:11 AM
Ah sorry guys, thats a little to hard for me. But dealing with that i found a way to feed my need so you helped my in another way. Thx for all efforts…