mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Turned all boot messages into clean minetest.log() calls
- Turned all the 'print' calls at server's boot to 'minetest.log' in order to render it more clearly
This commit is contained in:
parent
3f10102866
commit
6b9b127804
@ -133,5 +133,5 @@ dofile(minetest.get_modpath("coloredwood").."/wood.lua")
|
|||||||
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
|
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
|
||||||
dofile(minetest.get_modpath("coloredwood").."/stick.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:dark_pink","dye:magenta")
|
||||||
minetest.register_alias("dye:purple","dye:violet")
|
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"
|
local backwardscompatsave = "NO"
|
||||||
|
|
||||||
|
|
||||||
print(S("compassgps reading bookmarks"))
|
minetest.log("action", S("compassgps reading bookmarks"))
|
||||||
local file = io.open(minetest.get_worldpath().."/bookmarks", "r")
|
local file = io.open(minetest.get_worldpath().."/bookmarks", "r")
|
||||||
if file then
|
if file then
|
||||||
bookmarks = minetest.deserialize(file:read("*all"))
|
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
|
if minetest.is_singleplayer() and show_shared_on_singleplayer==false then
|
||||||
singleplayer=true
|
singleplayer=true
|
||||||
else
|
else
|
||||||
|
@ -13,4 +13,4 @@ dofile(minetest.get_modpath("darkage").."/aliases.lua")
|
|||||||
-- Config
|
-- Config
|
||||||
--
|
--
|
||||||
|
|
||||||
print ("Darkage [darkage] has loaded!")
|
minetest.log ("Darkage [darkage] has loaded!")
|
||||||
|
@ -123,5 +123,5 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
@ -531,5 +531,5 @@ else
|
|||||||
|
|
||||||
end
|
end
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
-- Some basic foods
|
-- 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").."/support.lua")
|
||||||
dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
|
dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
|
||||||
|
@ -170,4 +170,4 @@ dofile(homedecor.modpath.."/handlers/locked.lua")
|
|||||||
|
|
||||||
dofile(homedecor.modpath.."/crafts.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 fdir = minetest.dir_to_facedir(dir)
|
||||||
|
|
||||||
local pt_name = minetest.get_node(under).name
|
local pt_name = minetest.get_node(under).name
|
||||||
print(dump(pt_name))
|
minetest.log("action", dump(pt_name))
|
||||||
local signname = itemstack:get_name()
|
local signname = itemstack:get_name()
|
||||||
|
|
||||||
if fences_with_sign[pt_name] and signname == "default:sign_wall" then
|
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(":"..fencename, def)
|
||||||
minetest.register_node(":"..fencewithsignname, def_sign)
|
minetest.register_node(":"..fencewithsignname, def_sign)
|
||||||
table.insert(signs_lib.sign_node_list, fencewithsignname)
|
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
|
end
|
||||||
|
|
||||||
build_char_db()
|
build_char_db()
|
||||||
|
@ -173,7 +173,7 @@ do
|
|||||||
local savetable = minetest.deserialize(string)
|
local savetable = minetest.deserialize(string)
|
||||||
mana.playerlist = savetable.playerlist
|
mana.playerlist = savetable.playerlist
|
||||||
if mana.playerlist == nil then mana.playerlist = {} end
|
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
|
end
|
||||||
end
|
end
|
||||||
|
@ -126,7 +126,7 @@ function mesecon.receptor_off(pos, rules)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
print("[OK] Mesecons")
|
minetest.log("action", "[OK] Mesecons")
|
||||||
|
|
||||||
-- Deprecated stuff
|
-- Deprecated stuff
|
||||||
-- To be removed in future releases
|
-- To be removed in future releases
|
||||||
|
@ -301,4 +301,4 @@ function moretrees:grow_fir_snow(pos)
|
|||||||
minetest.spawn_tree(pos,moretrees.fir_model)
|
minetest.spawn_tree(pos,moretrees.fir_model)
|
||||||
end
|
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
|
else
|
||||||
info = "[nether] "..msg
|
info = "[nether] "..msg
|
||||||
end
|
end
|
||||||
print(info)
|
minetest.log("action", info)
|
||||||
if self.inform_all then
|
if self.inform_all then
|
||||||
minetest.chat_send_all(info)
|
minetest.chat_send_all(info)
|
||||||
end
|
end
|
||||||
|
@ -111,5 +111,5 @@ if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua
|
|||||||
|
|
||||||
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
|
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")
|
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
|
-- Check node names
|
||||||
if abstract_ferns.config.enable_horsetails then
|
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_01"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:horsetail_02"] ~= nil)
|
assert(minetest.registered_items["ferns:horsetail_02"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:horsetail_03"] ~= nil)
|
assert(minetest.registered_items["ferns:horsetail_03"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:horsetail_04"] ~= nil)
|
assert(minetest.registered_items["ferns:horsetail_04"] ~= nil)
|
||||||
end
|
end
|
||||||
if abstract_ferns.config.enable_lady_fern then
|
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_01"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:fern_02"] ~= nil)
|
assert(minetest.registered_items["ferns:fern_02"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:fern_03"] ~= nil)
|
assert(minetest.registered_items["ferns:fern_03"] ~= nil)
|
||||||
end
|
end
|
||||||
if abstract_ferns.config.enable_treefern then
|
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"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil)
|
assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil)
|
||||||
assert(minetest.registered_items["ferns:fern_trunk"] ~= nil)
|
assert(minetest.registered_items["ferns:fern_trunk"] ~= nil)
|
||||||
@ -65,5 +65,5 @@ if run_tests then
|
|||||||
end
|
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("flowers:cotton_wad", "farming:string")
|
||||||
minetest.register_alias("sunflower:sunflower", "flowers:sunflower")
|
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").."/crafting.lua")
|
||||||
dofile(minetest.get_modpath("mushroom").."/compat.lua")
|
dofile(minetest.get_modpath("mushroom").."/compat.lua")
|
||||||
|
|
||||||
print("[Mushrooms] loaded.")
|
minetest.log("action", "[Mushrooms] loaded.")
|
||||||
|
@ -726,10 +726,10 @@ function plantslib:get_nodedef_field(nodename, fieldname)
|
|||||||
return minetest.registered_nodes[nodename][fieldname]
|
return minetest.registered_nodes[nodename][fieldname]
|
||||||
end
|
end
|
||||||
|
|
||||||
print("[Plants Lib] Loaded")
|
minetest.log("action", "[Plants Lib] Loaded")
|
||||||
|
|
||||||
minetest.after(0, function()
|
minetest.after(0, function()
|
||||||
print("[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
|
minetest.log("action", "[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] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -100,4 +100,4 @@ plantslib:grow_plants({
|
|||||||
ground_nodes = {"default:dirt_with_grass"}
|
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")
|
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 ) .. "/shear.lua" )
|
||||||
dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" )
|
dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" )
|
||||||
|
|
||||||
print("[Vines] Loaded!")
|
minetest.log("action", "[Vines] Loaded!")
|
||||||
|
@ -25,5 +25,5 @@ print("/____ >____/|__|____/____ >")
|
|||||||
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
|
else
|
||||||
info = "[riesenpilz] "..msg
|
info = "[riesenpilz] "..msg
|
||||||
end
|
end
|
||||||
print(info)
|
minetest.log("action", info)
|
||||||
if riesenpilz.inform_all then
|
if riesenpilz.inform_all then
|
||||||
minetest.chat_send_all(info)
|
minetest.chat_send_all(info)
|
||||||
end
|
end
|
||||||
|
@ -289,7 +289,7 @@ for h = 1, 12 do
|
|||||||
end --hues
|
end --hues
|
||||||
|
|
||||||
|
|
||||||
print("[stained_glass] Loaded!")
|
minetest.log("action", "[stained_glass] Loaded!")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ minetest.after(0.01, function()
|
|||||||
end
|
end
|
||||||
table.sort(unified_inventory.items_list)
|
table.sort(unified_inventory.items_list)
|
||||||
unified_inventory.items_list_size = #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
|
for _, name in ipairs(unified_inventory.items_list) do
|
||||||
local def = minetest.registered_items[name]
|
local def = minetest.registered_items[name]
|
||||||
if type(def.drop) == "string" then
|
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:darkgrey_paint", "dye:dark_grey")
|
||||||
minetest.register_alias("unifieddyes:carbon_black", "dye:black")
|
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