[MOD] BasilMod::NPC - Fancy cities!

Place for sharing your game modifications for Life is Feudal: Your Own

MasterChief
True Believer
 
Posts: 55
Joined: 04 Oct 2014, 11:11

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

Post by MasterChief » 13 Apr 2017, 19:07

works fine for me, version 1.3.05



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

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

Post by Armandoloos262 » 24 Apr 2017, 13:14

Good day sir, loveley work with the NPCs and a big thank you for it!

I am running the NPCs on my server but i have one little small/big problem..

People keep killing them, loot them, is there a way to make them invinsible?

Thank you ! :D :D

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

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

Post by Cornwall » 14 May 2017, 04:08



Hietria
True Believer
 
Posts: 3
Joined: 12 Jan 2016, 12:55

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

Post by Hietria » 23 May 2017, 22:34

Hello i've installed this and loaded it to my server, server console seems like ok, it loads the mod.

But there is no keybindings for basilmod npc in controls?

Did i miss something?
Image

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

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

Post by Custodian » 24 May 2017, 19:12

Hietria wrote:Did i miss something?

BasilMod::NPC depends on BasilMod::Pack which is not working with latest patches.
You have to wait for BasilMod::Pack update.


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

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

Post by Jakub.jochim » 05 Jul 2017, 23:31

Hello, i have a problem. When I played with my NPC animations my server crashed. Now i cant find my server in LIF. In my server i can see that server is running but the process is not running. I can send you my log. I dont want to loose everything in my server just because of my stupidity :fool: can you help me please? If there is any way to fix it i will be very glad.


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

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

Post by Jakub.jochim » 05 Jul 2017, 23:54

Jakub.jochim wrote:Hello, i have a problem. When I played with my NPC animations my server crashed. Now i cant find my server in LIF. In my server i can see that server is running but the process is not running. I can send you my log. I dont want to loose everything in my server just because of my stupidity :fool: can you help me please? If there is any way to fix it i will be very glad.
Attachments
log 5.jpg
Log
log 5.jpg (245.42 KiB) Viewed 18903 times
log 3.jpg
Log
log 3.jpg (242.51 KiB) Viewed 18903 times

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

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

Post by Custodian » 06 Jul 2017, 04:55

Jakub.jochim wrote:can you help me please? If there is any way to fix it i will be very glad.

You should ask your host provider for the help. Accord to the logs you have provided, your database config is wrong: sql server rejects authentication credentials you are using for your lif server.


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

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

Post by Jakub.jochim » 06 Jul 2017, 15:44

Problem solved! Thank you :Bravo: . Now i have question. Can i spawn more, for example 10 soldiers in different places? Because when i create new character and use it for two soldiers in one place zone thats means one slot for one player on server. Can i this one created character spawn in more different places? I do not want to waste slots for my players on server.

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

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

Post by Custodian » 06 Jul 2017, 15:52

Jakub.jochim wrote:Because when i create new character and use it for two soldiers in one place zone thats means one slot for one player on server.

You need create character to specify character details, and outfit(cloths/weapons).

Jakub.jochim wrote:Can i this one created character spawn in more different places?

Yes, Same character(character id) can be used for multiple NPCs, but all of them will look the same.
For example, you can create 2 characters: City Guard, and Royal Guard. You can spawn 10 city guards in the city, and 5 royal guards inside the keep.

Jakub.jochim wrote: I do not want to waste slots for my players on server.

Spawned NPCs does not use any player slots. But actual spawn process may require one free slot during config reload to test settings (you may be unable to reload config, if your server is 64/64).


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

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

Post by Jakub.jochim » 06 Jul 2017, 21:18

Spawned NPCs does not use any player slots. But actual spawn process may require one free slot during config reload to test settings (you may be unable to reload config, if your server is 64/64).

Nope. When i add any NPC i have him in player slot. At first i could kick them from server, but now i cant. Look at it.
Attachments
npc.jpg
npc.jpg (106.52 KiB) Viewed 19232 times

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

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

Post by Custodian » 06 Jul 2017, 21:29

Jakub.jochim wrote:Nope. When i add any NPC i have him in player slot. At first i could kick them from server, but now i cant. Look at it.

Characters are listed in players list (because character info is loaded by the server), but they does not occupy any slots.

Setup your server as 1 player max. Spawn 10 NPCs (same or different characters) and try to join your server.
Setup your server as 64 player max. Spawn 200 NPCs and try to join your server.


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

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

Post by Jakub.jochim » 07 Jul 2017, 08:54

Yes, thats true, sorry and thank you ;). One more and i hope last question: after server restart my NPC disappeared. After restart as GM i must reload config (ctrl + f3)? Or do i miss something?

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, 10:31

Does anybody hove problems with NCP clones after server restart?


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

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

Post by Jakub.jochim » 07 Jul 2017, 12:37

Skyff85 wrote:Does anybody hove problems with NCP clones after server restart?



No, after restart i dont have NPC, i must reload config. But when i reloading more times NPC clones.

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, 14:26

hm... My server spawn automaticly and when have second restart spant again clones :)

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

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

Post by Custodian » 07 Jul 2017, 14:38

Jakub.jochim wrote:One more and i hope last question: after server restart my NPC disappeared. After restart as GM i must reload config (ctrl + f3)? Or do i miss something?

If you followed installation and configuration steps, mod is loaded after server startup and NPCs are spawned.

Skyff85 wrote:hm... My server spawn automaticly and when have second restart spant again clones :)

Server restart is same as server launch, because restart means: shutdown & launch. You are doing it wrong, or you call another action with term "restart", which actually does not restart your server.


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

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

Post by Jakub.jochim » 07 Jul 2017, 14:57

Can someone show me please, which line configure spawn NPC after restart?

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:24

Jakub.jochim wrote:Can someone show me please, which line configure spawn NPC after restart?

Installation manual:
Code: Select all
exec("basilmod/npc/npc.cs");


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

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

Post by Jakub.jochim » 07 Jul 2017, 15:36

Thank you so much. :beer:

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

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 21428 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.

Return to Game mods