[MOD] BasilMod::NPC - Fancy cities!

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

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: 25
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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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: 25
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 847 times

User avatar
Custodian
Mod Developer
 
Posts: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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 954 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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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: 2
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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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: 18
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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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: 647
Joined: 08 Jun 2015, 14:58
Location: Moscow

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.

Return to Game mods