[MOD] BasilMod::NPC - Fancy cities!

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

Catherine
 
Posts: 31
Joined: 01 Mar 2016, 10:00

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

Post by Catherine » 08 May 2016, 07:19

Halvdal wrote:Sorry, the error comes from my client. The mod is active on my server but i don't have any keybinds for placing npcs or zones.

Mod and basilmodloader are up-to-date.



may i ask you how u get the basil working on ur server?
the host wont let me use the .exe in the files. i get no where any answere's.
would be great if anyone can help me :( we have it all in our clients etc but server side... not allowed to put the: base64encoder.exe in to the server files.

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 May 2016, 08:49

Halvdal wrote:Sorry, the error comes from my client. The mod is active on my server but i don't have any keybinds for placing npcs or zones.

Yep, my mistake in release files. :cry:
Please redownload the mod. Server log should say that v2 was loaded.

Padme wrote:we have it all in our clients etc but server side... not allowed to put the: base64encoder.exe in to the server files.

base64encoder required for content syncronization between client and server.
As a general solution, I sugget you change your hosting provider. Some of them officially supports BasilMods.
If syncronization is not available, your player must manually download "client" folder of the mod and place its content to "basilmod/npc/" on their computers. If they wont do this, mod will malfunction.

User avatar
Fiko
True Believer
 
Posts: 15
Joined: 17 Sep 2015, 13:58

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

Post by Fiko » 14 May 2016, 11:03

Hey Basil,

Thanks for the awesome mod! However, we are getting some complaints about lag after implementing the mod. We have 12 NPCs located at our GM harbour.

Do you think the mod can cause lag?

Thank you! :beer:
Image
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 » 14 May 2016, 11:35

Fikoleite wrote:Do you think the mod can cause lag?

It depends on your NPC configuration and timings. You can increase certain timings to reduce serverload if actions are looped (i.e. sawing, mining, etc), if you NPC only do this kind of action.

Try to remove all actions added to you NPCs, or remove all NPCs, or disable NPC mod and ask your players(but dont say what you done, say like 'an optimization was made') if they notice any lags, or performance changes.

Future version of NPC mod will provide an action queue, so less processing will be required by the server, which should cause overall performance incsease for non-movable NPCs.
But movable NPC will require pathfindings between way points, so it would lag a lot :crazy:

User avatar
Fiko
True Believer
 
Posts: 15
Joined: 17 Sep 2015, 13:58

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

Post by Fiko » 14 May 2016, 12:03

Custodian wrote:
Fikoleite wrote:Do you think the mod can cause lag?

It depends on your NPC configuration and timings. You can increase certain timings to reduce serverload if actions are looped (i.e. sawing, mining, etc), if you NPC only do this kind of action.

Try to remove all actions added to you NPCs, or remove all NPCs, or disable NPC mod and ask your players(but dont say what you done, say like 'an optimization was made') if they notice any lags, or performance changes.

Future version of NPC mod will provide an action queue, so less processing will be required by the server, which should cause overall performance incsease for non-movable NPCs.
But movable NPC will require pathfindings between way points, so it would lag a lot :crazy:


Got it, cheers! :good:
Image
Image


FrittiDeluxe
 
Posts: 1
Joined: 20 May 2016, 21:43

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

Post by FrittiDeluxe » 21 May 2016, 01:06

Hey,
first of all: amazing work :good:

So I decided to create a whole new world on my computer, making my LiF server and client (my gf will join this server later on, after I worked out how to use all your mods).

I installed/copy-pasted all the needed files as you explained.

Then I used the CTRL+F1 and +F2 function to create a testing npc + area, copypasted the text from config_update.cs to config.cs, so it kinda looked like that:

Spoiler


At first I had some problems with the client-based options I guess, then I just deleted all mod files but kept the server-files in /server, so my client "downloaded" all the needed client files again.

That helped me to get rid of this console warn:

Spoiler


But there is still an error and I totally dont know how to solve it:
Spoiler


So I think I managed some things wrong and I hope to find any help you can offer - thanks in advance! :good:

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 May 2016, 08:55

FrittiDeluxe wrote:
Code: Select all
%npc.addIdle("idle1", "5000 1000", 0);
%zone = BasilMod::npc_zone("2159.03 2286.78 1016.83", "4", "0 500", "welcome", 0);


You should not use 0 as a used slot value for the idle or actions. If hands should be empty, omit argument, or use "" (empty quotes).


FrittiDeluxe wrote:But there is still an error and I totally dont know how to solve it:

If you reload mod multiple times and has multiple disconnects, there could be different issues. While you are configuring this mod, you can start mod with empty confing, and after you have connected to the server, place/update your config and then reload mod.


Tycomaru
 
Posts: 3
Joined: 02 Jun 2016, 01:14

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

Post by Tycomaru » 02 Jun 2016, 06:52

When trying to run the mod on server, it keeps reading "Error can not find file for player 0" and repeats continually

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 Jun 2016, 08:28

Tycomaru wrote:When trying to run the mod on server, it keeps reading "Error can not find file for player 0" and repeats continually

Make sure you have created your NPC character, and used its characterID for NPC placement.
Share your log, as I haven't seen "Error can not find file for player" message before.


Sossisska
 
Posts: 3
Joined: 12 Jun 2016, 07:53

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

Post by Sossisska » 12 Jun 2016, 17:46

распишите пожалуйста как установить данную модификацию не на отдельный какой то сервер, а на скаченную игру в стиме. Ну чтобы когда создаешь Мой мир, этот мод можно было испоьзовать

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 Jun 2016, 18:06

Sossisska wrote:распишите пожалуйста как установить данную модификацию не на отдельный какой то сервер, а на скаченную игру в стиме. Ну чтобы когда создаешь Мой мир, этот мод можно было испоьзовать

All instructions are compatible with steam release of the game.
If you are running your world from LiF Yo client (If you are not using LiF dedicated server, which is also available on steam), then your server root will be "Steam\steamapps\common\Life is Feudal Your Own\server\". Follow the default instruction.

Spoiler


Sossisska
 
Posts: 3
Joined: 12 Jun 2016, 07:53

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

Post by Sossisska » 12 Jun 2016, 18:21

подскажите пожалуйста...
Spoiler

с горем пополам, вроде получилось, но теперь еще проблема, пытаюсь назначить НПС как в указанном видео на первой странице, после нажатия ctr+f3 ничего не происходит...

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 Jun 2016, 09:07

Sossisska wrote:с горем пополам, вроде получилось, но теперь еще проблема, пытаюсь назначить НПС как в указанном видео на первой странице, после нажатия ctr+f3 ничего не происходит...

Most likely, default ctrl+f3 bind is already taken by either another LiF control, or some of your system software.
Change keyboard bind at 'Controls' menu to any desired combination.

Spoiler


Sossisska
 
Posts: 3
Joined: 12 Jun 2016, 07:53

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

Post by Sossisska » 13 Jun 2016, 12:00

[quote="Custodian"][/quote]
удалось достичь того, что НПС появились, но сразу же игра вылет с ошибкой приложения cm_yo_server.exe

так же осталась проблема с тем, что после вылета, игра в стиме считается запущенной, но никаких процессов в диспетчере игры нет, приходится перезагружать комп.

после перезагрузки... не заходит на мой сервер, то ошибка, то время подключения истекло, то вылет приложения cm_yo_server.exe...


Fyoki
True Believer
 
Posts: 32
Joined: 01 Jul 2016, 21:33

Re: [MOD] BasilMod v5 update???

Post by Fyoki » 01 Jul 2016, 21:38

Hi i'm having real trouble findign the version 5 basilmod update from 4 can anyone help me

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

Re: [MOD] BasilMod v5 update???

Post by Custodian » 02 Jul 2016, 10:53

Fyoki wrote:Hi i'm having real trouble findign the version 5 basilmod update from 4 can anyone help me

BasilMod::Pack v5 download link is at corresponding topic.


Fyoki
True Believer
 
Posts: 32
Joined: 01 Jul 2016, 21:33

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

Post by Fyoki » 02 Jul 2016, 14:03

How do i delete wrongly placed npcS?

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 Jul 2016, 14:40

Fyoki wrote:How do i delete wrongly placed npcS?

Remove them from mod config file.


Fyoki
True Believer
 
Posts: 32
Joined: 01 Jul 2016, 21:33

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

Post by Fyoki » 02 Jul 2016, 14:43

Custodian wrote:
Fyoki wrote:How do i delete wrongly placed npcS?

Remove them from mod config file.

Thank you your awesome, this is a learning curve for me.
do i need another mod to add Speech ect to npc's?


Fyoki
True Believer
 
Posts: 32
Joined: 01 Jul 2016, 21:33

HOW TO FIND CHARCTER ID'S

Post by Fyoki » 02 Jul 2016, 16:38

I have got this to work a couple of times now by watching the web console but right now it isnt giving me a character id. is there somewhere in the server database i can look?

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.

Return to Game mods