mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Merge pull request #65 from LeMagnesium/minetest_log_at_boot
Use minetest.log() for start up and shutdown messages
This commit is contained in:
commit
2aea8d51b8
@ -133,5 +133,5 @@ dofile(minetest.get_modpath("coloredwood").."/wood.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/stick.lua")
|
||||
|
||||
print("[Colored Wood] Loaded!")
|
||||
minetest.log("action", "[Colored Wood] Loaded!")
|
||||
|
||||
|
@ -75,4 +75,4 @@ minetest.register_alias("dye:dark_blue","dye:blue")
|
||||
minetest.register_alias("dye:dark_pink","dye:magenta")
|
||||
minetest.register_alias("dye:purple","dye:violet")
|
||||
|
||||
print ("Coloured Stone Bricks [colouredstonebricks] has loaded!")
|
||||
minetest.log ("action", "Coloured Stone Bricks [colouredstonebricks] has loaded!")
|
||||
|
@ -61,7 +61,7 @@ local default_bookmark = {}
|
||||
local backwardscompatsave = "NO"
|
||||
|
||||
|
||||
print(S("compassgps reading bookmarks"))
|
||||
minetest.log("action", S("compassgps reading bookmarks"))
|
||||
local file = io.open(minetest.get_worldpath().."/bookmarks", "r")
|
||||
if file then
|
||||
bookmarks = minetest.deserialize(file:read("*all"))
|
||||
@ -127,7 +127,7 @@ end --distance3d
|
||||
|
||||
|
||||
-- **********************************************************
|
||||
print(S("compassgps reading settings"))
|
||||
minetest.log("action", S("compassgps reading settings"))
|
||||
if minetest.is_singleplayer() and show_shared_on_singleplayer==false then
|
||||
singleplayer=true
|
||||
else
|
||||
@ -570,7 +570,7 @@ end --write_bookmarks
|
||||
function compassgps.write_settings()
|
||||
--loop through players and set settings
|
||||
--(less error prone than trying to keep settings in sync all the time
|
||||
print(S("compassgps writing settings"))
|
||||
minetest.log("action", S("compassgps writing settings"))
|
||||
local players = minetest.get_connected_players()
|
||||
for i,player in ipairs(players) do
|
||||
local name = player:get_player_name();
|
||||
|
@ -13,4 +13,4 @@ dofile(minetest.get_modpath("darkage").."/aliases.lua")
|
||||
-- Config
|
||||
--
|
||||
|
||||
print ("Darkage [darkage] has loaded!")
|
||||
minetest.log ("Darkage [darkage] has loaded!")
|
||||
|
@ -123,5 +123,5 @@ else
|
||||
end
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -531,5 +531,5 @@ else
|
||||
|
||||
end
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -6,7 +6,7 @@
|
||||
-- Some basic foods
|
||||
-- =====================================
|
||||
|
||||
print("Food Mod - Version 2.3")
|
||||
minetest.log("action", "Food Mod - Version 2.3")
|
||||
|
||||
dofile(minetest.get_modpath("food_basic").."/support.lua")
|
||||
dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
|
||||
|
@ -170,4 +170,4 @@ dofile(homedecor.modpath.."/handlers/locked.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/crafts.lua")
|
||||
|
||||
print("[HomeDecor] "..S("Loaded!"))
|
||||
minetest.log("action", "[HomeDecor] "..S("Loaded!"))
|
||||
|
@ -634,7 +634,7 @@ function signs_lib.determine_sign_type(itemstack, placer, pointed_thing, locked)
|
||||
local fdir = minetest.dir_to_facedir(dir)
|
||||
|
||||
local pt_name = minetest.get_node(under).name
|
||||
print(dump(pt_name))
|
||||
minetest.log("action", dump(pt_name))
|
||||
local signname = itemstack:get_name()
|
||||
|
||||
if fences_with_sign[pt_name] and signname == "default:sign_wall" then
|
||||
@ -981,7 +981,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname)
|
||||
minetest.register_node(":"..fencename, def)
|
||||
minetest.register_node(":"..fencewithsignname, def_sign)
|
||||
table.insert(signs_lib.sign_node_list, fencewithsignname)
|
||||
print(S("Registered %s and %s"):format(fencename, fencewithsignname))
|
||||
minetest.log("action", S("Registered %s and %s"):format(fencename, fencewithsignname))
|
||||
end
|
||||
|
||||
build_char_db()
|
||||
|
@ -173,7 +173,7 @@ do
|
||||
local savetable = minetest.deserialize(string)
|
||||
mana.playerlist = savetable.playerlist
|
||||
if mana.playerlist == nil then mana.playerlist = {} end
|
||||
minetest.debug("[mana] mana.mt successfully read.")
|
||||
minetest.log("action", "[mana] mana.mt successfully read.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -126,7 +126,7 @@ function mesecon.receptor_off(pos, rules)
|
||||
end
|
||||
|
||||
|
||||
print("[OK] Mesecons")
|
||||
minetest.log("action", "[OK] Mesecons")
|
||||
|
||||
-- Deprecated stuff
|
||||
-- To be removed in future releases
|
||||
|
@ -301,4 +301,4 @@ function moretrees:grow_fir_snow(pos)
|
||||
minetest.spawn_tree(pos,moretrees.fir_model)
|
||||
end
|
||||
|
||||
print(S("[Moretrees] Loaded (2013-02-11)"))
|
||||
minetest.log("action", S("[Moretrees] Loaded (2013-02-11)"))
|
||||
|
@ -98,7 +98,7 @@ if nether.info then
|
||||
else
|
||||
info = "[nether] "..msg
|
||||
end
|
||||
print(info)
|
||||
minetest.log("action", info)
|
||||
if self.inform_all then
|
||||
minetest.chat_send_all(info)
|
||||
end
|
||||
|
@ -111,5 +111,5 @@ if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua
|
||||
|
||||
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
|
||||
|
||||
print("Pipeworks loaded!")
|
||||
minetest.log("Pipeworks loaded!")
|
||||
|
||||
|
@ -5,5 +5,5 @@ local mname = "along_shore"
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
@ -55,4 +55,4 @@ plantslib:spawn_on_surfaces({
|
||||
|
||||
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
|
||||
|
||||
print(S("[Bushes] Loaded."))
|
||||
minetest.log("action", S("[Bushes] Loaded."))
|
||||
|
@ -9,4 +9,4 @@ dofile(minetest.get_modpath("cavestuff").."/mapgen.lua")
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
|
@ -195,5 +195,5 @@ minetest.register_abm({
|
||||
})
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -43,20 +43,20 @@ if run_tests then
|
||||
|
||||
-- Check node names
|
||||
if abstract_ferns.config.enable_horsetails then
|
||||
print("[Mod] " ..title.. " Checking horsetail item strings")
|
||||
minetest.log("action", "[Mod] " ..title.. " Checking horsetail item strings")
|
||||
assert(minetest.registered_items["ferns:horsetail_01"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:horsetail_02"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:horsetail_03"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:horsetail_04"] ~= nil)
|
||||
end
|
||||
if abstract_ferns.config.enable_lady_fern then
|
||||
print("[Mod] ".. title .." Checking lady fern item strings")
|
||||
minetest.log("action", "[Mod] ".. title .." Checking lady fern item strings")
|
||||
assert(minetest.registered_items["ferns:fern_01"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:fern_02"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:fern_03"] ~= nil)
|
||||
end
|
||||
if abstract_ferns.config.enable_treefern then
|
||||
print("[Mod] ".. title .." Checking tree fern item strings")
|
||||
minetest.log("action", "[Mod] ".. title .." Checking tree fern item strings")
|
||||
assert(minetest.registered_items["ferns:tree_fern_leaves"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil)
|
||||
assert(minetest.registered_items["ferns:fern_trunk"] ~= nil)
|
||||
@ -65,5 +65,5 @@ if run_tests then
|
||||
end
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -535,4 +535,4 @@ minetest.register_alias("flowers:cotton", "farming:string")
|
||||
minetest.register_alias("flowers:cotton_wad", "farming:string")
|
||||
minetest.register_alias("sunflower:sunflower", "flowers:sunflower")
|
||||
|
||||
print(S("[Flowers] Loaded."))
|
||||
minetest.log("action", S("[Flowers] Loaded."))
|
||||
|
@ -106,5 +106,5 @@ plantslib:register_generate_plant({
|
||||
)
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -258,4 +258,4 @@ minetest.register_abm({
|
||||
dofile(minetest.get_modpath("mushroom").."/crafting.lua")
|
||||
dofile(minetest.get_modpath("mushroom").."/compat.lua")
|
||||
|
||||
print("[Mushrooms] loaded.")
|
||||
minetest.log("action", "[Mushrooms] loaded.")
|
||||
|
@ -42,7 +42,7 @@ local DEBUG = false --... except if you want to spam the console with debugging
|
||||
|
||||
function plantslib:dbg(msg)
|
||||
if DEBUG then
|
||||
print("[Plantlife] "..msg)
|
||||
minetest.log("action", "[Plantlife] "..msg)
|
||||
minetest.log("verbose", "[Plantlife] "..msg)
|
||||
end
|
||||
end
|
||||
@ -446,8 +446,8 @@ end)
|
||||
-- to prevent unpopulated map areas
|
||||
|
||||
minetest.register_on_shutdown(function()
|
||||
print("[plants_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
||||
print("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
minetest.log("[plants_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
||||
minetest.log("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
while true do
|
||||
plantslib:generate_block_with_air_checking(0.1)
|
||||
if #plantslib.blocklist_aircheck == 0 then return end
|
||||
@ -455,8 +455,8 @@ minetest.register_on_shutdown(function()
|
||||
end)
|
||||
|
||||
minetest.register_on_shutdown(function()
|
||||
print("[plants_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
||||
print("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
minetest.log("[plants_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
||||
minetest.log("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
while true do
|
||||
plantslib:generate_block_no_aircheck(0.1)
|
||||
if #plantslib.blocklist_no_aircheck == 0 then return end
|
||||
@ -726,10 +726,10 @@ function plantslib:get_nodedef_field(nodename, fieldname)
|
||||
return minetest.registered_nodes[nodename][fieldname]
|
||||
end
|
||||
|
||||
print("[Plants Lib] Loaded")
|
||||
minetest.log("action", "[Plants Lib] Loaded")
|
||||
|
||||
minetest.after(0, function()
|
||||
print("[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
|
||||
print("[Plants Lib] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.")
|
||||
minetest.log("action", "[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
|
||||
minetest.log("action", "[Plants Lib] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.")
|
||||
end)
|
||||
|
||||
|
@ -100,4 +100,4 @@ plantslib:grow_plants({
|
||||
ground_nodes = {"default:dirt_with_grass"}
|
||||
})
|
||||
|
||||
print(S("[Poison Ivy] Loaded."))
|
||||
minetest.log("action", S("[Poison Ivy] Loaded."))
|
||||
|
@ -13,5 +13,5 @@ dofile(minetest.get_modpath("trunks").."/nodes.lua")
|
||||
dofile(minetest.get_modpath("trunks").."/crafting.lua")
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
@ -11,4 +11,4 @@ dofile( minetest.get_modpath( vines.name ) .. "/nodes.lua" )
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/shear.lua" )
|
||||
dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" )
|
||||
|
||||
print("[Vines] Loaded!")
|
||||
minetest.log("action", "[Vines] Loaded!")
|
||||
|
@ -25,5 +25,5 @@ print("/____ >____/|__|____/____ >")
|
||||
print(" \\/ \\/")]]
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||
-----------------------------------------------------------------------------------------------
|
@ -7,7 +7,7 @@ if riesenpilz.info then
|
||||
else
|
||||
info = "[riesenpilz] "..msg
|
||||
end
|
||||
print(info)
|
||||
minetest.log("action", info)
|
||||
if riesenpilz.inform_all then
|
||||
minetest.chat_send_all(info)
|
||||
end
|
||||
|
@ -289,7 +289,7 @@ for h = 1, 12 do
|
||||
end --hues
|
||||
|
||||
|
||||
print("[stained_glass] Loaded!")
|
||||
minetest.log("action", "[stained_glass] Loaded!")
|
||||
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@ minetest.after(0.01, function()
|
||||
end
|
||||
table.sort(unified_inventory.items_list)
|
||||
unified_inventory.items_list_size = #unified_inventory.items_list
|
||||
print("Unified Inventory. inventory size: "..unified_inventory.items_list_size)
|
||||
minetest.log("Unified Inventory. inventory size: "..unified_inventory.items_list_size)
|
||||
for _, name in ipairs(unified_inventory.items_list) do
|
||||
local def = minetest.registered_items[name]
|
||||
if type(def.drop) == "string" then
|
||||
|
@ -373,5 +373,5 @@ minetest.register_alias("unifieddyes:grey_paint", "dye:grey")
|
||||
minetest.register_alias("unifieddyes:darkgrey_paint", "dye:dark_grey")
|
||||
minetest.register_alias("unifieddyes:carbon_black", "dye:black")
|
||||
|
||||
print(S("[UnifiedDyes] Loaded!"))
|
||||
minetest.log("action", S("[UnifiedDyes] Loaded!"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user