Difference between revisions of "Getting Started"

From ComputerCraft Wiki
Jump to: navigation, search
(Step 3: Programming your system)
m (Crafting)
 
(47 intermediate revisions by 30 users not shown)
Line 1: Line 1:
 
== Prerequisite: Installing the mods ==
 
== Prerequisite: Installing the mods ==
 
'''It is very important to read everything carefully before asking questions.'''
 
'''It is very important to read everything carefully before asking questions.'''
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''
+
'''Also, the latest version of this mod may not be compatible with the current Minecraft release.'''
  
# Install [http://jenkins.minecraftforge.net:7070/job/forge/171/ Minecraft Forge Recommended Build]
+
# Install the appropriate [http://files.minecraftforge.net/ Minecraft Forge Recommended Build] for your Minecraft version
# Download the latest version of [http://www.minecraftforum.net/topic/892282- ComputerCraft]
+
# Download the latest version of [http://www.computercraft.info/download/ ComputerCraft] for your Minecraft version
# Copy OR extract the .zip file into *minecraft folder*\mods\. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')
+
# Copy the .jar file into *minecraft folder*\mods\ or into your specified profile. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')
<!-- [11:36.53] <+Cruor|zZz> it can be in a zip in 1.41 :p -->
+
<!-- Both the zip or folder work. Please do not edit this without proof.
<!-- [11:36.57] <Mandrake> yes -->
+
Aha, but the folder doesn't work anymore since 1.6 -->
<!-- [11:37.03] <@FuzzyPurp> it is a zip in 1.41 -->
+
  
== Step 1: Crafting your first console ==
+
== Crafting ==
The recipe is simple:<br />
+
{{Crafting
{{Crafting grid
+
 
|A1=stone |B1=stone      |C1=stone
 
|A1=stone |B1=stone      |C1=stone
|A2=stone |B2=redstone   |C2=stone
+
|A2=stone |B2=Redstone   |C2=stone
 
|A3=stone |B3=glass pane |C3=stone
 
|A3=stone |B3=glass pane |C3=stone
|Output=console
+
|Output=Computer
 
}}
 
}}
<br />
 
  
Right click on the console to use it.<br />
+
Right click on the computer to use it.<br />
Some important keys to remember:
+
Some important key combinations to remember:
 
{| border="1" cellpadding="2" cellspacing="0"
 
{| border="1" cellpadding="2" cellspacing="0"
!style="background:#EEE" width="200px"|Shortcut
+
!style="background:#EEE" width="200px"|Key Combination
 
!style="background:#EEE" width="*"|Usage
 
!style="background:#EEE" width="*"|Usage
 
|-
 
|-
|CTRL + T
+
|{{Keypress|key=CTRL}} + {{Keypress|key=T}}
 
|Closes the current program.
 
|Closes the current program.
 
|-
 
|-
|CTRL + R
+
|{{Keypress|key=CTRL}} + {{Keypress|key=R}}
|Reboots the console.
+
|Reboots the computer.
 
|-
 
|-
|CTRL + S
+
|{{Keypress|key=CTRL}} + {{Keypress|key=S}}
 
|Forcefully shuts down the computer.
 
|Forcefully shuts down the computer.
 
|}
 
|}
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!<br />
+
You usually will have to hold down the key combinations for at least 1 second<br />
These are forced (CRTL+T can be disabled by a program).
+
  
== Step 2: Wiring it all up ==
+
== Attaching hardware ==
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.
+
You can a bunch of stuff to your computer. There are 6 sides to the sides of your computer, and the computer can interact with almost anything there that it can interact with. This includes [[Modem|modems]] [[Modem_(API)|(API)]], [[Disk_Drive|disk drives]] [[Fs_(API)|(API)]], [[Printer|Printers]] [[Printer_(API)|(API)]], [[Monitor|monitors]] [[Term_(API)|(API)]], and even redstone [[Rs_(API)|(API)]]! Connect these to the sides of your computer and use the appropriate API to control your hardware.
However, this mod can do much more. If you need to connect multiple wires to one side, you can just use RedPower's cables. Easy peasy.
+
Or, you don't do anything in this part. The computer has some great games shipped with and it is even capable of loading web pages.
+
  
Comparing Transformer-based and Transformerless Uninterruptible Energy Materials Industrial uninterruptible enegry providePicking out among transformer-based or transformerless uninterruptible electrical power materials might not be an uncomplicated, specifically above 10kVA. The two technologies have their place in currently??s power protection situations but the important variations between them are: animal dimension, performance, noise output plus the amounts of input harmonious distortion that they deliver forth Both equally uninterruptible ability provide designs create a tightly regulated source of uninterrupted electric power nevertheless they vary inside the way they produce the dc voltage demanded by their inverters and their output stages Transformer-based Uninterruptible Strength Materials: right until the early 1990s, the only style of on the net uninterruptible ability offer was transformer-based. Currently, the layout continues to be offered but frequently in bigger dimensions for UPS from eight to 800kVA. Probably the most normal apps for this are enough blue-collar web-sites This type of UPS has a robust transformer-isolated inverter output, which may make it extra ideal for the sort of software exactly where there exists a probability of electrical sound; spikes, transients, and most likely, a high degree of short-circuit currents The inverter generates an ac supply from its dc electrical power source, which can be fed into a step-up transformer. The main perform from the transformer is usually to grow the inverter ac voltage to that necessary from the load. The transformer also protects the inverter from load disruption, while also offering Galvanic isolation (a method of isolating input and output) Contemporary inverter patterns use IGBTs (Insulated Gate Bipolar Transistors) in spot of far more classic switching parts (which include electrical power transistors and thyristors). IGBTs combine the fast-acting and high strength capability on the Bipolar Transistor along with the voltage handle attributes of a MOSFET gate to sort a versatile, great frequency switching around system. This in turn has provided rise to more muscular, businesslike and examined inverters Transformer-based UPS will also be supplied that has a twin input choice as typical, which can be chosen at set up by simply just taking away a linking connector from its input terminal. This permits it to become driven from two separate ac provide sources so incorporating even more resilience. A transformerless UPS might be instaled with twin input ability, with materials deduced from the similar supply, but that is typically a factory-fit alternative Transformerless Uninterruptible Electrical power Programs Transformerless UPS is usually a more recent design and style, usually readily available from 700VA to 120kVA. The major objective behind the introduction of transformerless units was to cut back the general bodily dimension and body weight as a result doing an uninterruptible power supply unit a lot more suitable for scaled-down installations and/or personal computer room/office type environments, in which area can be constrained. Furthermore, it generates far a lot less noise and warmth than its transformer-based cousin and has far decrease input harmonious distortion levels which makes it congenial with environments where electronic devices (substantially as personal computers) might be more alive to this sort of distortion In place of your step-up transformer, a transformerless UPS uses a staged course of action of voltage conversion. The primary stage combines a rectifier and booster-converter to make a dc supply for your inverter. An anarchic, three-phase bridge rectifier converts the ac supply right into a dc voltage. That is went through via a mid-point booster circuit to stage the dc voltage up to usually 700-800Vdc from which a battery charger and inverter are housed. While in the second stage, the inverter will take the offer through the booster-converter and inverts it back again to an ac voltage to produce the load An extra benefit of this technique is the rectifier can run from possibly a three or single-phase input provide. This will be configured at set up for methods approximately 20kVA. A command technique makes sure a balanced, modulated dc voltage is furnished with the inverter in any respect instances and also the inverter can run irregardless of UPS output load versions or mains power provide fluctuations or disturbances Choosing among Transformer-based or Transformerless Uninterruptible Electric power Materials In numerous applications the alternative in between the two may be crystal clear. It really is wherever the two ranges co-occur, when it comes to electric power rating, that the selection is more perplexed. Consideration has to be offered then to: initial purchase price, animal dimension, running charges, the installation setting, and in watchful, the amounts of input harmonious distortion they carry forth. Equally styles is often run in antiparallel to achieve bigger ranges of availability and resilience Over the last decade, the gap in between these two uninterruptible strength provide technologies has reduced as manufacturers have applied widespread approaches and homework & development efforts to both patterns. The driving force behind this has been cost and dimensions, alongside demands to better running effectiveness and cut down harmonious generation. Concerning on the net performance, both designs render the same level of performance and are classed as VFI techniques (voltage and frequency autonomous in accordance with EN/IEC 62040-3). Their principal distinctions are their effects on upstream materials and also the operating environment Transformerless UPS are normally recognised as a lot more efficient and having a increased electrical power factor than an equivalent transformer-based design and style, therefore operating costs might be lower Below 10kVA, the transformerless UPS style and design dominates the on-line uninterruptible enegry offer market and has become the normal within data centre environments as they offer a far more compact footprint, increased operating efficiencies and lower noise output. However, the strengths in the transformer-based pattern come into play while in the blue-collar environment R K is the General Manager for Riello UPS Ltd the UK subsidiary of Riello UPS (RPS S.p.A) a leading European manufacturer of Uninterruptible Strength Supplies and a co-author of your Power Defense Guide
+
== Using the computer 's shell ==
 +
Your computer should come with CraftOS as long as you didn't mod the mod.
 +
If you have ever used the Linux terminal or Command Prompt or DOS or something similar, shell usage should be pretty simple.  
  
