Commit Graph

451 Commits

Author SHA1 Message Date
Jeija
ec517becab Texture the LuaController formspec 2013-01-19 12:03:27 +01:00
Jeija
0d44144421 Bugfixes and improved stability of the luacontroller 2013-01-14 17:58:14 +01:00
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
Anthony Zhang
17579a6aa1 Fix gates drop bug reported by kaeza and Kacey, avoid polluting the global namespace. 2013-01-06 14:09:54 -05: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
Vanessa Ezekowitz
5921f6d46c made tweaks to the way mese is converted to mesecons. If old mese paradigm is
in use, one default:mese crafts to 18 mesecons wires.  If new paradigm is in
use, cook one mese crystal fragment to get 2 wires, or cook one mese crystal to
get 18, or cook one mese block to get 162.  Avoids conflict with new default
recipe that crafts 9 crystals from one mese block.
2012-12-28 16:51:11 -05: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
Vanessa Ezekowitz
2a061362fb Merge branch 'nextgen' of github.com:Jeija/minetest-mod-mesecons into nextgen 2012-12-27 13:51:36 -05:00
Vanessa Ezekowitz
92122379de added and tweaked textures to improve appearance and tiling of insulated
T-junctions.
2012-12-27 13:50:54 -05: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
Vanessa Ezekowitz
84ad046533 Added a couple of needed textures for curved/corner wires and tweak code to
use them.  Also fixed the "on" state image for wire ends so that it works for
curved wires also.
2012-12-27 12:48:02 -05:00
Vanessa Ezekowitz
cdd9a93da9 revamped textures for all pistons, tweaked thickness of piston pusher 2012-12-27 12:13:40 -05: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
Anthony Zhang
a9a2108d13 Implement /say and /tell commands to aid mapmakers using command blocks. 2012-12-25 14:26:03 -05: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
5e8e003b8c Merge pull request #65 from montyoso/nextgen
now the insulated wires change their color when are turned on
2012-12-21 21:21:39 -08:00
Anthony
6fab716f3e Fix up piston retraction.
The node property is_sticky_piston was applied to piston_up_normal rather than piston_up_sticky.
2012-12-21 20:46:57 -05:00
Andres Eduardo Montoya Cruz
34fa8a1167 now the insulated wires change their color when they are turn on 2012-12-21 20:24:43 -05: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
Anthony Zhang
313a137675 Merge remote-tracking branch 'origin/master' 2012-12-16 15:13:03 -05:00
Anthony Zhang
c50b68cf83 Use a simpler way of detecting up/down piston placement (thanks Jeija). 2012-12-16 15:12:24 -05: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