Forums - Open Redstone Engineers
computercraft? - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Programming (https://forum.openredstone.org/forum-8.html)
+--- Thread: computercraft? (/thread-342.html)



computercraft? - Nickster258 - 06-07-2013

What is the best tutorial/method to learn lua?
Also, turtles?

Can you give me examples of scripts you have written? All I have written was a locked door in FTB, and if you enter the passcode wrong a tesla coil turns on for 15 seconds killing the lowly peasants.


RE: computercraft? - Xeomorpher - 06-07-2013

Don't EVER lean lua. EVER.


RE: computercraft? - mad1231999 - 06-07-2013

EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEW


RE: computercraft? - Nickster258 - 06-07-2013

(06-07-2013, 07:17 PM)Xeomorpher Wrote: Don't EVER lean lua. EVER.

I just want to learn lua to program computercraft. I know it is really touchy.


RE: computercraft? - mad1231999 - 06-07-2013

This is the dumbest decision you can ever take.


RE: computercraft? - Nickster258 - 06-07-2013

(06-07-2013, 08:12 PM)mad1231999 Wrote: This is the dumbest decision you can ever take.

Apparently not... How else do you suggest me to learn computer craft?


RE: computercraft? - mad1231999 - 06-07-2013

I don't. You shouldn't.


RE: computercraft? - Chibill - 06-07-2013

Make a C interpreter for it.


RE: computercraft? - Nickster258 - 06-08-2013

Oh ok. I guess I need to learn C then.


RE: computercraft? - Malcolmforde - 06-08-2013

(06-07-2013, 09:39 PM)Chibill Wrote: Make a C interpreter for it.

C is not interpreted, it is compiled.


RE: computercraft? - Chibill - 06-08-2013

Yes but it would be an interpreter in CC because you can't run C on LUA if its not interrupted.


RE: computercraft? - mort96 - 06-08-2013

CC is fun. Even the Lua part of it. Programmable computers in MC = awesomeness.


RE: computercraft? - VirtualPineapple - 06-08-2013

*Mutilates Computercraft*


RE: computercraft? - Chibill - 06-09-2013

I can make a wifi pineapple with CC.

(Virt get over here let me put this wifi modem and CCC in your brain!)


RE: computercraft? - Malcolmforde - 06-11-2013

(06-08-2013, 07:11 AM)Chibill Wrote: Yes but it would be an interpreter in CC because you can't run C on LUA if its not interrupted.

Then use a damn interpreted language. And I don't see why LUA is so bad.


RE: computercraft? - Xeomorpher - 06-11-2013

Then you don't see anything.


RE: computercraft? - fl3tching101 - 06-15-2013

Ok, yes, Lua is a pretty horrifying language, but computer craft is a LOT of fun. And nobody is actually answering his question but rather bashing/supporting CC! So for answering the question, there is no really dead set method to learning a language. I have done a bit in CC and it is tons of fun, but honestly most of it is CC API and not much to do with the Lua language. Kind of like how the Arduino is programmed with a C based language, most of the actual coding done is specific to it rather than C. In conclusion, how I learned was simply watching some tuts for basic syntax layout and whatnot on youtube, combined with previous programming experience, and finally the computer craft wiki has tons of info on the APIs/Turtles/peripherals and how to use them. Hope I helped!


RE: computercraft? - mad1231999 - 06-15-2013

https://www.youtube.com/user/briantwill?feature=watch


RE: computercraft? - Xeomorpher - 06-15-2013

I see java.


RE: computercraft? - VirtualPineapple - 06-15-2013

Mad! What did you just do ;n;


RE: computercraft? - mad1231999 - 06-16-2013

(06-15-2013, 08:48 PM)Xeomorpher Wrote: I see java.

Ignore those videos.


RE: computercraft? - Xeomorpher - 06-16-2013

IGNORE ALL THE VIDEOS.


RE: computercraft? - Malcolmforde - 06-18-2013

A Etho joke: (Relates to him coding in computercraft)

Code:
rain = 0
etho = 1
if etho == 1 then
   rain = rain + 1
end
if rain == 1 then
  print("You: DAMNIT ETHO!")
  print("Etho: Sorry, it seems to always rain when I code")
end
sleep(4)
rain = rain - 1
print("You: Good, its gone.")
end



RE: computercraft? - Nickster258 - 06-18-2013

(06-15-2013, 09:40 AM)fl3tching101 Wrote: Ok, yes, Lua is a pretty horrifying language, but computer craft is a LOT of fun. And nobody is actually answering his question but rather bashing/supporting CC! So for answering the question, there is no really dead set method to learning a language. I have done a bit in CC and it is tons of fun, but honestly most of it is CC API and not much to do with the Lua language. Kind of like how the Arduino is programmed with a C based language, most of the actual coding done is specific to it rather than C. In conclusion, how I learned was simply watching some tuts for basic syntax layout and whatnot on youtube, combined with previous programming experience, and finally the computer craft wiki has tons of info on the APIs/Turtles/peripherals and how to use them. Hope I helped!
Finaly what I have been looking for Smile


RE: computercraft? - Malcolmforde - 06-20-2013

I learned LUA by staring at it for a few mins, figure out what I saw does, and make something similar to prove my theory. I am practically a LUA master now.


RE: computercraft? - VirtualPineapple - 06-20-2013

Orly q_Q


RE: computercraft? - Nickster258 - 06-20-2013

Q_Q Look of disapproval...


RE: computercraft? - mad1231999 - 06-23-2013

Code:
malc.on_talk = function(self, str)
    _G["malc"] = nil
end

You can't even spell the name correctly...


RE: computercraft? - qwerasd205 - 06-25-2013

Code:
while true do
if MLPin ~= "Best show along side Doctor who" then
nukePlanet = true
end
end



RE: computercraft? - bannanalord - 06-26-2013

How about we tear apart computercraft, rip out lua and throw in jython!


RE: computercraft? - Xeomorpher - 06-26-2013

Or just python xD


RE: computercraft? - qwerasd205 - 06-26-2013

oooor

Perl!

Perl's free form syntax is perfect!

Not to mention, as the doctor would say, Sexy!


RE: computercraft? - Xeomorpher - 06-26-2013

NO


RE: computercraft? - Xeomorpher - 06-26-2013

NONONO


RE: computercraft? - Xeomorpher - 06-26-2013

NEVER


RE: computercraft? - Xeomorpher - 06-26-2013

WHY


RE: computercraft? - Xeomorpher - 06-26-2013

NOT


RE: computercraft? - Xeomorpher - 06-26-2013

P


RE: computercraft? - Xeomorpher - 06-26-2013

E


RE: computercraft? - Xeomorpher - 06-26-2013

R


RE: computercraft? - Xeomorpher - 06-26-2013

L


RE: computercraft? - Xeomorpher - 06-26-2013

EVER.


RE: computercraft? - qwerasd205 - 06-26-2013

Perl is awful in every way!


RE: computercraft? - Chibill - 06-27-2013

I can try and make a Jython API for CC?


RE: computercraft? - qwerasd205 - 06-27-2013

well.... i suppose my message was a bit long but you could just put --[Blocked for length]--
instead of making me say something I do not believe. the way you edited my message was abuse of powers, Xeo if you would mind please change any messages of mine that you don't like to "--[Blocked for (REASON)]--" thank you.

(06-26-2013, 06:41 PM)qwerasd205 Wrote: Perl is awful in every way!
this used to be "Perl." repeated about 100 times, I am sorry for making it that long and will try not to do it again.


RE: computercraft? - Chibill - 07-21-2013

Some one is making a CC like mod that the code is JS.