[MOD] BasilMod::NPC - Fancy cities!

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: HOW TO FIND CHARCTER ID'S

Post by Custodian » 02 Jul 2016, 21:01

Fyoki wrote:is there somewhere in the server database i can look?

You can find character id from `character` table in your database.


Dealtime
 
Posts: 4
Joined: 30 Oct 2014, 15:54

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Dealtime » 26 Jul 2016, 00:50

Hi Custodian,

Have 2 questions for the "future" features of this really nice mod :

#1
If you work a npc mod that can be ennemie npc for event like a bunch of pirates npc attacking village.

#2
If you think it's will be possible to give order to friendly npc to work on your village like have some npc peasants cutting tree, terraforming your terrain , building your wall etc. ( LOT OF WORK probably :P)


I appreciate your excellent work for this game, I wish I could do the same of what you doing. Have so many ideas for life is feudal.

And sry for my english. :beer:

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 27 Jul 2016, 07:15

Dealtime wrote:#1
If you work a npc mod that can be ennemie npc for event like a bunch of pirates npc attacking village.

I haven't yet looked into detailes of the last 1.1.2.3 patch, but were no way to make agressive NPCs with modding.

Dealtime wrote:#2
If you think it's will be possible to give order to friendly npc to work on your village like have some npc peasants cutting tree, terraforming your terrain , building your wall etc. ( LOT OF WORK probably :P)

This is a lot of work, indeed.
Although, path routes for NPCs (like traveling merchant along the road between 2 cities) are under development now. Small changes to that behaviour, and custom UI for commands handling can be done to implement some kind of command system for NPCs.

User avatar
RetroLogi
 
Posts: 137
Joined: 29 Dec 2014, 15:49
Location: Italia

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by RetroLogi » 26 Aug 2016, 19:54

I'm looking for a code to program my npc walking or guards patrol. Can anyone tell me how to do? thz

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 26 Aug 2016, 20:24

RetroLogi wrote:I'm looking for a code to program my npc walking or guards patrol. Can anyone tell me how to do? thz


Head post wrote:Current public release does not provide support for animation transitions, mounts, animals, action queues and NPC movement.

User avatar
RetroLogi
 
Posts: 137
Joined: 29 Dec 2014, 15:49
Location: Italia

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by RetroLogi » 27 Aug 2016, 19:13

OK, but where can I do this?


Catall
Devoted Believer
 
Posts: 43
Joined: 07 Jul 2016, 11:04

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Catall » 30 Sep 2016, 08:09

At first i really appreciate the hard work you are doing for the community! I am using many mods you did, thumbs up, great work!

I struggle an Error on NPC mod i can'T get rid off:

I did Setup two NPC guards on our Server for testing purposes.

It seems everythin went fine, NPCs appeared and did what the have to to.

When i took a look at the Server console i saw an Error-message apearing almost every second:

ERRR 2016-09-30 08:24:14.743 {} <> [192520] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:15.767 {} <> [192678] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:16.792 {} <> [192827] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:17.822 {} <> [192975] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:18.837 {} <> [193109] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:19.865 {} <> [193261] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!

I read this thread and changed empty Hands in idle from 0 to 3 knowing the Slot 3 of my NPCs is where the weapon went. i just reloaded NPCs after my Change and did not restart the whole Server. The Error still was the same after my change. Might this be the issue for this error?

Error disapears after removing NPC mod and restarting.

Content of config.cs:
Code: Select all
//NPC: Stadtwache 1
// position = "-2085.61 749.895 1016.45";
// rotation = "0 0 1 182.065";
%npc1 = BasilMod::npc_create(290, "-2085.61 749.895 1016.45", "0 0 1 182.065");
%npc1.addIdle("idle1", "2000 2000", 3);
%npc1.addIdle("1h trickmove2", "6000 3000", 3);
//NPC: Stadtwache 2
// position = "-2085.38 739.239 1016.37";
// rotation = "0 0 1 3.52628";
%npc2 = BasilMod::npc_create(290, "-2085.38 739.239 1016.37", "0 0 1 3.52628");
%npc2.addIdle("idle1", "5000 1000", 3);
%npc2.addIdle("approval", "5000 1000", 4);
//ZONE: Guards
//ZONE: trade greet
// position = "-2088.85 743.778 1016.99";
%zone = BasilMod::npc_zone("-2088.85 743.778 1016.99", "4", "0 500", "honor", 0);
%zone.add(%npc1);
%zone.add(%npc2);


In Addition the following mods are installed and working flawless:
ravens, Chats, motd, gmmanounce, teleport (for coords in gm only).

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 30 Sep 2016, 08:36

Catall wrote:I struggle an Error on NPC mod i can'T get rid off:
...
When i took a look at the Server console i saw an Error-message apearing almost every second:

Well, thats something new. I haven't seen such error before. Please, share your server log file with me.


SomeoneD
Zealous Believer
 
