[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: 1074
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: 128
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: 699
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.

User avatar
Diomède
New member
Posts: 4
Joined: Wed Nov 18, 2020 08:53
In-game: Diomede

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

by Diomède » Post

Hello guys,

Great mod !
But is there anybody still on it, or is it dead already ?

Big project here :
I work in a fablab, and we kind of team up with schools to offer activities to children in both Minecraft and the real world. They go through various quests and have to switch between the game and other places to interact with (museums, historic spots... you know, various cultural places). We were using BetonQuest for Minecraft with some Arduino stuff and it was working fine.
BUT NOW we have to switch to Minetest (whatever is the reason, it's a good one).

SO :
I am thinking about using AdvancedNPC in combination with E.P.I.C. (https://content.minetest.net/packages/B ... nzay/epic/), as a replacement for BetonQuest.
In particular, BetonQuest allows the use of NPC dialogues to walk through the steps of a quest, which is pretty much what we want from an RPG-like quest system.
Since AdvancedNPC is one of the rare mods (if not the only one in the ContentDB) to include dialogues with NPC, I think the potential is huge.
E.P.I.C. is a quest framework that uses right-clicks on various cubes as triggers for quests progress. It's more basic than BetonQuest, but it seems clean and stable (see "Damocles" server for quick playable examples of use). I haven't seen the full potential of it, since there are many different cubes (will do this today). But if a right-click on a cube executes a command, that could be an opening for anything new (triggering NPC dialogues, hm?). I will try to get in touch with them as I did here.

We already have several quests for BetonQuest in .yml (using dialogues), plus all the arduino stuff plus a plugin for holocaustin... local-hosting all of that.
I just need to know if anybody's still there to eventually help on adjustments with the mod, just in case it's required (it probably will be).

Thank you !

Sokomine
Member
Posts: 4170
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Post

Diomède wrote: I work in a fablab, and we kind of team up with schools to offer activities to children in both Minecraft and the real world. They go through various quests and have to switch between the game and other places to interact with (museums, historic spots... you know, various cultural places).
Sounds like a lot of fun. Could be of intrest for more...er...more...adult..."kids" as well :-) The RL interaction might be a bit problematic due to players beeing placed all over the world.
Diomède wrote: We were using BetonQuest for Minecraft with some Arduino stuff and it was working fine.
I don't know about BetonQuest, but I've been to an MC server once which had some "quests": When right-clicking a mob, he was showing an inventory (the villager trading one afaik), and on mouseover, diffrent inventory items offered diffrent options to reply to the npc. The inventory items/options could be clicked and the quest would go on. Is that like it?
Diomède wrote: triggering NPC dialogues, hm?
Some time ago, a great feature has been added to MT so that better formspecs can be created that don't look too bad. If you know the point&click adventures of old...that's what I have in mind there:
Image

The basics are doable - show some text and offer "links" that can be clicked on and reacted to. And of course npc can react to right-clicks. It "just" needs a bit of a programming language for writing dialogs and a lot of eye candy and effort put into graphics so that it looks good. Might be great to see a screenshot of the npc who hands the job out as well. I don't have much time right now but plan to do something in the area of a small language for dialogs. I'm not good at all at the necessary eye candy.
Diomède wrote: We already have several quests for BetonQuest in .yml (using dialogues), plus all the arduino stuff plus a plugin for holocaustin... local-hosting all of that.
Well, then you already have a language for the dialogs and just need to implement that in MT plus add the necessary graphics. Ought to be doable, though I don't know what other features BetonQuest has. You're not necessarily dependant on one particular mob mod.
Attachments
mobtalk2.jpg
(44.8 KiB) Not downloaded yet
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests