Server error

Started by Chrispapa, May 14, 2015, 09:51 AM

Previous topic - Next topic

Chrispapa

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.?

.

Can you show us the contents of server.cfg ? There's should be a line like this in there:
sqgamemode scripts/main.nut
.

Chrispapa

gamemode Default
plugins squirrel04rel32 xmlconf04rel32 announce04rel32 sockets04rel32 hashing04rel32 sqlite04rel32 mysql04rel32
port 8192
sqgamemode scripts/main.nut
maxplayers 100

.

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.
.

Chrispapa

Yes on Linux Debian 7!
In the server folder all files have 777 permission.
But only have the same problem.

Chrispapa


Thijn

Did you actually put your script file in the scripts/ folder? (case sensitive, Scripts wont work)


.

Change this line to this and see if that helps with anything:
sqgamemode ./scripts/main.nut
.

Chrispapa

Could not load script './scripts/main.nut
[WARNING] cannot open the file
[ERROR] No Squirrel gamemode was specified.

Chrispapa

Ohh,it's an old version server. Do you send me the Linux x86 server files?(With scripts,startup files)

Chrispapa


DizzasTeR

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?

Chrispapa

Its only a startup file

Thijn

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.