NPC/Bots implementation in VCMP 0.4 Servers

Started by habi, Apr 01, 2022, 05:37 PM

Previous topic - Next topic

habi2

Hi Ridwan Rz, it is not yet updated to 0.4.7.

PSL

Hi Habi,What is the current status of NPC plugin updates :)  :)  :)

habi2

#122
Hi PSL, thank you for your interest in npc-plugin. I just reached home today and you can expect the update anytime during the next few days.

Edit: Found  that new server is using protocol version 47 related to 'raknet networking engine'. This protocol, i have no idea.
So next update of plugin might take longer than i expected.

2b2ttianxiu

Use a newer raknet?
(I mean client protocol base network raknet is update?)
(I can help u)

habi2

#124
Quote from: 2b2ttianxiu on Jul 28, 2024, 11:16 AMUse a newer raknet?
(I mean client protocol base network raknet is update?)
(I can help u)
they are using 'SLikeNet' - a modification of raknet, in new vcmp version.
The windows version of server crashes sometimes when npc connects to it.
And 2b2ttianxiu, thanks for your offer, but i will manage it myself.
 
Quote from: vitovc on Jul 28, 2024, 06:12 PMnew vcmp version is full of bugs, it will take a time before it will be popular to use, so don't hurry with that, just keep improve your server scripts, AI of npc has unlimited potential to code. let habi to relax a bit.
i agree ai of npc has unlimited potential. and I'm relaxing 😌
Quotehe did awesome things to vcmp.
me?  :)

MEGAMIND

Quote from: habi2 on Jul 29, 2024, 01:49 PM
Quote from: 2b2ttianxiu on Jul 28, 2024, 11:16 AMUse a newer raknet?
(I mean client protocol base network raknet is update?)
(I can help u)
they are using 'SLikeNet' - a modification of raknet, in new vcmp version.
The windows version of server crashes sometimes when npc connects to it.
And 2b2ttianxiu, thanks for your offer, but i will manage it myself.
 
Quote from: vitovc on Jul 28, 2024, 06:12 PMnew vcmp version is full of bugs, it will take a time before it will be popular to use, so don't hurry with that, just keep improve your server scripts, AI of npc has unlimited potential to code. let habi to relax a bit.
i agree ai of npc has unlimited potential. and I'm relaxing 😌
Quotehe did awesome things to vcmp.
me?  :)
yeup totaly u 😅  ill msg an idea on discord soon..

Dieciseis

Here now it connects but it stays in spawnscreen position and is invisible

habi2

Quote from: Dieciseis on Aug 07, 2024, 07:13 PMHere now it connects but it stays in spawnscreen position and is invisible
Are you using rel006 or 0.4.7 ?
2. Did you downloaded v1.8 version of npc .?

Dieciseis

It turned out that there was a login system so that it stayed at spawnscreen position.Do I need to ask him to enter the command to solve it?

habi2

yes.
SendCommand("login password");
You can put this in a variety of places

My suggestion is use event OnClientMessage

function OnClientMessage(r,g,b,message)
{ if(message.find("login")!=null)
SendCommand ("login password_of_npc");
}


habi2

Quote from: PSL on Jul 26, 2024, 08:52 AMHi Habi,What is the current status of NPC plugin updates :)  :)  :)
The new npc can connect to windows server. I have fixed all version error, etc. New npc knows different messages send by server -join, death, etc.
I have found new vcmp client sends onfoot and onfoot-aim packets differently. Rest all(vehicle drive, passenger,..) is assumed to be same.
This foot sync packets have extra 9 float values 4 of them always zero, other in range -1 to 1. When player angle is special like 0, pi/2, pi etc, some become exactly equal to 1 while others are 0 or 0.3 etc.


Moreover, when the player shoots an extra vector apart from aimdir and aimpos is send. This extra vector close to aimdir and its magnitude is always 1.

Interesting, huh ?

PSL

Hi Habi.
Thank you very much for your explanation.  I have understood the development situation you mentioned.  I am looking forward to receiving your plug-in as soon as possible.  I am looking forward to and excited about it!
Thanks again for your hard work and the development of this plugin!

StingRay_

Hi habi.
I was running server on linux and when I used ConnectNPCEx, it just came:
sh: 1: /home/fidlar/vcmp/test: not found
Nothing else, and the npc was not connected. I found the path above to my server was truncated (originally 'test server'), it seemed spaces could not be included in the path, and with spaces removed it turned out fine. Trivial though, could this one be fixed? Thanks a lot for your continuous efforts.
Btw it worked fine with windows version plugin.

habi2

Quote from: StingRay_ on Aug 18, 2024, 05:15 PMHi habi.
I was running server on linux and when I used ConnectNPCEx, it just came:
sh: 1: /home/fidlar/vcmp/test: not found
Sorry i have not seen your message.
I will take care of this issue in next build.

habi2