generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Lua based question

Previous Thread :: Next Thread 
Fatalizer is not online. 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
Phantom_Neko is not online. Phantom_Neko
Joined: 25 Dec 2015
Total Posts: 2258
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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
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 is not online. 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
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
07 Sep 2016 04:52 PM
@Flux, security reasons for the io library?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. 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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
07 Sep 2016 04:55 PM
"@Flux, security reasons for the io library?"
Opening/writing to files.
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. 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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
07 Sep 2016 05:00 PM
Not according to your wrong post: "they use their own engine which was written in C."
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
07 Sep 2016 05:01 PM
mistype and i probably was thinking lua instead
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
07 Sep 2016 05:14 PM
unity uses js, boo, and c#, unreal i think uses the same languages too
Report Abuse
qqtt991 is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
07 Sep 2016 05:26 PM
i wonder if python is worse than C++
Report Abuse
Fatalizer is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image