|
| 08 Jan 2017 08:47 AM |
| Is the original Lua the same as Gmod and Roblox Lua? Will learning gmod and roblox lua help me in learning the original Lua or is it the opposite way around? |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2017 09:04 AM |
Lua cannot work on it's own. It needs a platform to work on.
This is why on roblox, lua is called rbx.lua
Want to coorperate or be supported by scripters, builders, and designers in a positive environment? Then join Studio BSD! https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2017 09:06 AM |
| Gmod and Roblox Lua use different api's, but they both have a wiki that can help you learn both apis. I learned Roblox's Api before regular Lua and Gmod's api which really helped me, but that is an optional route. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2017 09:09 AM |
| Here is a link to help you with Roblox's api: http://wiki.roblox.com/?title=Scripting_Book |
|
|
| Report Abuse |
|
|
MK_0
|
  |
| Joined: 28 Aug 2010 |
| Total Posts: 1651 |
|
|
| 08 Jan 2017 10:00 AM |
Is the original Lua the same as Gmod and Roblox Lua?
Basically, but with their own modifications.
Hence why it is called Roblox.Lua, but there only really "change" is Roblox's instances and GMods.
|
|
|
| Report Abuse |
|
|
|
| 08 Jan 2017 10:35 AM |
Dis is API --> http://wiki.roblox.com/index.php?title=API:Class_reference
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2017 10:42 AM |
lua is a good language
its easy to use (and i think port), auto garbage collection (as in you don't have to manually write a system to get rid of variables, lua does that for you, you just have to call the function), and thats all i can think of (its also OOP)
so thats probably why roblox and gmod used lua
and now i'm sad |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 05:32 PM |
Thanks for all the replies and for the Wiki pages.
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 05:41 PM |
| Tbh lua is trash... C#, Java or python would have been better |
|
|
| Report Abuse |
|
|
MemAddr
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 597 |
|
|
| 11 Jan 2017 05:53 PM |
| C would've been an awesome language to implement. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Jan 2017 05:54 PM |
"Lua cannot work on it's own. It needs a platform to work on." It can work on it's own perfectly fine.
"Tbh lua is trash... C#, Java or python would have been better" Thank god nobody listens to your opinion, using Java would have been horrible. And Roblox started using Lua probably before Python 'became popular' but who knows. Lua is typically faster and much more portable and smaller anyways.
"C would've been an awesome language to implement." Either you're trolling, or you're stupid. I'm hoping the former.
|
|
|
| Report Abuse |
|
|
MemAddr
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 597 |
|
| |
|
|
| 11 Jan 2017 06:00 PM |
| What about things like World of Warcraft and Angry Birds, what platforms were they built on if lua has to have a platform to work? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Jan 2017 06:01 PM |
| WoW wasn't made in Lua, it just uses Lua. I don't know about angry birds but I'm sure you can google it. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 06:02 PM |
| ^ What is the rest made of? What do mean it uses lua? What does it use lua for? |
|
|
| Report Abuse |
|
|
MemAddr
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 597 |
|
|
| 11 Jan 2017 06:03 PM |
Minecraft was made in binary. That's why it's so fast. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 06:04 PM |
| ^ I have no idea if that was a joke, but wasn't it made in Java? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Jan 2017 06:04 PM |
@dude according to a stackexchange thread I read: "As for World of Warcraft, I do know they use Lua for all of the client GUI stuff, but aside from that I don't think they use Lua for anything else" |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 06:05 PM |
| ^ So I guess just gui scripts, I bet they use some form of C for the rest of the game. |
|
|
| Report Abuse |
|
|
Dyphonic
|
  |
| Joined: 06 Feb 2010 |
| Total Posts: 2981 |
|
|
| 11 Jan 2017 06:06 PM |
It flabbergasts me how people are using their programming vocabulary incorrectly.
While maybe the API (Application Program Interface) is different in GMod and ROBLOX, what the correct word to use is LIBRARY.
Lua has no built-in libraries whatsoever, so you have to deal with the functions that are all explained on their website. If you want to make custom variable and functions that do all your bidding, you have to make them yourself.
What makes GMod and ROBLOX Lua different from standalone Lua is the use of Libraries. ROBLOX has librarys that import specific variables, objects, and functions to make it all work (such as :GetChildren(), Parent, and the infamous wait()); these cannot be found in ordinary Lua. GMod does the same thing, except that their names probably differ and they have certain functions that are not do-able in Roblox Lua unless you make them. Roblox Lua has things you can't do in GMod Lua unless you make them as well.
tl;dr Roblox Lua and GMod Lua still have the "grammar" and basic vocabulary of stand-alone Lua, but libraries are what make Roblox Lua and GMod Lua so distinct from each other.
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 06:06 PM |
| I found out it was C++ for the most, but Python for the backbone. |
|
|
| Report Abuse |
|
|
MemAddr
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 597 |
|
|
| 11 Jan 2017 06:07 PM |
"some form of C" Err, I hope you mean C++ |
|
|
| Report Abuse |
|
|
Dyphonic
|
  |
| Joined: 06 Feb 2010 |
| Total Posts: 2981 |
|
|
| 11 Jan 2017 06:07 PM |
@MemAddr
Actually no. Lua is an embedded extension of the programming language C, not C++
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Jan 2017 06:09 PM |
"It flabbergasts me how people are using their programming vocabulary incorrectly." "Lua has no built-in libraries whatsoever" Clearly you don't understand what a library is.
And the rest of most of what you say has already been said. Stop trying to look smart when you're not. |
|
|
| Report Abuse |
|
|
MemAddr
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 597 |
|
|
| 11 Jan 2017 06:10 PM |
@Dyphonic I was responding to dude's post
"01-11-2017 04:05 PM ^ So I guess just gui scripts, I bet they use some form of C for the rest of the game." |
|
|
| Report Abuse |
|
|