18 Commits

Author SHA1 Message Date
a32f2a2977 Merge remote-tracking branch 'upstream/master' 2024-09-15 09:29:10 +02:00
db6918297c Merge remote-tracking branch 'upstream/master' 2023-11-23 00:12:31 +01:00
f845984b92 Merge remote-tracking branch 'upstream/master' 2023-06-07 22:06:40 +02:00
708c8ea8df Merge remote-tracking branch 'upstream/master' 2022-08-26 15:18:50 +02:00
4ca2bc66b4 Merge branch 'github' 2022-06-30 11:16:58 +02:00
1b59b12363 Delete depends.txt, add mod.conf 2022-06-30 10:43:28 +02:00
c77698d1fe Merge remote-tracking branch 'upstream/master' 2021-06-20 17:20:11 +02:00
27f6967614 Merge remote-tracking branch 'upstream/master' 2021-04-17 13:52:31 +02:00
77587418cb Merge branch 'github' 2021-04-07 01:02:18 +02:00
b24c64116a Fix possible crash and wireless receptors in unloaded map blocks 2021-04-07 00:29:34 +02:00
b9d8cb03f2 Fix wireless receptors not triggering in unloaded map blocks 2021-04-06 23:56:34 +02:00
a9febb7572 Fix crash 2021-04-06 18:59:02 +02:00
90be91e9d6 Merge remote-tracking branch 'github/hybriddog/warning_fixes' 2021-04-06 16:26:03 +02:00
ba31d9e663 test for the use_texture_alpha_string_modes feature 2021-03-15 14:46:06 +01:00
a7f8e2e98b Merge remote-tracking branch 'upstream/hybriddog/warning_fixes' 2021-03-12 12:35:05 +01:00
28411dd7e9 Merge remote-tracking branch 'upstream/master' 2021-03-12 12:34:26 +01:00
e162cabae4 Use opaque use_texture_alpha for the timegate and dual_delayer
This avoids warnings shown by Minetest and improves the nodes' look when a bilinear filter is enabled.
Since the textures are also used as inventory images, I didn't remove the transparency from the texture files.
2021-03-11 12:57:45 +01:00
23b96b9db6 Ajoute messages de chargement des mods dans le journal "action" 2018-12-31 17:26:41 +01:00
30 changed files with 58 additions and 23 deletions

View File

@ -64,3 +64,5 @@ minetest.register_craft({
recipe = { {"mesecons_blinkyplant:blinky_plant_off"},
{"default:mese_crystal_fragment"},}
})
minetest.log("action", "[moremesecons_adjustable_blinky_plant] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_adjustable_blinkyplant
depends = mesecons,moremesecons_utils,default
depends = mesecons,moremesecons_utils
optional_depends = craft_guide

View File

@ -2,8 +2,6 @@
-- Detects players in a certain radius
-- The radius can be changes by right-click (by default 6)
local MAX_RADIUS = moremesecons.setting("adjustable_player_detector", "max_radius", 16, 0)
local function make_formspec(meta)
meta:set_string("formspec", "size[9,5]" ..
"field[0.3, 0;9,2;scanname;Comma-separated list of the names of players to scan for (empty for any):;${scanname}]"..
@ -38,7 +36,7 @@ local object_detector_scan = function (pos)
local scanname = meta:get_string("scanname")
local scan_all = scanname == ""
local scan_names = scanname:split(',')
local radius = math.min(meta:get_int("radius"), MAX_RADIUS)
local radius = meta:get_int("radius")
if radius <= 0 then
radius = 6
end
@ -78,11 +76,11 @@ local object_detector_digiline = {
make_formspec(meta)
end
end
if type(msg.scanname) == "string" then
if msg.scanname then
meta:set_string("scanname", msg.scanname)
make_formspec(meta)
end
if msg.command == "get" then
if msg.command and msg.command == "get" then
local found, name = object_detector_scan(pos)
if not found then
name = ""
@ -158,3 +156,5 @@ minetest.register_abm({
end
end,
})
minetest.log("action", "[moremesecons_adjustable_player_detector] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_adjustable_player_detector
depends = mesecons,moremesecons_utils,default
depends = mesecons
optional_depends = craft_guide

View File

@ -5,7 +5,7 @@ local function initialize_data(meta)
local commands = meta:get_string("commands")
meta:set_string("formspec",
"size[9,5]" ..
"invsize[9,5;]" ..
"textarea[0.5,0.5;8.5,4;commands;Commands;"..minetest.formspec_escape(commands).."]" ..
"label[1,3.8;@nearest is replaced by the nearest player name ("..tostring(NEAREST_MAX_DISTANCE).." nodes max for the nearest distance)".."]" ..
"button_exit[3.3,4.5;2,1;submit;Submit]")
@ -178,3 +178,5 @@ minetest.register_craft({
{"group:mesecon_conductor_craftable","default:mese_crystal","group:mesecon_conductor_craftable"}
}
})
minetest.log("action", "[moremesecons_commandblock] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_commandblock
depends = mesecons,moremesecons_utils,default
depends = mesecons,moremesecons_utils
optional_depends = craft_guide

View File

@ -79,3 +79,5 @@ minetest.register_craft({
output = "moremesecons_conductor_signalchanger:conductor_signalchanger_off",
recipe = {{"group:mesecon_conductor_craftable","moremesecons_signalchanger:signalchanger_off"}}
})
minetest.log("action", "[moremesecons_conductor_signalchanger] loaded.")

View File

@ -98,3 +98,5 @@ minetest.register_craft({
output = "moremesecons_dual_delayer:dual_delayer_00 2",
recipe = {"mesecons_delayer:delayer_off_1", "mesecons_delayer:delayer_off_1"}
})
minetest.log("action", "[moremesecons_dual_delayer] loaded.")

View File

@ -2,8 +2,6 @@
-- Detects entitys in a certain radius
-- The radius can be changes by right-click (by default 6)
local MAX_RADIUS = moremesecons.setting("entity_detector", "max_radius", 16, 0)
local function make_formspec(meta)
meta:set_string("formspec", "size[9,5]" ..
"field[0.3, 0;9,2;scanname;Comma-separated list of the names (itemstring) of entities to scan for (empty for any):;${scanname}]"..
@ -28,7 +26,8 @@ local function object_detector_on_receive_fields(pos, _, fields, player)
meta:set_string("digiline_channel", fields.digiline_channel)
local r = tonumber(fields.radius)
if r then
meta:set_int("radius", math.min(r, MAX_RADIUS))
local max_radius = moremesecons.setting("entity_detector", "max_radius", 16, 0)
meta:set_int("radius", math.min(r, max_radius))
end
end
@ -38,7 +37,8 @@ local object_detector_scan = function (pos)
local scanname = meta:get_string("scanname")
local scan_all = scanname == ""
local scan_names = scanname:split(',')
local radius = math.min(tonumber(meta:get("radius")) or 6, MAX_RADIUS)
local max_radius = moremesecons.setting("entity_detector", "max_radius", 16, 0)
local radius = math.min(tonumber(meta:get("radius")) or 6, max_radius)
for _,obj in pairs(minetest.get_objects_inside_radius(pos, radius)) do
local luaentity = obj:get_luaentity()
if luaentity then
@ -62,7 +62,7 @@ local object_detector_digiline = {
action = function (pos, node, channel, msg)
local meta = minetest.get_meta(pos)
local active_channel = meta:get_string("digiline_channel")
if channel ~= active_channel or type(msg) ~= "string" then
if channel ~= active_channel then
return
end
meta:set_string("scanname", msg)
@ -136,3 +136,5 @@ minetest.register_abm({
end
end,
})
minetest.log("action", "[moremesecons_entity_detector] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_entity_detector
depends = mesecons,moremesecons_utils,default
depends = mesecons
optional_depends = craft_guide

View File

@ -46,3 +46,5 @@ minetest.register_craft({
recipe = { {"default:torch"},
{"default:mese_crystal_fragment"},}
})
minetest.log("action", "[moremesecons_igniter] loaded.")

View File

@ -98,3 +98,5 @@ minetest.register_craft({
{"", "default:mese_crystal_fragment", ""}
}
})
minetest.log("action", "[moremesecons_induction_transmitter] loaded.")

View File

@ -82,3 +82,5 @@ minetest.register_craft({
output = "moremesecons_injector_controller:injector_controller_off",
recipe = {{"mesecons_blinkyplant:blinky_plant_off","mesecons_gates:and_off"}}
})
minetest.log("action", "[moremesecons_injector_controller] loaded.")

View File

@ -131,3 +131,5 @@ if moremesecons.setting("jammer", "enable_lbm", false) then
action = add_jammer
})
end
minetest.log("action", "[moremesecons_jammer] loaded.")

View File

@ -158,3 +158,5 @@ minetest.register_node("moremesecons_luablock:luablock", {
end
}}
})
minetest.log("action", "[moremesecons_luablock] loaded.")

View File

@ -355,3 +355,5 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
return
end
end)
minetest.log("action", "[moremesecons_luacontroller_tool] loaded.")

View File

@ -118,3 +118,5 @@ minetest.register_alias("default:mesechest", "moremesecons_mesechest:mesechest")
minetest.register_alias("mesechest", "moremesecons_mesechest:mesechest")
minetest.register_alias("default:mesechest_locked", "moremesecons_mesechest:mesechest")
minetest.register_alias("mesechest_locked", "moremesecons_mesechest:mesechest_locked")
minetest.log("action", "[moremesecons_mesechest] loaded.")

View File

@ -60,3 +60,5 @@ minetest.register_node("moremesecons_playerkiller:playerkiller", {
end,
sounds = default.node_sound_stone_defaults(),
})
minetest.log("action", "[moremesecons_playerkiller] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_playerkiller
depends = mesecons,mesecons_materials,moremesecons_utils,default
depends = mesecons,mesecons_materials,moremesecons_utils
optional_depends = craft_guide

View File

@ -121,3 +121,5 @@ minetest.register_craft({
recipe = {{"mesecons_luacontroller:luacontroller0000", "mesecons_noteblock:noteblock"},
{"group:wood", "group:wood"}}
})
minetest.log("action", "[moremesecons_sayer] loaded.")

View File

@ -79,3 +79,5 @@ minetest.register_craft({
output = "moremesecons_signalchanger:signalchanger_off",
recipe = {{"group:mesecon_conductor_craftable","moremesecons_switchtorch:switchtorch_off","group:mesecon_conductor_craftable"}}
})
minetest.log("action", "[moremesecons_signalchanger] loaded.")

View File

@ -127,3 +127,5 @@ minetest.register_abm({
-- 2 = x+1
-- 0 = y+1
-- 1 = y-1
minetest.log("action", "[moremesecons_switchtorch] loaded.")

View File

@ -106,3 +106,5 @@ if moremesecons.setting("teleporter", "enable_lbm", false) then
action = register
})
end
minetest.log("action", "[moremesecons_teleporter] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_teleporter
depends = mesecons,moremesecons_utils,default
depends = mesecons,moremesecons_utils
optional_depends = craft_guide

View File

@ -134,3 +134,5 @@ minetest.register_craft({
minetest.register_alias("moremesecons_temporarygate:temporarygate_off", "moremesecons_timegate:timegate_off")
minetest.register_alias("moremesecons_temporarygate:temporarygate_on", "moremesecons_timegate:timegate_on")
minetest.log("action", "[moremesecons_timegate] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_timegate
depends = mesecons,default
depends = mesecons
optional_depends = craft_guide

View File

@ -379,3 +379,4 @@ local function do_test()
end
do_test()
--]]
minetest.log("action", "[moremesecons_utils] loaded.")

View File

@ -498,3 +498,5 @@ if storage:get_string("wireless_meta_2") == "" then
end
minetest.log("action", "[moremesecons_wireless] Done!")
end
minetest.log("action", "[moremesecons_wireless] loaded.")

View File

@ -1,3 +1,3 @@
name = moremesecons_wireless
depends = mesecons,moremesecons_utils,default
depends = mesecons,moremesecons_utils
optional_depends = digilines,craft_guide

View File

@ -3,10 +3,6 @@
# Minimal interval authorized. Any lower will be set to it.
moremesecons_adjustable_blinky_plant.min_interval (Minimum Interval) float 0.5
[Adjustable Player Detector]
moremesecons_adjustable_player_detector.max_radius (Maximum adjustable player detector radius) float 16 0
[Craftable Commandblock]
# Space-separated list of authorized commands