[Game] MineClone 2 [0.55.1]

Jacques
New member
 
Posts: 1
Joined: Mon Jun 03, 2019 05:52

Re: [Game] MineClone 2 [0.55.0]

by Jacques » Wed Oct 30, 2019 07:53

I noticed that mobs surrounded by solid blocks are jumping over and over and eventually die because they get stuck in solid walls, especially chickens. I think this check in ENTITIES\mcl_mobs\api.lua is not working:
Code: Select all
   -- this is used to detect if there's a block on top of the block in front of the mob.
   -- If there is, there is no point in jumping as we won't manage.
   local nodTop = node_ok({
      x = pos.x + dir_x,
      y = pos.y + 1.5,
      z = pos.z + dir_z
   }, "air")

   -- we don't attempt to jump if there's a stack of blocks blocking
   if minetest.registered_nodes[nodTop.name] == true then
      return false
   end

and I tested the following changes in my local game
Code: Select all
   -- this is used to detect if there's a block on top of the block in front of the mob.
   -- If there is, there is no point in jumping as we won't manage.
   local nodTop = node_ok({
      x = pos.x + dir_x,
      y = pos.y + 1.5,
      z = pos.z + dir_z
   })

   -- we don't attempt to jump if there's a stack of blocks blocking
   if minetest.registered_nodes[nodTop.name].walkable == true then
      return false
   end


I think that my modification prevents horses to jump 2 blocks high by themselves but I verified that mounted horses are still able to.

Have you noticed similar behaviors with your animals?
 

Midnight Sapphire
New member
 
Posts: 3
Joined: Sun Jun 30, 2019 23:06
 

excavenger
New member
 
Posts: 4
Joined: Thu Sep 26, 2019 08:59

Re: [Game] MineClone 2 [0.55.0]

by excavenger » Tue Nov 05, 2019 17:02

Jacques wrote:I noticed that mobs surrounded by solid blocks are jumping over and over and eventually die because they get stuck in solid walls, especially chickens. I think this check in ENTITIES\mcl_mobs\api.lua is not working:
Code: Select all
   -- this is used to detect if there's a block on top of the block in front of the mob.
   -- If there is, there is no point in jumping as we won't manage.
   local nodTop = node_ok({
      x = pos.x + dir_x,
      y = pos.y + 1.5,
      z = pos.z + dir_z
   }, "air")

   -- we don't attempt to jump if there's a stack of blocks blocking
   if minetest.registered_nodes[nodTop.name] == true then
      return false
   end

and I tested the following changes in my local game
Code: Select all
   -- this is used to detect if there's a block on top of the block in front of the mob.
   -- If there is, there is no point in jumping as we won't manage.
   local nodTop = node_ok({
      x = pos.x + dir_x,
      y = pos.y + 1.5,
      z = pos.z + dir_z
   })

   -- we don't attempt to jump if there's a stack of blocks blocking
   if minetest.registered_nodes[nodTop.name].walkable == true then
      return false
   end


I think that my modification prevents horses to jump 2 blocks high by themselves but I verified that mounted horses are still able to.

Have you noticed similar behaviors with your animals?


I have. Sometimes they also get stuck inside blocks that they should be able to jump over; or they'll clip right trough gaps that they shouldn't be able to. Horses seem able to jump over way more than 2 blocks sometimes.
 

User avatar
JiCeyCraft
Member
 
Posts: 103
Joined: Tue Feb 09, 2016 16:34
Location: Center of France, Loiret, Gien
In-game: JiCeyPlay

Re: [Game] MineClone 2 [0.55.0]

by JiCeyCraft » Mon Nov 18, 2019 18:45

Wuzzy, I don't want to seem arrogant or bothering... BUT!

your village/villagers problem, IMHO, does not really exist.

In RePixture, you have all you need to achieve the 'Villages/Villagers' goal in MC2. In fact, IMHO, they are perfect!
Think about that, would you, pleaaaaase?
Trust and Honesty are necessary conditions for friendship.
Do you aggree with this?
 

User avatar
Walker
Member
 
Posts: 447
Joined: Tue Oct 03, 2017 09:22
In-game: Walker

Re: [Game] MineClone 2 [0.55.0]

by Walker » Mon Nov 18, 2019 20:56

My server crashed for the third time today with the following error
Code: Select all
2019-11-18 21:52:18: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'mcl_fishing' in callback luaentity_Step(): ...inetest/games/mineclone2/mods/ITEMS/mcl_fishing/init.lua:169: attempt to index a nil value
2019-11-18 21:52:18: ERROR[Main]: stack traceback:
2019-11-18 21:52:18: ERROR[Main]:    ...inetest/games/mineclone2/mods/ITEMS/mcl_fishing/init.lua:169: in function <...inetest/games/mineclone2/mods/ITEMS/mcl_fishing/init.lua:154>
 

User avatar
Wuzzy
Member
 
Posts: 3628
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Version 0.55.1 released!

by Wuzzy » Tue Nov 19, 2019 00:23

I released version 0.55.1 to hopefully fix the bug reported by Walker (thanks for reporting!).
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Walker
Member
 
Posts: 447
Joined: Tue Oct 03, 2017 09:22
In-game: Walker

Re: Version 0.55.1 released!

by Walker » Tue Nov 19, 2019 04:35

Wuzzy wrote:I released version 0.55.1 to hopefully fix the bug reported by Walker (thanks for reporting!).

it's a pleasure
and many thanks for the quick fix
 

Previous

Return to WIP Games



Who is online

Users browsing this forum: No registered users and 3 guests