Posted 08 September 2012 - 04:36 PM
This is a tutorial for a handful of useful features for ComputerCraft. It will go through adding/removing programs from your computer, using an out-of-game text editor for your programming, along with my personal recommendation for all your Lua (Loo-uh) programming needs. I listen to all requests, and if you request something that I know how to do, I will post another tutorial. This tutorial was made using "Windows Vista" so SOME sections may not work, like un-hiding file extensions.
Let's get started.
Chapter Two — How to save files properly for out-of-game editors.
To see your extensions:
2. At the bottom of the pop-out menu, you should see "Folder Options." Click it.
3. Click the "View" tab at the top.
4. Now look at the menu. You should see "Hide extensions for known file types" is checked.
5. Uncheck it, and you will see your file extensions, like.txt, .rtf, .lua, etc.
Right click and select "Rename" Then delete the extension, and ignore Windows' warning. Don't worry, you won't break the file. Now insead of reading
"test.txt" it should only read "test", and now ComputerCraft can read it.
Chapter 3 — Adding/Removing Programs
Pick subsection:
Adding Programs
Pick subsection #2:
Adding from an external editor (like Notepad++)
2. Open up .minecraft, and open up the "mods" folder.
3. Go to the ComputerCraft folder, whatever you named it.
4. Get in the "lua" folder.
5. Get in the "rom" folder.
6. Get in the "programs" folder.
7. Depending on what your program is for, put it in "computer" or "turtle".
Adding from the in-game editor
2. Go to the name of your world, and get in that folder.
3. Go to the "computer" folder.
4. Listed is every computer that has ever been made in your world, the majority of folders probably empty.
5. Find the file, through trial and error.
6. Now go back to .minecraft, with the computer's folder open.
7. Open up the "mods" folder.
3. Go to the ComputerCraft folder, whatever you named it.
4. Get in the "lua" folder.
5. Get in the "rom" folder.
6. Get in the "programs" folder.
7. Depending on what your program is for, put it in "computer" or "turtle".
Removing Programs
From the world:
2. Go to "saves"
3. Find the world you stored the file in.
4. Go to "computer"
5. Listed is all your computers that have ever been made in that world.
6. Find the file, through trial and error.
7. Right-Click, and press "Delete."
From all computers:
2. Go to "mods"
3. Get in your ComputerCraft folder, whatever you named it.
4. Get in the "lua" folder.
5. Go to "rom"
6. Go to the "programs" folder.
7. Click on whatever you saved it in, "computer" or "turtle".
8. Delete the file, removing it from all computers/turtles globally.
I hope this helped you.
–Lettuce
Let's get started.
Spoiler
Chapter One — My personal program editor.Spoiler
I use Notepad++, a very versatile editor with a series of programming langauges built in, including Lua, which is what ComputerCraft uses. It is free, and simple to use, even letting you see where your functions end, or if they end, making it much, much, easier to fix them. Find it at notepad-plus-plus.org (Copy and paste into your address bar)Spoiler
When you save your file, you must edit its name afterwards, to remove the extension. Like so:To see your extensions:
Spoiler
1. Go to a folder, like "My Documents" and click "Tools" at the top.2. At the bottom of the pop-out menu, you should see "Folder Options." Click it.
3. Click the "View" tab at the top.
4. Now look at the menu. You should see "Hide extensions for known file types" is checked.
5. Uncheck it, and you will see your file extensions, like.txt, .rtf, .lua, etc.
Right click and select "Rename" Then delete the extension, and ignore Windows' warning. Don't worry, you won't break the file. Now insead of reading
"test.txt" it should only read "test", and now ComputerCraft can read it.
Chapter 3 — Adding/Removing Programs
Spoiler
Pick subsection:
Adding Programs
Spoiler
Pick subsection #2:
Adding from an external editor (like Notepad++)
Spoiler
1. Find your file, wherever you saved it. Make sure there is no extension.2. Open up .minecraft, and open up the "mods" folder.
3. Go to the ComputerCraft folder, whatever you named it.
4. Get in the "lua" folder.
5. Get in the "rom" folder.
6. Get in the "programs" folder.
7. Depending on what your program is for, put it in "computer" or "turtle".
Adding from the in-game editor
Spoiler
1. Go to .minecraft, and enter the "saves" folder.2. Go to the name of your world, and get in that folder.
3. Go to the "computer" folder.
4. Listed is every computer that has ever been made in your world, the majority of folders probably empty.
5. Find the file, through trial and error.
6. Now go back to .minecraft, with the computer's folder open.
7. Open up the "mods" folder.
3. Go to the ComputerCraft folder, whatever you named it.
4. Get in the "lua" folder.
5. Get in the "rom" folder.
6. Get in the "programs" folder.
7. Depending on what your program is for, put it in "computer" or "turtle".
Removing Programs
Spoiler
Pick subsection #2:From the world:
Spoiler
1. Go to .minecraft2. Go to "saves"
3. Find the world you stored the file in.
4. Go to "computer"
5. Listed is all your computers that have ever been made in that world.
6. Find the file, through trial and error.
7. Right-Click, and press "Delete."
From all computers:
Spoiler
1. Go to .minecraft2. Go to "mods"
3. Get in your ComputerCraft folder, whatever you named it.
4. Get in the "lua" folder.
5. Go to "rom"
6. Go to the "programs" folder.
7. Click on whatever you saved it in, "computer" or "turtle".
8. Delete the file, removing it from all computers/turtles globally.
I hope this helped you.
–Lettuce