summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons_microcontroller/init.lua7
-rw-r--r--mesecons_receiver/init.lua16
-rw-r--r--mesecons_textures/textures/receiver_bottom_off.pngbin0 -> 242 bytes
-rw-r--r--mesecons_textures/textures/receiver_bottom_on.pngbin0 -> 247 bytes
-rw-r--r--mesecons_textures/textures/receiver_fb_off.pngbin346 -> 374 bytes
-rw-r--r--mesecons_textures/textures/receiver_fb_on.pngbin491 -> 517 bytes
-rw-r--r--mesecons_textures/textures/receiver_lr_off.pngbin457 -> 317 bytes
-rw-r--r--mesecons_textures/textures/receiver_lr_on.pngbin481 -> 321 bytes
-rw-r--r--mesecons_textures/textures/receiver_tb_off.pngbin477 -> 0 bytes
-rw-r--r--mesecons_textures/textures/receiver_tb_on.pngbin515 -> 0 bytes
-rw-r--r--mesecons_textures/textures/receiver_top_off.pngbin0 -> 240 bytes
-rw-r--r--mesecons_textures/textures/receiver_top_on.pngbin0 -> 245 bytes
12 files changed, 14 insertions, 9 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index a4c2741..3a2ce2b 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -426,7 +426,11 @@ function yc_command_after_execute(params)
if yc_parsecode(params.code, params.pos) == nil then
meta:set_string("infotext", "Code in after() not valid!")
else
- meta:set_string("infotext", "Working Microcontroller")
+ if code ~= nil then
+ meta:set_string("infotext", "Working Microcontroller\n"..code)
+ else
+ meta:set_string("infotext", "Working Microcontroller")
+ end
end
end
end
@@ -505,6 +509,7 @@ function yc_command_parsecondition(cond, L, eeprom)
if cond:sub(i+1, i+1) == nil then break end
if s == "=" then
if a==nil then return nil end
+ if b==nil then return nil end
if a == b then buf = "1" end
if a ~= b then buf = "0" end
cond = string.gsub(cond, b..s..a, buf)
diff --git a/mesecons_receiver/init.lua b/mesecons_receiver/init.lua
index aa91bd6..8b5e934 100644
--- a/mesecons_receiver/init.lua
+++ b/mesecons_receiver/init.lua
@@ -1,15 +1,15 @@
rcvboxes = {
- { -3/16, -3/16, -8/16, 3/16, 3/16, -13/32 },
- { -5/32, -5/32, -13/32, 5/32, 5/32, -12/32 },
- {-1/16, -.5, -8/16, 1/16, -.5+1/16, 8/16},
- {-1/16, -.5+1/16, -.5, 1/16, 0, -.5+1/16}
+ { -3/16, -3/16 , -8/16 , 3/16, 3/16, -13/32 }, -- the smaller bump
+ { -5/32, -5/32 , -13/32 , 5/32, 5/32, -12/32 }, -- the receiver itself
+ { -3/32, -.5-1/32, -.5 , 3/32, 0 , -.5002+3/32 }, -- the vertical wire bit
+ { -3/32, -17/32 , -7/16+0.002 , 3/32, -13/32, 16/32+0.001 } -- the horizontal wire
}
minetest.register_node("mesecons_receiver:receiver_on", {
drawtype = "nodebox",
tiles = {
- "receiver_tb_on.png",
- "receiver_tb_on.png",
+ "receiver_top_on.png",
+ "receiver_bottom_on.png",
"receiver_lr_on.png",
"receiver_lr_on.png",
"receiver_fb_on.png",
@@ -34,8 +34,8 @@ minetest.register_node("mesecons_receiver:receiver_off", {
drawtype = "nodebox",
description = "You hacker you",
tiles = {
- "receiver_tb_off.png",
- "receiver_tb_off.png",
+ "receiver_top_off.png",
+ "receiver_bottom_off.png",
"receiver_lr_off.png",
"receiver_lr_off.png",
"receiver_fb_off.png",
diff --git a/mesecons_textures/textures/receiver_bottom_off.png b/mesecons_textures/textures/receiver_bottom_off.png
new file mode 100644
index 0000000..8542e7d
--- /dev/null
+++ b/mesecons_textures/textures/receiver_bottom_off.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_bottom_on.png b/mesecons_textures/textures/receiver_bottom_on.png
new file mode 100644
index 0000000..98ca72a
--- /dev/null
+++ b/mesecons_textures/textures/receiver_bottom_on.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_fb_off.png b/mesecons_textures/textures/receiver_fb_off.png
index 6be0a66..3decca5 100644
--- a/mesecons_textures/textures/receiver_fb_off.png
+++ b/mesecons_textures/textures/receiver_fb_off.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_fb_on.png b/mesecons_textures/textures/receiver_fb_on.png
index 1705a58..3715efd 100644
--- a/mesecons_textures/textures/receiver_fb_on.png
+++ b/mesecons_textures/textures/receiver_fb_on.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_lr_off.png b/mesecons_textures/textures/receiver_lr_off.png
index e144691..50c602c 100644
--- a/mesecons_textures/textures/receiver_lr_off.png
+++ b/mesecons_textures/textures/receiver_lr_off.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_lr_on.png b/mesecons_textures/textures/receiver_lr_on.png
index 0198e32..1eeda68 100644
--- a/mesecons_textures/textures/receiver_lr_on.png
+++ b/mesecons_textures/textures/receiver_lr_on.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_tb_off.png b/mesecons_textures/textures/receiver_tb_off.png
deleted file mode 100644
index 460febb..0000000
--- a/mesecons_textures/textures/receiver_tb_off.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/receiver_tb_on.png b/mesecons_textures/textures/receiver_tb_on.png
deleted file mode 100644
index 077eae3..0000000
--- a/mesecons_textures/textures/receiver_tb_on.png
+++ /dev/null
Binary files differ
diff --git a/mesecons_textures/textures/receiver_top_off.png b/mesecons_textures/textures/receiver_top_off.png
new file mode 100644
index 0000000..35bed5c
--- /dev/null
+++ b/mesecons_textures/textures/receiver_top_off.png
Binary files differ
diff --git a/mesecons_textures/textures/receiver_top_on.png b/mesecons_textures/textures/receiver_top_on.png
new file mode 100644
index 0000000..158dda2
--- /dev/null
+++ b/mesecons_textures/textures/receiver_top_on.png
Binary files differ