fixed poor grammar. i may have missed some mistakes.

This commit is contained in:
506independent 2021-01-26 15:50:52 +00:00
parent a011f12637
commit 91f561cfc1

View File

@ -9,24 +9,23 @@
A complete to Lua controller can be found at: <a href="http://mesecons.net/luacontroller/">http://mesecons.net/luacontroller</a><br>
Some of the crafting recipes are different.
<h1>Noobs Guide to Digilines</h1>
written by,<br>
Sivarajan.<br>
<h1>The Noobs Guide to Digilines</h1>
written by Sivarajan (but grammar fixed by 56independent),<br>
published by Banana publications, Grapeyard superb.<br>
<br>
Third edition.<br>
All the live Apparatus are presented in automation museum
<h2>Preface</h2>
<p>
Hey this is sivarajan. I'm happy to present you the Digiline page. This contains all the basics for a beginneer to middle with digilines. Digilines are powerful tool for sending and receiving data , counducting the stuffs. I hope this book will be a guilde to begin Diglines. Thanks for reading this book.
Hey this is sivarajan. I'm happy to present to you the Digiline tutorial page. This contains all the basics for a beginner to meddle with digilines. Digilines are powerful tool for sending and receiving data , counducting the stuffs. I hope this book will be a guilde to begin Diglines. Thanks for reading this book.
<h2>Chapter 1 : Introduction.</h2>
Digiline is a mod by Jieja. It consist of:<ol>
<li>RTC (Real Time Clock): to get in-game time.
Digilines is a mod by Jieja. It consists of:<ol>
<li>RTC (Real Time Clock): to get the in-game time.
<li>LCD : display text.
<li>light sensor: for sensing light level.
<li>Chest: it can be used to inform players what is inside it .
<li>Chest: inform players what is inside it .
</ol><p>
Some mods that use diglines:Digiterms(not included in this server), Pipeworks , Technic , Mescons.
Some mods that use diglines: Digiterms(not included in this server), Pipeworks , Technic , Mescons.
Mesecons are needed since we need Lua controller to control our Diglines.
<p>Crafting:
<br>Look at your inventory for details.
@ -34,8 +33,8 @@ Mesecons are needed since we need Lua controller to control our Diglines.
<li><a href="http://mesecons.net/luacontroller">A guide to use lua controller</a>
<li><a href="https://www.tutorialspoint.com/lua/index.htmc">Lua tutorials</a>
</ul>
<h2>Chapter 2 : Hello world.</h2>
Apparatus used
<h2>Chapter 2 : Hello world</h2>
Apparatus required:
<ol>
<li>Lua controller
<li>digiline cable
@ -51,14 +50,14 @@ Crafting digiline:
galery(images, "200px");
</script>
Steps to print hello world with Lua controller circuit: <ol>
<li>Place LCD and Lua contoller
<li>right click the digiline LCD.
<li>set the channel name say "tv". Click proceed
<li>then connect the digiline LCD with lua controller
<li>right click the Lua conttoller.
<li>Type the following: <pre>digiline_send("tv","Hello world")</pre>
<li>The format to print a string in digiline Display is : <pre>digiline_send("&lt;channelname&gt;","&lt;message&gt;")</pre>
<li>click execute to run the code. There you go "Hello world" is printed on LCD.
<li>Place the LCD and Lua contoller
<li>right click the digiline LCD
<li>set the channel to "tv". Click proceed
<li>connect the digiline LCD to the lua controller via digilines
<li>right click the Lua controller.
<li>Type the following: <pre>digiline_send("tv","Hello World!")</pre>
<li>The format to print a string on the digiline Display is : <pre>digiline_send("&lt;channelname&gt;","&lt;message&gt;")</pre>
<li>click execute to run the code. "Hello world" is printed on LCD.
</ol>
<h2>Chapter 2 : your own digiline Clock:</h2>
Required aparatus: <ol>
@ -67,7 +66,8 @@ Required aparatus: <ol>
<li>Digiline Wire
</ol>
Circuit:<br>
Connect the digiline and lua controller with using Digiline Wire
(if you have destroyed your previous Apparatus, otherwise skip)
place the lcd, and set the channel to "tv". place a luacontroller, somwhere else, and connect them both using a digline wire.
Program:<pre>
interrupt(1)
@ -82,7 +82,7 @@ end
<h2>Chapter 3: Communication between two or more LUA controllers using Digiline.</h2>
<p>Introduction: we can send or process the digiline signals by using a Lua controller.
<p>Connection:
Connect the Lua controllers with proper digiline cables. Also connect the Slave Lua controller with LCD display. Set the channel of LCD. Say TV here.
Connect the Lua controllers with digilines. Also connect the Slave Lua controller to the LCD display. Set the channel of the LCD to "TV".
Code:<ol>
<li> Master/sender:<br>
<pre>digiline_send("ch","Hi")</pre> </li>
@ -120,7 +120,7 @@ Message: hi
--slave controller
</pre>
<p>
Note : a digiline message ie event.msg. can be in form of a Table so it must be noted that we cannot print a table. We can only print the pariticular value of table.
Note : a digiline message ie event.msg. can be in form of a Table. it must be noted that we cannot print a table. We can only print the pariticular value of table.
Say this code is executed by the master digiline
<pre>
digiline_send("ch",{a=1,b=2})
@ -134,7 +134,7 @@ event = {
}
} ]]
</pre>
<p>So if we try to print the msg on a digiline display, it will show up an error: Message is too complex. But you can print a table to the command line (works if you have server privs). by using print()
<p>So if we try to print the msg on a digiline display, it will show an error: Message is too complex. But you can print a table to the command line (works if you have server privs). by using print()
function in Lua.Note that minetest must be started using commandline.Or you can use digiline termial to print values
@ -143,8 +143,8 @@ function in Lua.Note that minetest must be started using commandline.Or you can
<p>Introduction : these come with pipeworks.
<h3>4.1 Auto crafter</h3>
<p>Introduction: auto crafter is a useful tool when it comes to automation
If you set the craft receipe and trun it on and feed in items, It crafts stuffs according to the guide.
<p>Introduction: the autocrafter is a useful tool when it comes to automation
If you put a craft recipie in the 3*3 box, and place materials in the large box at the bottom, it will commence <b>auto</b>matically <b>craft</b>ing stuff (hence its name).
<p>To control auto crafter using lua controller:<ol>
<li>Place Lua controller near the Autocrafter/ Connect them with digline wire.
@ -179,13 +179,13 @@ Now here is the digiline requests format to be sent to injector:<br>
count = count,
-- no of count of node to be sent.
}</pre><br>
Some example codes:<ol>
<li> Operating it as stack wise injector <pre>
Some example code:<ol>
<li> Operating as a stack wise injector: <pre>
interrupt(1) -- pulse delay
if event.type == "interrupt" then
digline_send("injector",{}) --or {count =99}
end</pre>
<li> Operating it as item wise.<pre>
<li> Operating it as an item wise injector: <pre>
interrupt(1)
if event.type =="interrupt" then
digline_send("injector",{count =1})
@ -199,7 +199,7 @@ end </pre>
<h2>Chapter 5: Digiline Chest</h2>
<p>Introduction: A digiline chest is a powerful node that says what stuff is put/moved/taken from it.
<p>let us see how the event tables look like by seeing examples.
<p>let's see how the event tables look by seeing examples.
<p>Here the digiline channel for all event table will be "d".
<ol>
@ -246,7 +246,7 @@ event ={
}
}
</pre>
<li>A book with Titile "my book" of content:
<li>A book with Title "my book" of content:
hello world
<pre>
event ={
@ -281,17 +281,17 @@ event ={
<p>
here :
<p>action takes the value :
<p> "uput" - when you put stuffs .
<p> "tput" - when a tube put stuffs.
<p> "empty" - when digi-chest is empty*.
<p> "uput" - when you puts stuff inside the chest.
<p> "tput" - when a tube puts stuff inside the chest.
<p> "empty" - when digiline chest is empty*.
<p> "utake"- when you take stuffs.
<p> "ttake" - when a tube take stuffs.
<p> "full" - when digi-chest is full*
<p> "utake"- when you takes stuff from inside the chest.
<p> "ttake" - when a tube takes stuff from inside the chest.
<p> "full" - when the digiline chest is full*
<p> "umove"- moving stuffs from one slot to another.
<p> "umove"- moving stuff from one slot to another.
<p> * /!\ be careful : "empty" and "full" action messages are send just after "*take" and "*put" one !
<p> * /!\ be careful : "empty" and "full" action messages are sent just after "*take" and "*put" one !
<p>from_slot says from which slot the node is moved
<p>to_slot says in which slot the node is placed.
@ -299,9 +299,9 @@ here :
<p>from_slot is available when moving a stuff inside the chest.
</p>
<h2>Chapter 6 Digilines and Technic</h2>
<p>This chapter describes how to use interface technic components to digiline.We can get the data of these technic machine to make useful things like a system that warns when supply is 0.
<p>This chapter describes how to interface technic components to digilines. We can get the data of these technic machines to make useful things like a system that warns when supply is at 0.
<h3>6.1 Switches</h3>
<p>A swtiching station is a important node that connects the all of your techinc components. It sends the EU supply and Eu demand to the digiline controller (LUA controller). A channel name for a switching station can be set by right clicking on it. Its event table will be in form of :
<p>A switching station is a important node that connects the all of your techinc components. It sends the EU (Electronic Units) supply and EU demand to the digiline controller (LUA controller). A channel name for a switching station can be set by right clicking on it. Its event table will be in form of :
<pre>
event{
type="digiline",
@ -311,10 +311,10 @@ event{
demand = (integer value)
}
}
--Before that you must send GET String to the switching station. This is decribed in 1.4.
--Before, you must send GET String to the switching station. This is decribed in 1.4.
</pre>
<h3>6.2 Supply converter</h3>
<p>It converts HV power to LV power, MV to LV,HV to MV Vise versa.(MV is not available in this server). Channel of digiline can be set by right clicking on it and rename the default channel name.General form of Event table:
<p>It converts HV power to LV power, MV to LV,HV to MV Vise versa.(MV is not available in this server).the Channel of the converter can be set by right clicking on it and renaming the default channel. General form of Event table:
<pre>
event ={
type= "digiline"
@ -326,7 +326,7 @@ msg={
}
</pre>
<p>
Message can be sent:<br>
Messages that can be sent:<br>
1. "on": turn on the power supply <br>
2. "off": turn off the supply <br>
3. "toggle": Change the state of supply<br>
@ -392,7 +392,7 @@ event ={
</ol>
<p>Procedure:
<ol>
<li> Connect switcting station and digiline display seperately with Lua Controller with digiline cable.
<li> Connect switching station and the digiline display seperately with Lua Controller with digiline cable.
<li> Connect blinky plant in seperate port with mesecon wire.