summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-21Send changesignals for placed receptors when not powered, make on_placenode ↵Jeija
code more readable with comments. Also fixes a bug of lua- / microcontrollers not being updated when pushed by a piston. This could cause some bugs, even though I haven't found any while testing as it is a very core part of mesecons.
2014-03-20Merge pull request #141 from ShadowNinja/commandblock_textareaJeija
Use a textarea for the commandblock to accept multiple commands
2014-03-20Merge pull request #134 from Novatux/masterJeija
Fix a few bugs that caused effectors not to turn off sometimes
2014-03-19Fix #146Jeija
2014-03-19Fix #83 (experimental)Jeija
Why did we actually put the update action in a queue again? Whatever issue it that was for, I couldn't reproduce it. Propably the ActionQueue fixed that...?
2014-03-19Remove timer() from LuaController and make interrupt() use the ActionQueue ↵Jeija
so that it will keep working when restarting the server
2014-03-19Improve and clean up luacontroller digiline_send on globalstep featureJeija
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-11Use a textarea for the commandblock to accept multiple commandsShadowNinja
2014-01-11Fix #136 by always running commands as the placerShadowNinja
2014-01-11Revert "Remove command block until #136 is fixed"ShadowNinja
This reverts commit 3f76b77001512a7b71a8c81c181f78729c34e0d0.
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-05Fix a few bugs that caused effectors not to turn off sometimes (rules_link ↵Novatux
is evil!)
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