Hello everyone.
been a long time to vcmp
I have two problems with running server on linux(Ubuntu)
Squirrel script not loading
gamemode Default
plugins xmlconf04rel64 announce04rel64 squirrel04rel64
port 8192
sqgamemode scripts/main.nut
maxplayers 100
habi@DESKTOP-4T9UPOK:~$ ./mpsvrrel64
Vice City Multiplayer Server
-------------------------------
v0.4, (c) 2007-2014 VC:MP Team
Loaded plugin: xmlconf04rel64
Loaded plugin: announce04rel64
Loaded plugin: squirrel04rel64
.so: cannot open shared object file: No such file or directory
Failed to load plugin:
[WEAPONS] No custom weapons to load.
** Started VC:MP 0.4 Server **
Port: 8192
Max players: 100
[MODULE] Loaded server.conf Loader for 0.4 by Stormeus
[MODULE] >> Loaded server.conf for parsing
[MODULE] >> Applied settings
[WARNING] Please define a colour for your class. (See docs)
[MODULE] >> Loaded classes
[WARNING] Please define a world for your vehicle. (See docs)
[MODULE] >> Loaded vehicles
[MODULE] >> Loaded pickups
[MODULE] Loaded server.conf successfully
announcer: Ready to announce to masterlist(s)
[MODULE] Loaded SqVCMP 0.4 frontend by Stormeus. (v1.0)
'WARNING] Could not load script 'scripts/main.nut
[WARNING] cannot open the file
[ERROR] No Squirrel gamemode was specified.
So the error is Could not load script 'scripts/main.nut
I have scripts folder and main.nut inside. I even tried putting main.nut outside in same directory as server with server.cfg edited to main.nut
latest plugins and server(v33) is used.
.so: cannot open shared object file: No such file or directory
Failed to load plugin:
There is a space after squirrel04rel64 in server.cfg which i put because without the space in the end of the line the last plugin will not be loaded.
Loaded plugin: announce04rel64
.so: cannot open shared object file: No such file or directory
Failed to load plugin: squirrel04rel64
when the space after squirrel04rel64 is removed.
Any ideas?
Change the file ending to LF (\n)
Quote from: Xmair on Feb 20, 2022, 06:38 AMChange the file ending to LF (\n)
it worked like a miracle. (https://i.imgur.com/wydocZl.png)
If anybody having the problem, install Notepad++.
Then go to
Edit->EOL Conversion->Unix(LF)
This will make the script work on Linux systems.