This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ETHANATOR360's profile picture

does computercraft uses an adapted version of lua

Started by ETHANATOR360, 06 October 2012 - 12:43 AM
ETHANATOR360 #1
Posted 06 October 2012 - 02:43 AM
i only ask this because i just got into love 2D gaming engine expecting all my friendly computercraft APIs only to be hit with all new APIs that were completely alien to me
Kingdaro #2
Posted 06 October 2012 - 02:48 AM
Love2D is an expansion upon a completely unedited version of Lua, while CC has some functions removed/replaced for security reasons.

Love isn't console based, so it's not going to be based around the same concept of "go to x,y then draw", it's based around the concept of "draw at x,y". It's main purpose is to provide a stable medium through which to keep track of and update variables in an efficient manner, then render the results of those variables.
ETHANATOR360 #3
Posted 06 October 2012 - 02:51 AM
Love2D is an expansion upon a completely unedited version of Lua, while CC has some functions removed/replaced for security reasons.

Love isn't console based, so it's not going to be based around the same concept of "go to x,y then draw", it's based around the concept of "draw at x,y". It's main purpose is to provide a stable medium through which to keep track of and update variables in an efficient manner, then render the results of those variables.
now i know how my parents feel when i talk to them about code and they have no clue what im talking about :(/>/>
Kingdaro #4
Posted 06 October 2012 - 02:55 AM
The answer to your question without a lengthy explanation is, Yes. Love2D and CC are very different from one another.
ETHANATOR360 #5
Posted 06 October 2012 - 02:58 AM
isnt cc also base around java instaed of C, C++, C#
Tiin57 #6
Posted 06 October 2012 - 03:00 AM
If you want the simple answer, then take it without asking questions. xD
Seriously, though. Unless you want an essay, just accept that the two are quite dissimilar.
Luanub #7
Posted 06 October 2012 - 03:03 AM
Also currently CC is using LuaJava, that will be changing soon though and we should get regular Lua.
Kingdaro #8
Posted 06 October 2012 - 03:06 AM
Also currently CC is using LuaJava, that will be changing soon though and we should get regular Lua.
I'm curious, how does one go about using C/C++ based Lua, while Minecraft is created in Java?
Kolpa #9
Posted 06 October 2012 - 03:23 AM
Also currently CC is using LuaJava, that will be changing soon though and we should get regular Lua.
I'm curious, how does one go about using C/C++ based Lua, while Minecraft is created in Java?

same here
Xtansia #10
Posted 06 October 2012 - 03:34 AM
@Kolpa & Kingdaro
Java allows using native libraries, ie how LWJGL works,
Just you require a JNI(Java Native Interface) interop.
Mads #11
Posted 10 October 2012 - 01:15 PM
A bit of Googling would have told that.
Kolpa #12
Posted 10 October 2012 - 08:57 PM
@Kolpa & Kingdaro
Java allows using native libraries, ie how LWJGL works,
Just you require a JNI(Java Native Interface) interop.

well java allows that but i was curious if that is possible for an minecraft mod without a big code rewrite (havent looked into minecraft mods a lot so excuse me)
1lann #13
Posted 11 October 2012 - 02:39 PM
@Kolpa & Kingdaro
Java allows using native libraries, ie how LWJGL works,
Just you require a JNI(Java Native Interface) interop.

well java allows that but i was curious if that is possible for an minecraft mod without a big code rewrite (havent looked into minecraft mods a lot so excuse me)
Minecraft mods are like java programs that hooks into minecraft's API. You can do virtually anything you can do in normal java, in minecraft.
Kolpa #14
Posted 11 October 2012 - 04:47 PM
@Kolpa & Kingdaro
Java allows using native libraries, ie how LWJGL works,
Just you require a JNI(Java Native Interface) interop.

well java allows that but i was curious if that is possible for an minecraft mod without a big code rewrite (havent looked into minecraft mods a lot so excuse me)
Minecraft mods are like java programs that hooks into minecraft's API. You can do virtually anything you can do in normal java, in minecraft.
hmm interesting i gotta look more into mc mods then thanks for the info :P/>/>