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

Interactive Computercraft Tutorial (In-Game)

Started by Casper7526, 28 January 2012 - 09:33 AM
Casper7526 #1
Posted 28 January 2012 - 10:33 AM
Interactive ComputerCraft Tutorial

HowTo:

Download Tutorial
http://www.mediafire...sqpjne30b2f320s

Extract and place that file inside your mods/computercraft/lua/rom/programs/


Type "tutorial" in the terminal and press enter.
G0V3RNM3NT4L #2
Posted 01 March 2012 - 08:25 PM
THANK YOU SO MUCH! Seriously, sorry about the caps spam but this helped me soooo much!
Leo Verto #3
Posted 06 March 2012 - 02:47 PM
This really helped me coding for CC although I knew a little lua before. :unsure:/>/>
Sidenstein #4
Posted 14 March 2012 - 02:44 PM
Funny thing, when I just double click the file, it opens up my "mass effect 2 launcher"! Just wanted to share.
hamish1001 #5
Posted 22 March 2012 - 05:44 AM
THANK YOU this helped sooooooooooooooooo much :)/>/>
im a NINJA :(/>/> :)/>/>
Kadecamz #6
Posted 26 March 2012 - 08:26 PM
Changed it from a rar. file. Will it still work?
WolfsRainESP #7
Posted 28 March 2012 - 10:09 PM
the part of the redpower have and issue on hot to set off the bundled cable, see it. -Thanks for the gui!! it really helps!
RockLegend2 #8
Posted 01 April 2012 - 12:58 AM
You, sir, are one awesome person.

Thanks!
adamvan2000 #9
Posted 06 April 2012 - 11:01 AM
I am brand new to CC, made my first 'puter, and copied the tutorial to to correct directory as stated above. It's not saved with any suffix, justy like the other programs in the directory, but the computer fails to recognize it when I log in. I have tried navigating to that directory within the the in-game computer, but it does not appear there either. I am playing on a server with CC, could that be the issue? Do I need an admin to add it to the programs in the server files, or can I just add it in locally and have it work? The server is 1.1 with RP2 and CC. Thanks for being patient with a newb.
DragonDonut #10
Posted 08 April 2012 - 03:05 PM
I am brand new to CC, made my first 'puter, and copied the tutorial to to correct directory as stated above. It's not saved with any suffix, justy like the other programs in the directory, but the computer fails to recognize it when I log in. I have tried navigating to that directory within the the in-game computer, but it does not appear there either. I am playing on a server with CC, could that be the issue? Do I need an admin to add it to the programs in the server files, or can I just add it in locally and have it work? The server is 1.1 with RP2 and CC. Thanks for being patient with a newb.

Yes, you playing on a server definitely has some thing to do with it. What you could do is either download the code to a computer through pastebin, but the you would have to download it to every computer you wanna use it on(or put it on a floppy) or ask the server owner to add the file.
FunshineX #11
Posted 11 April 2012 - 09:19 AM
Exactly what I was looking for!
Teraminer #12
Posted 13 April 2012 - 06:05 PM
WTF it is awesome DOWNloading!!!
djblocksaway #13
Posted 13 May 2012 - 02:39 PM
nice nice :D/>/>

great tut for the noobs :P/>/>

good job casper
djblocksaway #14
Posted 13 May 2012 - 02:40 PM
and hamish u got lots of shit in ur sig xD
wowplayer101 #15
Posted 05 July 2012 - 05:41 AM
I own a server… Could I just put it in the server's version of the file? I've looked through the server files (this is a tekkit server) and the CC mods folder looks pretty much the same as a singleplayer version. Would it work even though I am running a tekkit server? O.o
diegodan1893 #16
Posted 10 July 2012 - 09:47 PM
Thanks, this helped me a lot. It's the best tutorial for starting in LUA.
kaj #17
Posted 23 July 2012 - 12:27 AM
This helped (and is still helping me) A LOT.
you should download this if you're just getting into CC or lua.

thank you OP
seth_321 #18
Posted 27 July 2012 - 07:20 PM
I own a server… Could I just put it in the server's version of the file? I've looked through the server files (this is a tekkit server) and the CC mods folder looks pretty much the same as a singleplayer version. Would it work even though I am running a tekkit server? O.o

I put this tutorial in the "mods" folder on my server(Tekkit)…. " MINECRAFTUsersXXXDesktopTekk-UpdatedmodsComputerCraftluaromprograms " <– to be exact lol. This folder will make the tutorial program available on all computers in-game and any new ones created! This tutorial was very cool! I learned a lot and by putting it in the server mods folder now all the noobs like me can make a computer and just do the tutorial real quick to learn. This should be added to the standard programs listed when someone downloads the ComputerCraft Mod.
4forpengs #19
Posted 28 July 2012 - 06:19 AM
wow, that tutorial is amazing.

