Commit Graph

868 Commits

Author SHA1 Message Date
Jeija
6b54f025c1 Merge branch 'playerdetector_update' of https://github.com/HybridDog/minetest-mod-mesecons into HybridDog-playerdetector_update 2016-02-14 13:41:48 +01:00
Jeija
c98805a5b5 Merge branch 'fix_pistons' of https://github.com/HybridDog/minetest-mod-mesecons into HybridDog-fix_pistons 2016-02-14 12:55:18 +01:00
Auke Kok
fb4c440265 Doors: Use new mesh door API if available
I've implemented a new door API in minetest_game that
performs all the needed things to assure doors are
properly openend and closed, without mods needing to
know the inner details of what needs to be done.

Mesecons can just fetch a reference to the door object
and call the appropriate open or close method, which
simplifies this code a lot.

For compatibility, this code retains the old code path
and tests whether the new API is available, so this
code remains functional if the new API is not available.

Since the metal trapdoor was only recently added, I added
it to the new API codepath only, it's unlikely to be
present on older versions of minetest_game anyway.

As a benefit from the new door API, there is now
absolutely no more accidental switching closed trapdoors
to open on power off, which could happen with the
old method - since that was just a simple toggle.
2016-02-14 11:30:52 +01:00
HybridDog
cf45e24c57 this way it works better because unknown nodes may not stay unknown 2016-02-09 16:58:49 +01:00
HybridDog
3f00c1d1cb fix pistons not working in every buildable_to node 2016-02-09 11:32:09 +01:00
HybridDog
c1d0481f8f playerdetector: short code and don't get scanname for every object 2016-01-03 14:56:32 +01:00
Jeija
f56c4ce35c Merge branch 'HybridDog-noteblock_update' 2016-01-02 23:01:08 +01:00
HybridDog
0ec503f32c Noteblock: Code cleanup 2016-01-02 22:58:08 +01:00
Carter Kolwey
35b647ed4a Add os.datetable(), a (very) limited wrapper for os.date(). Fixes #246. 2016-01-02 01:13:38 -06:00
Jeija
eab09b9d73 Merge branch 'sofar-sound' 2015-12-29 22:20:42 +01:00
Auke Kok
2682d09291 Fix sound volume level of noteblock.
Playing stereo sounds positionally in OpenAL causes it to play
the sounds unattenuated - same volume for all distances. This
shouldn't happen, and makes noteblocks unneccesarily loud from
very far away.

Convert all noteblock samples to mono, 22kHz 64kbit.
2015-12-26 22:41:16 -08:00
Jeija
a6b28d1f11 Gates: Update nor gate craft recipe, fixes #243 2015-12-15 22:25:39 +01:00
Jeija
0ec771bf7d Major change: Documentation is now included with mesecons, the website just extracts the documentation in a more readable format
This makes development of new features easier, as documentation can automatically be updated on the website without modifying the website's code!
Every mod that has nodes in the mesecons modpack has a "doc" folder that contains subfolders with recipe, description and preview of the block. The website will discover which documentation is available
by reading the documentation.json file.
2015-11-20 20:14:50 +01:00
Jeija
75bd081a67 Gates: Add OR and NOR gate 2015-11-20 20:13:59 +01:00
Jeija
b89fe52469 Luacontroller: Add configurable size limit for mem table, 100kBytes by default, fixes #240
If size limit is exceeded, the luacontroller overheats. Overheating will cause the memory
to be erased.
2015-10-18 11:28:35 +02:00
Jeija
97f7b5745f Remove trailing whitespace 2015-10-04 13:30:34 +02:00
Jeija
24958e253b Revert "Do not send action_off signal when newly placing nodes"
This caused #238, reverting that commit fixes #238.

This reverts commit 30468b09cf.
2015-10-04 12:30:04 +02:00
Jeija
0e7f68ea92 Doors: Use new sound name (fixes #236) 2015-10-04 12:21:35 +02:00
Florian Euchner
6ef3b965df Merge pull request #239 from beyondlimits/master
Use right mouse button instead of left to press button and change state of switch and lever.
2015-10-04 12:09:15 +02:00
Marcin
6e326a6a03 Use right mouse button instead of left to press button and change state of switch and lever. 2015-10-01 19:13:12 +02:00
Vanessa Ezekowitz
d95ccf86f8 update "sticky block" to use 0.4.13-style footprints 2015-08-25 20:23:23 -04:00
Jeija
d0354d0dab Fix #234 2015-07-27 11:51:02 +02:00
Vanessa Ezekowitz
fec43a3243 reworked hydroturbine model for the same reasons
also shrunk the base part down by a very tiny amount to help avoid z-fighting with neighboring
water (scaled to 0.9995 percent)
2015-05-20 03:40:59 -04:00
Vanessa Ezekowitz
5612f84243 revamp wall lever models
corrected misaligned verticies, removed doubles, made better UV maps that use multiple
materials (allows to use multiple small textures)
2015-05-20 03:00:06 -04:00
Florian Euchner
3066346d75 Merge pull request #233 from technomancy/default-light-max
Don't refer to LIGHT_MAX global; use default.
2015-05-11 07:08:24 +02:00
Phil Hagelberg
52ea2c3c66 Don't refer to LIGHT_MAX global; use default.
The LIGHT_MAX global is created in the legacy.lua file in the default
mod; it states that it's there for backwards compatibility, but it would
be better to reference the proper value inside the default table.
2015-05-11 11:28:56 +07:00
Jeija
b6ae419b00 Return if invalid parameters are given to node_detector_scan (e.g. unloaded area), should fix #228 2015-03-26 07:29:34 +01:00
Jeija
a6d0a523ba Add support for sticky blocks for pistons and a a sample sticky block 2015-02-28 13:42:39 +01:00
Jeija
aa5538a734 Fix pressure plates calling receptor_on on a regular basis 2015-02-25 21:01:00 +01:00
Jeija
eb416475cc Re-add mesecon.register_mvps_unmov(objectname) since other mods (pipeworks) are using it 2015-02-19 14:27:20 +01:00
Jeija
1ee3b2107d Fix movestones sometimes not starting to move again when they are at the
end of the wire
2015-02-17 20:02:24 +01:00
Jeija
1df6e5a03b Rewrite movestones, make them nodes instead of entities 2015-02-14 13:35:50 +01:00
Florian Euchner
b7076e635c Merge pull request #222 from MT-Modder/stoppers-2
Register only locked nodes as stoppers
2015-02-14 09:22:56 +01:00
MT-Modder
6d9f44455c Register only locked nodes as stoppers
This was suggested here:
https://github.com/Jeija/minetest-mod-mesecons/pull/216
2015-02-13 23:58:36 -05:00
Jeija
8bf5b7d0e4 Fix #219, do not try to override unregistered doors 2015-02-14 00:02:19 +01:00
Florian Euchner
14281a1bd4 Merge pull request #221 from MT-Modder/remove-from-group
Remove insulated t-junction and crossover from craftable group
2015-02-13 23:51:42 +01:00
MT-Modder
1d93a51f6e Remove insulated t-junction and crossover from craftable group 2015-02-13 17:02:09 -05:00
Jeija
639fc8988e Fix onstate sticky piston drop: Must be sticky instead of normal piston
Thanks to HybridDog for spotting that
2015-02-05 20:26:51 +01:00
Florian Euchner
a9ec0a10c0 Merge pull request #216 from MT-Modder/mvps-additions
Register chests and bookshelves as stoppers
2015-02-05 16:23:58 +01:00
Vanessa Ezekowitz
775d250112 Add meshes for water turbine and and wall lever instead of nodeboxes
Adjust textures and inventory images to it
2015-02-05 15:40:08 +01:00
MT-Modder
3c06da7908 Register chests and bookshelves as stoppers 2015-02-05 00:57:33 -05:00
C1ff
11cf727bfb Added more sounds to noteblocks, see the documentation on http://mesecons.net for more information 2015-02-04 19:45:17 +01:00
Jeija
30468b09cf Do not send action_off signal when newly placing nodes, this didn't
cause any bugs, but unneccessary sounds (experimental change)
2015-02-03 20:07:58 +01:00
Jeija
a895715720 Prepare trapdoors code for merging, make trapdoors always toggle their
state when the mesecons signal changes, no matter what state they're in
2015-02-03 18:10:49 +01:00
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