== Step 4: Test it ==
+
However the CraftOS Shell is even simpler and it only has one thing you can do: Type the name of a program (along with arguments) and it will run.
Make sure that your program is bug-proof before using it as something important. A system controlling the state of an IndustrialCraft² Mark-III Nuclear Reactor to prevent it from overheating shouldn't crash every now and then with "Too long without yielding".
+
  
== Step 5: Extend it ==
+
A few useful programs that will help you magically appear on every computer you use, because they are in the universal ''rom'' folder that every computer can access.
Give back your part to the community. Help others on the forums or improve the wiki. Or, make your own OS or shell to run on the computers and share it with everybody. You can even create your own peripheral blocks using the API to create even a bigger system. A mainframe, for example.
+
{| border="2" cellpadding="2" cellspacing="0"
 +
|cd
 +
|'''C'''hanges the current working '''d'''irectory of the shell, so you can do something else.
 +
|-
 +
|ls
 +
|'''L'''i'''s'''ts the contents of the working directory, with directories in green and files in white.
 +
|-
 +
|rm
 +
|'''R'''e'''m'''oves (deletes) a file or folder
 +
|-
 +
|mkdir
 +
|'''M'''a'''k'''es an empty '''dir'''ectory
 +
|-
 +
|mv
 +
|'''M'''o'''v'''es a file to another path
 +
|-
 +
|cp
 +
|'''C'''o'''p'''ies a file under another name
 +
|}
 +
 
 +
== Programming your computer ==
 +
    For programming tutorials, ''go to'': [[Tutorials]]
 +
 
 +
Programming ComputerCraft computers is done with a programming language called Lua. Lua is intended to be pretty simple to use, but if you don't know how, you can check out the programming tutorials on this wiki.
 +
 
 +
 
 +
----
 +
Do you recall that one time ages ago when you looked up "how to play Minecraft", and you got a basic guide: punch trees, make bench, make tools, build house, make torches. But do you remember the end?
 +
 
 +
''The rest is up to you...''
 +
 
 +
ComputerCraft works the same way. The goals and uses for ComputerCraft are limitless, and now you've gotten started. There is no definite thing to do next, the rest is up to you.
 +
 
 +
[[Category:Tutorials]]

Latest revision as of 06:19, 4 August 2020

Prerequisite: Installing the mods

It is very important to read everything carefully before asking questions. Also, the latest version of this mod may not be compatible with the current Minecraft release.

  1. Install the appropriate Minecraft Forge Recommended Build for your Minecraft version
  2. Download the latest version of ComputerCraft for your Minecraft version
  3. Copy the .jar file into *minecraft folder*\mods\ or into your specified profile. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')

Crafting

Empty-crafting-table.png
Grid stone.png
Grid stone.png
Grid stone.png
Grid stone.png
Grid Redstone.png
Grid stone.png
Grid Computer.png
Grid stone.png
Grid glass pane.png
Grid stone.png

Right click on the computer to use it.
Some important key combinations to remember:

Key Combination Usage

CTRL + T

Closes the current program.

CTRL + R

Reboots the computer.

CTRL + S

Forcefully shuts down the computer.

You usually will have to hold down the key combinations for at least 1 second

Attaching hardware

You can a bunch of stuff to your computer. There are 6 sides to the sides of your computer, and the computer can interact with almost anything there that it can interact with. This includes modems (API), disk drives (API), Printers (API), monitors (API), and even redstone (API)! Connect these to the sides of your computer and use the appropriate API to control your hardware.

Using the computer 's shell

Your computer should come with CraftOS as long as you didn't mod the mod. If you have ever used the Linux terminal or Command Prompt or DOS or something similar, shell usage should be pretty simple.

However the CraftOS Shell is even simpler and it only has one thing you can do: Type the name of a program (along with arguments) and it will run.

A few useful programs that will help you magically appear on every computer you use, because they are in the universal rom folder that every computer can access.

cd Changes the current working directory of the shell, so you can do something else.
ls Lists the contents of the working directory, with directories in green and files in white.
rm Removes (deletes) a file or folder
mkdir Makes an empty directory
mv Moves a file to another path
cp Copies a file under another name

Programming your computer

   For programming tutorials, go to: Tutorials

Programming ComputerCraft computers is done with a programming language called Lua. Lua is intended to be pretty simple to use, but if you don't know how, you can check out the programming tutorials on this wiki.



Do you recall that one time ages ago when you looked up "how to play Minecraft", and you got a basic guide: punch trees, make bench, make tools, build house, make torches. But do you remember the end?

The rest is up to you...

ComputerCraft works the same way. The goals and uses for ComputerCraft are limitless, and now you've gotten started. There is no definite thing to do next, the rest is up to you.