Forum

> > CS2D > Scripts > Error or Bug charset on server.lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Error or Bug charset on server.lua

13 replies
To the start Previous 1 Next To the start

moved Error or Bug charset on server.lua

Zinaldess2
User Off Offline

Quote
Hello, I tried to create a server in Linux but I'm getting an error or bug from server.lua that is not loading the lua script.

Look at this.

1
2
3
4
5
6
7
8
9
----- Server started -----

parsing Lua server script (mp_luaserver = 'server.lua')

LUA ERROR: sys/lua/server.lua:1: unexpected symbol near 'ï'

U.S.G.N.: Sending serverlist ADD-request...

U.S.G.N.: Serverlist entry updated

old Re: Error or Bug charset on server.lua

GeoB99
Moderator Off Offline

Quote
The root cause of your error is the wrong encoded file. CS2D only supports ANSI for Lua files, other encoding types such as UTF-8 or UTF-16 will throw an error just prior executing the script.

Change the encoding file to ANSI and you're done.

old Re: Error or Bug charset on server.lua

Ajmin
User Off Offline

Quote
Mostly this issue prevails due to encoding probs.
Try to copy and paste the whole content to some other .lua file also use some decent txt editor.

Edit: stop using ftpclient's txt editor. Replace the whole file from your computer.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview