Jump to content




does computercraft uses an adapted version of lua


13 replies to this topic

#1 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 06 October 2012 - 01: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

#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 06 October 2012 - 01: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.

#3 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 06 October 2012 - 01:51 AM

View PostKingdaro, on 06 October 2012 - 01:48 AM, said:

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 :(/>

#4 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 06 October 2012 - 01:55 AM

The answer to your question without a lengthy explanation is, Yes. Love2D and CC are very different from one another.

#5 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 06 October 2012 - 01:58 AM

isnt cc also base around java instaed of C, C++, C#

#6 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 06 October 2012 - 02: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.

#7 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 06 October 2012 - 02:03 AM

Also currently CC is using LuaJava, that will be changing soon though and we should get regular Lua.

#8 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 06 October 2012 - 02:06 AM

View Postluanub, on 06 October 2012 - 02:03 AM, said:

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?

#9 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 06 October 2012 - 02:23 AM

View PostKingdaro, on 06 October 2012 - 02:06 AM, said:

View Postluanub, on 06 October 2012 - 02:03 AM, said:

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

#10 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 06 October 2012 - 02:34 AM

@Kolpa & Kingdaro
Java allows using native libraries, ie how LWJGL works,
Just you require a JNI(Java Native Interface) interop.

#11 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 10 October 2012 - 12:15 PM

A bit of Googling would have told that.

#12 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 10 October 2012 - 07:57 PM

View Posttomass1996, on 06 October 2012 - 02:34 AM, said:

@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)

#13 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 11 October 2012 - 01:39 PM

View PostKolpa, on 10 October 2012 - 07:57 PM, said:

View Posttomass1996, on 06 October 2012 - 02:34 AM, said:

@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.

#14 Kolpa

  • New Members
  • 260 posts
  • LocationGermany

Posted 11 October 2012 - 03:47 PM

View Post1lann, on 11 October 2012 - 01:39 PM, said:

View PostKolpa, on 10 October 2012 - 07:57 PM, said:

View Posttomass1996, on 06 October 2012 - 02:34 AM, said:

@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/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users