Jeija
240fb83e8b
Implement interrupt(time, iid): The whole code is called again after a
...
certain amount of time.
Whenever it is called, an event is set.
Possible events are: program, interrupt, on and off
It also contains additional information (on/off -> event.in; interrupt ->
event.iid)
iid must be an integer or string value, otherwise the interrupt is not active
2013-01-13 17:33:16 +01:00
Jeija
e297a02ec2
Implement a memory for the controller (accesible via mem.) and cleanup code
...
Based on PilzAdam's code.
2013-01-13 11:08:13 +01:00
Jeija
bd749ec4d4
Add luacontroller, a microcontroller that you can code in lua.
...
It still misses some functionality such as a persistent memory and a
timer, but that is subject to change. The code runs in a sandbox.
Speaking long term this will hopefully replace the old controller.
2013-01-13 00:18:25 +01:00
Jeija
841bc70b97
Fix a bug that occured when using a receptor placed directly next to a
...
gate.
We need to call a changesignal even if the gate/other effector is still
connected to a power source in a way.
2013-01-09 16:56:25 +01:00
Jeija
ec07fc27d7
Merge branch 'nextgen'
...
Conflicts:
mesecons/wires.lua
2012-12-31 18:32:46 +01:00
Jeija
52ddd4bdc9
Add crafting recipe for the delayer (similar to redstone, but with cobble instead of stone)
2012-12-30 09:07:49 +01:00
Jeija
7e231b99a6
Make nr in rules rotation local in order not to pullute the holy global namespace
2012-12-28 07:33:16 +01:00
Jeija
ab1966f763
Fix server crash when using movestones
2012-12-27 22:33:09 +01:00
Jeija
2bbc9dd4b7
Rework the next nodes: Pressure Plates
2012-12-27 22:28:39 +01:00
Jeija
72d58d2018
Merge branch 'nextgen' of https://github.com/Jeija/minetest-mod-mesecons into nextgen
2012-12-27 20:39:04 +01:00
Jeija
c062411fa1
Fix another two piston-related bugs
2012-12-27 20:38:12 +01:00
Jeija
c63afd49ec
Merge branch 'nextgen' of https://github.com/Jeija/minetest-mod-mesecons into nextgen
2012-12-27 19:15:24 +01:00
Jeija
2a8bd68c41
Fix very rare piston bug (needs testing)
2012-12-27 19:14:54 +01:00
Jeija
d3b77b5be3
Compatibility with old pistons
2012-12-27 12:03:05 +01:00
Jeija
ac0fb91139
Minor cleanup of mesecno torch and add another rule to it (behind above)
2012-12-27 10:50:20 +01:00
Jeija
d1ace465c7
Add experimental 'corner' wire, an insulated bended wire (needs textures and maybe rename it)
2012-12-27 09:54:19 +01:00
Jeija
7fe4947056
Bugfix foes for pistons, delayyrs, gates and microcontrollers. Rework delayers.
2012-12-27 09:28:04 +01:00
Jeija
5a88a9715f
Re-write pistons from scratch, propably fixes a lot of bugs and doesn't
...
cause too many new ones.
2012-12-26 22:56:31 +01:00
Jeija
d91e0b66cb
Re-write pistons from scratch, propably fixes a lot of bugs and doesn't cause too many new ones.
2012-12-26 22:54:28 +01:00
Jeija
c508bfaea6
Merge branch 'nextgen' of https://github.com/Jeija/minetest-mod-mesecons into nextgen
2012-12-23 17:21:34 +01:00
Jeija
af8fd75fa4
Fix sticky piston up
2012-12-23 17:20:59 +01:00
Jeija
e2ec7b5b04
Fix pressure plates (forgot to add mesecons field to some of the nodedefs)
2012-12-22 23:39:17 +01:00
Jeija
23bebfc054
Merge branch 'master' into nextgen
...
Conflicts:
mesecons/internal.lua
mesecons/wires.lua
mesecons_pistons/init.lua
2012-12-21 16:22:25 +01:00
Jeija
973a9c650f
Add new crafting recipe for mesecons: Cook a mese crystal
2012-12-21 16:19:38 +01:00
Jeija
9019a4aff7
Bugfix, wires sometimes turned off for no reason
2012-12-21 16:04:19 +01:00
Jeija
f114cb8ddc
Fix movestone crash bug
2012-12-20 20:16:07 +01:00
Jeija
5aa0815ffb
hopefully fix http://minetest.net/forum/viewtopic.php?pid=58093#p58093
2012-12-19 18:20:21 +01:00
Jeija
6b1bfe6391
Add rule-name system. Every input rule can now have a name, that could help e.g. the microcontroller to know where a signal comes from.
2012-12-19 17:34:05 +01:00
Jeija
f6ef7b005d
Same for sticky piston
2012-12-18 16:21:41 +01:00
Jeija
5cdf23fb00
Fix bug reported here: http://bit.ly/VOF35X
2012-12-18 16:20:24 +01:00
Jeija
e9e1006656
Merge branch 'master' of https://github.com/Jeija/minetest-mod-mesecons
2012-12-18 16:14:47 +01:00
Jeija
313b9adcd5
Should fix this bug: bit.ly/XEy94j
2012-12-18 15:59:23 +01:00
Jeija
13befe3bba
Fix #62 (Hopefully this time)
2012-12-16 19:03:46 +01:00
Jeija
2c4a46a557
Minor cleanup, use addPosRule
2012-12-16 16:29:03 +01:00
Jeija
0aab812487
Fix addPosRule without mesecon: in vertical wires (issue #62 )
2012-12-16 13:02:05 +01:00
Jeija
c76c274cc0
Remove mesecons:updatenode
2012-12-16 12:00:11 +01:00
Jeija
a1852204fb
Cleanup and improve piston code
2012-12-16 11:58:43 +01:00
Jeija
ae4bd1e21c
Merge branch 'master' into nextgen
...
Conflicts:
mesecons_pistons/init.lua
2012-12-16 08:59:06 +01:00
Jeija
5fb5df446c
Bugfix, use param2 for conductors when turning them on/off
2012-12-15 21:23:38 +01:00
Jeija
18731cbc8a
Bugfix, param2 for conductors
2012-12-15 21:21:54 +01:00
Jeija
44dc1a128c
Upload cleaned up mesecons to nextgen branch
2012-12-15 18:45:51 +01:00
Jeija
c0d3bd2abb
Include experimental vertical wires (needs textures)
2012-12-13 18:42:45 +01:00
Jeija
594d061d6d
Fix sticky piston retraction not working
2012-12-12 03:14:57 +01:00
Jeija
659060ddcd
Fix a bug that occured when placing an effector next to a receptor
2012-12-11 19:54:53 +01:00
Jeija
de46729b97
Merge branch 'mesecons_in_nodedef'
...
Conflicts:
mesecons/internal.lua
2012-12-11 19:49:55 +01:00
Jeija
5540fcbcb3
Fix a bug reported here: http://minetest.net/forum/viewtopic.php?pid=56152#p56152
2012-12-11 18:15:44 +01:00
Jeija
a55874b5d2
Fix blinky plant bug (crash when placing mesecon next to it)
2012-12-10 22:05:13 +01:00
Jeija
192b9eca4f
Fix crash when digging unknown nodes
2012-12-10 21:14:03 +01:00
Jeija
59a39204a9
Remove dead parts of the mod/dead textures/wireless mesecons
2012-12-10 20:55:13 +01:00
Jeija
e9f2beb2c6
Slightly change wire look (may be reverted?)
2012-12-10 20:39:12 +01:00
Jeija
5904abbd79
Port gates (finally)
2012-12-10 19:46:24 +01:00
Jeija
d5825f9602
Fix insulated mesecon
2012-12-10 17:19:30 +01:00
Jeija
05def1540a
Fix microcontroller digging
2012-12-09 15:32:29 +01:00
Jeija
961b955f2d
Port door, fix button/lever bug, new visual style for receiver
2012-12-09 13:28:32 +01:00
Jeija
31f3c99288
Fix microcontroller alias
2012-12-09 11:16:48 +01:00
Jeija
a0a3328f7c
Fix microcontroller alias
2012-12-09 11:13:32 +01:00
Jeija
b37bdbf55c
Port a lot more (basically everything apart from gates, pistons and extrawire crossing) to the new nodedef system. There are some problems with wall button and wall lever (in the way they visually connect to wires)
2012-12-09 00:42:30 +01:00
Jeija
cf6080f723
Port more blocks to nodedef system: object detector, extrawires, water turbine, insulated wire
2012-12-08 22:28:46 +01:00
Jeija
00e071b695
Cleanup, make and use util.lua, port command block and delayer to nodedef
2012-12-08 21:56:09 +01:00
Jeija
8578fd89c8
Port lightstones (as reference for effectors) + blinky plant to the new nodedef system
2012-12-08 19:02:34 +01:00
Jeija
472650f099
Finish new mesecon-in-nodedef for conductors and receptors. Make wires and switch use it for reference.
2012-12-08 17:50:25 +01:00
Jeija
f28cf0af03
Fix major bug that often occured when using gates (caused by commit 64d109b)
2012-12-08 16:08:16 +01:00
Jeija
e0aa5b1d3d
New branch: Move mesecon to node definition instead of functions like register_conductor; first steps: move everything to legacy
2012-12-08 14:14:04 +01:00
Jeija
12206ac190
Add support for the preinstalled wooden door in minetest_game
2012-12-08 12:13:45 +01:00
Jeija
7542dd4da0
Fix a bug (in some cases the output rules of a receptor weren't respected, bug introduced by commit before, 64d109b31b)
2012-12-03 18:59:34 +01:00
Jeija
e92387695d
Add T-junction extrawire (no good textures yet)
2012-09-09 13:34:21 +02:00
Jeija
500e95c331
Fix Microcontroller bug in a different way, define offstate ports as inputs only
2012-09-09 13:07:59 +02:00
Jeija
f0e3b13f3f
Merge branch 'master' of
...
https://github.com/Jeija/minetest-mod-mesecons
2012-09-08 15:28:57 +02:00
Jeija
f959c16763
Fix Microcontroller bug (discovered by Fenris) and some others that propably noone found
2012-09-08 15:10:31 +02:00
Jeija
4ae7bc9aa6
Use sunlight_propagates = true for some more nodes
2012-09-07 15:59:49 +02:00
Jeija
3928d54d0c
Implement mesecon:register_receptor(onstate, offstate, rules, get_rules) and make add_receptor_node(_off) deprecated
2012-09-06 09:53:30 +02:00
Jeija
7e7e1de725
Code cleanup
2012-09-05 23:52:09 +02:00
Jeija
69c6f1a440
Remove door
2012-09-05 23:06:46 +02:00
Jeija
15fa38b848
Switch from tile_images to tiles = {...}
2012-08-20 10:12:10 +02:00
Jeija
b2c5a672e7
Remove obsolete digprop_constanttime
2012-08-20 09:51:19 +02:00
Jeija
48337a4df8
Fix bug when placing a wire (receiver) to an onstate-walllever/button
2012-08-19 10:38:44 +02:00
Jeija
c103aa6b23
Fix some bug that occurs when placing microcontrollers directly next to each other
2012-08-18 11:06:24 +02:00
Jeija
c5bf95f79d
Some fix for walllever/button receiver digging
2012-08-17 23:48:09 +02:00
Jeija
fe1606eb31
Add fiber and craft recipe for insulated mesecon
2012-08-17 21:32:21 +02:00
Jeija
f65d092267
Remove some useless code
2012-08-17 16:33:18 +02:00
Jeija
3c2d0ba325
Re-enable button + Wall lever, bugfix that adds a 'receiver' node (not yet designed)
2012-08-17 16:28:59 +02:00
Jeija
863ef26b63
Make isolated wires depend on facedir, rename them to 'insulated'
2012-08-17 11:59:06 +02:00
Jeija
78fdedc880
Add conductor rules, add demo isolated mesecons to proof that it works
2012-08-16 21:24:06 +02:00
Jeija
e74bb1ce75
Same rules change like with wall levers for buttons
2012-08-15 20:50:13 +02:00
Jeija
67b21804e3
Fix/Improve Wall lever rules
2012-08-15 20:43:45 +02:00
Jeija
6214dbf66e
Remove Temperest setting as it is an extension now
2012-08-15 11:11:13 +02:00
Jeija
573a3150d1
Move Temperest to mesecons-extension-temperest
2012-08-15 11:05:15 +02:00
Jeija
44d075f92d
Change tile_images to tiles for water turbine
2012-08-15 10:59:16 +02:00
Jeija
0fef5cca58
Move Battery to mesecons-extension-battery
2012-08-15 10:57:57 +02:00
Jeija
b346d89594
Update microcontroller tutorial to include after()
2012-08-13 23:33:53 +02:00
Jeija
67dfa93c2e
Finish after() command: works now
2012-08-13 23:20:29 +02:00
Jeija
5ede8f370c
Bugfix for microcontroller's after(): Make sure that microcontroller the code runs on is the same that sends the code
2012-08-13 22:55:14 +02:00
Jeija
c58882b0c6
Bugfix: Check if receptor node is powered from somewhere before turning it off in mesecons:turnoff
2012-08-13 22:42:45 +02:00
Jeija
9f16e4fcaa
Add not-yet-working after(time, code) function to the microcontroller
2012-08-13 22:33:25 +02:00
Jeija
9396ce8940
Re-enable backwards compatibility (sorry for disabling)
2012-08-13 21:51:41 +02:00
Jeija
164971f6d1
Remove piston_up from dead groups
2012-08-13 20:39:14 +02:00
Jeija
6f9036c70b
Register piston_up and piston_down as effectors
2012-08-13 20:37:39 +02:00
Jeija
00ce2540c2
New effector system, effectors have to be registered with mesecon:register_effector(onstate, offstate, rules, function get_rules) rules and function get_rules are optional. You don't have to specify both onstate and offstate (required for e.g. removestone)
2012-08-13 20:17:45 +02:00
Jeija
24c50571f7
Make mesecons only connect to input and output ports (e.g. of the delayer)
2012-08-13 16:49:14 +02:00
Jeija
439af2a88b
Add alias for solar panel: mesecons:solarpanel
2012-08-13 14:38:27 +02:00