summaryrefslogtreecommitdiff
path: root/digilines
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-06-03 19:16:56 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-06-03 19:27:18 -0400
commit842a6d94916296912aba934b2b23d59244ea463b (patch)
tree20b92c24d2887296a3506c62233534a0e459c426 /digilines
parentdf2f0076c553c42c5ef4d2d2fbaff58b0ef8e4fd (diff)
downloaddreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar.gz
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar.bz2
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.tar.xz
dreambuilder_modpack-842a6d94916296912aba934b2b23d59244ea463b.zip
update castle, colormachine, moreblocks, pipeworks, tpr, and digilines
Diffstat (limited to 'digilines')
-rw-r--r--digilines/LICENSE.txt188
-rw-r--r--digilines/README.inventory62
-rw-r--r--digilines/README.md14
-rw-r--r--digilines/characters282
-rw-r--r--digilines/description.txt1
-rw-r--r--digilines/init.lua31
-rw-r--r--digilines/inventory.lua151
-rw-r--r--digilines/lcd.lua233
-rw-r--r--digilines/lightsensor.lua63
-rw-r--r--digilines/mod.conf1
-rw-r--r--digilines/rtc.lua59
-rw-r--r--digilines/screenshot.pngbin0 -> 25041 bytes
-rw-r--r--digilines/textures/_0.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_1.pngbin0 -> 238 bytes
-rw-r--r--digilines/textures/_2.pngbin0 -> 235 bytes
-rw-r--r--digilines/textures/_3.pngbin0 -> 241 bytes
-rw-r--r--digilines/textures/_4.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_5.pngbin0 -> 237 bytes
-rw-r--r--digilines/textures/_6.pngbin0 -> 246 bytes
-rw-r--r--digilines/textures/_7.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_8.pngbin0 -> 235 bytes
-rw-r--r--digilines/textures/_9.pngbin0 -> 245 bytes
-rw-r--r--digilines/textures/_a.pngbin0 -> 238 bytes
-rw-r--r--digilines/textures/_a_.pngbin0 -> 251 bytes
-rw-r--r--digilines/textures/_am.pngbin0 -> 156 bytes
-rw-r--r--digilines/textures/_ap.pngbin0 -> 228 bytes
-rw-r--r--digilines/textures/_as.pngbin0 -> 238 bytes
-rw-r--r--digilines/textures/_at.pngbin0 -> 254 bytes
-rw-r--r--digilines/textures/_b.pngbin0 -> 249 bytes
-rw-r--r--digilines/textures/_b_.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_bl.pngbin0 -> 237 bytes
-rw-r--r--digilines/textures/_br.pngbin0 -> 237 bytes
-rw-r--r--digilines/textures/_c.pngbin0 -> 236 bytes
-rw-r--r--digilines/textures/_c_.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_ca.pngbin0 -> 231 bytes
-rw-r--r--digilines/textures/_cl.pngbin0 -> 233 bytes
-rw-r--r--digilines/textures/_cm.pngbin0 -> 226 bytes
-rw-r--r--digilines/textures/_co.pngbin0 -> 135 bytes
-rw-r--r--digilines/textures/_cr.pngbin0 -> 234 bytes
-rw-r--r--digilines/textures/_d.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_d_.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_dl.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_dt.pngbin0 -> 224 bytes
-rw-r--r--digilines/textures/_dv.pngbin0 -> 235 bytes
-rw-r--r--digilines/textures/_e.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_e_.pngbin0 -> 242 bytes
-rw-r--r--digilines/textures/_eq.pngbin0 -> 228 bytes
-rw-r--r--digilines/textures/_ex.pngbin0 -> 230 bytes
-rw-r--r--digilines/textures/_f.pngbin0 -> 244 bytes
-rw-r--r--digilines/textures/_f_.pngbin0 -> 246 bytes
-rw-r--r--digilines/textures/_g.pngbin0 -> 251 bytes
-rw-r--r--digilines/textures/_g_.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_gt.pngbin0 -> 228 bytes
-rw-r--r--digilines/textures/_h.pngbin0 -> 248 bytes
-rw-r--r--digilines/textures/_h_.pngbin0 -> 252 bytes
-rw-r--r--digilines/textures/_ha.pngbin0 -> 233 bytes
-rw-r--r--digilines/textures/_hs.pngbin0 -> 144 bytes
-rw-r--r--digilines/textures/_i.pngbin0 -> 237 bytes
-rw-r--r--digilines/textures/_i_.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_j.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_j_.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_k.pngbin0 -> 247 bytes
-rw-r--r--digilines/textures/_k_.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_l.pngbin0 -> 238 bytes
-rw-r--r--digilines/textures/_l_.pngbin0 -> 242 bytes
-rw-r--r--digilines/textures/_lt.pngbin0 -> 227 bytes
-rw-r--r--digilines/textures/_m.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_m_.pngbin0 -> 244 bytes
-rw-r--r--digilines/textures/_mn.pngbin0 -> 228 bytes
-rw-r--r--digilines/textures/_n.pngbin0 -> 248 bytes
-rw-r--r--digilines/textures/_n_.pngbin0 -> 252 bytes
-rw-r--r--digilines/textures/_o.pngbin0 -> 238 bytes
-rw-r--r--digilines/textures/_o_.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_p.pngbin0 -> 250 bytes
-rw-r--r--digilines/textures/_p_.pngbin0 -> 246 bytes
-rw-r--r--digilines/textures/_pr.pngbin0 -> 255 bytes
-rw-r--r--digilines/textures/_ps.pngbin0 -> 235 bytes
-rw-r--r--digilines/textures/_q.pngbin0 -> 251 bytes
-rw-r--r--digilines/textures/_q_.pngbin0 -> 242 bytes
-rw-r--r--digilines/textures/_qo.pngbin0 -> 232 bytes
-rw-r--r--digilines/textures/_qu.pngbin0 -> 233 bytes
-rw-r--r--digilines/textures/_r.pngbin0 -> 241 bytes
-rw-r--r--digilines/textures/_r_.pngbin0 -> 248 bytes
-rw-r--r--digilines/textures/_re.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_s.pngbin0 -> 239 bytes
-rw-r--r--digilines/textures/_s_.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_sl.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_sm.pngbin0 -> 227 bytes
-rw-r--r--digilines/textures/_sp.pngbin0 -> 215 bytes
-rw-r--r--digilines/textures/_sr.pngbin0 -> 236 bytes
-rw-r--r--digilines/textures/_t.pngbin0 -> 241 bytes
-rw-r--r--digilines/textures/_t_.pngbin0 -> 249 bytes
-rw-r--r--digilines/textures/_tl.pngbin0 -> 227 bytes
-rw-r--r--digilines/textures/_u.pngbin0 -> 240 bytes
-rw-r--r--digilines/textures/_u_.pngbin0 -> 252 bytes
-rw-r--r--digilines/textures/_un.pngbin0 -> 226 bytes
-rw-r--r--digilines/textures/_v.pngbin0 -> 249 bytes
-rw-r--r--digilines/textures/_v_.pngbin0 -> 246 bytes
-rw-r--r--digilines/textures/_vb.pngbin0 -> 229 bytes
-rw-r--r--digilines/textures/_w.pngbin0 -> 238 bytes
-rw-r--r--digilines/textures/_w_.pngbin0 -> 247 bytes
-rw-r--r--digilines/textures/_x.pngbin0 -> 241 bytes
-rw-r--r--digilines/textures/_x_.pngbin0 -> 246 bytes
-rw-r--r--digilines/textures/_y.pngbin0 -> 246 bytes
-rw-r--r--digilines/textures/_y_.pngbin0 -> 243 bytes
-rw-r--r--digilines/textures/_z.pngbin0 -> 233 bytes
-rw-r--r--digilines/textures/_z_.pngbin0 -> 235 bytes
-rw-r--r--digilines/textures/digilines_lightsensor.pngbin0 -> 218 bytes
-rw-r--r--digilines/textures/digilines_rtc.pngbin0 -> 248 bytes
-rw-r--r--digilines/textures/lcd_anyside.pngbin0 -> 142 bytes
-rw-r--r--digilines/textures/lcd_lcd.pngbin0 -> 189 bytes
111 files changed, 1079 insertions, 6 deletions
diff --git a/digilines/LICENSE.txt b/digilines/LICENSE.txt
new file mode 100644
index 0000000..9569df7
--- /dev/null
+++ b/digilines/LICENSE.txt
@@ -0,0 +1,188 @@
+The LGPLv3 applies to all code in this project.
+The WTFPL applies to textures and any other content in this project which is not source code.
+
+=============================================================
+
+GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
+
+=============================================================
+
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
diff --git a/digilines/README.inventory b/digilines/README.inventory
new file mode 100644
index 0000000..a88115f
--- /dev/null
+++ b/digilines/README.inventory
@@ -0,0 +1,62 @@
+Basic idea: place this chest down at the end of a pipeline. Feed stuff into it. Attach a luacontroller to it with a digiline in between. Program the luacontroller to turn on a wire to stop the pipeline when the chest is full. Don't put more than one kind of item down the pipeline into the chest, unless you want weird tricksy behavior.
+
+...[F]===[C]--{L}
+ |__________|
+ [B]
+F: filter
+B: blinky plant
+C: digiline chest
+L: luacontroller
+==: pipe
+__: mesecons
+--: digiline
+
+Make sure you use mem in the luacontroller to keep the mesecon wire on indefinitely after the chest signals full. When it signals "take" someone took an item out and you can start the pipeline up again.
+This may be a bad idea if they only take half a stack or something. Oh well.
+
+When you put something in, you get a "put" to indicate it's OK (sort of (still buggy)) and can fit inside the chest. When you get a "lost", that means it won't fit inside the chest, and will bounce, possibly popping out. When you get a "overflow" that means you tried to add something to a chest that just filled up, and the stack will bounce. When you get a "full" that means the chest just filled up.
+
+"Filled up" for all intents and purposes, means taking the type of whatever just went into the chest, and seeing if at least 1 of that type can be added to the chest. If it cannot, then it's filled up. That means a chest full of stacks of 30 copper and one spot of 98 gold, and you add one gold to that, it will say it's full. Add 30 copper to it, and it won't.
+
+Generally you'll be working with full stacks in pipeworks. Even the non-mese filters will accumulate items in a chest, and not spread them out into multiple stacks. And generally your destination chests will each have one of any kind of item. So all you have to worry about is when you've got 99 everywhere, and one space possibly free. A mese filter can fail on that in fact, for instance if you have room for 45 gold, and it tries to push a stack of 50 gold. All 50 will bounce! The code for chests isn't smart enough to add the 45 and bounce the leftover 5. So only use mese filters when you're sure a full stack has accumulated for the filter to push, and there are no partial stacks at the destination.
+
+For some reason when an "overflow" happens, when it checks if the stack can fit inside the chest, the answer is yes it can fit! Then it doesn't. Sort of buggy.
+
+itemstack - the qualified name, a space, then the amount. If the space and amount are ommitted, that represents just 1.
+
+examples: "default:chest 33" "default:coal" "default:axe_diamond"
+
+bounce
+ - when an item cannot enter the destination container it will travel back up the tube it came from, going along alternate routes if they exist, but otherwise popping out of the tube.
+
+popping out
+ - the little thingy travelling through the tube disappears, and an entity of the item appears, as if it was just dropped. This entity can expire, losing your items permanently!
+
+
+The messages are:
+
+
+put <itemstack>
+ - this means that the inventory claimed it could fit that stack of items inside it. Inventories lie. But with the above caveats this is quite usable.
+lost <itemstack>
+ - the stack couldn't fit in the chest and bounces.
+full <itemstack> <count>
+ - the chest has been filled. The itemstack is what filled it. count is what's leftover.
+ until chests can suck up part of a stack and not bounce the whole stack, that count will
+ always be 0
+overflow <itemstack> <count>
+ - generally this is the same as lost, except that the "put" event happened, meaning that the
+ itemstack was allowed in the chest.
+ - this will happen with two stacks in rapid succession, the first filling the chest, and the
+ second bouncing. the <count> in this case will be the amount of the second.
+ - overflow can't happen with two different kinds of items, you'll get a put, maybe full, then lost for the second kind
+
+Tricky situation:
+if you have a blank spot and put say 82 torches down your pipeline, followed by 99 coal, the 82 torches will go in the chest, and the chest will see that 1 more torch can fit since that would only go to 83. Since 1 more torch can fit, no "full" message will fire off. Then when the coal hits the chest, the "fail" message will fire and the coal will bounce out. The chest couldn't predict that coal would be coming next, so it couldn't know that the chest is full, for coal, while not full for torches.
+
+TODO:
+ - make chest.lua a mixin that gets both default and locked chests
+ - digiline aware furnaces
+ - digiline aware technic machines, grinders, alloy furnaces, etc
+ - the pipes going into the chests don't snap to the pipe holes in the digiline chests. They still act fine as pipeworks destinations though.
+ - digiline chests seem to be immune to filters. But it's late and I'm shipping this. Someone else can figure out why the chests aren't acting like pipeworks chests, despite cloning the pipeworks chest's object. Oh who am I kidding. I'll do it myself I guess, once I've lost hope of aid again.
diff --git a/digilines/README.md b/digilines/README.md
new file mode 100644
index 0000000..3d57f52
--- /dev/null
+++ b/digilines/README.md
@@ -0,0 +1,14 @@
+Digilines
+==========
+- The minetest counterpart for bus systems like i2c, SPI, RS232, USB -
+
+
+This mod adds digiline wires, an RTC (Real Time Clock), a light sensor as well as an LCD Screen.
+Can be used together with the luacontroller from mesecons. See the luacontroller manual for more information.
+
+Send "GET" to RTC or light sensor to retrieve Data, send any text to LCD to display it.
+Select channel by right-clicking items.
+
+License:
+ Code: LGPL
+ Textures: WTFPL
diff --git a/digilines/characters b/digilines/characters
new file mode 100644
index 0000000..b36eea4
--- /dev/null
+++ b/digilines/characters
@@ -0,0 +1,282 @@
+A
+_a_
+7
+B
+_b_
+5
+C
+_c_
+6
+D
+_d_
+6
+E
+_e_
+5
+F
+_f_
+5
+G
+_g_
+6
+H
+_h_
+6
+I
+_i_
+1
+J
+_j_
+4
+K
+_k_
+5
+L
+_l_
+4
+M
+_m_
+7
+N
+_n_
+6
+O
+_o_
+6
+P
+_p_
+5
+Q
+_q_
+7
+R
+_r_
+5
+S
+_s_
+5
+T
+_t_
+5
+U
+_u_
+6
+V
+_v_
+7
+W
+_w_
+9
+X
+_x_
+5
+Y
+_y_
+7
+Z
+_z_
+5
+a
+_a
+5
+b
+_b
+5
+c
+_c
+4
+d
+_d
+5
+e
+_e
+4
+f
+_f
+4
+g
+_g
+5
+h
+_h
+5
+i
+_i
+1
+j
+_j
+1
+k
+_k
+4
+l
+_l
+1
+m
+_m
+7
+n
+_n
+5
+o
+_o
+5
+p
+_p
+5
+q
+_q
+5
+r
+_r
+3
+s
+_s
+4
+t
+_t
+3
+u
+_u
+4
+v
+_v
+5
+w
+_w
+7
+x
+_x
+5
+y
+_y
+4
+z
+_z
+4
+
+_sp
+2
+0
+_0
+4
+1
+_1
+2
+2
+_2
+4
+3
+_3
+4
+4
+_4
+4
+5
+_5
+4
+6
+_6
+4
+7
+_7
+4
+8
+_8
+4
+9
+_9
+4
+(
+_bl
+2
+)
+_br
+2
+{
+_cl
+3
+}
+_cr
+3
+[
+_sl
+2
+]
+_sr
+2
+'
+_ap
+1
+!
+_ex
+1
+?
+_qu
+4
+@
+_at
+5
+#
+_hs
+5
+$
+_dl
+4
+%
+_pr
+5
+^
+_ca
+3
+&
+_am
+5
+*
+_as
+3
+_
+_un
+3
++
+_ps
+3
+-
+_mn
+3
+=
+_eq
+3
+;
+_sm
+1
+:
+_co
+1
+,
+_cm
+2
+"
+_qo
+3
+/
+_dv
+5
+~
+_tl
+4
+<
+_lt
+3
+>
+_gt
+3
+\
+_re
+5
+|
+_vb
+1
+.
+_dt
+1
diff --git a/digilines/description.txt b/digilines/description.txt
new file mode 100644
index 0000000..078bc92
--- /dev/null
+++ b/digilines/description.txt
@@ -0,0 +1 @@
+This mod adds digiline wires, an RTC (Real Time Clock), a light sensor as well as an LCD Screen. Can be used together with the luacontroller from mesecons.
diff --git a/digilines/init.lua b/digilines/init.lua
index 92f916d..2f48a73 100644
--- a/digilines/init.lua
+++ b/digilines/init.lua
@@ -1,9 +1,11 @@
digiline = {}
-dofile(minetest.get_modpath("digilines").."/presetrules.lua")
-dofile(minetest.get_modpath("digilines").."/util.lua")
-dofile(minetest.get_modpath("digilines").."/internal.lua")
-dofile(minetest.get_modpath("digilines").."/wires_common.lua")
-dofile(minetest.get_modpath("digilines").."/wire_std.lua")
+
+local modpath = minetest.get_modpath("digilines")
+dofile(modpath .. "/presetrules.lua")
+dofile(modpath .. "/util.lua")
+dofile(modpath .. "/internal.lua")
+dofile(modpath .. "/wires_common.lua")
+dofile(modpath .. "/wire_std.lua")
function digiline:receptor_send(pos, rules, channel, msg)
local checked = {}
@@ -22,4 +24,21 @@ minetest.register_craft({
{'mesecons_insulated:insulated_off', 'mesecons_insulated:insulated_off', 'default:gold_ingot'},
{'mesecons_materials:fiber', 'mesecons_materials:fiber', 'mesecons_materials:fiber'},
}
-}) \ No newline at end of file
+})
+
+-- former submods
+if minetest.is_yes(minetest.setting_get("digilines_enable_inventory") or true) then
+ dofile(modpath .. "/inventory.lua")
+end
+
+if minetest.is_yes(minetest.setting_get("digilines_enable_lcd") or true) then
+ dofile(modpath .. "/lcd.lua")
+end
+
+if minetest.is_yes(minetest.setting_get("digilines_enable_lightsensor") or true) then
+ dofile(modpath .. "/lightsensor.lua")
+end
+
+if minetest.is_yes(minetest.setting_get("digilines_enable_rtc") or true) then
+ dofile(modpath .. "/rtc.lua")
+end
diff --git a/digilines/inventory.lua b/digilines/inventory.lua
new file mode 100644
index 0000000..0134e5c
--- /dev/null
+++ b/digilines/inventory.lua
@@ -0,0 +1,151 @@
+local function sendMessage(pos, msg, channel)
+ if channel == nil then
+ channel = minetest.get_meta(pos):get_string("channel")
+ end
+ digiline:receptor_send(pos,digiline.rules.default,channel,msg)
+end
+
+local function maybeString(stack)
+ if type(stack)=='string' then return stack
+ elseif type(stack)=='table' then return dump(stack)
+ else return stack:to_string()
+ end
+end
+
+local function can_insert(pos, stack)
+ local can = minetest.get_meta(pos):get_inventory():room_for_item("main", stack)
+ if can then
+ sendMessage(pos,"put "..maybeString(stack))
+ else
+ -- overflow and lost means that items are gonna be out as entities :/
+ sendMessage(pos,"lost "..maybeString(stack))
+ end
+ return can
+end
+
+local tubeconn = minetest.get_modpath("pipeworks") and "^pipeworks_tube_connection_wooden.png" or ""
+local tubescan = minetest.get_modpath("pipeworks") and function(pos) pipeworks.scan_for_tube_objects(pos) end or nil
+
+minetest.register_alias("digilines_inventory:chest", "digilines:chest")
+minetest.register_node("digilines:chest", {
+ description = "Digiline Chest",
+ tiles = {
+ "default_chest_top.png"..tubeconn,
+ "default_chest_top.png"..tubeconn,
+ "default_chest_side.png"..tubeconn,
+ "default_chest_side.png"..tubeconn,
+ "default_chest_side.png"..tubeconn,
+ "default_chest_front.png",
+ },
+ paramtype2 = "facedir",
+ legacy_facedir_simple = true,
+ groups = {choppy=2, oddly_breakable_by_hand=2, tubedevice=1, tubedevice_receiver=1},
+ sounds = default.node_sound_wood_defaults(),
+ on_construct = function(pos)
+ local meta = minetest.get_meta(pos)
+ meta:set_string("infotext", "Digiline Chest")
+ meta:set_string("formspec", "size[8,10]"..
+ ((default and default.gui_bg) or "")..
+ ((default and default.gui_bg_img) or "")..
+ ((default and default.gui_slots) or "")..
+ "label[0,0;Digiline Chest]"..
+ "list[current_name;main;0,1;8,4;]"..
+ "field[2,5.5;5,1;channel;Channel;${channel}]"..
+ ((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "")..
+ "list[current_player;main;0,6;8,4;]")
+ local inv = meta:get_inventory()
+ inv:set_size("main", 8*4)
+ end,
+ after_place_node = tubescan,
+ after_dig_node = tubescan,
+ can_dig = function(pos, player)
+ return minetest.get_meta(pos):get_inventory():is_empty("main")
+ end,
+ on_receive_fields = function(pos, formname, fields, sender)
+ local name = sender:get_player_name()
+ if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
+ minetest.record_protection_violation(pos, name)
+ return
+ end
+ if fields.channel ~= nil then
+ minetest.get_meta(pos):set_string("channel",fields.channel)
+ end
+ end,
+ digiline = {
+ receptor = {},
+ effector = {
+ action = function(pos,node,channel,msg) end
+ }
+ },
+ tube = {
+ connect_sides = {left=1, right=1, back=1, front=1, bottom=1, top=1},
+ connects = function(i,param2)
+ return not pipeworks.connects.facingFront(i,param2)
+ end,
+ input_inventory = "main",
+ can_insert = function(pos, node, stack, direction)
+ return can_insert(pos, stack)
+ end,
+ insert_object = function(pos, node, stack, direction)
+ local inv = minetest.get_meta(pos):get_inventory()
+ local leftover = inv:add_item("main", stack)
+ local count = leftover:get_count()
+ if count == 0 then
+ local derpstack = stack:get_name()..' 1'
+ if not inv:room_for_item("main", derpstack) then
+ -- when you can't put a single more of whatever you just put,
+ -- you'll get a put for it, then a full
+ sendMessage(pos,"full "..maybeString(stack)..' '..tostring(count))
+ end
+ else
+ -- this happens when the chest has received two stacks in a row and
+ -- filled up exactly with the first one.
+ -- You get a put for the first stack, a put for the second
+ -- and then a overflow with the first in stack and the second in leftover
+ -- and NO full?
+ sendMessage(pos,"overflow "..maybeString(stack)..' '..tostring(count))
+ end
+ return leftover
+ end,
+ },
+ allow_metadata_inventory_put = function(pos, listname, index, stack, player)
+ if not can_insert(pos, stack) then
+ sendMessage(pos,"uoverflow "..maybeString(stack))
+ end
+ return stack:get_count()
+ end,
+ on_metadata_inventory_move = function(pos, fromlistname, fromindex, tolistname, toindex, count, player)
+ minetest.log("action", player:get_player_name().." moves stuff in chest at "..minetest.pos_to_string(pos))
+ end,
+ on_metadata_inventory_put = function(pos, listname, index, stack, player)
+ local channel = minetest.get_meta(pos):get_string("channel")
+ local send = function(msg)
+ sendMessage(pos,msg,channel)
+ end
+ -- direction is only for furnaces
+ -- as the item has already been put, can_insert should return false if the chest is now full.
+ local derpstack = stack:get_name()..' 1'
+ if can_insert(pos,derpstack) then
+ send("uput "..maybeString(stack))
+ else
+ send("ufull "..maybeString(stack))
+ end
+ minetest.log("action", player:get_player_name().." puts stuff into chest at "..minetest.pos_to_string(pos))
+ end,
+ on_metadata_inventory_take = function(pos, listname, index, stack, player)
+ local meta = minetest.get_meta(pos)
+ local channel = meta:get_string("channel")
+ local inv = meta:get_inventory()
+ if inv:is_empty(listname) then
+ sendMessage(pos, "empty", channel)
+ end
+ sendMessage(pos,"utake "..maybeString(stack))
+ minetest.log("action", player:get_player_name().." takes stuff from chest at "..minetest.pos_to_string(pos))
+ end
+})
+
+minetest.register_craft({
+ type = "shapeless",
+ output = "digilines:chest",
+ recipe = {"default:chest", "digilines:wire_std_00000000"}
+})
diff --git a/digilines/lcd.lua b/digilines/lcd.lua
new file mode 100644
index 0000000..3370a31
--- /dev/null
+++ b/digilines/lcd.lua
@@ -0,0 +1,233 @@
+--* parts are currently not possible because you cannot set the pitch of an entity from lua
+
+-- Font: 04.jp.org
+
+-- load characters map
+local chars_file = io.open(minetest.get_modpath("digilines").."/characters", "r")
+local charmap = {}
+local max_chars = 12
+if not chars_file then
+ print("[digilines] E: LCD: character map file not found")
+else
+ while true do
+ local char = chars_file:read("*l")
+ if char == nil then
+ break
+ end
+ local img = chars_file:read("*l")
+ chars_file:read("*l")
+ charmap[char] = img
+ end
+end
+
+local lcds = {
+ -- on ceiling
+ --* [0] = {delta = {x = 0, y = 0.4, z = 0}, pitch = math.pi / -2},
+ -- on ground
+ --* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2},
+ -- sides
+ [2] = {delta = {x = 0.4, y = 0, z = 0}, yaw = math.pi / -2},
+ [3] = {delta = {x = -0.4, y = 0, z = 0}, yaw = math.pi / 2},
+ [4] = {delta = {x = 0, y = 0, z = 0.4}, yaw = 0},
+ [5] = {delta = {x = 0, y = 0, z = -0.4}, yaw = math.pi},
+}
+
+local reset_meta = function(pos)
+ minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]")
+end
+
+local clearscreen = function(pos)
+ local objects = minetest.get_objects_inside_radius(pos, 0.5)
+ for _, o in ipairs(objects) do
+ local o_entity = o:get_luaentity()
+ if o_entity and o_entity.name == "digilines_lcd:text" then
+ o:remove()
+ end
+ end
+end
+
+local prepare_writing = function(pos)
+ local lcd_info = lcds[minetest.get_node(pos).param2]
+ if lcd_info == nil then return end
+ local text = minetest.add_entity(
+ {x = pos.x + lcd_info.delta.x,
+ y = pos.y + lcd_info.delta.y,
+ z = pos.z + lcd_info.delta.z}, "digilines_lcd:text")
+ text:setyaw(lcd_info.yaw or 0)
+ --* text:setpitch(lcd_info.yaw or 0)
+ return text
+end
+
+local on_digiline_receive = function(pos, node, channel, msg)
+ local meta = minetest.get_meta(pos)
+ local setchan = meta:get_string("channel")
+ if setchan ~= channel then return end
+
+ meta:set_string("text", msg)
+ meta:set_string("infotext", msg)
+ clearscreen(pos)
+ if msg ~= "" then
+ prepare_writing(pos)
+ end
+end
+
+local lcd_box = {
+ type = "wallmounted",
+ wall_top = {-8/16, 7/16, -8/16, 8/16, 8/16, 8/16}
+}
+
+minetest.register_alias("digilines_lcd:lcd", "digilines:lcd")
+minetest.register_node("digilines:lcd", {
+ drawtype = "nodebox",
+ description = "Digiline LCD",
+ inventory_image = "lcd_lcd.png",
+ wield_image = "lcd_lcd.png",
+ tiles = {"lcd_anyside.png"},
+
+ paramtype = "light",
+ sunlight_propagates = true,
+ paramtype2 = "wallmounted",
+ node_box = lcd_box,
+ selection_box = lcd_box,
+ groups = {choppy = 3, dig_immediate = 2},
+
+ after_place_node = function (pos, placer, itemstack)
+ local param2 = minetest.get_node(pos).param2
+ if param2 == 0 or param2 == 1 then
+ minetest.add_node(pos, {name = "digilines:lcd", param2 = 3})
+ end
+ prepare_writing (pos)
+ end,
+
+ on_construct = function(pos)
+ reset_meta(pos)
+ end,
+
+ on_destruct = function(pos)
+ clearscreen(pos)
+ end,
+
+ on_receive_fields = function(pos, formname, fields, sender)
+ local name = sender:get_player_name()
+ if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
+ minetest.record_protection_violation(pos, name)
+ return
+ end
+ if (fields.channel) then
+ minetest.get_meta(pos):set_string("channel", fields.channel)
+ end
+ end,
+
+ digiline =
+ {
+ receptor = {},
+ effector = {
+ action = on_digiline_receive
+ },
+ },
+
+ light_source = 6,
+})
+
+minetest.register_entity(":digilines_lcd:text", {
+ collisionbox = { 0, 0, 0, 0, 0, 0 },
+ visual = "upright_sprite",
+ textures = {},
+
+ on_activate = function(self)
+ local meta = minetest.get_meta(self.object:getpos())
+ local text = meta:get_string("text")
+ self.object:set_properties({textures={generate_texture(create_lines(text))}})
+ end
+})
+
+-- CONSTANTS
+local LCD_WITH = 100
+local LCD_PADDING = 8
+
+local LINE_LENGTH = 12
+local NUMBER_OF_LINES = 5
+
+local LINE_HEIGHT = 14
+local CHAR_WIDTH = 5
+
+create_lines = function(text)
+ local line = ""
+ local line_num = 1
+ local tab = {}
+ for word in string.gmatch(text, "%S+") do
+ if string.len(line)+string.len(word) < LINE_LENGTH and word ~= "|" then
+ if line ~= "" then
+ line = line.." "..word
+ else
+ line = word
+ end
+ else
+ table.insert(tab, line)
+ if word ~= "|" then
+ line = word
+ else
+ line = ""
+ end
+ line_num = line_num+1
+ if line_num > NUMBER_OF_LINES then
+ return tab
+ end
+ end
+ end
+ table.insert(tab, line)
+ return tab
+end
+
+generate_texture = function(lines)
+ local texture = "[combine:"..LCD_WITH.."x"..LCD_WITH
+ local ypos = 16
+ for i = 1, #lines do
+ texture = texture..generate_line(lines[i], ypos)
+ ypos = ypos + LINE_HEIGHT
+ end
+ return texture
+end
+
+generate_line = function(s, ypos)
+ local i = 1
+ local parsed = {}
+ local width = 0
+ local chars = 0
+ while chars < max_chars and i <= #s do
+ local file = nil
+ if charmap[s:sub(i, i)] ~= nil then
+ file = charmap[s:sub(i, i)]
+ i = i + 1
+ elseif i < #s and charmap[s:sub(i, i + 1)] ~= nil then
+ file = charmap[s:sub(i, i + 1)]
+ i = i + 2
+ else
+ print("[digilines] W: LCD: unknown symbol in '"..s.."' at "..i)
+ i = i + 1
+ end
+ if file ~= nil then
+ width = width + CHAR_WIDTH
+ table.insert(parsed, file)
+ chars = chars + 1
+ end
+ end
+ width = width - 1
+
+ local texture = ""
+ local xpos = math.floor((LCD_WITH - 2 * LCD_PADDING - width) / 2 + LCD_PADDING)
+ for i = 1, #parsed do
+ texture = texture..":"..xpos..","..ypos.."="..parsed[i]..".png"
+ xpos = xpos + CHAR_WIDTH + 1
+ end
+ return texture
+end
+
+minetest.register_craft({
+ output = "digilines:lcd 2",
+ recipe = {
+ {"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
+ {"mesecons_lightstone:lightstone_green_off","mesecons_lightstone:lightstone_green_off","mesecons_lightstone:lightstone_green_off"},
+ {"default:glass","default:glass","default:glass"}
+ }
+})
diff --git a/digilines/lightsensor.lua b/digilines/lightsensor.lua
new file mode 100644
index 0000000..86a29c9
--- /dev/null
+++ b/digilines/lightsensor.lua
@@ -0,0 +1,63 @@
+local GET_COMMAND = "GET"
+
+local lsensor_nodebox =
+{
+ type = "fixed",
+ fixed = {
+ { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab
+
+ { -7/16, -7/16, -7/16, -4/16, -5/16, 7/16 }, -- bonds
+ { 4/16, -7/16, -7/16, 7/16, -5/16, 7/16 },
+ { -7/16, -7/16, -7/16, 7/16, -5/16, -4/16 },
+ { -7/16, -7/16, 4/16, 7/16, -5/16, 7/16 },
+
+ { -1/16, -7/16, -1/16, 1/16, -5/16, 1/16 }, -- pin thing in the middle
+ }
+}
+
+local lsensor_selbox =
+{
+ type = "fixed",
+ fixed = {{ -8/16, -8/16, -8/16, 8/16, -3/16, 8/16 }}
+}
+
+local on_digiline_receive = function (pos, node, channel, msg)
+ local setchan = minetest.get_meta(pos):get_string("channel")
+ if channel == setchan and msg == GET_COMMAND then
+ local lightval = minetest.get_node_light(pos)
+ digiline:receptor_send(pos, digiline.rules.default, channel, lightval)
+ end
+end
+
+minetest.register_alias("digilines_lightsensor:lightsensor", "digilines:lightsensor")
+minetest.register_node("digilines:lightsensor", {
+ description = "Digiline Lightsensor",
+ drawtype = "nodebox",
+ tiles = {"digilines_lightsensor.png"},
+
+ paramtype = "light",
+ groups = {dig_immediate=2},
+ selection_box = lsensor_selbox,
+ node_box = lsensor_nodebox,
+ digiline =
+ {
+ receptor = {},
+ effector = {
+ action = on_digiline_receive
+ },
+ },
+ on_construct = function(pos)
+ local meta = minetest.get_meta(pos)
+ meta:set_string("formspec", "field[channel;Channel;${channel}]")
+ end,
+ on_receive_fields = function(pos, formname, fields, sender)
+ local name = sender:get_player_name()
+ if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
+ minetest.record_protection_violation(pos, name)
+ return
+ end
+ if (fields.channel) then
+ minetest.get_meta(pos):set_string("channel", fields.channel)
+ end
+ end,
+})
diff --git a/digilines/mod.conf b/digilines/mod.conf
new file mode 100644
index 0000000..0b01ac5
--- /dev/null
+++ b/digilines/mod.conf
@@ -0,0 +1 @@
+name = digilines
diff --git a/digilines/rtc.lua b/digilines/rtc.lua
new file mode 100644
index 0000000..f8f6af4
--- /dev/null
+++ b/digilines/rtc.lua
@@ -0,0 +1,59 @@
+local GET_COMMAND = "GET"
+
+local rtc_nodebox =
+{
+ type = "fixed",
+ fixed = {
+ { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, -- bottom slab
+
+ { -7/16, -7/16, -7/16, 7/16, -5/16, 7/16 },
+ }
+}
+
+local rtc_selbox =
+{
+ type = "fixed",
+ fixed = {{ -8/16, -8/16, -8/16, 8/16, -3/16, 8/16 }}
+}
+
+local on_digiline_receive = function (pos, node, channel, msg)
+ local setchan = minetest.get_meta(pos):get_string("channel")
+ if channel == setchan and msg == GET_COMMAND then
+ local timeofday = minetest.get_timeofday()
+ digiline:receptor_send(pos, digiline.rules.default, channel, timeofday)
+ end
+end
+
+minetest.register_alias("digilines_rtc:rtc", "digilines:rtc")
+minetest.register_node("digilines:rtc", {
+ description = "Digiline Real Time Clock (RTC)",
+ drawtype = "nodebox",
+ tiles = {"digilines_rtc.png"},
+
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {dig_immediate=2},
+ selection_box = rtc_selbox,
+ node_box = rtc_nodebox,
+ digiline =
+ {
+ receptor = {},
+ effector = {
+ action = on_digiline_receive
+ },
+ },
+ on_construct = function(pos)
+ local meta = minetest.get_meta(pos)
+ meta:set_string("formspec", "field[channel;Channel;${channel}]")
+ end,
+ on_receive_fields = function(pos, formname, fields, sender)
+ local name = sender:get_player_name()
+ if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
+ minetest.record_protection_violation(pos, name)
+ return
+ end
+ if (fields.channel) then
+ minetest.get_meta(pos):set_string("channel", fields.channel)
+ end
+ end,
+})
diff --git a/digilines/screenshot.png b/digilines/screenshot.png
new file mode 100644
index 0000000..e699cea
--- /dev/null
+++ b/digilines/screenshot.png
Binary files differ
diff --git a/digilines/textures/_0.png b/digilines/textures/_0.png
new file mode 100644
index 0000000..b030879
--- /dev/null
+++ b/digilines/textures/_0.png
Binary files differ
diff --git a/digilines/textures/_1.png b/digilines/textures/_1.png
new file mode 100644
index 0000000..ae28369
--- /dev/null
+++ b/digilines/textures/_1.png
Binary files differ
diff --git a/digilines/textures/_2.png b/digilines/textures/_2.png
new file mode 100644
index 0000000..7375c68
--- /dev/null
+++ b/digilines/textures/_2.png
Binary files differ
diff --git a/digilines/textures/_3.png b/digilines/textures/_3.png
new file mode 100644
index 0000000..d724811
--- /dev/null
+++ b/digilines/textures/_3.png
Binary files differ
diff --git a/digilines/textures/_4.png b/digilines/textures/_4.png
new file mode 100644
index 0000000..0fff433
--- /dev/null
+++ b/digilines/textures/_4.png
Binary files differ
diff --git a/digilines/textures/_5.png b/digilines/textures/_5.png
new file mode 100644
index 0000000..43010df
--- /dev/null
+++ b/digilines/textures/_5.png
Binary files differ
diff --git a/digilines/textures/_6.png b/digilines/textures/_6.png
new file mode 100644
index 0000000..1eba38c
--- /dev/null
+++ b/digilines/textures/_6.png
Binary files differ
diff --git a/digilines/textures/_7.png b/digilines/textures/_7.png
new file mode 100644
index 0000000..dbcd2d1
--- /dev/null
+++ b/digilines/textures/_7.png
Binary files differ
diff --git a/digilines/textures/_8.png b/digilines/textures/_8.png
new file mode 100644
index 0000000..edf6ef5
--- /dev/null
+++ b/digilines/textures/_8.png
Binary files differ
diff --git a/digilines/textures/_9.png b/digilines/textures/_9.png
new file mode 100644
index 0000000..c276c11
--- /dev/null
+++ b/digilines/textures/_9.png
Binary files differ
diff --git a/digilines/textures/_a.png b/digilines/textures/_a.png
new file mode 100644
index 0000000..8f3f59c
--- /dev/null
+++ b/digilines/textures/_a.png
Binary files differ
diff --git a/digilines/textures/_a_.png b/digilines/textures/_a_.png
new file mode 100644
index 0000000..4da193c
--- /dev/null
+++ b/digilines/textures/_a_.png
Binary files differ
diff --git a/digilines/textures/_am.png b/digilines/textures/_am.png
new file mode 100644
index 0000000..75d0287
--- /dev/null
+++ b/digilines/textures/_am.png
Binary files differ
diff --git a/digilines/textures/_ap.png b/digilines/textures/_ap.png
new file mode 100644
index 0000000..5dd3325
--- /dev/null
+++ b/digilines/textures/_ap.png
Binary files differ
diff --git a/digilines/textures/_as.png b/digilines/textures/_as.png
new file mode 100644
index 0000000..3c7a25a
--- /dev/null
+++ b/digilines/textures/_as.png
Binary files differ
diff --git a/digilines/textures/_at.png b/digilines/textures/_at.png
new file mode 100644
index 0000000..4f9841c
--- /dev/null
+++ b/digilines/textures/_at.png
Binary files differ
diff --git a/digilines/textures/_b.png b/digilines/textures/_b.png
new file mode 100644
index 0000000..baf4eaa
--- /dev/null
+++ b/digilines/textures/_b.png
Binary files differ
diff --git a/digilines/textures/_b_.png b/digilines/textures/_b_.png
new file mode 100644
index 0000000..b00a378
--- /dev/null
+++ b/digilines/textures/_b_.png
Binary files differ
diff --git a/digilines/textures/_bl.png b/digilines/textures/_bl.png
new file mode 100644
index 0000000..546ca4e
--- /dev/null
+++ b/digilines/textures/_bl.png
Binary files differ
diff --git a/digilines/textures/_br.png b/digilines/textures/_br.png
new file mode 100644
index 0000000..5700fa6
--- /dev/null
+++ b/digilines/textures/_br.png
Binary files differ
diff --git a/digilines/textures/_c.png b/digilines/textures/_c.png
new file mode 100644
index 0000000..eedd639
--- /dev/null
+++ b/digilines/textures/_c.png
Binary files differ
diff --git a/digilines/textures/_c_.png b/digilines/textures/_c_.png
new file mode 100644
index 0000000..cab6518
--- /dev/null
+++ b/digilines/textures/_c_.png
Binary files differ
diff --git a/digilines/textures/_ca.png b/digilines/textures/_ca.png
new file mode 100644
index 0000000..d359c88
--- /dev/null
+++ b/digilines/textures/_ca.png
Binary files differ
diff --git a/digilines/textures/_cl.png b/digilines/textures/_cl.png
new file mode 100644
index 0000000..55396b9
--- /dev/null
+++ b/digilines/textures/_cl.png
Binary files differ
diff --git a/digilines/textures/_cm.png b/digilines/textures/_cm.png
new file mode 100644
index 0000000..28beedf
--- /dev/null
+++ b/digilines/textures/_cm.png
Binary files differ
diff --git a/digilines/textures/_co.png b/digilines/textures/_co.png
new file mode 100644
index 0000000..b161819
--- /dev/null
+++ b/digilines/textures/_co.png
Binary files differ
diff --git a/digilines/textures/_cr.png b/digilines/textures/_cr.png
new file mode 100644
index 0000000..ac466a9
--- /dev/null
+++ b/digilines/textures/_cr.png
Binary files differ
diff --git a/digilines/textures/_d.png b/digilines/textures/_d.png
new file mode 100644
index 0000000..a5f0699
--- /dev/null
+++ b/digilines/textures/_d.png
Binary files differ
diff --git a/digilines/textures/_d_.png b/digilines/textures/_d_.png
new file mode 100644
index 0000000..9a0e3ed
--- /dev/null
+++ b/digilines/textures/_d_.png
Binary files differ
diff --git a/digilines/textures/_dl.png b/digilines/textures/_dl.png
new file mode 100644
index 0000000..72184ad
--- /dev/null
+++ b/digilines/textures/_dl.png
Binary files differ
diff --git a/digilines/textures/_dt.png b/digilines/textures/_dt.png
new file mode 100644
index 0000000..61c1e4a
--- /dev/null
+++ b/digilines/textures/_dt.png
Binary files differ
diff --git a/digilines/textures/_dv.png b/digilines/textures/_dv.png
new file mode 100644
index 0000000..996d7cd
--- /dev/null
+++ b/digilines/textures/_dv.png
Binary files differ
diff --git a/digilines/textures/_e.png b/digilines/textures/_e.png
new file mode 100644
index 0000000..29e32e6
--- /dev/null
+++ b/digilines/textures/_e.png
Binary files differ
diff --git a/digilines/textures/_e_.png b/digilines/textures/_e_.png
new file mode 100644
index 0000000..c7f19c1
--- /dev/null
+++ b/digilines/textures/_e_.png
Binary files differ
diff --git a/digilines/textures/_eq.png b/digilines/textures/_eq.png
new file mode 100644
index 0000000..daf8424
--- /dev/null
+++ b/digilines/textures/_eq.png
Binary files differ
diff --git a/digilines/textures/_ex.png b/digilines/textures/_ex.png
new file mode 100644
index 0000000..b5da8e9
--- /dev/null
+++ b/digilines/textures/_ex.png
Binary files differ
diff --git a/digilines/textures/_f.png b/digilines/textures/_f.png
new file mode 100644
index 0000000..6835912
--- /dev/null
+++ b/digilines/textures/_f.png
Binary files differ
diff --git a/digilines/textures/_f_.png b/digilines/textures/_f_.png
new file mode 100644
index 0000000..3698ed2
--- /dev/null
+++ b/digilines/textures/_f_.png
Binary files differ
diff --git a/digilines/textures/_g.png b/digilines/textures/_g.png
new file mode 100644
index 0000000..5a85cde
--- /dev/null
+++ b/digilines/textures/_g.png
Binary files differ
diff --git a/digilines/textures/_g_.png b/digilines/textures/_g_.png
new file mode 100644
index 0000000..cc7bbc5
--- /dev/null
+++ b/digilines/textures/_g_.png
Binary files differ
diff --git a/digilines/textures/_gt.png b/digilines/textures/_gt.png
new file mode 100644
index 0000000..f30855a
--- /dev/null
+++ b/digilines/textures/_gt.png
Binary files differ
diff --git a/digilines/textures/_h.png b/digilines/textures/_h.png
new file mode 100644
index 0000000..1a66a9e
--- /dev/null
+++ b/digilines/textures/_h.png
Binary files differ
diff --git a/digilines/textures/_h_.png b/digilines/textures/_h_.png
new file mode 100644
index 0000000..87beafc
--- /dev/null
+++ b/digilines/textures/_h_.png
Binary files differ
diff --git a/digilines/textures/_ha.png b/digilines/textures/_ha.png
new file mode 100644
index 0000000..4618ced
--- /dev/null
+++ b/digilines/textures/_ha.png
Binary files differ
diff --git a/digilines/textures/_hs.png b/digilines/textures/_hs.png
new file mode 100644
index 0000000..6f12bec
--- /dev/null
+++ b/digilines/textures/_hs.png
Binary files differ
diff --git a/digilines/textures/_i.png b/digilines/textures/_i.png
new file mode 100644
index 0000000..f001142
--- /dev/null
+++ b/digilines/textures/_i.png
Binary files differ
diff --git a/digilines/textures/_i_.png b/digilines/textures/_i_.png
new file mode 100644
index 0000000..fc658b8
--- /dev/null
+++ b/digilines/textures/_i_.png
Binary files differ
diff --git a/digilines/textures/_j.png b/digilines/textures/_j.png
new file mode 100644
index 0000000..87d2f26
--- /dev/null
+++ b/digilines/textures/_j.png
Binary files differ
diff --git a/digilines/textures/_j_.png b/digilines/textures/_j_.png
new file mode 100644
index 0000000..c0d9ac2
--- /dev/null
+++ b/digilines/textures/_j_.png
Binary files differ
diff --git a/digilines/textures/_k.png b/digilines/textures/_k.png
new file mode 100644
index 0000000..34f9336
--- /dev/null
+++ b/digilines/textures/_k.png
Binary files differ
diff --git a/digilines/textures/_k_.png b/digilines/textures/_k_.png
new file mode 100644
index 0000000..86b623d
--- /dev/null
+++ b/digilines/textures/_k_.png
Binary files differ
diff --git a/digilines/textures/_l.png b/digilines/textures/_l.png
new file mode 100644
index 0000000..defe7ec
--- /dev/null
+++ b/digilines/textures/_l.png
Binary files differ
diff --git a/digilines/textures/_l_.png b/digilines/textures/_l_.png
new file mode 100644
index 0000000..3fe1de2
--- /dev/null
+++ b/digilines/textures/_l_.png
Binary files differ
diff --git a/digilines/textures/_lt.png b/digilines/textures/_lt.png
new file mode 100644
index 0000000..ec7219d
--- /dev/null
+++ b/digilines/textures/_lt.png
Binary files differ
diff --git a/digilines/textures/_m.png b/digilines/textures/_m.png
new file mode 100644
index 0000000..e0fe039
--- /dev/null
+++ b/digilines/textures/_m.png
Binary files differ
diff --git a/digilines/textures/_m_.png b/digilines/textures/_m_.png
new file mode 100644
index 0000000..9164da6
--- /dev/null
+++ b/digilines/textures/_m_.png
Binary files differ
diff --git a/digilines/textures/_mn.png b/digilines/textures/_mn.png
new file mode 100644
index 0000000..935a2fe
--- /dev/null
+++ b/digilines/textures/_mn.png
Binary files differ
diff --git a/digilines/textures/_n.png b/digilines/textures/_n.png
new file mode 100644
index 0000000..ac10fd9
--- /dev/null
+++ b/digilines/textures/_n.png
Binary files differ
diff --git a/digilines/textures/_n_.png b/digilines/textures/_n_.png
new file mode 100644
index 0000000..d4355c1
--- /dev/null
+++ b/digilines/textures/_n_.png
Binary files differ
diff --git a/digilines/textures/_o.png b/digilines/textures/_o.png
new file mode 100644
index 0000000..080e99d
--- /dev/null
+++ b/digilines/textures/_o.png
Binary files differ
diff --git a/digilines/textures/_o_.png b/digilines/textures/_o_.png
new file mode 100644
index 0000000..2d19051
--- /dev/null
+++ b/digilines/textures/_o_.png
Binary files differ
diff --git a/digilines/textures/_p.png b/digilines/textures/_p.png
new file mode 100644
index 0000000..3050959
--- /dev/null
+++ b/digilines/textures/_p.png
Binary files differ
diff --git a/digilines/textures/_p_.png b/digilines/textures/_p_.png
new file mode 100644
index 0000000..0cca011
--- /dev/null
+++ b/digilines/textures/_p_.png
Binary files differ
diff --git a/digilines/textures/_pr.png b/digilines/textures/_pr.png
new file mode 100644
index 0000000..b835141
--- /dev/null
+++ b/digilines/textures/_pr.png
Binary files differ
diff --git a/digilines/textures/_ps.png b/digilines/textures/_ps.png
new file mode 100644
index 0000000..1f4b5c1
--- /dev/null
+++ b/digilines/textures/_ps.png
Binary files differ
diff --git a/digilines/textures/_q.png b/digilines/textures/_q.png
new file mode 100644
index 0000000..945b6cf
--- /dev/null
+++ b/digilines/textures/_q.png
Binary files differ
diff --git a/digilines/textures/_q_.png b/digilines/textures/_q_.png
new file mode 100644
index 0000000..f3bf455
--- /dev/null
+++ b/digilines/textures/_q_.png
Binary files differ
diff --git a/digilines/textures/_qo.png b/digilines/textures/_qo.png
new file mode 100644
index 0000000..5d261e3
--- /dev/null
+++ b/digilines/textures/_qo.png
Binary files differ
diff --git a/digilines/textures/_qu.png b/digilines/textures/_qu.png
new file mode 100644
index 0000000..5eb597a
--- /dev/null
+++ b/digilines/textures/_qu.png
Binary files differ
diff --git a/digilines/textures/_r.png b/digilines/textures/_r.png
new file mode 100644
index 0000000..39e9fce
--- /dev/null
+++ b/digilines/textures/_r.png
Binary files differ
diff --git a/digilines/textures/_r_.png b/digilines/textures/_r_.png
new file mode 100644
index 0000000..6c71c1e
--- /dev/null
+++ b/digilines/textures/_r_.png
Binary files differ
diff --git a/digilines/textures/_re.png b/digilines/textures/_re.png
new file mode 100644
index 0000000..1614837
--- /dev/null
+++ b/digilines/textures/_re.png
Binary files differ
diff --git a/digilines/textures/_s.png b/digilines/textures/_s.png
new file mode 100644
index 0000000..a0ada1a
--- /dev/null
+++ b/digilines/textures/_s.png
Binary files differ
diff --git a/digilines/textures/_s_.png b/digilines/textures/_s_.png
new file mode 100644
index 0000000..9b018bb
--- /dev/null
+++ b/digilines/textures/_s_.png
Binary files differ
diff --git a/digilines/textures/_sl.png b/digilines/textures/_sl.png
new file mode 100644
index 0000000..08c9547
--- /dev/null
+++ b/digilines/textures/_sl.png
Binary files differ
diff --git a/digilines/textures/_sm.png b/digilines/textures/_sm.png
new file mode 100644
index 0000000..385c64f
--- /dev/null
+++ b/digilines/textures/_sm.png
Binary files differ
diff --git a/digilines/textures/_sp.png b/digilines/textures/_sp.png
new file mode 100644
index 0000000..4f38a35
--- /dev/null
+++ b/digilines/textures/_sp.png
Binary files differ
diff --git a/digilines/textures/_sr.png b/digilines/textures/_sr.png
new file mode 100644
index 0000000..bc9c0a2
--- /dev/null
+++ b/digilines/textures/_sr.png
Binary files differ
diff --git a/digilines/textures/_t.png b/digilines/textures/_t.png
new file mode 100644
index 0000000..c55731a
--- /dev/null
+++ b/digilines/textures/_t.png
Binary files differ
diff --git a/digilines/textures/_t_.png b/digilines/textures/_t_.png
new file mode 100644
index 0000000..773e666
--- /dev/null
+++ b/digilines/textures/_t_.png
Binary files differ
diff --git a/digilines/textures/_tl.png b/digilines/textures/_tl.png
new file mode 100644
index 0000000..059fe68
--- /dev/null
+++ b/digilines/textures/_tl.png
Binary files differ
diff --git a/digilines/textures/_u.png b/digilines/textures/_u.png
new file mode 100644
index 0000000..98bf8e6
--- /dev/null
+++ b/digilines/textures/_u.png
Binary files differ
diff --git a/digilines/textures/_u_.png b/digilines/textures/_u_.png
new file mode 100644
index 0000000..35ce915
--- /dev/null
+++ b/digilines/textures/_u_.png
Binary files differ
diff --git a/digilines/textures/_un.png b/digilines/textures/_un.png
new file mode 100644
index 0000000..01f547a
--- /dev/null
+++ b/digilines/textures/_un.png
Binary files differ
diff --git a/digilines/textures/_v.png b/digilines/textures/_v.png
new file mode 100644
index 0000000..b692d11
--- /dev/null
+++ b/digilines/textures/_v.png
Binary files differ
diff --git a/digilines/textures/_v_.png b/digilines/textures/_v_.png
new file mode 100644
index 0000000..8049771
--- /dev/null
+++ b/digilines/textures/_v_.png
Binary files differ
diff --git a/digilines/textures/_vb.png b/digilines/textures/_vb.png
new file mode 100644
index 0000000..7fed7dc
--- /dev/null
+++ b/digilines/textures/_vb.png
Binary files differ
diff --git a/digilines/textures/_w.png b/digilines/textures/_w.png
new file mode 100644
index 0000000..6a58b07
--- /dev/null
+++ b/digilines/textures/_w.png
Binary files differ
diff --git a/digilines/textures/_w_.png b/digilines/textures/_w_.png
new file mode 100644
index 0000000..64904de
--- /dev/null
+++ b/digilines/textures/_w_.png
Binary files differ
diff --git a/digilines/textures/_x.png b/digilines/textures/_x.png
new file mode 100644
index 0000000..b769e13
--- /dev/null
+++ b/digilines/textures/_x.png
Binary files differ
diff --git a/digilines/textures/_x_.png b/digilines/textures/_x_.png
new file mode 100644
index 0000000..2f6d067
--- /dev/null
+++ b/digilines/textures/_x_.png
Binary files differ
diff --git a/digilines/textures/_y.png b/digilines/textures/_y.png
new file mode 100644
index 0000000..777b55e
--- /dev/null
+++ b/digilines/textures/_y.png
Binary files differ
diff --git a/digilines/textures/_y_.png b/digilines/textures/_y_.png
new file mode 100644
index 0000000..0c40de9
--- /dev/null
+++ b/digilines/textures/_y_.png
Binary files differ
diff --git a/digilines/textures/_z.png b/digilines/textures/_z.png
new file mode 100644
index 0000000..ae010fe
--- /dev/null
+++ b/digilines/textures/_z.png
Binary files differ
diff --git a/digilines/textures/_z_.png b/digilines/textures/_z_.png
new file mode 100644
index 0000000..1c3e053
--- /dev/null
+++ b/digilines/textures/_z_.png
Binary files differ
diff --git a/digilines/textures/digilines_lightsensor.png b/digilines/textures/digilines_lightsensor.png
new file mode 100644
index 0000000..aa88495
--- /dev/null
+++ b/digilines/textures/digilines_lightsensor.png
Binary files differ
diff --git a/digilines/textures/digilines_rtc.png b/digilines/textures/digilines_rtc.png
new file mode 100644
index 0000000..a7b1d84
--- /dev/null
+++ b/digilines/textures/digilines_rtc.png
Binary files differ
diff --git a/digilines/textures/lcd_anyside.png b/digilines/textures/lcd_anyside.png
new file mode 100644
index 0000000..fe88e8d
--- /dev/null
+++ b/digilines/textures/lcd_anyside.png
Binary files differ
diff --git a/digilines/textures/lcd_lcd.png b/digilines/textures/lcd_lcd.png
new file mode 100644
index 0000000..c959fa1
--- /dev/null
+++ b/digilines/textures/lcd_lcd.png
Binary files differ