diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index a287281..689ff53 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -572,7 +572,7 @@ int ModApiEnvMod::l_find_path(lua_State *L)
unsigned int max_jump = luaL_checkint(L, 4);
unsigned int max_drop = luaL_checkint(L, 5);
algorithm algo = A_PLAIN_NP;
- if(! lua_isnil(L, 6)) {
+ if(! lua_isnoneornil(L, 6)) {
std::string algorithm = luaL_checkstring(L,6);
if (algorithm == "A*")
kahrl wrote:Can you try if the following change to minetest.find_path has any effect?
- Code: Select all
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index a287281..689ff53 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -572,7 +572,7 @@ int ModApiEnvMod::l_find_path(lua_State *L)
unsigned int max_jump = luaL_checkint(L, 4);
unsigned int max_drop = luaL_checkint(L, 5);
algorithm algo = A_PLAIN_NP;
- if(! lua_isnil(L, 6)) {
+ if(! lua_isnoneornil(L, 6)) {
std::string algorithm = luaL_checkstring(L,6);
if (algorithm == "A*")
00:08:05: ACTION[ServerThread]: MOBF: trying to activate mob rat at invalid position
00:08:05: ACTION[ServerThread]: Activation at: default:stone --> removing
00:08:05: ACTION[ServerThread]: MOBF: trying to activate mob vombie at invalid position
00:08:05: ACTION[ServerThread]: Activation at: default:desert_stone --> removing
00:08:09: ACTION[ServerThread]: MOBF: trying to activate mob fish_blue_white at invalid position
00:08:09: ACTION[ServerThread]: Activation at: air --> removing
trying to find path to: (-145.70600891113,4,-153.96899414062)
trying to find path to: (-145.70600891113,4,-153.96899414062)
trying to find path to: (-145.70600891113,4,-153.96899414062)
00:08:34: ACTION[ServerThread]: Admin punches object 55: LuaEntitySAO at (-147.772,4.7,-159.948)
00:08:34: ACTION[ServerThread]: LuaEntitySAO at (-147.772,4.7,-159.948) punched by player Admin, damage 6 hp, health now 2 hp
trying to find path to: (-146.48699951172,4.9200000762939,-157.03100585938)
invalid stopposIndex: (7,6,8)Realpos: (-146,5,-157)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
00:08:34: ACTION[ServerThread]: Admin punches object 49: LuaEntitySAO at (-146.663,5.15825,-159.794)
00:08:34: ACTION[ServerThread]: LuaEntitySAO at (-146.663,5.15825,-159.794) punched by player Admin, damage 0 hp, health now 8 hp
trying to find path to: (-146.56500244141,4.0200002193451,-157.27900695801)
invalid startposIndex: (5,5,5)Realpos: (-147,4,-160)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
00:08:34: ACTION[ServerThread]: Admin punches object 55: LuaEntitySAO at (-147.679,4.7,-159.441)
00:08:34: ACTION[ServerThread]: LuaEntitySAO at (-147.679,4.7,-159.441) punched by player Admin, damage 0 hp, health now 2 hp
trying to find path to: (-146.56500244141,4,-157.27900695801)
00:08:34: ACTION[ServerThread]: Admin punches object 55: LuaEntitySAO at (-147.686,4.7,-159.419)
00:08:34: ACTION[ServerThread]: LuaEntitySAO at (-147.686,4.7,-159.419) punched by player Admin, damage 0 hp, health now 2 hp
00:08:34: ACTION[ServerThread]: Admin punches object 55: LuaEntitySAO at (-147.602,4.7,-159.363)
00:08:34: ACTION[ServerThread]: LuaEntitySAO at (-147.602,4.7,-159.363) punched by player Admin, damage 1 hp, health now 1 hp
trying to find path to: (-146.52799987793,4,-157.17601013184)
invalid startposIndex: (6,5,5)Realpos: (-146,4,-159)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-146.52799987793,4,-157.17601013184)
invalid startposIndex: (5,5,5)Realpos: (-147,4,-160)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-146.52799987793,4,-157.17601013184)
00:08:34: ACTION[ServerThread]: Admin punches object 55: LuaEntitySAO at (-147.565,4.7,-159.339)
00:08:34: ACTION[ServerThread]: LuaEntitySAO at (-147.565,4.7,-159.339) punched by player Admin, damage 0 hp, health now 1 hp
trying to find path to: (-146.39599609375,4,-156.80500793457)
invalid stopposIndex: (7,5,8)Realpos: (-146,4,-157)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
00:08:35: ACTION[ServerThread]: Admin punches object 52: LuaEntitySAO at (-147.139,4.7,-159.543)
00:08:35: ACTION[ServerThread]: LuaEntitySAO at (-147.139,4.7,-159.543) punched by player Admin, damage 1 hp, health now 7 hp
trying to find path to: (-146.0890045166,3.9290001392365,-155.8990020752)
invalid startposIndex: (5,5,5)Realpos: (-147,4,-160)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-145.01400756836,4,-152.71600341797)
trying to find path to: (-145.01400756836,4,-152.71600341797)
invalid startposIndex: (5,5,5)Realpos: (-145,3,-158)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-145.01400756836,4,-152.71600341797)
invalid startposIndex: (5,5,5)Realpos: (-146,4,-158)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-145.0240020752,4,-150.53100585938)
invalid stopposIndex: (5,7,10)Realpos: (-145,4,-151)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-145.0240020752,4,-150.53100585938)
invalid stopposIndex: (5,7,12)Realpos: (-145,4,-151)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-145.0240020752,4,-150.53100585938)
invalid stopposIndex: (5,7,10)Realpos: (-145,4,-151)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-142.98600769043,5,-147.91700744629)
invalid stopposIndex: (7,8,12)Realpos: (-143,5,-148)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-142.98600769043,5,-147.91700744629)
invalid stopposIndex: (7,8,14)Realpos: (-143,5,-148)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-142.98600769043,5,-147.91700744629)
invalid startposIndex: (5,5,5)Realpos: (-145,3,-156)
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-142.89300537109,5,-147.29200744629)
failed to update cost map
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-142.89300537109,5,-147.29200744629)
failed to update cost map
MOBF: no pathfinding support/ no path found directly setting targetpos as path
trying to find path to: (-142.89300537109,5,-147.29200744629)
failed to update cost map
MOBF: no pathfinding support/ no path found directly setting targetpos as path
Could not open file of texture: fish_blue_white_mesh.png
Loaded mesh: fish_blue_white.b3d
Could not open file of texture: mob_npc_archer_mesh.png
Loaded mesh: mob_archer_archer.b3d
Loaded mesh: mob_guard_guard.b3d
Loaded mesh: mob_oerkki.b3d
Could not open file of texture: mob_ostrich_ostrich_mesh.png
Loaded mesh: mob_ostrich_ostrich.b3d
Could not open file of texture: mob_slime_slime_mesh.png
Loaded mesh: mob_slime_slime.b3d
Could not open file of texture: mobf_path_marker.png
Loaded mesh: mobf_path_marker.b3d
Could not open file of texture: character.png
Loaded mesh: npc_character.b3d
Martin_Devil wrote:Say it. How to change the type of animal to 3D?
Neuromancer wrote:I have to say this mod has really improved since I tried it last. It adds so much more than it used to, and I don't really see the lag that I used to encounter after playing with it for a while. It makes Minetest into a game that is just as much fun to play as Minecraft. That said I do have a wish list.
The one thing that bothers me both about this mod and Minecraft is that you can do whatever you want to the npc villagers, like attack them or destroy their house and they do nothing about it.
Instead what I'd like to see, if you attack a trader, or dig or place a node in their house, they go into attack mode and will chase you to a certain distance from their house.
Nice to have additional ideas:
If you set their house on fire they chase you off also.
Make them really hard to kill, but if you do kill them, all the things they were trading appear in a chest in their house.
Make some of them randomly better fighters (more damage done) or harder to kill (more hitpoints) than others.
If you come back to their house after you anger them, they remember you and will have a random probably of chasing you off again after a random amount of time. (They may have forgiven you or are pretending to have forgiven you just to lure you into their revenge attack)
Topywo wrote:Martin_Devil wrote:Say it. How to change the type of animal to 3D?
type ingame:
/mobf_settings
then select the tab:
Settings
Martin_Devil wrote:Topywo wrote:Martin_Devil wrote:Say it. How to change the type of animal to 3D?
type ingame:
/mobf_settings
then select the tab:
Settings
In the folder there is only mobf_settings init.lua and depends.txt. I can not understand where is the tab Settings?
Mossmanikin wrote:Martin_Devil wrote:Topywo wrote:
type ingame:
/mobf_settings
then select the tab:
Settings
In the folder there is only mobf_settings init.lua and depends.txt. I can not understand where is the tab Settings?
You don't have to look in the folder. You just have to type it while playing the game with the mod installed. The same way you would chat on a server.
Martin_Devil wrote:
Came out. However, even when the server reboots animals remain in 2D ...
Users browsing this forum: No registered users and 9 guests