Forum

> > CS2D > Servers > Strange error with mapnames in server.cfg
Forums overviewCS2D overview Servers overviewLog in to reply

English Strange error with mapnames in server.cfg

5 replies
To the start Previous 1 Next To the start

old Strange error with mapnames in server.cfg

Torque
User Off Offline

Quote
Hello forumdwellers!

I have a question today about an error that occurs with some mapnames in server.cfg. For example when there are spaces in a mapname. Example de_dust edit by torque.map. You can change to this map with rcon by doing sv_map "de_dust edit by torque". When I put this line in the server.cfg however, the following shows up in my serverlogs.

logs >


The server starts to eat CPU and spit out that last error an insane amount of times. My question is, is there a fix that allows mapnames with spaces in them? And if there is not, which characters like ' ' and '.' should I disallow in order to prevent this error from occuring.

Thanks in advance!

old Re: Strange error with mapnames in server.cfg

DC
Admin Off Offline

Quote
Double quotes should work. Note that the CS2D command parser (unlike Lua) does NOT support single quotes but double quotes only! I don't recommend to use white spaces or special characters (except for _) in map names anyway.

√ a-z, lower case only. Upper case works as well but I wouldn't recommend it because it can lead to confusion and problems depending on the OS. Linux for instance differentiates between XYZ.map and xyz.map, Windows doesn't.

√ 0-9

√ _ (- is okay as well, but _ is the standard and should be used for that reason)

× Everything else is bad! It may work but it can also lead to problems! You should stick to a-z, 0-9 and _!

old Re: Strange error with mapnames in server.cfg

gotya2
GAME BANNED Off Offline

Quote
user DC has written
Double quotes should work. Note that the CS2D command parser (unlike Lua) does NOT support single quotes but double quotes only! I don't recommend to use white spaces or special characters (except for _) in map names anyway.

√ a-z, lower case only. Upper case works as well but I wouldn't recommend it because it can lead to confusion and problems depending on the OS. Linux for instance differentiates between XYZ.map and xyz.map, Windows doesn't.

√ 0-9

√ _ (- is okay as well, but _ is the standard and should be used for that reason)

× Everything else is bad! It may work but it can also lead to problems! You should stick to a-z, 0-9 and _!


So exactly what forbidden characters are in his map, de_dust edit by torque ?

Also @user Torque: , could you share the map? Cannot reproduce the error.
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview