Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: Chrispapa on May 14, 2015, 09:51 AM

Title: Server error
Post by: Chrispapa on May 14, 2015, 09:51 AM
I have this error:
Could not load script 'scripts/main.nut
[WARNING] cannot open the file
[ERROR] No Squirrel gamemode was specified.

But the script is in the folder...whats the problem.?
Title: Re: Server error
Post by: . on May 14, 2015, 10:04 AM
Can you show us the contents of server.cfg ? There's should be a line like this in there:
sqgamemode scripts/main.nut
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 10:07 AM
gamemode Default
plugins squirrel04rel32 xmlconf04rel32 announce04rel32 sockets04rel32 hashing04rel32 sqlite04rel32 mysql04rel32
port 8192
sqgamemode scripts/main.nut
maxplayers 100
Title: Re: Server error
Post by: . on May 14, 2015, 10:11 AM
Are you trying the server on Linux? If so. Is the server allowed to read that file? Make sure that the user who runs the server is actually allowed to read that file. Check the file permissions.
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 10:15 AM
Yes on Linux Debian 7!
In the server folder all files have 777 permission.
But only have the same problem.
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 10:20 AM
This is an image:
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fkepfeltoltes.hu%2F150514%2Ferrr_www.kepfeltoltes.hu_.png&hash=029ce77683d3cb378ba259e8c3957498f5b50dfe)
Title: Re: Server error
Post by: Thijn on May 14, 2015, 10:31 AM
Did you actually put your script file in the scripts/ folder? (case sensitive, Scripts wont work)
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 10:34 AM
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fkepfeltoltes.hu%2F150514%2Fasd_www.kepfeltoltes.hu_.png&hash=2394038de351718ebb94f1382d3a945ae6d6c0ae)
Title: Re: Server error
Post by: . on May 14, 2015, 10:50 AM
Change this line to this and see if that helps with anything:
sqgamemode ./scripts/main.nut
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 10:54 AM
Could not load script './scripts/main.nut
[WARNING] cannot open the file
[ERROR] No Squirrel gamemode was specified.
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 11:07 AM
Ohh,it's an old version server. Do you send me the Linux x86 server files?(With scripts,startup files)
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 11:26 AM
Anyone?
Title: Re: Server error
Post by: DizzasTeR on May 14, 2015, 12:31 PM
Quote from: Chrispapa on May 14, 2015, 11:07 AMOhh,it's an old version server. Do you send me the Linux x86 server files?(With scripts,startup files)

http://forum.vc-mp.org/?topic=514.0

Really?
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 12:49 PM
Its only a startup file
Title: Re: Server error
Post by: Thijn on May 14, 2015, 01:23 PM
Quote from: Chrispapa on May 14, 2015, 12:49 PMIts only a startup file
That's all you need since you already seem to have a script.
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 03:19 PM
And what's the problem?
Why not load the script??
Title: Re: Server error
Post by: Thijn on May 14, 2015, 04:06 PM
Quote from: Chrispapa on May 14, 2015, 03:19 PMAnd what's the problem?
Why not load the script??
Like we said, it's not able to load the file you specified.

What program did you use to create the config file? Make sure they only use linux line endings.
Try executing this in your server directory:
echo "gamemode Default\nplugins squirrel04rel32 xmlconf04rel32 announce04rel32 sockets04rel32 hashing04rel32 sqlite04rel32 mysql04rel32\nport 8192\nsqgamemode scripts/main.nut\nmaxplayers 100" > server.cfg
Title: Re: Server error
Post by: Chrispapa on May 14, 2015, 07:43 PM
Notepad++