Commit Graph

840 Commits

Author SHA1 Message Date
ShadowNinja
cd30aed807 Fix #136 by always running commands as the placer 2014-01-11 11:42:23 -05:00
ShadowNinja
76b9198717 Revert "Remove command block until #136 is fixed"
This reverts commit 3f76b77001.
2014-01-11 11:42:23 -05:00
Jeija
d066b91632 Fix infinite priority bug in mesecon:turnoff, thanks to Novatux 2014-01-11 16:48:25 +01:00
Jeija
1083539e9b Resume turnon/off calls as soon as area is loaded in case turnon/off calls end in unloaded territory 2014-01-11 16:46:27 +01:00
Jeija
6afded8284 Fix unloaded area in receptor_off, yet it was only fixed in receptor_on 2014-01-11 16:18:35 +01:00
Jeija
ff5e315325 Fix ActionQueue delays 2014-01-11 15:36:30 +01:00
Jeija
f1211f7dae Add ActionQueue priority system
This makes effectors nearer to the source of the action (the receptor) update first.

This defines behaviour for this piston circuit: http://i.imgur.com/9Pp2Mzb.png
And defines, that this memory circuit does not work from this direction: http://i.imgur.com/jJn0aFh.png
But it will work when using the switch from the other side: http://i.imgur.com/nvw0oZB.png

Only if two effectors have the same distance, there is nothing we can do about it, behaviour is not defined.
"Distance" is determined by the stack size of recursions in turnon / turnoff.
Priorities are between 0 (lowest) and 1 (highest).
2014-01-11 14:57:56 +01:00
Jeija
93fb489bdb Fix the bugs spotted by Novatux - thanks for spotting them 2014-01-11 08:57:21 +01:00
Novatux
f1ae54ed12 Try to fix gateswith serverstep code. 2014-01-11 07:24:42 +01:00
Jeija
7517cc4af1 Add dummy mesecons_commandblock/init.lua as we keep the textures in that folder 2014-01-10 23:13:07 +01:00
Jeija
c067e52714 Merge pull request #138 from ShadowNinja/split_textures
Move textures into their mods
2014-01-10 14:10:20 -08:00
Jeija
2d004b19ea First draft of some kind of Action Queue (just like the globalstep queue in to_update), but more flexible and also including delay functionality (mesecon_delayer).
The queue is also saved to a file, so that when restarting mesecons, delayers resume to the state they had when the game shut down. Needs testing.
2014-01-10 22:33:40 +01:00
ShadowNinja
de6dd30745 Move textures into their mods 2014-01-10 13:13:02 -05:00
Jeija
3f76b77001 Remove command block until #136 is fixed 2014-01-09 17:39:59 +01:00
Novatux
5e02b3beef Fix a few bugs that caused effectors not to turn off sometimes (rules_link is evil!) 2014-01-05 13:51:09 +01:00
Jeija
39361fb719 Merge pull request #133 from Novatux/master
Use swap_node instead of add_node when replacing conductors.
2014-01-05 01:01:53 -08:00
Novatux
9c2a5c313c Use swap_node instead of add_node when replacing conductors. 2014-01-05 09:52:06 +01:00
Novatux
fb417d45a7 Fix when there are several rules with different specials 2014-01-04 17:22:04 +01:00
Novatux
b3f3692622 Fix crash if metarule not found 2014-01-04 16:51:52 +01:00
Novatux
ae557d1cd4 Fixes with multi-conductors that have special connects 2014-01-04 15:52:52 +01:00
Novatux
d5b39951a4 Fix bugs with multi-rules conductors (like crossing) that have param2 2014-01-04 14:15:41 +01:00
Novatux
b0f81a8c62 Add mesecon:register_on_mvps_move, fix mesecon:mvps_pull_all 2014-01-03 11:04:19 +01:00
Uberi
d9cc1d5aa1 Vertical wire update. 2013-12-18 15:14:03 -05:00
Uberi
e8d31c3e5a Change field receipt handling to work properly with Minetest 0.4.8. 2013-12-18 14:54:46 -05:00
Anthony
85f2f3f742 Merge pull request #126 from qwrwed/master
change on_punch to on_rightclick, make disabled blinky plants drop norma...
2013-12-02 10:43:10 -08:00
qwrwed
711c73a197 change on_punch to on_rightclick, make disabled blinky plants drop normal ones 2013-12-02 17:50:00 +00:00
Uberi
16b4b79c51 Update code to standards of Minetest 0.4.8. 2013-11-30 22:13:00 -05:00
Uberi
b4654cedb7 Compat shim for minetest.swap_node, lightstone conducts from the bottom. 2013-11-30 21:23:58 -05:00
Vanessa Ezekowitz
3105ae7084 Merge branch 'master' of github.com:Jeija/minetest-mod-mesecons 2013-11-30 20:45:38 -05:00
Vanessa Ezekowitz
f12206acc6 Remove "disabled" blinkyplant from inventory 2013-11-30 20:45:10 -05:00
Uberi
f479dd27d5 Fix vertical wire drops. 2013-11-30 20:44:33 -05:00
Vanessa Ezekowitz
f46bc329de Use minetest.swap_node() instead of mesecons' version, Minor code changes
here and there to facilitate this.
2013-11-30 20:34:55 -05:00
Vanessa Ezekowitz
669e3d0880 use 'wood' group for crafting pistons, pressure plates, and noteblocks 2013-11-30 19:07:12 -05:00
VanessaE
2d0ff5e2ac Merge pull request #124 from qwrwed/master
Make blinkyplants toggleable
2013-11-29 14:44:51 -08:00
qwrwed
33de6fad55 Make blinkyplants toggleable 2013-11-29 22:06:50 +00:00
Jeija
9ab0d9deb2 Update Microcontroller Tutorial and add .odt source for the .pdf 2013-09-08 11:38:01 +02:00
Jeija
c3082f6601 Add LICENSE.txt
LGPLv3 for code,
CC-BY-SA-3.0 for everything else
This should makes it easier for packagers of distributions
2013-09-07 23:20:17 +02:00
Jeija
09be8af517 Upgrade CC-BY-SA License to 3.0
Permitted according to section 4b of CC-BY-SA-2.0:
"a later version of this License with the same License Elements as this License"
2013-09-07 23:15:21 +02:00
khonkhortisan
75ca00f51e Escape microcontroller code in formspec 2013-08-29 14:14:04 -07:00
VanessaE
d0fdefb5a6 Merge pull request #119 from VanessaE/master
Give crossing proper textures
2013-08-27 22:42:21 -07:00
Vanessa Ezekowitz
5516ca58e9 Give crossing proper textures 2013-08-28 01:26:00 -04:00
khonkhortisan
913e355a71 Merge pull request #112 from khonkhortisan/multi_rules
Multi rules
Merged for near-future textures to be merged cleanly.
2013-08-27 22:22:30 -07:00
Anthony Zhang
96011bc718 Audit code for possible nil value indexing with unregistered nodes. 2013-06-22 15:43:58 -04:00
Anthony Zhang
ec63bd3abf Merge remote-tracking branch 'refs/remotes/origin/master' 2013-06-22 15:39:01 -04:00
khonkhortisan
d15e3eedb0 Descend µ in comment 2013-06-22 09:11:06 -07:00
khonkhortisan
885899cbaf Crossover 2013-06-20 09:30:26 -07:00
Novatux
6efe579f68 Fix pistons not updating the nodes when placing them again. 2013-06-15 19:15:43 +02:00
khonkhortisan
4f2604e01b mesecon:rules_link nil return rule
Fixes https://github.com/Jeija/minetest-mod-mesecons/issues/108
2013-06-10 18:29:40 -07:00
Anthony Zhang
c87bc60635 Support cyclic references in luacontroller memory tables, prohibit usage of goto statement (bugs reported by Nore). 2013-06-10 16:40:34 -04:00
Anthony Zhang
8ea71a9036 Fix bug where functions in Luacontroller EEPROM crashes the server (fixes #107). 2013-06-06 16:38:40 -04:00