Page 4 of 4

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Sun Apr 08, 2018 14:21
by zorman2000
scr267 wrote:Hi

I ran into the following error using the current master branch:

2018-04-04 17:05:12: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'advanced_npc' in callback node_on_timer(): Runtime error from mod 'advanced_npc' in callback luaentity_Activate(): /home/someuser/.minetest/mods/advanced_npc/npc.lua:1319: attempt to inde
2018-04-04 17:05:12: ERROR[Main]: field 'actions' (a nil value)
2018-04-04 17:05:12: ERROR[Main]: stack traceback:
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/npc.lua:1319: in function 'after_activate'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/npc.lua:1658: in function 'after_activate'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/mobs_redo/api.lua:2512: in function </home/someuser/.minetest/mods/mobs_redo/api.lua:2395>
2018-04-04 17:05:12: ERROR[Main]: [C]: in function 'add_entity'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/spawner.lua:419: in function 'spawn_npc'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/spawner.lua:364: in function 'spawn_npc_on_plotmarker'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/spawner.lua:1004: in function </home/someuser/.minetest/mods/advanced_npc/spawner.lua:1002>
2018-04-04 17:05:12: ERROR[Main]: stack traceback:
2018-04-04 17:05:12: ERROR[Main]: [C]: in function 'add_entity'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/spawner.lua:419: in function 'spawn_npc'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/spawner.lua:364: in function 'spawn_npc_on_plotmarker'
2018-04-04 17:05:12: ERROR[Main]: /home/someuser/.minetest/mods/advanced_npc/spawner.lua:1004: in function </home/someuser/.minetest/mods/advanced_npc/spawner.lua:1002>


As a temporary measure I've reverted to Tag: 1.0.0-alpha-1 - but it hasn't been long enough to know if it will crash or not yet.

Thanks very much for an amazing mod!

scr267


Hi scr267, branch currently is a mess, due to a lot of changes I've been doing, so I wouldn't go about using it now :)
However, feel free to use alpha1, which is the latest stable version.

I will also take a look at this error and see what is causing it.

Thanks! Hope you enjoy the mod... also for sure much better things are coming soon!

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Mon Dec 03, 2018 00:27
by Diamond knight
Is this mod dead? I hope not. I have been waiting for it to become stable and not crash.

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Mon Dec 03, 2018 09:07
by dawgdoc
Diamond knight wrote:Is this mod dead? I hope not. I have been waiting for it to become stable and not crash.

I doubt it, but his last update/commit to the mod was in June. advanced-npc github.

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Mon Dec 03, 2018 13:42
by BrunoMine
I'm using this mod. Soon I will expand my project of mod societies, whose behavior of NPCs is realistic thanks to this incredible mod.

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Sun Jan 13, 2019 06:08
by NetYard5
can you list me advanced_npc's item string? I need it for /giveme

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Wed Jan 16, 2019 08:49
by JiCeyCraft
BrunoMine wrote:I'm using this mod. Soon I will expand my project of mod societies, whose behavior of NPCs is realistic thanks to this incredible mod.


If you can merge Advanced_NPCs with Societies, I'll TAKE it! :D

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Wed Feb 06, 2019 13:29
by trungus
Hi guys

I have a problem and I can’t figure out how to resolve it, there is no villagers, they never spawn, I let the server and the client running for more than an hour and nothing.
I check the code and I found something weird, inside the on_timer event (spawner.lua file) there is an If checking the variable mg_villages_entity_name, here is the code

Code: Select all
    on_timer = function(pos, elapsed)
            -- Adds timer support
            if mg_villages_entity_name ~= nil and mg_villages_entity_name ~= "" then
                npc.spawner.spawn_npc_on_plotmarker(mg_villages_entity_name, pos)
            end
        end,


Even I found a setter function but is never used, so the variable is nevet set and the If does nothing and no villagers spawn.

Any idea?
Best Regards and Thank you in advance

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Wed Feb 06, 2019 17:14
by ShadMOrdre
Zorman2000s last git commit changes this mod. This mod is now ONLY an API.

If you search Zorman2000s git, you'll find a repository for mg_villages_npc, which is the actual NPC mob.

You must install both to get the mob NPC.

Shad

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Wed Feb 06, 2019 17:36
by trungus
Hi ShadMOrdre

Silly me, I never notice what you say, I'll test it tonight.

Thank you a lot.
Best Regards

Re: [Mod] Advanced NPC (WIP) [advanced_npc]

PostPosted: Wed Feb 06, 2019 20:21
by trungus
Hey Guys

I test the mg_villages_npc and I've Villages, thank you ShadMOrdre.

Now I have another issue with the villagers, all of them are render below the ground, see the attach.

I think that the problem is related to the collisionbox and the position to render the model, somebody can help me?.

Best Regards and Thank you in advance.
Trungus