1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Fixing screwdriver and adding global bugs' track file

- Fixed perfect screwdriver by Ombridride
- Added a log-made-off file showing the remaining global variables to fix
This commit is contained in:
LeMagnesium 2014-12-30 14:58:40 +01:00
parent 0faac5bb30
commit 9ce593b17a
2 changed files with 88 additions and 3 deletions

82
global_to_solve.txt Normal file
View File

@ -0,0 +1,82 @@
14:41:30: WARNING: Undeclared global variable "intllib" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/awards/init.lua:8
14:41:30: WARNING: Undeclared global variable "worldedit" accessed at ...eFun/worldmods/WorldEdit/worldedit_infinity/init.lua:1
14:41:30: WARNING: Undeclared global variable "check_set" accessed at ...eFun/worldmods/WorldEdit/worldedit_commands/init.lua:830
14:41:30: WARNING: Undeclared global variable "check_set" accessed at ...eFun/worldmods/WorldEdit/worldedit_commands/init.lua:841
14:41:30: WARNING: Undeclared global variable "intllib" accessed at .../NodesJustWannaHaveFun/worldmods/moreblocks/init.lua:11
14:41:30: WARNING: Undeclared global variable "intllib" accessed at ...naHaveFun/worldmods/moreblocks/stairsplus/stairs.lua:2
14:41:30: WARNING: Undeclared global variable "intllib" accessed at ...nnaHaveFun/worldmods/moreblocks/stairsplus/slabs.lua:2
14:41:30: WARNING: Undeclared global variable "intllib" accessed at ...naHaveFun/worldmods/moreblocks/stairsplus/panels.lua:2
14:41:30: WARNING: Undeclared global variable "intllib" accessed at ...eFun/worldmods/moreblocks/stairsplus/microblocks.lua:2
14:41:30: ERROR[main]: Assignment to undeclared global "v" inside a function at ...ds/NodesJustWannaHaveFun/worldmods/snow/src/util.lua:51.
14:41:30: ERROR[main]: Assignment to undeclared global "i" inside a function at ...ds/NodesJustWannaHaveFun/worldmods/snow/src/util.lua:51.
14:41:30: WARNING: Undeclared global variable "skins" accessed at ...s/NodesJustWannaHaveFun/worldmods/snow/src/nodes.lua:69
14:41:30: WARNING: Undeclared global variable "HUD" accessed at ...ds/NodesJustWannaHaveFun/worldmods/snow/src/sled.lua:71
14:41:30: WARNING: Undeclared global variable "drop" accessed at ...esJustWannaHaveFun/worldmods/snow/src/stairsplus.lua:276
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:15
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:25
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:35
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:46
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:57
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:78
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:88
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:98
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:108
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:121
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:133
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:143
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:153
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:166
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:176
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:186
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:196
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:206
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:216
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:226
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:237
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:249
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:270
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:281
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:291
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:301
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:311
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:322
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:332
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:342
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:352
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:362
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:374
14:41:30: WARNING: Undeclared global variable "maptools_creative" accessed at ...ustWannaHaveFun/worldmods/maptools/default_nodes.lua:384
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:109
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:141
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:169
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:197
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:225
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:253
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:282
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:310
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:338
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:366
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:394
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:422
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:450
14:41:30: WARNING: Undeclared global variable "x21" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:451
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:478
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:506
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:534
14:41:30: WARNING: Undeclared global variable "p3" accessed at ...rlds/NodesJustWannaHaveFun/worldmods/fences/init.lua:661
14:41:30: WARNING: Undeclared global variable "convert_base" accessed at ...ustWannaHaveFun/worldmods/mesecons/mesecons/util.lua:104
14:41:31: WARNING: Undeclared global variable "handle_timer" accessed at ...n/worldmods/mesecons/mesecons_luacontroller/init.lua:562
14:41:31: WARNING: Undeclared global variable "selectionbox" accessed at ...n/worldmods/mesecons/mesecons_luacontroller/init.lua:603
14:41:31: WARNING: Undeclared global variable "cp" accessed at ...dmods/homedecor_modpack/fake_fire/modfiles/nodes.lua:36
14:41:31: WARNING: Undeclared global variable "cp" accessed at ...dmods/homedecor_modpack/fake_fire/modfiles/nodes.lua:82
14:41:31: WARNING: Undeclared global variable "cp" accessed at ...dmods/homedecor_modpack/fake_fire/modfiles/nodes.lua:128
14:41:31: WARNING: Undeclared global variable "cp" accessed at ...dmods/homedecor_modpack/fake_fire/modfiles/nodes.lua:174
14:41:31: WARNING: Undeclared global variable "cp" accessed at ...dmods/homedecor_modpack/fake_fire/modfiles/nodes.lua:356
14:41:31: WARNING: Undeclared global variable "intllib" accessed at ...JustWannaHaveFun/worldmods/unified_inventory/api.lua:2
14:41:31: WARNING: Undeclared global variable "intllib" accessed at ...annaHaveFun/worldmods/unified_inventory/internal.lua:2
14:41:31: WARNING: Undeclared global variable "intllib" accessed at ...annaHaveFun/worldmods/unified_inventory/register.lua:2
14:41:31: WARNING: Undeclared global variable "intllib" accessed at ...ustWannaHaveFun/worldmods/unified_inventory/bags.lua:7
14:41:31: WARNING: Undeclared global variable "inventory_plus" accessed at ...stWannaHaveFun/worldmods/3d_armor/3d_armor/armor.lua:40
14:41:31: WARNING: Undeclared global variable "intllib" accessed at .../worlds/NodesJustWannaHaveFun/worldmods/food/api.lua:11
14:41:31: ERROR[main]: Assignment to undeclared global "mod" inside a function at .../worlds/NodesJustWannaHaveFun/worldmods/food/api.lua:44.
14:41:31: ERROR[main]: Assignment to undeclared global "g" inside a function at .../worlds/NodesJustWannaHaveFun/worldmods/food/api.lua:63.

View File

@ -50,9 +50,9 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
node.param2 = n node.param2 = n
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
if not minetest.setting_getbool("creative_mode") and minetest.register_tool("screwdriver:screwdriver_perfect") then if not minetest.setting_getbool("creative_mode") and minetest.registered_tools["screwdriver:screwdriver_perfect"] then
itemstack:add_wear(65535 / (USES_perfect - 1)) itemstack:add_wear(65535 / (USES_perfect - 1))
elseif not minetest.setting_getbool("creative_mode") elseif not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / (USES - 1)) itemstack:add_wear(65535 / (USES - 1))
end end
@ -71,7 +71,8 @@ minetest.register_tool("screwdriver:screwdriver", {
screwdriver_handler(itemstack, user, pointed_thing, ROTATE_AXIS) screwdriver_handler(itemstack, user, pointed_thing, ROTATE_AXIS)
return itemstack return itemstack
end, end,
} })
-- Perfect Screwdriver (en mithril à 10 000 utilisations) -- Perfect Screwdriver (en mithril à 10 000 utilisations)
minetest.register_tool("screwdriver:screwdriver_perfect", { minetest.register_tool("screwdriver:screwdriver_perfect", {
description = "Perfect Screwdriver (left-click rotates face, right-click rotates axis)", description = "Perfect Screwdriver (left-click rotates face, right-click rotates axis)",
@ -93,6 +94,8 @@ minetest.register_craft({
{"default:steel_ingot"}, {"default:steel_ingot"},
{"group:stick"} {"group:stick"}
} }
})
minetest.register_craft({ minetest.register_craft({
output = "screwdriver:screwdriver_perfect", output = "screwdriver:screwdriver_perfect",
recipe = { recipe = {