I found a slight problem with the program, it's just a small one. If you implement the variables lesson into solving the problem, you should be fine.

Problem:
While statement trial

if the user decides to do the while true do method, and then the while name ~= method, and they don't use a different name, the variable gets stored and the while name ~= method will not run properly because the variable name already is set as the naem they chose in the while true do method.

I believe having them set the variable as a local variable would solve the issue.
Tenaigh #20
Posted 04 August 2012 - 05:05 AM
Am I just screwed or is there any way to put this in my tekkit client??
GalactusX #21
Posted 20 September 2012 - 05:57 AM
I really like your tutorial, can you give me permission to translate and implement it on the server I play? (I have friends with the owner of the server XD)
juiceblox #22
Posted 23 September 2012 - 03:55 PM
Can someone help me? On the chapter about if statements, I made the following code.
Spoilerterm.clear()
term.setCursorPos(1,2)
name = io.read()
print ("Let's see…"..name..".")
if name == "Pete" or "pete" then
if name == "pete" then
name = "Pete"
end
print ("I hear you're awesome, "..name.."!")
else
end
if name ~= "Pete" then
print ("You're not Pete, "..name.."!")
end

With an input of anything besides "pete" or "Pete", I get the following output.
SpoilerName, plsease? ****
Let's see…****.
I hear you're awesome, ****!
You're not Pete, ****!

It seems my nested if statement is prematurely ending my first if statement. How do I prevent that?
*Edit: I took away the nested if, and it's still giving me the same output. Wtf???
*Edit2: I figured it out. I didn't put the second "name ==" in the first if command line. I guess I'll just thank myself and leave…
PeterHansen #23
Posted 30 September 2012 - 06:37 AM
I've just registered to say THAT'S AWESOME!

Thank you very much!
Ralnick #24
Posted 06 October 2012 - 07:52 AM
thanks for this… it helped alot.
BuddeDrunk #25
Posted 04 November 2012 - 09:43 AM
Can't get this to work for the life of me. Put it into the aforementioned folder including on my desktop(where technic is saved) and roaming just for the hell of it. Won't show up in game. Help?
Vaupell #26
Posted 13 November 2012 - 12:17 AM
Both links not working..
whos_Blu #27
Posted 23 November 2012 - 11:31 PM
UPDATE LINK!!!!!!!!!
GeniusName3 #28
Posted 26 November 2012 - 12:45 PM
inside the .zip file?If not then I don't have a computercraft folder
i_am_th0r #29
Posted 10 December 2012 - 01:44 PM
yea i was in the simulation for while loops and i got stuck in a infinite loop ,i debugged my hello program several times to be exactly sure but bob just isnt working,i use a lower case bob so i dont have to do Bob.Isnt there a way to code the way out of a infinite loop?
i_am_th0r #30
Posted 10 December 2012 - 01:48 PM
Can't get this to work for the life of me. Put it into the aforementioned folder including on my desktop(where technic is saved) and roaming just for the hell of it. Won't show up in game. Help?
If u have Windows 7 go to start menu and type in run then in the run program do %appdata% and go to technic folder/tekkit/saves/Computer and find the id of the computer u want to put the tutorial file in and just place it in,boot up the world in tekkit and run the tutorial program
Both links not working..
yes they are now
inside the .zip file?If not then I don't have a computercraft folder
are u using minecraft or tekkit? if u installed the mod in minecraft and never runned a cpu than go back (either or tekkit or minecraft) to your world and get a computer in a single player, run the computer first,do id in the computer to get the id of the computer and the will be the folder name in the saves folder of tekkit or minecraft.From there, put the file in there.
Astrobleme #31
Posted 24 December 2012 - 09:49 PM
I'm having trouble on chapter 2's exercise. I'm type in the the prompt edit hello to create or edit hello to start following the instructions, but when I'm told to clear the screen the syntax doesn't work. I'm referring to term.clear() syntax. I started the lua prompt out of the tutorial and tried the term.clear() syntax and it worked. What am I doing wrong?
kaikalii #32
Posted 30 December 2012 - 02:10 PM
Wow. Im only a few chapters in, but this is already awesome. Thank you so much! This is exactly what i need.
Loki #33
Posted 03 January 2013 - 05:29 PM
THANK YOU this helped sooooooooooooooooo much :lol:/>/>
im a NINJA :ph34r:/>/> :lol:/>/>

Sir, do you have an obsession with dogs barking? If so, why is my son, (more formerly known as Fenrir should i say) in your little barking dog signature? Just a question…
TheOddByte #34
Posted 15 January 2013 - 06:45 AM
Could You Maybe Include A rednet Tutorial In this if you will update it?
Cause I don't know so much about it.