New article - Mesecons Basics!

master
Anthony Zhang 2013-05-08 19:09:21 -04:00
parent bd8ff9e99e
commit 41502c4191
25 changed files with 132 additions and 2 deletions

View File

@ -18,6 +18,31 @@
<p>All articles assume basic knowlege of how Mesecons work, and some may also assume some proficiency in the <a href="http://www.lua.org/about.html">Lua programming language</a>.</p>
<p>For more Mesecons madness, check out Nore's new site, <a href="http://nore.mesecons.net/">Basic Mesecons</a>!</p>
<table class="entry"><tr>
<td>
<h2>Mesecons Basics</h2>
<h3>6/5/13 - Uberi</h3>
<p>An intermission from building to explain the very very basics of Mesecons circuitry. No previous experience required! There's a bit of building too, apparently.</p>
<p class="difficulty">Difficulty level:
<img src="img/Difficulty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
<img src="img/DifficultyEmpty.png">
(1/10)
</p>
<a href="projects/MeseconsBasics/index.html" class="post">Read on...</a>
</td>
<td>
<img src="projects/MeseconsBasics/img/Basics.png" alt="Post preview" class="preview">
</td>
</tr></table>
<table class="entry"><tr>
<td>
<h2>Digital Clock</h2>

View File

@ -26,7 +26,7 @@
<img src="../../img/DifficultyEmpty.png">
(4/10)
</p>
<p>This article assumes you have the <a href="https://github.com/Jeija/minetest-mod-digilines/">Digilines mod</a>, which I generally consider a de facto part of Mesecons. It is still possible to complete it without this mod, but replacing its functionality with fancy wiring is an exercise left to the reader.
<p>This article assumes you have the <a href="https://github.com/Jeija/minetest-mod-digilines/">Digilines mod</a>, which I generally consider a de facto part of Mesecons. It is still possible to complete it without this mod, but replacing its functionality with fancy wiring is an exercise left to the reader.</p>
<p>Don't you ever wish you had a clock in-game while playing Minetest, just to keep track of all the time you're wasting? Need a timepiece for the top of the main tower in town hall? Let's build one!</p>
<img src="img/Clock.gif" alt="Clock" class="picture">
<p>This clock will never need adjustment and works even if you use the /time command! This is made possible using the Digilines RTC.</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,105 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" href="../../Style.css" type="text/css">
<link href="../../rainbow/theme.css" rel="stylesheet" type="text/css">
<script src="../../rainbow/rainbow.min.js"></script>
<title>Mesecons Basics | The Mesecons Laboratory</title>
</head>
<body>
<div id="content">
<h1><a href="../../index.html" class="title">Mesecons Laboratory</a></h1>
<p id="subtitle">Adventures in digital circuitry.</p>
<br>
<h2>Mesecons Basics</h2>
<h3>6/5/13 - Uberi</h3>
<p class="difficulty">Difficulty level:
<img src="../../img/Difficulty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
<img src="../../img/DifficultyEmpty.png">
(1/10)
</p>
<p>So far we've already looked at a couple of machines, but not at Mesecons itself. That won't do! This is a usage guide for new Mesecon users, including those without Redstone experience.</p>
<img src="img/Basics.png" alt="Circuits demonstration" class="picture">
<p>Let's look at exactly what Mesecons can do, and how you can use it.</p>
<h4>Overview</h4>
<p>Mesecons is a digital circuitry mod for Minetest that allows players to create circuits that can do nearly anything.</p>
<p>Mesecons resembles real life circuitry in that you have wires that carry information around and various things that affect or are affected by them, but the basic similarities end there.</p>
<p>There are three basic types of things in the Mesecons mod: wires, receptors, and effectors. We'll look at each one in detail below, but for now we'll go through a summary.</p>
<p>Wires conduct signals around, while receptors do the actual creating of those signals. Effectors do things based on those signals. Some things can act as both receptors and effectors, which is useful for doing things like modifying signals.</p>
<h4>Wires</h4>
<p>These are Mesecon wires:</p>
<img src="img/Wires.png" alt="Mesecon wires" class="picture">
<p>Left to right: normal wire, insulated wire, T-junction wire, corner wire, vertical wire, MESE block. Rear wires are on, front wires are off.</p>
<p>There are a lot of different wires that have distinct uses, but all of them perform essentially the same task. First of all, Mesecon wire has two states: on and off. The on state is generally brighter or more saturated in color than the off state. Wires are off when you place them down, but they can be turned on by being conducted to.</p>
<p>A Mesecon wire that is on (the wire is in the on state) will cause other wires and effectors adjacent to it to turn on as well, a process known as conduction. Which adjacent ones that turn on are determined by the specific type of wire.</p>
<p>In the pictures below, the black boxes denote where the wire conducts. Other locations are completely unaffected by whether it is on or off.</p>
<p>The normal wire conducts in the four cardinal directions, North-East-South-West, but not diagonally. Looking from the side, it conducts to nodes on the same level, or the level above and below it. However, it does not conduct directly above or below:</p>
<img src="img/NormalWire.png" alt="Normal wire rules" class="picture">
<p>The insulated wire, in contrast, conducts only at the ends. The direction is determined by the direction you are facing when you place the wire.</p>
<img src="img/InsulatedWire.png" alt="Insulated wire rules" class="picture">
<p>The T-junction wire gets its name from the shape it forms and conducts in. The direction is determined by the direction you are facing when you place the wire.</p>
<img src="img/TJunctionWire.png" alt="T-junction wire rules" class="picture">
<p>The corner wire conducts only at its ends as well, but they are perpendicular to each other. The direction is determined by the direction you are facing when you place the wire.</p>
<img src="img/CornerWire.png" alt="Corner wire rules" class="picture">
<p>The vertical wire has caps on each end that conduct only in the cardinal directions on the same vertical level as well as directly above or below. The thin parts without caps only conduct directly above or below. Vertical wires can be stacked on top of each other, and only the top and bottom ones will be capped.</p>
<img src="img/VerticalWire.png" alt="Vertical wire rules" class="picture">
<p>The MESE block is extended by Mesecons to conduct in the cardinal directions as well as directly above and below.</p>
<img src="img/MESEBlock.png" alt="MESE block rules" class="picture">
<p>Two wires will only conduct between each other if they are adjacent and both conduct to the location of the other:</p>
<img src="img/Rules.png" alt="Connection rules" class="picture">
<h4>Receptors</h4>
<p>Wires are nice and all, but how do we turn them on if the only way to make one come on is to have something that is already on beside it? That's where receptors come in. Receptors are, in short, things that are not wires, but can also be on and off. Receptors can do things like turning on and off depending on whether there is light, when a player interacts with them, or a lot of things, really. There are far too many types of receptors to describe here, but we'll cover the most important ones.</p>
<p>Power plants are simply always on - they will power anything in the same positions as normal Mesecon wire. Blinky plants behave similarly, but turn on and off every few seconds:</p>
<img src="img/Plants.png" alt="Power and blinky plants" class="picture">
<p>Switches, buttons, and levers are all player controlled - punching switches and levers toggles them between on and off, while buttons turn on when punched and then turn off again after a little while. Switches conduct to the same positions as normal wire, while buttons and levers only conduct to the back or to the node behind the one to the back:</p>
<img src="img/Switches.png" alt="Player-controlled switches" class="picture">
<p>Pressure plates come in wood and stone varieties, which differ mainly in appearance. They turn on when someone or something stands on them - this includes players, mobs, and items. Special rules mean that in addition to conducting to the same locations as normal wire, they also conduct to the node below the node directly below themselves:</p>
<img src="img/PressurePlates.png" alt="Pressure plates" class="picture">
<h4>Effectors</h4>
<p>Now that we have a way to create and carry signals, it's time to do something with them. Effectors are made specifically for this purpose. Effectors can do things like giving off light, moving nodes around, playing music, or even running chat commands. There are far too many types of effectors to describe here, but we'll cover the most important ones.</p>
<p>Meselamps and lightstone light up when they have an on signal and don't give off any light otherwise. Meselamps are brighter than lightstones, while lightstones are available in many different colors:</p>
<img src="img/Lighting.png" alt="Lighting effectors" class="picture">
<p>Pistons can push a column of nodes and entities by one block, and the sticky piston can also pull the closest one. Entities on top of a stack being pushed horizontally are also moved. Movestones (not shown) do something similar, but can push nodes along a "rail" made of conductive materials:</p>
<img src="img/Pistons.gif" alt="Pistons" class="picture">
<p>Noteblocks play a certain note when they receive an on signal. The instrument used to play the note is determined by the node it's placed on top of, while the pitch (how high the note is) is changed by punching it. Placing one on wood planks causes it to make a litecrash sound, tree trunks cause a crash sound, chests cause a snare sound, stone causes a kick sound, glass causes a hihat sound, and anything else causes a piano sound:</p>
<img src="img/Noteblocks.png" alt="Noteblocks" class="picture">
<p>Command blocks execute a chat command when they receive an on signal. However, they are not obtainable in survival mode without cheats due to the potential for abuse. Command blocks can only be changed by their owners (the player that placed it) and show a dialog when right clicked, which allows the target, command, and parameters to be set. Certain special commands are also available - more details can be found by using the "/help" chat command:</p>
<img src="img/CommandBlocks.png" alt="Command blocks" class="picture">
<h4>Putting it all together</h4>
<p>Now that we know how to create, transmit, and cause actions with Mesecon signals, we can look at the area where Mesecons really shines: manipulating signals with digital logic.</p>
<p>Let's say we want to have street lamps that come on only at night. A basic street lamp looks something like the following:</p>
<img src="img/Streetlamp1.png" alt="Basic street lamp" class="picture">
<p>At the moment, it's not giving off light. Let's give the lightstone an on signal:</p>
<img src="img/Streetlamp2.png" alt="Working street lamp" class="picture">
<p>Now it's always on. But what about coming on only at night? Let's power it using a solar panel:</p>
<img src="img/Streetlamp3.png" alt="Daytime street lamp" class="picture">
<p>Just a small problem remains - it only turns on in the day! That's about as useful as a solar powered flashlight. What we need to do is take the opposite of the solar panel's signal.</p>
<p>This is where digital logic comes in. In digital logic, the operation of taking the opposite of a signal is called a "logical NOT". It just so happens that Mesecons has a few devices that can do this operation, as well as many more. In our case, a Mesecon torch does the job very nicely:</p>
<img src="img/StreetlampFinal.png" alt="Final street lamp" class="picture">
<p>The Mesecon torch simply takes the signal on the other side of the node it's attached to, and changes its state so that it's the opposite. That means that when the solar panel is on, the torch is off, and when the solar panel is off, the torch is on. In our case, we use this to detect the absence of light by taking the opposite of the solar panel's light detection.</p>
<p>There are tons of different ways you can manipulate signals like this. In fact, manipulate them enough and there's nothing you can't build - see the Tic-Tac-Toe and Node Detector articles on this site for inspiration. Logic gates can be used just like they are in real life to build many of the electronics we use every day. For the most complex manipulations, there are even Luacontrollers that can be programmed in-game to do just about anything.</p>
<h4>Going Forward</h4>
<p>You probably won't be building Mesecons computers by this point, but hopefully you'll agree that Mesecons does in fact add a huge amount of awesome to Minetest no matter what your playing style is.</p>
<p>For the engineer in you, why not give <a href="https://github.com/Jeija/minetest-mod-digilines/">Digilines</a> a try? LCD displays, data buses, and more are waiting to be made into something incredible. Everything works with Mesecons, of course.</p>
<p>If you love automating things and making them more efficient, <a href="http://forum.minetest.net/viewtopic.php?id=2155">Pipeworks</a> is a great choice. Craft items, transport them, or even organize them, all automatically! Pipeworks, of course, also works great with Mesecons - you can control how pipes and tubes work using signals.</p>
<p>However, if your interests lie with digital logic and manipulating different signals to do different things (like building doors that open only if you push the right sequence of buttons), look no further! Mesecons has logic gates, programmable controllers, and even timing circuits for you to play to your heart's content.</p>
<br><br><br><br>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
</div>
</body>
</html>

View File

@ -26,7 +26,7 @@
<img src="../../img/DifficultyEmpty.png">
(3/10)
</p>
<p>This article assumes you have the <a href="https://github.com/Jeija/minetest-mod-digilines/">Digilines mod</a>, which I generally consider a de facto part of Mesecons. It is still possible to complete it without this mod, but replacing its functionality with fancy wiring is an exercise left to the reader.
<p>This article assumes you have the <a href="https://github.com/Jeija/minetest-mod-digilines/">Digilines mod</a>, which I generally consider a de facto part of Mesecons. It is still possible to complete it without this mod, but replacing its functionality with fancy wiring is an exercise left to the reader.</p>
<p>Have you ever woken up just feeling like you want to abuse some game mechanics? No? Well, how about detecting different types of nodes?</p>
<img src="img/Detector.gif" alt="Node detector" class="picture">
<p>How did it know the node was sand? Same way it does it below:</p>