[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: [MOD] BasilMod::NPC - Fancy cities!

Post by Custodian » 07 Jul 2017, 15:45

Jakub.jochim wrote:Is there any way to set up NPC to doing animation constatly without zone and not depending on the player position?

Yes, you can add animations for NPCs which does not depend on player.
Please, read the configuration manual, and follow youtube tutorials. You need to use "addIdle" function.
Village showcase video shows an example, and NPC Worksite video shows configuration process.

User avatar
Skyff85
True Believer
 
Posts: 26
Joined: 18 Feb 2017, 15:03
Location: United Kingdom

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

Post by Skyff85 » 07 Jul 2017, 17:23

Can i spawn NPC by RCON panel like a "GMAnnounce" Restart time?

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

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

Post by Custodian » 07 Jul 2017, 18:46

Skyff85 wrote:Can i spawn NPC by RCON panel like a "GMAnnounce" Restart time?

LiF does not support RCON.
If mod is loaded, you can spawn NPC by loading(executing) custom config.
Lets say, NPC config for special event is stored at "basilmod/npc/config_event.cs", you can load it from server console(or via telnet) with
Code: Select all
exec("basilmod/npc/config_event.cs");

User avatar
Skyff85
True Believer
 
Posts: 26
Joined: 18 Feb 2017, 15:03
Location: United Kingdom

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

Post by Skyff85 » 07 Jul 2017, 20:44

Thanks its works!


Jakub.jochim
 
Posts: 25
Joined: 30 Jun 2017, 08:34

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

Post by Jakub.jochim » 08 Jul 2017, 15:22

Hello, for some reason i cant add NPC anymore and some of my NPC disappeared :( . My config looks fine.
Attachments
Bez názvu.jpg
Config
Bez názvu.jpg (104.75 KiB) Viewed 23969 times

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

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

Post by Custodian » 08 Jul 2017, 16:24

Jakub.jochim wrote:My config looks fine.

Your config is not fine.

you add wrong NPC to your zones, and attach animations to wrong NPCs.
Your config
Code: Select all
%npc19 = BasilMod::npc_create(89, .....);

Means, that you would like to address than npc as "%npc19.
But in the next line, you use addIdle on %npc (which is different from %npc19).
And again, you create your zone "mestani", and add "%npc" but not "%npc19" to your zone.

As for other errors, make sure all characters you use as NPCs are exists, and check server log for errors, or provide full npc config.cs and server log.


Jakub.jochim
 
Posts: 25
Joined: 30 Jun 2017, 08:34

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

Post by Jakub.jochim » 08 Jul 2017, 17:22

When I do exactly what you describe, it does not work anyway. I had NPC that works fine, but now they disappeared and i did nothing with my config and when i trying to reload config, nothing happens. I tried to clear config and do it again, but when i remove all from my config my NPC are still on the server.

So my problem is: my NPC disappeared with functional lines, and now i cant add new NPC with functional lines.

On my server i had 15 functional NPC, now i have only 10. BUT they have same line like remaining 5 NPC that doesnt work. So its really strange situation for me, because i dont know whats happened. When i trying do it again with tutorial step by step it doesnt work, i just can not...

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

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

Post by Custodian » 08 Jul 2017, 17:56

Jakub.jochim wrote:So my problem is: my NPC disappeared with functional lines, and now i cant add new NPC with functional lines.

Your config.cs contains errors.
As I said, if you need any help with your problem, share full config.cs and server log with me.


Jakub.jochim
 
Posts: 25
Joined: 30 Jun 2017, 08:34

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

Post by Jakub.jochim » 08 Jul 2017, 19:21

I tried to send you pm but i dont know if you got it. I dont know how can i share you my files so there is link to download.

https://drive.google.com/drive/folders/ ... sp=sharing

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

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

Post by Custodian » 08 Jul 2017, 20:14

Jakub.jochim wrote:I tried to send you pm but i dont know if you got it.

I did not received any pm messages.

Jakub.jochim wrote:I dont know how can i share you my files so there is link to download.

I need full server log, from server startup. If log is too big, you can either compress it, or restart the server, login, validate that problem exists, and then pack that latest server log.

In your mod config, you need to adjust idle animations for npc16 and npc17.


Jakub.jochim
 
Posts: 25
Joined: 30 Jun 2017, 08:34

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

Post by Jakub.jochim » 08 Jul 2017, 20:34

Custodian wrote:
Jakub.jochim wrote:I tried to send you pm but i dont know if you got it.

I did not received any pm messages.

Jakub.jochim wrote:I dont know how can i share you my files so there is link to download.

I need full server log, from server startup. If log is too big, you can either compress it, or restart the server, login, validate that problem exists, and then pack that latest server log.

In your mod config, you need to adjust idle animations for npc16 and npc17.


Ok, there is example. First NPC is working, second NPS not working. I dont know where is mistake. Ok, ill try to send you my log.
Attachments
asdasdasd.jpg
asdasdasd.jpg (100.19 KiB) Viewed 24022 times


Jakub.jochim
 
Posts: 25
Joined: 30 Jun 2017, 08:34

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

Post by Jakub.jochim » 09 Jul 2017, 13:05

No i just cant upload here my log. There is a link https://drive.google.com/drive/folders/ ... U1Qd0lJdEk

New config.cs contains full functional NPC until line with space and line //NPC: mestan1 which doesnt work.

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 Jul 2017, 20:04

Jakub.jochim wrote:No i just cant upload here my log. There is a link

1) Your basilmod/pack/config.cs file contains syntax error: your noModmessage uses non-latin (non-ascii) symbols, while file is not in utf-8 charset. Save your basilmod/pack/config.cs using utf-8 charset.

Jakub.jochim wrote:New config.cs contains full functional NPC until line with space and line //NPC: mestan1 which doesnt work.

2) Your basilmod/npc/config.cs file contains syntax error: on line 89, there is
Code: Select all
zone = BasilMod::npc_zone("-577.819 197.805 1030.89", "4", "0 500", "warcry1", 0);

