diff options
-rw-r--r-- | mesecons_microcontroller/init.lua | 7 | ||||
-rw-r--r-- | mesecons_receiver/init.lua | 16 | ||||
-rw-r--r-- | mesecons_textures/textures/receiver_bottom_off.png | bin | 0 -> 242 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_bottom_on.png | bin | 0 -> 247 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_fb_off.png | bin | 346 -> 374 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_fb_on.png | bin | 491 -> 517 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_lr_off.png | bin | 457 -> 317 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_lr_on.png | bin | 481 -> 321 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_tb_off.png | bin | 477 -> 0 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_tb_on.png | bin | 515 -> 0 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_top_off.png | bin | 0 -> 240 bytes | |||
-rw-r--r-- | mesecons_textures/textures/receiver_top_on.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..8542e7d --- /dev/null +++ b/mesecons_textures/textures/receiver_bottom_off.png diff --git a/mesecons_textures/textures/receiver_bottom_on.png b/mesecons_textures/textures/receiver_bottom_on.png Binary files differnew file mode 100644 index 0000000..98ca72a --- /dev/null +++ b/mesecons_textures/textures/receiver_bottom_on.png diff --git a/mesecons_textures/textures/receiver_fb_off.png b/mesecons_textures/textures/receiver_fb_off.png Binary files differindex 6be0a66..3decca5 100644 --- a/mesecons_textures/textures/receiver_fb_off.png +++ b/mesecons_textures/textures/receiver_fb_off.png diff --git a/mesecons_textures/textures/receiver_fb_on.png b/mesecons_textures/textures/receiver_fb_on.png Binary files differindex 1705a58..3715efd 100644 --- a/mesecons_textures/textures/receiver_fb_on.png +++ b/mesecons_textures/textures/receiver_fb_on.png diff --git a/mesecons_textures/textures/receiver_lr_off.png b/mesecons_textures/textures/receiver_lr_off.png Binary files differindex e144691..50c602c 100644 --- a/mesecons_textures/textures/receiver_lr_off.png +++ b/mesecons_textures/textures/receiver_lr_off.png diff --git a/mesecons_textures/textures/receiver_lr_on.png b/mesecons_textures/textures/receiver_lr_on.png Binary files differindex 0198e32..1eeda68 100644 --- a/mesecons_textures/textures/receiver_lr_on.png +++ b/mesecons_textures/textures/receiver_lr_on.png diff --git a/mesecons_textures/textures/receiver_tb_off.png b/mesecons_textures/textures/receiver_tb_off.png Binary files differdeleted file mode 100644 index 460febb..0000000 --- a/mesecons_textures/textures/receiver_tb_off.png +++ /dev/null diff --git a/mesecons_textures/textures/receiver_tb_on.png b/mesecons_textures/textures/receiver_tb_on.png Binary files differdeleted file mode 100644 index 077eae3..0000000 --- a/mesecons_textures/textures/receiver_tb_on.png +++ /dev/null diff --git a/mesecons_textures/textures/receiver_top_off.png b/mesecons_textures/textures/receiver_top_off.png Binary files differnew file mode 100644 index 0000000..35bed5c --- /dev/null +++ b/mesecons_textures/textures/receiver_top_off.png diff --git a/mesecons_textures/textures/receiver_top_on.png b/mesecons_textures/textures/receiver_top_on.png Binary files differnew file mode 100644 index 0000000..158dda2 --- /dev/null +++ b/mesecons_textures/textures/receiver_top_on.png |