Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 07 Sep 2016 04:11 PM |
What is the difference of Roblox Lua and normal Lua? Aside of the Instance.new("ForceField", blabla) , if you know what I mean.
--["The word is full of kings and queens trying to steal your dreams." ]-- |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:28 PM |
There really isn't any difference, besides the fact one is optimized for an online Sandbox/RPG, and the other is simply a light-weight programming language that can be used with C and other various languages.
Basically, if you fully understand ROBLOX Lua, you'll pretty much comprehend most of "normal" Lua. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:29 PM |
Most of the things are the same.
These are probably the most notable changes in order from most obvious to least: - many libraries removed for security reasons (io, os (except clock/difftime), debug (except stacktrace)) and some functions changed too (collectgarbage only works with 'count') - _G no longer is a reference to the global environment, but rather a shared table across all scripts on that machine - __gc metamethod disabled (for security reasons) - tailcall optimization removed
There are a lot more but those are the ones that are probably the most obvious unless I'm forgettin something |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 07 Sep 2016 04:31 PM |
But like, if I'm about to create my own program, could I do that with Lua? And, could I create my program with 2 different code languages?
--["The word is full of kings and queens trying to steal your dreams." ]-- |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:52 PM |
| @Flux, security reasons for the io library? |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:53 PM |
they removed everything that was not necessary and coded the rest in C lua basically runs everything in C code but is a much more simple version of writing it |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:53 PM |
| so if you truly want to make your own program, you should stick to something like C or you could learn a bit of C in order to format Lua into whatever you please |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 07 Sep 2016 04:54 PM |
Like what programs could I create with Lua?
--["The word is full of kings and queens trying to steal your dreams." ]-- |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:55 PM |
"@Flux, security reasons for the io library?" Opening/writing to files.
|
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:55 PM |
| like i said before there are not many you could make, you always will need some sort of engine, in Roblox's case, they use their own engine which was written in C. Lua is really only for making games if you have enough libraries or a game engine to compute things you |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 07 Sep 2016 04:56 PM |
So the best coding language to learn when your about to make serious programs is C, C#, C++?
--["The word is full of kings and queens trying to steal your dreams." ]-- |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:58 PM |
| Daily stop spreading misinformation by saying Roblox is making their crap in C. It's mostly all C++ apart from Lua itself ffs |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 04:59 PM |
| ^ the engine is C++ but the code for modifying lua is C, all core scripts are lua |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:00 PM |
| Not according to your wrong post: "they use their own engine which was written in C." |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:01 PM |
| mistype and i probably was thinking lua instead |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:14 PM |
| unity uses js, boo, and c#, unreal i think uses the same languages too |
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 07 Sep 2016 05:26 PM |
A good environment to start learning in is Processing. It's basically Java stuffed into a pillow with some neat graphics functions so you can start drawing to the screen right away. A few good projects with that would be a Minesweeper clone or a pong game or a breakout game.
Once you get the hang of Processing, Java is the next best step upwards because it handles a lot of the little nuances for you. After Java, I'd suggest getting into C, because that will force you to learn how to handle things more carefully. C doesn't hold your hand. If you go out of an array's bounds in C, it wont tell you. It will just happily go along corrupting your program's memory until you run off into memory that doesn't belong to you. After that you should try and drag yourself into C++.
NEVER try to start with C or C++. You will only frustrate yourself and potentially scare yourself away from programming completely.
|
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:26 PM |
| i wonder if python is worse than C++ |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 07 Sep 2016 05:29 PM |
@qqtt991 Thanks for this information, I'm tracking this and I'll jump into the deep and start learning right away.
--["Roblox died a year ago." ]-- |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:30 PM |
try to use roblox because it was originally developed for teenagers and young developers to help them create games and make many people over the world play it.
with your programs, you cannot do that, it will be very difficult to get people to beta test it and to have many of people play it. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:31 PM |
| but once you become well enough in Lua, you should move onto more challenging languages like the ones shown above |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 07 Sep 2016 05:31 PM |
Indeed, thanks for the advice!
--["Roblox died a year ago." ]-- |
|
|
| Report Abuse |
|
|