Forum

> > CS2D > Scripts > Error or Bug charset on server.lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Error or Bug charset on server.lua

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben Error or Bug charset on server.lua

Zinaldess2
User Off Offline

Zitieren
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

alt Re: Error or Bug charset on server.lua

GeoB99
Moderator Off Offline

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

alt Re: Error or Bug charset on server.lua

Ajmin
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht