upsilon
7ba7a5cceb
MapDataStorage: replace "%a" format with "%.17g"
2020-04-29 18:06:17 +02:00
upsilon
f2de7c89b1
MapDataStorage: change serialization in mod storage
...
Use minetest.serialize on the full values table instead of serializing
each value independently and concatenating.
2020-04-29 12:43:29 +02:00
HybridDog
0000cfb474
Remove old vector_extras code and use the MapDataStorage
2020-04-14 08:49:21 +02:00
HybridDog
9aa0e6ab3d
Add MapDataStorage code as replacement for get_data_from_pos etc.
...
In comparison to using Minetest's hash_node_position, this saves additional information about the z-only and zy-only components, which is what the vector_extras code did.
In comparison to the old vector_extras code, this does not create lots of lua tables, which is slow, but instead uses one table as hashmap.
2020-04-14 08:49:21 +02:00
upsilon
54030d1620
Wireless: transmit digilines messages on all channels
2020-04-11 13:01:17 +02:00
upsilon
be7982a453
Major wireless refactor
2020-04-11 12:45:33 +02:00
upsilon
899ea4aa29
Wireless: remove legacy code.
2020-04-09 19:27:11 +02:00
upsilon
8c8cdd38ff
Add mesecons_luacontroller as a dependency to the luacontroller tool.
2020-04-09 19:22:15 +02:00
upsilon
5d29cdce5b
Avoid activating wireless that no longer exist.
2020-04-09 19:21:40 +02:00
upsilon
4dbc96eafa
New digiline interface for the adjustable player detector
...
The name of the detected player can now be requested by sending {command
= "get"} to the detector. The detection radius can be changed by sending
{radius = value}.
2020-04-09 17:02:31 +02:00
upsilon
7cf99da1a5
LuaBlock: Major changes in mod storage usage
...
Data associated to a LuaBlock is redundantly stored in both its metadata
and in the mod storage so that it is not possible to hack a LuaBlock by
changing its metadata or copying it using WorldEdit. This commit changes
how it is done:
* Store full code instead of storing MD5 checksum, which avoids bug
caused by serializing non-ASCII strings using minetest.serialize,
* Also store owner,
* Use `minetest.hash_node_position` instead of deprecated vector_extras
set_data_to_pos etc,
* Remove mod storage data associated with the LuaBlock when destroying
it,
* Create helper functions for manipulating the mod storage in
moremesecons_utils, I will soon update other parts of MoreMesecons as well to use them.
This commit breaks backwards compatibility: previously created LuaBlocks
will have to be reset by opening the formspec and pressing the `Submit`
button.
This commit also fixes an unrelated bug: code in the formspec was not
correctly escaped using minetest.formspec_escape.
2020-04-09 16:25:21 +02:00
upsilon
2b2faeca02
Fix crash when using the playerkiller
...
Fixes #9
2018-08-20 10:42:11 +02:00
upsilon
8a56370ce8
Allow using templates on multiple luacontrollers
...
Fixes #8
Patch submitted by @oiaohm
2018-02-27 16:33:18 +01:00
upsilon
ce9544d2bf
Remove mod storage checks
2017-06-23 13:47:41 +02:00
upsilon
4c81b43032
mesechest: add crafts
2017-06-10 10:11:05 +02:00
upsilon
89b1fe18c5
mesechest: colorize textures
2017-06-09 20:44:25 +02:00
upsilon
ae5a96cb42
Mesechest: make mesechest work with last mt_game version
2017-06-09 20:44:25 +02:00
upsilon
fd21b16c02
Mesechest: limit API functions overwriting
2017-06-09 20:44:25 +02:00
upsilon
6291b4c001
Add the mesechest
2017-06-09 20:44:25 +02:00
upsilon
dbd5c4cf99
Luacontroller tool: add counter and clock templates ( #7 )
2017-06-08 16:33:53 +02:00
upsilon
400e90c9ca
Fix luacontroller tool crash
...
Set "sender" parameter when executing on_receive_fields callback
2017-06-08 16:01:33 +02:00
upsilon
aa2ae82cc2
Merge branch 'AntumDeluge-settings'
2017-06-04 17:56:30 +02:00
Pierre-Adrien Langrognet
d580e0e974
Merge branch 'master' into settings
2017-06-04 17:57:16 +02:00
upsilon
6662f92902
Remove empty file .gitmodules
2017-06-03 15:34:39 +02:00
upsilon
7839aefcdc
Add 'moremesecons_luablock/md5_lua/' from commit 'e8cd75ce397da6dd75ddb37cb07eb31663743223'
...
git-subtree-dir: moremesecons_luablock/md5_lua
git-subtree-mainline: 79e856494a
git-subtree-split: e8cd75ce39
2017-06-03 15:32:33 +02:00
upsilon
79e856494a
Remove md5_lua submodule
...
This prepares re-adding it as a subtree.
2017-06-03 15:32:05 +02:00
upsilon
180167110f
LuaBlock: store md5 checksums
...
This avoids changing the LuaBlock code by setting its metadata.
2017-06-02 14:51:10 +02:00
upsilon
8cac3f8f70
Add a craft for the induction transmitter
2017-05-28 18:02:31 +02:00
upsilon
482dd4df93
Add an induction transmitter
...
This node makes the signal goes two nodes forward instead of one
2017-05-28 15:16:01 +02:00
upsilon
c53ac5b660
Adjustable Blinky Plant: fix very fast blinking before having set an interval + add a minimum interval setting
2017-05-21 19:11:12 +02:00
AntumDeluge
d542d15fa4
Replace deprecated methods:
...
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
2017-05-13 01:52:42 -07:00
AntumDeluge
17ddb23406
Add cornernote's 'craft_guide' mod as optional dependency:
...
Ensures that craft recipes are registered.
Added to the following mods with craft recipes:
- adjustable_blinkyplant
- adjustable_player_detector
- commandblock
- conductor_signalchanger
- dual_delayer
- entity_detector
- igniter
- injector_controller
- jammer
- playerkiller
- sayer
- signalchanger
- switchtorch
- teleporter
- timegate
- wireless
2017-05-13 10:45:08 +02:00
AntumDeluge
3e327c0172
Ignore Eclipse project files & directories
2017-05-13 10:37:34 +02:00
upsilon
e1d2e84746
LuaBlock: don't set the function environment + remove created pos global
2017-05-02 18:26:09 +02:00
upsilon
abe8368e32
Make the mod working with current stable release
2017-05-02 18:11:24 +02:00
upsilon
8c267be40d
luablock: add a "pos" table in env containing the LuaBlock position
2017-05-01 12:52:05 +02:00
upsilon
f44bdbfb36
Remove a debug message
2017-04-27 18:19:16 +02:00
upsilon
ae9935fcca
Wireless: make an "on" version of the wireless node
...
This avoids self-activating bugs
2017-04-27 18:15:47 +02:00
upsilon
5422017493
Wireless: avoid inserting numerous times same wireless in wireless table
2017-04-27 17:42:59 +02:00
upsilon
b403e6e9ab
Wireless: bugfixes
2017-04-27 17:01:35 +02:00
upsilon
9b61effa60
Attemps to fix a strange server freeze, probably due to the wireless
...
No debug log...
2017-04-27 15:59:19 +02:00
upsilon
1d651b3811
Rename "Temporary gate" into "Time gate"
2017-04-24 21:12:46 +02:00
upsilon
8ac9b40cf6
Add the LuaBlock
2017-04-24 11:06:59 +02:00
upsilon
aa54d34b5a
Fix switchtorch craft
...
Use moremesecons_switchtorch:switchtorch_off instead of moremesecons_switchtorch:switchtorch_on
2017-04-23 17:45:58 +02:00
upsilon
eebb82f48b
Fix unworking wireless when the wireless LBM is enabled
2017-04-22 21:17:06 +02:00
upsilon
23dd415bbe
Wireless: add owners to wireless + optimize ?
...
Channels are linked together only if the owner is the same.
The mod storage upgrading function is untested.
2017-04-21 13:56:37 +02:00
upsilon
d8c859a162
Define vector_extras functions in moremesecons_utils
...
if vector_extras is not loaded
Loading vector_extras is still recommended because its functions may be more up-to-date.
2017-04-19 21:41:10 +02:00
upsilon
66ccf8af3b
adjustable player detector: increase detection radius formspec field width
...
So the label can be entirely read
2017-04-19 20:56:30 +02:00
upsilon
c79bc86666
Rotate dual delayer, signal changer and conductor signal changer
2017-04-19 20:53:18 +02:00
upsilon
a68e7cb45b
settingtypes.txt: add a setting for jammer LBM
2017-04-19 20:52:50 +02:00