[Mod] Mobs Redo [1.61] [mobs]

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Make sure that you are using the kpgmobs made for mobs redo:

viewtopic.php?f=9&t=8798&start=50#p173539

also creatures mod should work fine alongside mobs redo...

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

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

by mahmutelmas06 » Post

Code: Select all

23:14:28: ERROR[main]: ServerError: D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:927: bad argument #1 to 'ipairs' (table expected, got nil)
23:14:28: ERROR[main]: stack traceback:
23:14:28: ERROR[main]: 	[C]: in function 'ipairs'
23:14:28: ERROR[main]: 	D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:927: in function 'check_for_death'
23:14:28: ERROR[main]: 	D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:281: in function 'do_env_damage'
23:14:28: ERROR[main]: 	D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:289: in function <D:\Oyun\Kurulan\Minetest\bin\..\mods\mobs/api.lua:178>
My Mods:

Beverage

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

mahmutelmas06: going by the errors and line numbers you are not running the latest mobs redo api, so... what other mods are you running ? and what was happening in the world at the time of crash ?

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

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

by mahmutelmas06 » Post

TenPlus1 wrote:mahmutelmas06: going by the errors and line numbers you are not running the latest mobs redo api, so... what other mods are you running ? and what was happening in the world at the time of crash ?
My mob version is 1.08
It hapens when i place an animal on land close to sea in creative mode. But it hapens sometimes not always.

Edit:

I found the bug. Its related to drop on die function.
Probably another mod overwrite it so it wasnt working.
But i am not sure i need to test for a while
My Mods:

Beverage

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

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

by Rochambeau » Post

Hi,

I'm trying to create a mod, where certain mobs should spawn in certain areas.
For that, I created a special node and want to spawn - for example - a NPC on that node. My code looks like this, but on a 10x10 field of cobblespawn, not a single NPC is spawning.

Code: Select all

minetest.register_node("testmod:cobblespwan", {
	description = "Cobblespawn",
	tiles = {"default_cobble.png"},
	is_ground_content = true,
	groups = {cracky=3, stone=2},
	sounds = default.node_sound_stone_defaults(),
})

mobs:register_spawn("mobs:npc", {"testmod:cobblespawn"}, 20, 0, 1, 15, 31000)
depends.txt includes mobs.

What am I doing wrong?

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

You had a typo in the code above, once fixed it works fine, every 30 seconds an npc appears on top of the cobblespawn block...

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

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

by Rochambeau » Post

*blush* Yep, right, thank you...

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

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

by afflatus » Post

Is it possible to make "follow" accept a list and then use that list for the on_rightclick function?
or at least, would you be interested if I can figure out how to do it?

I would also love it if the replace_* attributes replenished wool, milk etc. in the same way, but this may be an unnecessary complication.

I'm delighted to see that pigs eat apples and rabbits eat carrots now. Thanks!
And the kittens are extremely cute - could they also accept milk?
Grailtest is stirring ...

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

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

by afflatus » Post

Is it the case that all mobs basically live for 600 ticks, or did I miss something? It would be nice if different species had different life-spans. There is a bit of an issue with the fact that none of the animals hang around for long even if they are tamed. It's also slightly annoying that /clearobjects always completely wipes the board, but that's an engine issue I guess.

The kpgmobs horses also need a lot of work, but I guess we should talk about that on the kpgmobs thread.
Grailtest is stirring ...

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

At present the mobs redo api is going through a sort of overhaul and I'm adding many new features including jumping only mobs, mob_specific registration and I can look into lifetimers and replace function adding to mob foods and replenishing wool/milk etc :) also added jump sounds...

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

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

by mahmutelmas06 » Post

Some wild animals should attack to each other.
for exp wolf could attack sheep and kitten
rat could attack to bunny
My Mods:

Beverage

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

mahmutelmas06 wrote:rat could attack to bunny
Rats eat cheese and cornflakes. I doupt they would like to eat moving meat.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Although my nearly finished snake would like a bunny or rat snack.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

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

by Don » Post

ExeterDad wrote:Although my nearly finished snake would like a bunny or rat snack.
Yay. My snake is almost ready!
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

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

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

by afflatus » Post

Yes animals generally attack smaller animals. Wolves should take chickens too.
Great work! I look forward to testing out the new features ... as and when.
Grailtest is stirring ...

Danfun64
Member
Posts: 29
Joined: Wed Jun 05, 2013 01:22

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

by Danfun64 » Post

Question. How do I turn off the blood?

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

their isn't really a switch to turn it off, but if you set blood_amount to 0 for your mob it wont appear...

Update: in latest github version I've added a switch enable/disable blood, add the following line to your minetest.conf file:

mobs_enable_blood = false

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

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

by afflatus » Post

A couple of side-issues:
mobs:register_egg() is impossible to override due to the slight overloading of 'mob' (if that''s the right way to put it). Mine is an edge case, so I'm not expecting a fix. I'm just posting here in case anyone else tries to override it.

The second question after "can I keep the kitty as a pet / what does it eat?" - is "how do I name it?" Apparently players want to be able to name their pets. Again, it's a minor detail.
Grailtest is stirring ...

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Naming of the pets shouldn't be too hard. I was messing with that. But I really wanted the name to hover the animal like a gamer tag. So all could see the difference between a owned pet or a wild critter. I couldn't figure out how so I lost interest. Maybe TenPlus1 might solve this *subtle hint* :P

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

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

by Don » Post

ExeterDad wrote:Naming of the pets shouldn't be too hard. I was messing with that. But I really wanted the name to hover the animal like a gamer tag. So all could see the difference between a owned pet or a wild critter. I couldn't figure out how so I lost interest. Maybe TenPlus1 might solve this *subtle hint* :P
Do you loose interest easily?
Naming pets is a good idea
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Don wrote: Do you loose interest easily?
Indeed. Too many shiny objects to explore.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

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

by Sokomine » Post

ExeterDad wrote: Naming of the pets shouldn't be too hard. I was messing with that. But I really wanted the name to hover the animal like a gamer tag. So all could see the difference between a owned pet or a wild critter. I couldn't figure out how so I lost interest. Maybe TenPlus1 might solve this *subtle hint* :P
Take a look at npcf. It has hoovering name tags.
A list of my mods can be found here.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Sokomine wrote: Take a look at npcf. It has hoovering name tags.
I already did awhile ago. But then my brain hurt. I have much more to learn before tackling that code. But also I was concerned it may be too heavy for a hovering tag. I do wish entities could have meta info text like a node can. That seems like a lightweight solution. But not a option right now.

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

Devs have been requested to allow changable tags to objects which would help a lot in naming mobs and showing status information (healthy, recovering, child etc)... I will however look into the npcf mod and see how the nametags are done there...

prestidigitator
Member
Posts: 647
Joined: Thu Feb 21, 2013 23:54

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

by prestidigitator » Post

ExeterDad wrote:I do wish entities could have meta info text like a node can. That seems like a lightweight solution. But not a option right now.
Actually Lua entities have far easier "metadata" than nodes do. You can add arbitrary properties to their instance tables. Just treat the value returned by LuaEntitySAO:get_luaentity() like any old Lua table. For example, this is how prestibags store their contents when rezzed in-world.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests