This topic was marked solved by its starter, on February 20th, 12:51 PM

habi

  • Sr. Member
  • Posts: 400
Could not load main.nut on linux
«  »Last edited
Hello everyone.
been a long time to vcmp

I have two problems with running server on linux(Ubuntu)
Squirrel script not loading
Code: [Select]
gamemode Default
plugins xmlconf04rel64 announce04rel64 squirrel04rel64
port 8192
sqgamemode scripts/main.nut
maxplayers 100
Code: [Select]
[email protected]:~$ ./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.
Code: [Select]
.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.
Code: [Select]
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?

Xmair

  • Wiki Contributor
  • Posts: 960

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

habi

  • Sr. Member
  • Posts: 400
Re: Could not load main.nut on linux
« Reply #2,  »Last edited
Quote from Xmair on February 20th, 06:38 AM
Change the file ending to LF (\n)
it worked like a miracle.


If anybody having the problem, install Notepad++.
Then go to
Edit->EOL Conversion->Unix(LF)

This will make the script work on Linux systems.