Commit Graph

774 Commits

Author SHA1 Message Date
MT-Modder
94604e890c Add trapdoor to mesecons_doors 2015-02-02 19:20:44 -05:00
Florian Euchner
ac0e062281 Merge pull request #211 from MT-Modder/master
Use dye for lightstone recipes
2015-01-23 19:38:57 +01:00
Jeija
562cee7438 Rewrite doors:
* Enable glass and obsidian glass doors to be used with mesecons
* Doors can receive signals from a vertical wire placed two
  blocks beneath them, use this to create mesecon-controlled
  double doors
* Fix textures for both git upstream and stable minetest_game
* Shrink code size
* Rename mesecons_compatibility to mesecons_doors.
2015-01-22 17:27:29 +01:00
MT-Modder
a33859574c Use dye for lightstone recipes - for balance 2015-01-21 13:45:27 -05:00
Florian Euchner
09bb11d3e5 Merge pull request #210 from MT-Modder/master
Fix doors texture names
2015-01-21 06:51:46 +01:00
MT-Modder
cb598cbe18 Fix doors texture names 2015-01-20 16:13:50 -05:00
Florian Euchner
aed4d3997b Merge pull request #208 from MT-Modder/master
Use group:sapling for power plant, blinky plant recipes
2015-01-20 21:27:48 +01:00
MT-Modder
1509510262 Use group:sapling for all recipes 2015-01-20 13:28:44 -05:00
Florian Euchner
d6b53a2962 Merge pull request #202 from dora71/master
Silicon production from normal and desert sand
2015-01-12 18:41:40 +01:00
Rainer
eb3ad9e537 Update init.lua
Ability to produce silicon either from "normal" sand or from desert sand.
2015-01-12 09:53:10 +01:00
Florian Euchner
3c82e2fc3a Merge pull request #199 from 163140/master
Allow using any node in group:sapling for making glue
2015-01-09 15:43:18 +01:00
163140
f02ccdfa5d Making glue from any sapling
Moretree and Ethereal mods add a lot of saplings
2015-01-09 11:54:32 +00:00
Jeija
80648b6c14 Fix #198 by adding gates to the "overheat" group 2015-01-03 14:04:18 +01:00
Jeija
adb803ce17 **This commit changes functionality**, please read
Remove legacy code that enabled / disabled mesecon wires that were placed 2 blocks below a
pressure plate. From now on, please place a vertical wire at that place. That way, no false
signals will be triggered (the wire won't "flash" turned off if you enable it by a pressure
plate and turn off a switch connected to it).
If you depend on this functionality, please just revert this commit. That should be possible in
the near future as well, since no major rewrites are planned for mesecons_pressureplates. In the
long run, please update your mesecon strucutres to use vertical wires instead of relying on this
old hack.
2015-01-03 10:12:20 +01:00
Jeija
dca4706c7f Fix #197, doesn't remove the legacy code that triggered it though 2015-01-03 10:12:12 +01:00
Jeija
011543a782 Fix #196, removes soft-depend on commonlib 2014-12-20 10:11:12 +01:00
Jeija
b3aa8f5d13 Fix receiver looks, fixes #195, thanks to MT-Modder for reporting 2014-12-06 17:24:34 +01:00
Jeija
c326dc221a Rewrite Logic Gates: Makes it super-easy to add new gates and cleans up code
Fix bugs in the Luacontroller (when placing, false input pin values were given) and fix variables
leaking into the global environment in pistons.
2014-11-29 15:08:37 +01:00
Jeija
d2373eb605 Don't trigger an "off" event to itself when luacontroller turns a port off
I hope this doesn't break anyone's setup.
2014-11-29 10:56:09 +01:00
Jeija
2a51e40af9 Fix luacontroller: attempt to perform arithmetic on global 'print_count' (a nil value) 2014-11-25 19:53:29 +01:00
Jeija
4bd9d2a9ec Merge branch 'improve-luacontroller'
However, without the print_count limiting functionality

Conflicts:
	mesecons_luacontroller/init.lua
2014-11-25 17:36:52 +01:00
Jeija
f69caba036 Fix movestone to wire connection looks 2014-11-25 17:08:46 +01:00
Jeija
e74241f4aa Fix onstate switch appearing the the creative inventory 2014-11-23 16:13:28 +01:00
Jeija
f388dc475a Fix luacontroller interrupts not working if no iid is supplied 2014-11-23 10:59:51 +01:00
Jeija
fb695e9c1c Fix #189, clean code and update documentation 2014-11-23 09:43:24 +01:00
Jeija
fc4d675b84 Fix crafting with the default mesecon wire 2014-11-22 23:20:29 +01:00
Jeija
085b4d8bb7 Fix burnt luacontroller, nodebox + crash 2014-11-22 23:14:45 +01:00
Jeija
0e3aa57ed3 Merge branch 'improve-luacontroller' of https://github.com/ShadowNinja/minetest-mod-mesecons into ShadowNinja-improve-luacontroller
Conflicts:
	mesecons/legacy.lua
	mesecons_luacontroller/init.lua
	mesecons_microcontroller/init.lua
2014-11-22 23:04:34 +01:00
Jeija
a814abd1e0 Merge branch 'doorsounds' 2014-11-22 22:43:12 +01:00
Florian Euchner
fb5c9edaf4 Merge pull request #156 from HybridDog/ov_it
Use minetest.override_item to redefine mese
2014-11-22 22:30:31 +01:00
Jeija
f977ac821a Re-implement settings system:
Settings can now be retrieved by mesecon.setting(<name>, <default>) and can be modified without
editing the source code by adding the setting to minetest.conf
For instance, you can add mesecon.blinky_plant_interval = 0.5 to minetest.conf in order to
increase the blinking speed.
Rewrite the blinky plant with nodetimers.
Fixes #161
2014-11-22 22:09:26 +01:00
Jeija
80d136125e Fix bug in mesecon.find_receptor that caused false turnoffs and rewrite lever +
switch
2014-11-22 20:49:54 +01:00
Jeija
a550323fea Fix compatibility with not yet updated mods that use mesecon:receptor_* 2014-11-22 20:05:36 +01:00
Jeija
d19e975955 Use iterative algorithm for mesecon.find_receptor_on, major performance improvement for large
circuits.
This also fixes a crash introduced with the previous commit that occured when placing a wire
crossing.
2014-11-22 17:12:48 +01:00
Jeija
29dc50057c Fix bug in mesecon.mergetable that caused false rules 2014-11-22 16:00:49 +01:00
Jeija
5be179bf11 Replace mesecon:<some_function> with mesecon.<some_function> for greater
flexibility and because it was never inteded to be OOP in the first
place.

mesecon.receptor_on and mesecon.receptor_off are provided by wrappers
(mesecon:receptor_on/off) for compatibility, but will be removed. Mod
programmers that use mesecons: Please update!

Also, fix microcontroller polluting the global namespace and remove some
deprecated stuff.
2014-11-22 15:42:22 +01:00
Jeija
ffacbfde5a Use an iterative algorithm for turnon() and turnoff(), fixes #160
This may also bring some performance benefit.
2014-11-22 14:47:18 +01:00
Jeija
b5cc933287 Pressure plates and the object detector will send power to vertical
wires 2 nodes below them, allows to hide circuitry powered by them.
Fixes #179
Rewrite pressure plates + vertical wires using mesecon.register_node.
2014-11-22 12:30:39 +01:00
Jeija
194155fff8 Rewrite mesecon wires. This should increase the efficiency and speed of
large machines.

It also makes the wires.lua code easier to understand and more
maintainable. In case any other mod depends on
mesecon:update_autoconnect, please update it to use
mesecon.update_autoconnect. This should also fix some other minor bugs.
Please report bugs if this commit creates new ones.

This commit changes wire looks and removes some unneccesary textures.
2014-11-22 11:40:58 +01:00
Jeija
87bfbb4de9 Fix #183, noteblock now uses default drawtype 2014-11-21 22:07:21 +01:00
Jeija
1b9f1b8c13 Fix #182, bug when placing wire crossings next to a powered source
In case this fix creates new bugs, please report them.
2014-11-21 22:05:35 +01:00
Jeija
dcf1f799c5 Fix #184, Fix #186, Fix #187
Just some minor issues like dead code.
2014-11-21 21:43:28 +01:00
ShadowNinja
bd1766e448 Improve the LuaController
Changes:
  * Stops code after a certain number of instructions.
  * Allows functions, due to instruction counting.
  * Allows loops and goto with non-JIT Lua (LuaJIT doesn't count looping as an instruction, allowing infinite loops), due to instruction counting.
  * Removes string matching functions as they can be slow.
  * Adds some safe functions.
  * Limits the amount of printing that can be done (to prevent console flooding).
  * Code cleanup.
  * More...
2014-10-07 17:09:25 -04:00
Vanessa Ezekowitz
d325292291 use the right mesecon:receptor_* call for on/off blinkyplant 2014-09-01 21:12:11 -04:00
Vanessa Ezekowitz
1ebd50ac75 use one ABM for blinkyplant instead of two.
using two ABMs allows the engine to desynchronize them, which makes the
duty cycle unpredictable.
2014-09-01 21:01:35 -04:00
Martin Doege
1908a225f9 add door sounds from minetest_game 2014-07-14 20:43:06 +02:00
Anthony Zhang
0c62545a3a Merge pull request #168 from ShadowNinja/fix-commandblock-quit
Fix the commandblock's check for quiting the formspec
2014-07-12 16:39:06 -04:00
Vanessa Ezekowitz
e88e213183 Merge branch 'master' of github.com:Novatux/minetest-mod-mesecons 2014-06-08 13:06:45 -04:00
Novatux
63998fd7e7 Localize a few variables, add "GET" command to node detector. 2014-06-08 19:02:15 +02:00
Vanessa Ezekowitz
13432ac87c Merge branch 'master' of github.com:Novatux/minetest-mod-mesecons 2014-06-08 10:28:57 -04:00