Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - habi2

#1
Subject: Name with hyphen followed by h or p breaks host/port parsing


Description
If the player name contains a hyphen (-) followed by h, the hostname gets corrupted when connecting.

If the player name contains a hyphen (-) followed by p, the port number is parsed incorrectly.

This causes the client to fail to connect to the correct server.
Example:

test-hname → wrong hostname

test-pname → wrong port

Reproducible
Always

What you were doing when the bug happened


What you think caused the bug
It seems the parser might be mistaking parts of the name for -h (host) or -p (port) arguments.
#2
A.I said it does not do any networking stuff or local dll injection/registry modification. it seems safe.
#3
okay.
#4
1.6.7

besides, one key (=) in keyboard stuck when browser was open.
#5

( only source code link is seen )

If anybody is have problem like above, then use:
https://bitbucket.org/stormeus/0.4-announce/downloads/announce04rel64.so

Replace .so by .dll to get windows plugins !
#6
I recommend buying a cheap linux server (cost: INR 420 ).  You will get it operating in minutes. Put your files and run
./mpsvrrel64 -allow-server-runas-root
Also you have to chmod 777 mpsvrrel64 before it.
#7
@Adrenaline How did you transferred script files to server?

I don't know how citadel servers work. But usually you put script files via ssh(sftp). Then start server by commandline.

Have you done any of these things?

Besides,  by default server will not appear in masterlist. You need to edit server.cfg or create one for server to appear in masterlist.
 
Also how you start server?

Please provide more screenshot of interface you have.
#8
Today i discovered while working on something that vcmp server sends one packet 105 times.

It happened when you kick  a player.

It is because the packet was 'reliable' one and needs acknowledgement. Since this is kicking, they don't send acknowledgement. Since we don't receive acknowledgement, it sends again.

Three reliable packets (msg ids hex 0x6a, 0x36, 0x48) were seen going out.

Offtopic:
i replied on his thread and-


#9
yes, a client timer of 40-20 seconds would be ideal.
#10
Hi PSL,
Which data are you referring to.

You can perhaps use ScriptUnload event client side to detect player quitting:
Script::ScriptUnload()
Return type: void.
Called before scripts are unloaded, on disconnect.
#12
How everybody is doing. With the help of openai models, i quickly made this tool which do what written in subject.

(mediafire) (library, how-to and source) (23.80 KB)

1. You need to create a text file npcnames.txt in server directory:
Alfred
John
medic
npc100
mike

2. Find libvcmpintercept.so in downloaded files and put it also in server directory.

3. Preload the library and specify the server port to run the server
VCMP_SERVER_PORT=8192 LD_PRELOAD=./libvcmpintercept.so ./mpsvrrel64_v39

Images

The npcs Alfred and mike are connected, their names entered at sl.no 1 and 5 respectively in npcnames.txt is not shown in the list to a client !

PS: The source could be more bit more optimized.
#13
perhaps @Sebastian  could include like many skins and also scattered hp giving pickups and others in his next blank server update.
*.. runs.
#14
Quote from: PLAYER on Apr 07, 2025, 07:51 AMHi Habi I am Having Problem With Loading These Plugins
Failed loading plugin: rpclib
Failed loading plugin: actionlib
 Loaded 0 plugins.

AN ERROR HAS OCCURRED [the index 'GetTarget' does not exist]
CALLSTACK
*FUNCTION [Check()] npcscripts/shoot.nut line [8]

ConnectNPC("bot","shoot.nut",false,"","rpclib actionlib");
@PLAYER  @[TDA]Speed

I see you guys are having problem in loading rpclib and actionlib on 64-bit linux.

Solution:
Use suffix 64 with the library name:
ConnectNPC("bot","shoot.nut",false,"","rpclib64 actionlib64");
Then it will search for rpclib64.so and actionlib64.so in
npcscripts/plugins

#15
Off-Topic General / Re: VCMP ANDROID PROJECT
Jul 03, 2025, 12:46 PM
on android? When did that happen.....

was you able to setup client connecting to server..?