Posts: 14
Joined: 10 Jun 2016, 22:49

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by SomeoneD » 12 Oct 2016, 10:31

Catall wrote:At first i really appreciate the hard work you are doing for the community! I am using many mods you did, thumbs up, great work!

I struggle an Error on NPC mod i can'T get rid off:

I did Setup two NPC guards on our Server for testing purposes.

It seems everythin went fine, NPCs appeared and did what the have to to.

When i took a look at the Server console i saw an Error-message apearing almost every second:

ERRR 2016-09-30 08:24:14.743 {} <> [192520] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:15.767 {} <> [192678] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:16.792 {} <> [192827] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:17.822 {} <> [192975] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:18.837 {} <> [193109] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2016-09-30 08:24:19.865 {} <> [193261] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!

I read this thread and changed empty Hands in idle from 0 to 3 knowing the Slot 3 of my NPCs is where the weapon went. i just reloaded NPCs after my Change and did not restart the whole Server. The Error still was the same after my change. Might this be the issue for this error?

Error disapears after removing NPC mod and restarting.

Content of config.cs:
Code: Select all
//NPC: Stadtwache 1
// position = "-2085.61 749.895 1016.45";
// rotation = "0 0 1 182.065";
%npc1 = BasilMod::npc_create(290, "-2085.61 749.895 1016.45", "0 0 1 182.065");
%npc1.addIdle("idle1", "2000 2000", 3);
%npc1.addIdle("1h trickmove2", "6000 3000", 3);
//NPC: Stadtwache 2
// position = "-2085.38 739.239 1016.37";
// rotation = "0 0 1 3.52628";
%npc2 = BasilMod::npc_create(290, "-2085.38 739.239 1016.37", "0 0 1 3.52628");
%npc2.addIdle("idle1", "5000 1000", 3);
%npc2.addIdle("approval", "5000 1000", 4);
//ZONE: Guards
//ZONE: trade greet
// position = "-2088.85 743.778 1016.99";
%zone = BasilMod::npc_zone("-2088.85 743.778 1016.99", "4", "0 500", "honor", 0);
%zone.add(%npc1);
%zone.add(%npc2);


In Addition the following mods are installed and working flawless:
ravens, Chats, motd, gmmanounce, teleport (for coords in gm only).

I also have this problem with any configuration

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 12 Oct 2016, 10:41

SomeoneD wrote:I also have this problem with any configuration

This problem is under investigration. Latest patches caused such behaviour due to internal changes.


Larainan
 
Posts: 83
Joined: 08 Sep 2015, 15:19

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Larainan » 26 Oct 2016, 11:53

Oh good I thought it was just me. Teleport works for just the coords and I can even get the teleport message when I step into the teleport area specified but I don't go anywhere. Now that I know there is an issue with fancy cities as well I'll wait to try it. I got ravens working ok until I restarted the server now it wont run and causes players to loop on mod installation.

User avatar
RetroLogi
 
Posts: 137
Joined: 29 Dec 2014, 15:49
Location: Italia

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by RetroLogi » 02 Nov 2016, 11:26

[REPORT]

Hi Basil, mod has problems after the last patch, the NPC spawn without equipment..


SomeoneD
Zealous Believer
 
Posts: 14
Joined: 10 Jun 2016, 22:49

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by SomeoneD » 09 Nov 2016, 00:37

RetroLogi wrote:[REPORT]

Hi Basil, mod has problems after the last patch, the NPC spawn without equipment..

+1 :sorry:

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 09 Nov 2016, 09:19

RetroLogi wrote:[REPORT]
Hi Basil, mod has problems after the last patch, the NPC spawn without equipment..

Thanks for the report. This is a known issue with latest LiF:Yo versions.
Unfortunately, there is no ETA for the fix.

User avatar
RetroLogi
 
Posts: 137
Joined: 29 Dec 2014, 15:49
Location: Italia

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by RetroLogi » 09 Nov 2016, 10:32

Custodian wrote:
RetroLogi wrote:[REPORT]
Hi Basil, mod has problems after the last patch, the NPC spawn without equipment..

Thanks for the report. This is a known issue with latest LiF:Yo versions.
Unfortunately, there is no ETA for the fix.



No problem mate, so much ever time you need, you take the time.


Mikelinsenmayer
 
Posts: 1
Joined: 14 Oct 2014, 15:11

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Mikelinsenmayer » 14 Jan 2017, 04:14

Anyupdates?

Also see this error message in console

ERRR 2017-01-13 20:07:52.368 {} <> [169151] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2017-01-13 20:07:53.390 {} <> [169745] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2017-01-13 20:07:54.415 {} <> [170352] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2017-01-13 20:07:55.438 {} <> [170933] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!
ERRR 2017-01-13 20:07:56.463 {} <> [171513] Can't send NetEvent CharacterInfoEvent: not allowed [0|0]!

Also wont despawn npc's

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 14 Jan 2017, 18:19

Mikelinsenmayer wrote:Anyupdates?

No updates so far.


Goolah13
 
Posts: 2
Joined: 27 Jan 2017, 22:13

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Goolah13 » 27 Jan 2017, 22:21

Hi. First off thank you for the effort that you have out into these mods.

I am having trouble getting this to work. I believe that I have everything installed correctly. I have the keybinds options, the config file is updated when I add an NPC in game, but I can't get an NPC to actually show up in game.

I have been using the "Character ID" from the database. For example, the ID in the database is 5 so I changed the config to the following:

%npc = BasilMod::npc_create(5, "1649.51 -1601.68 1011.55", "0 0 1 2.74661");

Is that correct?

Thanks.


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Alakar » 28 Jan 2017, 00:21

Goolah13 wrote:Hi. First off thank you for the effort that you have out into these mods.

I am having trouble getting this to work. I believe that I have everything installed correctly. I have the keybinds options, the config file is updated when I add an NPC in game, but I can't get an NPC to actually show up in game.

I have been using the "Character ID" from the database. For example, the ID in the database is 5 so I changed the config to the following:

%npc = BasilMod::npc_create(5, "1649.51 -1601.68 1011.55", "0 0 1 2.74661");

Is that correct?

Thanks.


This mod does not work atm and he just said no updates on to when.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 28 Jan 2017, 10:55

Goolah13 wrote:Is that correct?

Your config is correct, but as Alakar mentioned, mod is not yet compatible with current game version.


Goolah13
 
Posts: 2
Joined: 27 Jan 2017, 22:13

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Goolah13 » 29 Jan 2017, 15:25

Okay thanks for the info


Guillaume.eniona
 
Posts: 1
Joined: 13 Feb 2017, 19:43

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Guillaume.eniona » 13 Feb 2017, 19:45

:HI,

Thanks for this great job :) any update about this Mod for the 64bits version?

hope to be release soon :D

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 13 Feb 2017, 20:17

BasilMod::NPC has been updated to v3 and now works again :Yahoo!: and compatible with LiF 64bit.

You previous configs should work fine. If you get unexpected NPC behaviour, please printscreen/film it, and share with me.

BasilMod::NPC is not compatible with BasilMod::Fixes::PlayerSave at this time. Please disable BasilMod::Fixes::PlayerSave if you want NPC.


Catall
Devoted Believer
 
Posts: 43
Joined: 07 Jul 2016, 11:04

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Catall » 15 Feb 2017, 14:49

Thank you very much Basil for the huge amount of work you put into theese fancy mods! :-) Pure game expierience enrichment!

Is the playersave nowadays still needed? I'd have to figure out if i would like NPCs or small logfiles... :D

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 15 Feb 2017, 15:07

Catall wrote:Is the playersave nowadays still needed? I'd have to figure out if i would like NPCs or small logfiles... :D

I guess it is not needed for LiF 64-bit. I haven't encounter such problem on Lif 64bit yet.
Anyway, next version of NPC mod will be compatible with PlayerSave fix again.

User avatar
Skandar
 
Posts: 5
Joined: 07 Apr 2017, 00:20

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Skandar » 07 Apr 2017, 01:00

Greetings Custodian. As of the patch I am not seeing the NPCs.
Is there a quick fix or do I need for you to update your mod first and fix it then?
I was able to do this
Custodian wrote:
Halvdal wrote:Could update your Pack to the new patch please? :)

Until mod is updated, you can add following line to the end of main.cs file:
Code: Select all
exec("basilmodloader/loader.cs");

This would make BasilMod::Pack work again.


And got the BasilMod::Pack to work again but not BasilMod::NPC.

Thank You.

User avatar
Skandar
 
Posts: 5
Joined: 07 Apr 2017, 00:20

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Skandar » 11 Apr 2017, 16:19

So after some further testing, the npc's show up after a server restart. Once I, as the server host and basilmod operator, log out and back in, the npc's are no longer in game. If I restart the server again, the cycle repeats. This issue starter after their last patch and was working fine before that.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 11 Apr 2017, 21:50

Skandar wrote:This issue starter after their last patch and was working fine before that.

Could you specify LiF version you are using? there are a lot of malfunction LiF patches lately.

User avatar
Elindor
True Believer
 
Posts: 195
Joined: 20 Dec 2013, 18:48

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Elindor » 12 Apr 2017, 15:23

I made a case for something kinda like this in the MMO:

serfs-and-guards-t22954/

User avatar
Skandar
 
Posts: 5
Joined: 07 Apr 2017, 00:20

Re: [MOD] BasilMod::NPC - Fancy cities!

Post by Skandar » 13 Apr 2017, 05:33

Could you specify LiF version you are using? there are a lot of malfunction LiF patches lately.


LiF:YO - yo_1.3.0.5

Return to Game mods