The online racing simulator
Bug when assigning commands to a player, whose name contains "/" character
Hi,

LFS 0.7E brought a new update called:

Quote :Multiple commands on single line:

Multiple commands can now be added on a single line which sometimes
can avoid the need for a script file, e.g. to set a button to
change tyres in pit stop, you could use a double command:
/pitins ftyre super /pitins rtyre super

NOTE: some commands cannot be followed by another command:
/say /echo /join /rcm /pass /msg /altf /ctrlf

While this is definitely useful, it has brought one unintended bug. If your driver's name has a character "/" or "\" in it, you can't use any commands where you can set [driver's name] as a parameter.

So, if your AI-driver has a name "LFS / ai-driver" (doesn't matter if there is a space between or not), and decide to use command "/ai LFS / ai-driver", LFS thinks you're first putting command "/ai LFS" and then another command "/ ai-driver". What this results is you get two error lines, first being "Parameter is not valid" and second being "Unknown command".

Similar thing happens, if your own driver name has that character. So if your driver's name is, let's say "Driver /Tankslacno" and try to put a Stop-Go penalty for yourself by typing command "/p_sg driver /tankslacno" you get those same two errors. If that name starts with /, and try to set that command, you get "Unknown command" twice.

Weirdly though, this works normally when I tried to set commands in LFS.net hosts activity-window. There I haven't had any problems!

To reproduce this, you can do this.
1) Set driver name either to yourself or AI-driver that has character "/" or "\" in it.
2) Put that on race
3) Assign any command on that driver, where you can set [driver's name] as a parameter. You should see that your command will not go through, because LFS thinks you set two commands in a single line.

FGED GREDG RDFGDR GSFDG