[Mod] Advanced NPC (WIP) [advanced_npc]

zorman2000
Member
Posts: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

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

by zorman2000 » Post

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!

User avatar
Diamond knight
Member
Posts: 475
Joined: Sun Apr 19, 2015 19:50
GitHub: Diamondknight
In-game: Ferrumprinceps
Location: Chilling in Constantinople
Contact:

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

by Diamond knight » Post

Is this mod dead? I hope not. I have been waiting for it to become stable and not crash.

dawgdoc
Member
Posts: 253
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

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

by dawgdoc » Post

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.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

User avatar
BrunoMine
Member
Posts: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

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

by BrunoMine » Post

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.

User avatar
NetYard5
Member
Posts: 66
Joined: Fri Aug 24, 2018 20:28
GitHub: FI3Mate
IRC: AlloyMixedSteel
In-game: InfinityYards UltraNexo
Location: Malaysia, Kuala Lumpur

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

by NetYard5 » Post

can you list me advanced_npc's item string? I need it for /giveme

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

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

by JiCeyCraft » Post

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
Trust and Honesty are necessary conditions for friendship. (Princess Celestia)

trungus
Member
Posts: 10
Joined: Thu Apr 19, 2018 18:14
In-game: Trungus

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

by trungus » Post

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

ShadMOrdre
Member
Posts: 679
Joined: Mon Dec 29, 2014 08:07
GitHub: ShadMOrdre
In-game: shadmordre
Location: USA

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

by ShadMOrdre » Post

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
MY MODS: lib_ecology lib_materials lib_clouds lib_node_shapes ---- Inspired By: Open Source Virtual World Simulator Opensimulator.

trungus
Member
Posts: 10
Joined: Thu Apr 19, 2018 18:14
In-game: Trungus

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

by trungus » Post

Hi ShadMOrdre

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

Thank you a lot.
Best Regards

trungus
Member
Posts: 10
Joined: Thu Apr 19, 2018 18:14
In-game: Trungus

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

by trungus » Post

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
Attachments
2019-02-06 17_18_58-Minetest 0.4.17.1 [OpenGL 4.3.0].png
(42.02 KiB) Not downloaded yet

grifisx
New member
Posts: 1
Joined: Thu Feb 13, 2020 10:49

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

by grifisx » Post

Hi, why I cannot see the egg "npc spawn" in the video at start of the thread?
Thanks for reply.

Post Reply

Who is online

Users browsing this forum: ElCeejo and 11 guests