Added protector_drop and protector_hurt settings to minetest.conf
Excellent :} This is excellent feature, thank you very much. Must have.
Added protector_drop and protector_hurt settings to minetest.conf
everamzah wrote:I haven't tried this yet, but what do you do when a player has a lot of armor and HP, as well as multiple tools? When one drops, they could switch to any other.
firefox wrote:everamzah wrote:I haven't tried this yet, but what do you do when a player has a lot of armor and HP, as well as multiple tools? When one drops, they could switch to any other.
usually you can't switch tools fast enough before the digged blocks are replaced.
2016-01-05 22:29:19: ERROR[Main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2016-01-05 22:29:19: ERROR[Main]: Lua: Runtime error from mod '' in callback luaentity_Step(): ...ER\bin\..\games\extreme_survival\mods\protector\init.lua:218: attempt to index local 'player' (a nil value)
2016-01-05 22:29:19: ERROR[Main]: stack traceback:
2016-01-05 22:29:19: ERROR[Main]: ...ER\bin\..\games\extreme_survival\mods\protector\init.lua:218: in function 'is_protected'
2016-01-05 22:29:19: ERROR[Main]: ...SERVER\bin\..\games\extreme_survival\mods\esmobs/api.lua:768: in function <...SERVER\bin\..\games\extreme_survival\mods\esmobs/api.lua:255>
In thread 34b0:
/home/stefan/mt-build/build/minetest/minetest/src/server.cpp:505: step: A fatal error occurred: Lua: Runtime error from mod '' in callback luaentity_Step(): ...ER\bin\..\games\extreme_survival\mods\protector\init.lua:218: attempt to index local 'player' (a nil value)
stack traceback:
...ER\bin\..\games\extreme_survival\mods\protector\init.lua:218: in function 'is_protected'
...SERVER\bin\..\games\extreme_survival\mods\esmobs/api.lua:768: in function <...SERVER\bin\..\games\extreme_survival\mods\esmobs/api.lua:255>
TenPlus1 wrote:This bug has been fixed already, please download latest version of mod from github page :)
2016-02-14 00:13:02: ERROR[main]: ========== ERROR FROM LUA ===========
2016-02-14 00:13:02: ERROR[main]: Failed to load and run script from
2016-02-14 00:13:02: ERROR[main]: /root/.minetest/mods/protector/init.lua:
2016-02-14 00:13:02: ERROR[main]: /root/.minetest/mods/protector/doors_chest.lua:45: attempt to call field 'register_door' (a nil value)
2016-02-14 00:13:02: ERROR[main]: stack traceback:
2016-02-14 00:13:02: ERROR[main]: /root/.minetest/mods/protector/doors_chest.lua:45: in main chunk
2016-02-14 00:13:02: ERROR[main]: [C]: in function 'dofile'
2016-02-14 00:13:02: ERROR[main]: /root/.minetest/mods/protector/init.lua:532: in main chunk
2016-02-14 00:13:02: ERROR[main]: ======= END OF ERROR FROM LUA ========
2016-02-14 00:13:02: ERROR[main]: Server: Failed to load and run /root/.minetest/mods/protector/init.lua
Rihu wrote:I have this problem with this mod,
2016-03-16 22:17:04: ERROR[main]: Error from Lua:
2016-03-16 22:17:04: ERROR[main]: /home/rihu/.minetest/mods/protectormaster/init.lua:3: '<name>' expected near '='
And idon't know how to solve it!
--prevent digger from getting inside broken roof block before recreated:
if player then
local player_pos = player:getpos()
local push_distance = 1.0
local push_x = 0.0
local push_y = 0.0
local push_z = 0.0
if player_pos.y > pos.y then
push_y = push_distance
--do not push other way or player will probably go under ground
end
player:setpos({x=player_pos.x+push_x, y=player_pos.y+push_y, z=player_pos.z+push_z})
end
--don't use this code (teleports player further into wall toward protector if hits block further from protector that is still protected)
if math.floor(player_pos.x+.5) > math.floor(pos.x+.5) then
push_x = push_distance
elseif math.floor(player_pos.x+.5) < math.floor(pos.x+.5) then
push_x = push_distance * -1.0
end
auouymous wrote:I was aware of LBMs, on_construct and on_destruct, but what about removing the protectors from the cache/octree when the mapblock is unloaded?
Users browsing this forum: No registered users and 6 guests