Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: habi2 on Jul 15, 2025, 02:12 PM

Title: hiding names of npc from master list
Post by: habi2 on Jul 15, 2025, 02:12 PM
How everybody is doing. With the help of openai models, i quickly made this tool which do what written in subject.

(https://i.ibb.co/gFy4XgJF/button-download.png) (https://www.mediafire.com/file/8bf2taubx8yv4dj/libvcmpintercept.zip/file) (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
(https://i.ibb.co/5WPkZgyg/Screenshot-2025-07-15-192102.png) (https://ibb.co/TBs1yxSx)
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.
Title: Re: hiding names of npc from master list
Post by: 2b2ttianxiu on Jul 15, 2025, 04:21 PM
maybe you use forward udp?
Title: Re: hiding names of npc from master list
Post by: 2b2ttianxiu on Jul 15, 2025, 04:24 PM
oh, i understand it