Page 33 of 35

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Sun Jan 29, 2017 15:29
by cHyper
+1 i like the idea of pinguins. they are so cute!

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Sun Jan 29, 2017 19:10
by Nathan.S
I don't think there is an easy way to make penguins swim. In the water they'd be standing upright, but should be on their bellies. I could easily make another version of the penguin that would be laying down, and would be able to swim in water, and look right, but I don't know if there is anyway that one mob could work in both.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Sun Jan 29, 2017 20:25
by TenPlus1
I was thinking of adding a swim animation to mobs that could be called when in water, would be useful :)

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Sun Jan 29, 2017 21:46
by D00Med
That would be great

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Mon Jan 30, 2017 15:19
by cHyper
cHyper wrote:+1 i like the idea of pinguins. they are so cute!


Image
Some mob from the game minecraft, we also should have one for minetest!!??

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Mon Jan 30, 2017 20:20
by TenPlus1
Lol, NathanS has already beaten me to it with his Artic Life mod which adds penguins and walrus to snow/glacier biomes: https://github.com/NathanSalapat/arctic_life

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Mon Jan 30, 2017 20:42
by D00Med
Oh well xD
How's this for a penguin?
Image

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Mon Jan 30, 2017 20:44
by cHyper
D00Med wrote:Oh well xD
How's this for a penguin?
Image


+1

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Mon Jan 30, 2017 21:06
by D00Med
Here is a penguin model.
You can use it if you like but give credit.
In the .zip there's a file with all the animation start and end frames.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Tue Jan 31, 2017 14:42
by TenPlus1
Mobs Redo API updated:

- New 'fly' animation added for when mobs are flying or swimming inside their preferred node.

Mobs Animal Updated:

- Penguins added to glacier biomes which can walk on land or swim in water (Thanks D00Med :)

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Tue Jan 31, 2017 15:10
by Nathan.S
I'll have to update my penguin when I get a chance, probably sometime within the week.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Tue Jan 31, 2017 20:24
by TenPlus1
Kewl NathanS, love the walrus btw :)

Re: [Mod] Mobs Redo [1.32] [mobs]

PostPosted: Mon Feb 13, 2017 01:41
by redblade7
redblade7 wrote:the mob isn't removed when dropped, which still allows for griefing (though makes it harder). Is it possible to remove the mob when you drop it rather than leave it in inventory? I've noticed with creative mode that with some mods this happens and with other mods it doesn't, so there must be some setting.


bump

Re: [Mod] Mobs Redo [1.32] [mobs]

PostPosted: Mon Feb 13, 2017 13:05
by afflatus
redblade7 wrote:
redblade7 wrote:the mob isn't removed when dropped, which still allows for griefing (though makes it harder). Is it possible to remove the mob when you drop it rather than leave it in inventory? I've noticed with creative mode that with some mods this happens and with other mods it doesn't, so there must be some setting.


bump


example:
mobs:register_egg("mobs_animal:cow", "Cow", "default_grass.png", 1, no_creative = 1)
It is explained in api.txt

Re: [Mod] Mobs Redo [1.32] [mobs]

PostPosted: Mon Feb 13, 2017 20:43
by redblade7
afflatus wrote:
redblade7 wrote:
redblade7 wrote:the mob isn't removed when dropped, which still allows for griefing (though makes it harder). Is it possible to remove the mob when you drop it rather than leave it in inventory? I've noticed with creative mode that with some mods this happens and with other mods it doesn't, so there must be some setting.


bump


example:
mobs:register_egg("mobs_animal:cow", "Cow", "default_grass.png", 1, no_creative = 1)
It is explained in api.txt


That is for removing items from creative inventory. I am talking about taming/netting a Cow and then right-clicking to release, but with the Cow still in your inventory you can just keep dropping tamed Cows forever. Is there any way to have the Cow disappear from your inventory once the original is dropped?

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Tue Feb 14, 2017 08:57
by TenPlus1
redblade7 - are you in creative mode ? if so then you will have unlimited items and they remain in your inventory, but... I've just added a change where tamed eggs will be removed even in creative so please update mobs redo api.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Tue Feb 14, 2017 23:05
by redblade7
TenPlus1 wrote:redblade7 - are you in creative mode ? if so then you will have unlimited items and they remain in your inventory, but... I've just added a change where tamed eggs will be removed even in creative so please update mobs redo api.


Thank you! Tested on all of mobs_animal and a customized mobs_water containing only tropical fish and clownfish. Works on all of these except bees and rats from mobs_animal, those aren't tameable but you might want to look into something.

I wish this was possible for saplings too. I already have saplings removed from creative inventory on my server, and it's running 0.4.15 which has the "plant griefing" fix applied, but once you have one sapling you can just repeatedly drop the same one.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Wed Feb 15, 2017 08:40
by TenPlus1
redblade7 - remember that 'creative' mode is for players to build without having to collect items at all, so placing any item and having it still remain in their inventory is normal... If this is not the intended use then I'd recommend disabling creative and moving to survival instead where you can still grant 'creative' privs to certain players if needed by using my github.com/tenplus1/creative mod replacement.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Sun Feb 19, 2017 09:55
by burli
Can we make a modpack for the mods? Al least the mobs who don't have a github repo? I is tedious to install them by hand and the creeper has still the model bug

Mobs Redo review

PostPosted: Fri Feb 24, 2017 22:28
by Wuzzy
The good
- Reasonably powerful API
- Simple-to use API
- Many of the core mobs from Minecraft can be re-implemented and the code looks relatively clean
- Support for tons of sounds
- Support for a ton of animations
- Use of callback functions allow for easy extensibility, even complex mobs like traders are possible without breaking Mobs Redo!
- Easy access to everyday stuff. Very easy to use
- Seems pretty stable so far
- Mob spawners
- Support for knockback
- Animal breeding and following
- Interesting unique ideas such as the mob protection rune or the lasso
- Monsters infighting + customization
- Damage immunity
- With the right mods which add mobs, greatly enhances the gameplay
- Popular, has a long history and support

The bad
- Apparently rather weak shooting AI. Or at least I apparently can't customize it. I can't make mobs which try to stay at a distance so they can attack from afar and be safe from melee attacks
- Weak floating AI. They never change height, making use of floating mobs rather limited
- Documentation has many holes
- Water and lava damage are pretty much hardcoded, there i
- Not many options to customize hostility and/or likelihood to attack (agressiveness)
- No customization options for children or breeding behaviour (apparently there are many hardcoded values)
- Children seem to grow VERY fast
- Can't use it verbatim in my subgame (MineClone 2), I still have to modify it. :-( The reason is that it contains a couple of craftable items. For an API mod, it has still too much clutter which should go in a separate mod.
- Attacking strategies, especially shooting does not leave much room for customization
- Mob spawners don't contain the mobs they spawn (only via infotext) :-( (I know this is possible, see tsm_pyramids for an example)
- Knockback is weird and feels laggy and not fluid / unnatural

The ugly
- Hard and totally avoidable dependency on default
- I don't seem to be able to set 0 damage for hostile mobs. I need this to reimplement the tiny slimes from Minecraft, which attempt to attack the player but never deal damage. But instead, my tiny slimes deal 1 damage. :-(
- A LOT of chat abuse, also often with poor spelling
- Children have the same drops as the adults
- replace_with and replace_what are limited in use. It is not possible to make a mob replace a particular node with another particular node. E.g. sheep replace Dirt with Grass with Dirt and Grass with Air. Current API forces me to pick one.
- I am not sure, but documentation seems to be partially inconsistent or wrong about true/false vs 1/0 values. Can you please check these fields?: pathfinding, floats
- follows: It seems this is also used for feeding and breeding. I don't like this as this conflates different things. IMO this should be split into several fields, one for following, and one for feeding.
- Only probabilities of form 1/x are allowed.
- fall_speed is very weird. A low fall_speed increases the jump height! I expected a terminal velocity here, was disappointed.


Suggestions (everything I need for MineClone 2):
- on_breed: Callback function for custom breeding. Is called when a new child mob is created, parameters are the objects of both parents, and the child itself. This can be useful to further customize the child when it was born.
- https://github.com/tenplus1/mobs_redo/issues/38
- Rework the current replace_with and replace_what logic by allowing the modder to use a 1:1 mapping between replaced node and new node. I suggest to allow a table for replace_what, then both tables will be seen as a “mapping”, where item 1 from replace_with will be replaced by item 1 from replace_what. Like so:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
replace_with = {"default:dirt_with_grass", "default:grass_5", "air"},
replace_what = {"default:dirt_with_grass", "air", "air"},

Meaning, dirt with grass becomes dirt, and high grass and jungle grass become air. If a table is used for replace_what, it must have the equal length of replace_with, of course. The single string value can still be supported, it just means that ANY value from replace_with will be replaced with this (current behaviour)
- on_replace: Callback function which gets called whenever a mob replaces a node. Params: Position, old node, new node. Use case: Sheep regrow their wool after “eating” (read: replacing) grass.
- Allow to set how fast children grow
- Allow to set custom nodes in which mobs take damage. It is basically a more generalized version of lava_damage and water_damage
- Add an optional terminal velocity for falling mobs. Use case: Minecraft-style chicken which slowly decend to the ground at a maximum constant (!) speed because they flap their wings

Questions:
- How do I spawn a child?
- Can I customize children?
- Can I reuse an existing entity as an arrow? Or am I forced to call register_arrow?

Holes in the docs
In general:
Many of the core mechanics are not explained at all (this info is crucial to better predict the behvaiour of the mobs):
- Breeding
- Feeding
- Damage/armor
- Mob types
- Default behaviour/hostility
How to spawn a mob
- Yes, I know it is just minetest.add_entity but it is not neccessarily obvious, because the modder doesn't know how
- It is not clear how animations are used and what the various animation names mean
- Many parameters are just very roughly explained, leaving many questions open. Underlying concepts are often without explanation
register_mob:
- The different mob types as well as their typical behaviour are not explained at all. IMO this is VERY important to understand
- Mob hostility is confusing and scattered through many different parameters, their interaction is not always clear
- It is often not clear which fields are optional and which aren't
- The default values for optional fields sometimes missing
- What on Earth does “armor” do and how does it work? What do the values mean? And why do I find values like 100, 90, etc. in many Mobs Redo mods although the docs say only 1-3 are valid values
differences
- walk_chance, jump_chance: The valid value range is missing
- jump: No default value
- do_custom: It is not clear how often this is called
- self.gotten: This is just an example, but not a proper definition
- self.owner: It is not clear what it means to be the owner
- jump_height is confusing. It has nothing to do with the actual height the mobs jump. No explanation why.

Re: [Mod] Mobs Redo [1.33] [mobs]

PostPosted: Fri Feb 24, 2017 22:59
by BrunoMine
Wow. You can analyze it very critically. Congrats on that.
I believe it would be a major breakthrough if we could work in detail on the presented problems.
I advise opening a issue in github.

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 09:58
by TenPlus1
Updated to 1.34

- New flying mode added to ride api which follows player look direction and can fire arrows.

Wuzzy - Thanks for the in-depth review, I have saved it locally so I can go through each point and see what can be done to make things better :) I do agree however that documentation is lacking in many areas although finding time to re-write is the problem just now.

Much of what cannot be done with mobs redo api right now relies on players and modders using the do_custom function to fill in the gaps for special features (which is called every tick) and I do try to add new features here and there but still remain compatible with PilzAdam's simple mobs.

Thankfully many users have contributed ideas and code to this project which helps make it better, and is very welcome.

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 10:36
by burli
To be honest all mob API's have some big issues. e.g. if the server is lagging, mobs jump forward and backward. If I punch them nothing happens, but they can attack me. I had this situation more than once. I was dead without the chance to fight.

And I would propose to change spawning of animals and NPCs. Animals should spawn only once if the map is loaded the first time and live forever. If you want food from animals you have to tame and breed them. It is pretty useless to play survival if a sheep spawns every other minute.

I also want to propose to add the function to spawn mobs in groups like a herd of cows

Sadly I lost the code from my steering mobs. I have to start from scratch

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 11:31
by Wuzzy
Much of what cannot be done with mobs redo api right now relies on players and modders using the do_custom function to fill in the gaps for special features (which is called every tick) and I do try to add new features here and there but still remain compatible with PilzAdam's simple mobs.

Great!

Oh, the fact that do_custom is called every tick should also be added into api.txt. ;-)

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 12:22
by mase
What is the prefered method to set the spawning rate and amount of mobs in minetest.conf?
mobs_animal:cow = 1000,5
or
mobs_animal:sheep_chance 11000
What are the dimensions of those numbers?

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 13:50
by Andrey01
I am wanting to ask to you, "Oerkki" - is that orc from The Lord Of The Rings?

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 15:00
by TenPlus1
mase - setting 'mobs_animal:cow = 1000,5' has a spawn chance of 1000 with 5 cows per map block and setting 'mobs_animal:cow = 5000' only sets the spawn chance.

Andrey01 - PilzAdam added Oerkki way back in Simple Mobs, am not sure but I think it was a japanese spirit.

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 15:04
by burli
Örkki is the finish word for Ork

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 15:47
by firefox
burli wrote:Örkki is the finish word for Ork

that was unexpected...
it sounds so much cuter than orc =(^.^)=

Re: [Mod] Mobs Redo [1.34] [mobs]

PostPosted: Sat Feb 25, 2017 15:52
by burli
firefox wrote:
burli wrote:Örkki is the finish word for Ork

that was unexpected...
it sounds so much cuter than orc =(^.^)=


https://translate.google.com/#fi/en/%C3%96rkki

;-)