while it should be (note the first % sign which is missing).
Code: Select all
%zone = BasilMod::npc_zone("-577.819 197.805 1030.89", "4", "0 500", "warcry1", 0);

config past this line is not loaded/applied.


Armandoloos262
 
Posts: 3
Joined: 17 Feb 2017, 17:39

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

Post by Armandoloos262 » 31 Jul 2017, 13:46

Hey guys, i dont know if it was a stupid question i asked, but i didnt recieved any reply.

As i mentioned we were using this mod on our server a few months ago, which is the Genesis server but the problem was that the NPCs could be killed, and i couldnt find out a way to make them invulnerable.

To ask it again, is there a way to make the NPCs invulnerable so players are not able to kill and loot them?

Thanks alot

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

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

Post by Custodian » 02 Aug 2017, 21:41

Armandoloos262 wrote:To ask it again, is there a way to make the NPCs invulnerable so players are not able to kill and loot them?

There is no solution at this time.
NPC mod is not fully compatible with current 1.3.2.5 version.


Tholld
 
Posts: 20
Joined: 19 Sep 2016, 08:33

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

Post by Tholld » 24 Aug 2017, 11:58

Is NPC mod now fully compatible with new version?
I want to populate my city with a couple of NPC and experienced some problems with the old version.

And, (sorry for the question, but I'm really curious about it): Do you think that someday your NPC will be able to move?

Thanks for this great work!

User avatar
JohnValentine
Zealous Believer
 
Posts: 213
Joined: 19 Dec 2016, 00:33

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

Post by JohnValentine » 29 Aug 2017, 08:15

Tholld wrote:Is NPC mod now fully compatible with new version?
I want to populate my city with a couple of NPC and experienced some problems with the old version.

And, (sorry for the question, but I'm really curious about it): Do you think that someday your NPC will be able to move?

Thanks for this great work!


Also interested in an answer to this. Looking to use some NPC's for an event as extras, wondering if it's worth the trouble to figure this out or if it's currently not compatible.
Image


Schdohni
 
Posts: 5
Joined: 20 Nov 2015, 12:19

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

Post by Schdohni » 09 Oct 2017, 09:49

Hello Custodian,

in your tutorial to this mod is a key bind "strg+f5" for settings skills called BasilMod::GMTools.

Is it what expected, to set Stats and Skills for GM characters on a fast way and if, where can i downlaod it?

Greets and thx for the good work

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 2017, 23:54

Schdohni wrote:where can i downlaod it?

It is not available for download.


Iceman77seb
Beta Tester
 
Posts: 8
Joined: 28 May 2016, 22:58

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

Post by Iceman77seb » 20 Oct 2017, 11:29

Hello,

I have a problem with mod npc, i followed the tutorial but it does not work.
I have this message in every second in the game console:

Code: Select all
[BasilModNpc]BasilMod::npc_onCharacterDataLoaded> [286425] Player::getPlayerDatablock() -- can't find CharacterInfo for player 0! Returning default datablock


But the first error message is:

Code: Select all
<<Thread>> [282858] DBI::processGenericUpdateQuery(1 ms) update `character` set IsActive = 1 where ID = 6 [T:DBIPrimary:0x15C0]
BasilMod/npc/npc.cs (0): Unable to find function Player::setPlayerConnection


I do not understand what is wrong.

Thank you in advance.

PS : My config file :

Code: Select all
/*
   BasilMod::NPC Server configuration file
   2015 Basil Semuonov

   Example config

%npc = BasilMod::npc_create(ID, "position", "rotation");
%npc.addIdle("state1", "lowerbound_duration upperbound_duration", "hands");
%npc.addIdle("state2", "lowerbound_duration upperbound_duration", "hands");
%npc.addIdle("state3", "lowerbound_duration upperbound_duration", "hands");

%zone = BasilMod::npc_zone("position", "radius", "lowerbound_delay upperbound_delay", "state", "hands");
%zone.addNpc(%npc);
*/
//NPC: Garde
// position = "85.6737 218.874 1040.44";
// rotation = "0 0 1 188.954";
%npc = BasilMod::npc_create(6, "85.6737 218.874 1040.44", "0 0 1 188.954");
//%npc.addIdle("idle1", "5000 7000", 0);
//ZONE: Approche
// position = "86.3065 209.229 1040.44";
%zone = BasilMod::npc_zone("86.3065 209.229 1040.44", "4", "0 500", "honor", 4);
%zone.add(%npc);

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

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

Post by Custodian » 21 Oct 2017, 11:05

Iceman77seb wrote:I do not understand what is wrong.

LiF:Yo has been updated, and current version of BasilMod::NPC is not compatible with latest LiF:Yo version.

No ETA for the update at this time.


Unhappyangel83
 
Posts: 14
Joined: 13 Jul 2018, 10:52

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

Post by Unhappyangel83 » 05 Aug 2018, 20:38

hi,
there may be a working update of NPC mod?
That would be of course insanely great if this is still maintained.

MfG Michl


Rvnimwegen
 
Posts: 2
Joined: 07 Sep 2017, 16:51

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

Post by Rvnimwegen » 05 Oct 2018, 06:29

I would love it if the mod gets updated, my city looks so empty now.
Any chance we will be seeing this mod working soon or is it dead?

Kind regards

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

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

Post by Custodian » 05 Oct 2018, 09:16

Rvnimwegen wrote:I would love it if the mod gets updated, my city looks so empty now.
Any chance we will be seeing this mod working soon or is it dead?

Kind regards

BasilMod::Pack as a requirement of this mod is being updated. After that, NPC mod also should be updated.


Rvnimwegen
 
Posts: 2
Joined: 07 Sep 2017, 16:51

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

Post by Rvnimwegen » 05 Oct 2018, 20:16

I am so happy to hear that, thank you very much!
You are the best!

Kind regards.


Josephscotthartley
 
Posts: 1
Joined: 13 Aug 2018, 04:45

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

Post by Josephscotthartley » 12 Oct 2018, 07:58

Hey, Nice work! I saw a post stating that you were in the process of updating both the base Basil mods, and the Npc mod as well, might I inquire as to when this may be in a usable state, a few of us have recently purchased a server and Npc's are high on our list of wants, Sorry to bother, you prolly get asked this 1000 times a day. Just curious and thanks for you time

User avatar
Leaf
 
Posts: 76
Joined: 01 Feb 2014, 16:47

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

Post by Leaf » 10 Jan 2019, 04:09

Pretty sure this is not supported or waiting to be updated. I do have the pack mod installed and working.

I have no basil options under controls.

If using %npc1 = BasilMod::npc_create(11, "937.672 248.641 1005.21", "0 0 1 92.6312"); it cannot find npc_create.

Issued actions are appended to template config content_update.cs file, which is located at BasilMod/NPC/content_update.cs. -- I don't have this file.


Any hope?

User avatar
Rc6662
 
Posts: 3
Joined: 11 Jun 2018, 15:35

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

Post by Rc6662 » 19 Jan 2019, 19:52

Hey Custodian,

Is the Current Basil Mod Version working on current LiF YO version?

I've got following issue coming up by trying to reload config.cs:

[BasilModNpc]BasilMod::npc_onCharacterDataLoaded> [559658] Player::getPlayerDatablock() -- can't find CharacterInfo for player 0! Returning default datablock

I've followed all instructions that where given on forums and in the tutorials.


Thanks in advance for an answer!

Greetings

Ruur van Cranendonck


Hasretasdelen95
 
Posts: 1
Joined: 13 Apr 2020, 22:38

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

Post by Hasretasdelen95 » 01 Jan 2021, 12:23

Custodian wrote:Greetings feudalists!

Are you tired of boring GM cities where nothing happens and you feel alone, when less than 30 people online?
With BasilMod::NPC its not a problem anymore!

Create, place and script NPC to fear your enemies and add glory to your kingdom!

This mod requires BasilMod::Pack v5+ to be installed and running on the server.
This mod is part of BasilMod::Bundle.

Long story short, here is video.

Spoiler


This mod works well in conjuction with quests, storylines and merchandise mods. This allow you to create truly RP-PVE server with unique storyline.

NPC can do their own business, can react to player actions and movement. They can be global (same state for everybody on server) or local (personal actions for every player who interact with NPC, i.e while you advance along the quest chains).

:friends:

Video tutorials
Spoiler


Server-side installation.
Spoiler


Configuration.
Spoiler


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

This mod is still under development. Expect various issues on mod config reload or server shutdown.


Merhaba,Ben Hasret.
Hello, I am Hasret.I'm playing lif yo.All I wanted was to download the required mods and play Basilmod: Npc.
I set up my own server but didn't make any special settings..
I would be very happy if you reply to this text.I'd like to know what to do step by step please..
*No changes in game files (fresh)
*I'm use to Google translate

User avatar
Cornwall
True Believer
 
Posts: 6
Joined: 29 Nov 2015, 20:37

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

Post by Cornwall » 27 Apr 2021, 21:25

will this MOD be updated? or has anyone had any luck with the unable to find player 0 problem.

Return to Game mods