summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-16Merge branch 'digiline-non-reentrant' of ↵Jeija
https://github.com/CiaranG/minetest-mod-mesecons into CiaranG-digiline-non-reentrant Conflicts: mesecons_luacontroller/init.lua
2014-03-16Merge pull request #152 from CiaranG/timerJeija
Add timer() function/event (node timer based) to luacontroller
2014-03-11Add timer() function/event (node timer based) to luacontrollerCiaran Gultnieks
This adds a timer(<seconds>) function, which causes an event of type "timer" to be fired after that many seconds has elapsed. Because it's node timer based, it works properly across server restarts and block unloading. Thus, simplest example, a blinky plant replacement with a 10 second period: if event.type == "program" then timer(10) elseif event.type == "timer" then port.a = not port.a timer(10) end
2014-03-11Merge pull request #151 from CiaranG/lua-formspecAnthony
Handle luacontroller formspec events correctly
2014-03-11Handle luacontroller formspec events correctlyCiaran Gultnieks
Example of problem fixed by this: Edit lua code, press Execute. Now (execute button has focus), hold down a key. Zillions of "program" events are generated.
2014-03-11Send digiline messages after luacontroller executionCiaran Gultnieks
In the same way as for port settings, this queues up digiline messages sent during the luacontroller's execution, and sends them afterwards. This solves many problems, but one example: 1. Send a message, and receive a reply from another device. 2. While handling the reply event (effectively a nested invocation on the same luacontroller) make a change to memory 3. Notice that the memory change has no effect, because after completion of the reply handling, it stores the memory, but then the original invocation completes and overwrites it with it's own earlier copy of the same memory.
2014-02-16Merge pull request #148 from CiaranG/upperJeija
Add missing string.upper to luacontroller
2014-02-16Add missing string.upper to luacontrollerCiaran Gultnieks
2014-01-19Fix #140 by adding a save button to the Player DetectorJeija
2014-01-19Merge branch 'actionqueue'Jeija
This introduces the ActionQueue, a new kind of MESECONS_GLOBALSTEP. Circuits using delayers will now resume when restarting the server. Also, large circuits should automatically resume if parts of them are in unloaded chunks. Old circuits e.g. using gates will not resume when mesecons is updated, which means you have to restart them once. But after that, it should work just like it used to. This will fix a lot of stuff but may also introduce some new bugs. So please report them!
2014-01-19Fix delayers and disable resuming if not using MESECONS_GLOBALSTEPJeija
2014-01-11Merge pull request #144 from Novatux/gates-fixJeija
Fix gates with serverstep code. Let's give that a try.
2014-01-11Merge pull request #142 from Novatux/actionqueueJeija
Action Queue bugfixes by Novatux
2014-01-11Make receptor_on/off overwritable, fix a serious bug.Novatux
2014-01-11Actionqueue tweaksJeija
2014-01-11Turnon/turnoff overwritableJeija
2014-01-11Fix infinite priority bug in mesecon:turnoff, thanks to NovatuxJeija
2014-01-11Resume turnon/off calls as soon as area is loaded in case turnon/off calls ↵Jeija
end in unloaded territory
2014-01-11Fix unloaded area in receptor_off, yet it was only fixed in receptor_onJeija
2014-01-11Fix ActionQueue delaysJeija
2014-01-11Add ActionQueue priority systemJeija
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-11Fix the bugs spotted by Novatux - thanks for spotting themJeija
2014-01-11Try to fix gateswith serverstep code.Novatux
2014-01-10Add dummy mesecons_commandblock/init.lua as we keep the textures in that folderJeija
2014-01-10Merge pull request #138 from ShadowNinja/split_texturesJeija
Move textures into their mods
2014-01-10First draft of some kind of Action Queue (just like the globalstep queue in ↵Jeija
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-10Move textures into their modsShadowNinja
2014-01-09Remove command block until #136 is fixedJeija
2014-01-05Merge pull request #133 from Novatux/masterJeija
Use swap_node instead of add_node when replacing conductors.
2014-01-05Use swap_node instead of add_node when replacing conductors.Novatux
2014-01-04Fix when there are several rules with different specialsNovatux
2014-01-04Fix crash if metarule not foundNovatux
2014-01-04Fixes with multi-conductors that have special connectsNovatux
2014-01-04Fix bugs with multi-rules conductors (like crossing) that have param2Novatux
2014-01-03Add mesecon:register_on_mvps_move, fix mesecon:mvps_pull_allNovatux
2013-12-18Vertical wire update.Uberi
2013-12-18Change field receipt handling to work properly with Minetest 0.4.8.Uberi
2013-12-02Merge pull request #126 from qwrwed/masterAnthony
change on_punch to on_rightclick, make disabled blinky plants drop norma...
2013-12-02change on_punch to on_rightclick, make disabled blinky plants drop normal onesqwrwed
2013-11-30Update code to standards of Minetest 0.4.8.Uberi
2013-11-30Compat shim for minetest.swap_node, lightstone conducts from the bottom.Uberi
2013-11-30Merge branch 'master' of github.com:Jeija/minetest-mod-meseconsVanessa Ezekowitz
2013-11-30Remove "disabled" blinkyplant from inventoryVanessa Ezekowitz
2013-11-30Fix vertical wire drops.Uberi
2013-11-30Use minetest.swap_node() instead of mesecons' version, Minor code changesVanessa Ezekowitz
here and there to facilitate this.
2013-11-30use 'wood' group for crafting pistons, pressure plates, and noteblocksVanessa Ezekowitz
2013-11-29Merge pull request #124 from qwrwed/masterVanessaE
Make blinkyplants toggleable
2013-11-29Make blinkyplants toggleableqwrwed
2013-09-08Update Microcontroller Tutorial and add .odt source for the .pdfJeija
2013-09-07Add LICENSE.txtJeija
LGPLv3 for code, CC-BY-SA-3.0 for everything else This should makes it easier for packagers of distributions