[Mod] Mobs Redo [1.55] [mobs]

Post Reply
linuxman
New member
Posts: 2
Joined: Thu Dec 18, 2014 22:59
In-game: BatteryJuice

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

by linuxman » Post

Thanks! Love your mod!

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

Hi Tenplus1,

Can you add chicken to the possible tamed animals ?

I've tried to code myself this functionnality but, i met some problems with the right click action :/

Thank you :)

User avatar
afflatus
Member
Posts: 350
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

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

by afflatus » Post

I've got a wishlist suggestion. I have to confess I haven't looked at the api code in any depth to have an idea how this could be achieved, but I might have a go at it if this isn't a completely stupid idea ...

Fear factor

All animals and monsters have a "fear" parameter. This varies, usually according to external prompts - presence of predators, dangers like fire & water. This parameter gradually reduces in the presence of a player. Different species have different fear thresholds, domesticatable animals are high, aggressive monsters tending to 0.

Grazing and attraction

Animals should be attracted towards items on their "food" list, including other animals and players. They should attempt to consume food nodes in front of them.

This should also apply to monsters. Different species can be attracted to specific areas by stocking them with their favourite foodstuffs - no need to manually feed them, this will have the effect of replenishing their produce in the same way.

Sheep and cows should eat long grass, so you have to rotate livestock in order to allow grass to regrow; Sandmonsters should make sheep bleat and run away; You should have to protect your chickens from hungry wolves; You could build dungeons and attract monsters to guard your "treasure" ...

Code: Select all

if fear_param > fear threshold then
	if entity_is_food
		fight(entity)
	else
		flight(away from source of fear)
        end
else
	if entity_is_food
		eat(food)
	else
		follow(food)
        end
end
Animals with low fear (i.e. domesticated) could be made less likely to despawn, so they stay around longer. Manual feeding should still work the same, although a list should be used to allow alternatives - pigs are pretty much omnivores.

It would be great to make the follow distance just that little bit bigger.

Eggs are really spammy, but we could make some other creatures eat them. Either that or re-introduce despawning after a time as an option. Oh and is is possible not to have eggs in mid-air?

Please don't ever add V/Zombies. But birds, fish, undead and dragons would be neat. :-)
Grailtest is dreaming ...

guideahon
Member
Posts: 37
Joined: Mon Jan 26, 2015 12:49
In-game: guideahon

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

by guideahon » Post

Hello, i tried this on 4.11 and the only mobs that spawn are sand, tree, dirt monster and the sheep and cow, all the other mobs dont spawn

User avatar
TenPlus1
Member
Posts: 3020
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

The other mobs spawn underground in the dark caves and are found at certain levels... Oerkki can be found at -10 and below, Mese monsters at -20 and below, and Dungeon Masters at -70 and below...

guideahon
Member
Posts: 37
Joined: Mon Jan 26, 2015 12:49
In-game: guideahon

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

by guideahon » Post

TenPlus1 wrote:The other mobs spawn underground in the dark caves and are found at certain levels... Oerkki can be found at -10 and below, Mese monsters at -20 and below, and Dungeon Masters at -70 and below...
Yes, it was a problem with plantlife mod, thank you.

guideahon
Member
Posts: 37
Joined: Mon Jan 26, 2015 12:49
In-game: guideahon

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

by guideahon » Post

Hi TenPlus, i'm having issues again with mapgen V7 and ethereal, Bees, Beehives, Giant Spiders, Oerkki and Dungeon Master dont spawn.
Also, can you add sound on hit_mob, like tsm_pyramids mod?
Great mod!

User avatar
TenPlus1
Member
Posts: 3020
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

Monsters and Animals spawn on specific blocks so you would either need to use v6 mapgen or a v7 mapgen mod to supply those blocks... Also note that each mob can be changed to spawn on whatever you like just by looking at code... Mobs Redo has full v6 and Ethereal v7 support...

guideahon
Member
Posts: 37
Joined: Mon Jan 26, 2015 12:49
In-game: guideahon

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

by guideahon » Post

TenPlus1 wrote:Monsters and Animals spawn on specific blocks so you would either need to use v6 mapgen or a v7 mapgen mod to supply those blocks... Also note that each mob can be changed to spawn on whatever you like just by looking at code... Mobs Redo has full v6 and Ethereal v7 support...
I traveled on an ethereal with v7 mapgen from 0 to - 1000 with no clip and i found no dungeon master, the problem was the ilumishroom, too much light, so i changed max-light of oerki and dungeon master to 5 and now there are few but they now spawn.

User avatar
TenPlus1
Member
Posts: 3020
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

Good idea, will change values and update github...

User avatar
afflatus
Member
Posts: 350
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

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

by afflatus » Post

Loving the latest version TenPlus1. Particularly the sounds. Thanks.
I haven't checked whether everything is spawning correctly in my highly modified game, but that's my problem.
Grailtest is dreaming ...

User avatar
afflatus
Member
Posts: 350
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

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

by afflatus » Post

I can't place chickens in a protected area that I own - using areas mod.
Grailtest is dreaming ...

User avatar
afflatus
Member
Posts: 350
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

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

by afflatus » Post

Fixed using placer:get_player_name()

Code: Select all

minetest.register_craftitem("mobs:chicken", {
	description = "Chicken",
	inventory_image = "mobs_chicken_inv.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above and not minetest.is_protected(pointed_thing.above, placer:get_player_name()) then
			minetest.env:add_entity(pointed_thing.above, "mobs:chicken")
			itemstack:take_item()
		end
		return itemstack
	end,
})
Grailtest is dreaming ...

User avatar
TenPlus1
Member
Posts: 3020
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

This has already been fixed in the latest version of the mod on github and the forum...

User avatar
afflatus
Member
Posts: 350
Joined: Tue Apr 01, 2014 19:47
GitHub: 0-afflatus
IRC: afflatus
In-game: afflatus
Location: Avalonia
Contact:

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

by afflatus » Post

Great! thank you.
Grailtest is dreaming ...

Rochambeau
Member
Posts: 119
Joined: Tue Sep 23, 2014 11:37

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

by Rochambeau » Post

Is it possible to manipulate the mobs' visual_size on the go?

I'm working on a breeding mob and would like to spawn siblings in a different size. My current code doesn't work.

Code: Select all

local function spawn_mobs(pos, name)
-- spawn mob
	local mob = minetest.add_entity(pos, name)
-- spawn hearts
	spawn_hearts(pos)
	-- set mob hp
	if mob then
		mob = mob:get_luaentity()
		mob.visual_size = { x = 0.5, y = 0.5},
		mob.object:set_hp( math.random(mob.hp_min, mob.hp_max) )
		mob.tamed = true
		mob.armor = mobs_exhausted
-- normalize mobs armor
		minetest.after(mobs_timer,function()
			reset(mob)
      end)
	end
end

User avatar
Nathan.S
Member
Posts: 1074
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

Have not tested but should probably be possible using a random call on the visual size, not sure how you would make them grow up though.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

guideahon
Member
Posts: 37
Joined: Mon Jan 26, 2015 12:49
In-game: guideahon

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

by guideahon » Post

Are you planning on adding kpg mobs? i ported them to mobs redo on my pc, but i'm still tweaking it a bit to make it better, (planning on adding sounds on mob_hit like mummys from pyramids mob) Would you like to merge after i finish?

User avatar
Echoes91
Member
Posts: 75
Joined: Thu Feb 19, 2015 13:21
In-game: Echoes
Location: Lombardy, Italy

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

by Echoes91 » Post

Great work, i think this is the most funny and balanced set of mobs. Just had a glimpse, shouldn't cows and sheeps eat grass instead of wheat? It looks more realistic and those grass piles may become useful, maybe increasing the self food "refill" value to keep it balanced.

User avatar
TenPlus1
Member
Posts: 3020
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

Latest additions include settings mobs to float or sink in water... Drops on ANY death either from player, fall damage, drowning or lava... War cries and Death sounds in Api... and Spawn Eggs (admin only)...

User avatar
Linuxdirk
Member
Posts: 2778
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

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

by Linuxdirk » Post

It crashes for me with the latest Git version :(

Code: Select all

23:03:31: ERROR[main]: ServerError: /home/dirk/.minetest/mods/mobs/api.lua:735: attempt to index field '?' (a nil value)
23:03:31: ERROR[main]: stack traceback:
23:03:31: ERROR[main]: 	/home/dirk/.minetest/mods/mobs/api.lua:735: in function </home/dirk/.minetest/mods/mobs/api.lua:710>

byronarn
Member
Posts: 12
Joined: Mon Jan 19, 2015 16:29

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

by byronarn » Post

Awesome mod. I love it!

One question. Is there a way to change the frequency the spawn of hostile mobs? The game is too easy. I want a challenge to survive. Lol.

User avatar
TenPlus1
Member
Posts: 3020
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

linuxdirk: line 735 adds a number and will not crash, please make sure you have new Minetest 0.4.12 installed and folder is renamed to 'mobs' and not 'mobs-master'...

byronarn: in each mob .api file is a command mobs:register_spawn .. you can change the chance values to make mobs spawn more regularly, or active_object_count to have more in 1 area:

mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height)

User avatar
Linuxdirk
Member
Posts: 2778
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

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

by Linuxdirk » Post

TenPlus1 wrote:linuxdirk: line 735 adds a number and will not crash, please make sure you have new Minetest 0.4.12 installed and folder is renamed to 'mobs' and not 'mobs-master'...
Wait a second … 0.4.12? That might be the issue. (I should check the news section more often …)

Damn you Massimiliano Torromeo (yes, you! I know you! *g*) for not updating the Arch Linux package in the repositories. It’s out since nearly two weeks!

I’ll try with the latest version :D

Edit: Still randomly crashes with same error message and lines.

Code: Select all

$ minetest --version
Minetest 0.4.12
Using Irrlicht 1.8.1
Build info: VER=0.4.12 BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR=/usr/share/minetest

$ pwd
/home/dirk/.minetest/mods/mobs

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

User avatar
Linuxdirk
Member
Posts: 2778
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

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

by Linuxdirk » Post

Here’s a screenshot of that message showing the same information as the log file and the console output.

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests