Hello Hosters,
Now that Z28 and its installer provide a way for anyone with an installed LFS to use lfs:// links without installing an external program, I thought it would be a good idea to explain how to make those links that you can put on any web page. They are different from the old ones used by the "LFS Join" program.
The basic idea is :
lfs://join=hostname
For browser compatibility you must use %20 instead of any spaces.
So if your host name is "my host" your link would be :
lfs://join=my%20host
You can also include a password (for example if you are making a link to a private host from a private forum).
The /pass command is used in that case, for example :
lfs://join=my%20host/pass=password
And that is basically it for most hosts. You do not need to include colour codes. However, you need to take care of special characters. For example ? and # have special meanings in a URL so you should use ^q and ^h in their place. Also a / character (slash) in a host name would be interpreted by LFS as the next command on the command line, so you must use ^s in place of the slash.
The full list of special characters is :
Also note that some browsers do funny things with characters above 127. So for those high characters you should again use the %xx encoding (as you do for spaces) where xx is the two digit hexadecimal value of the character.
Finally, if your host name uses a non-latin code page you should use the ^X that LFS uses. E.g. ^J for Japanese and ^C for Cyrillic. One way to work this out is by entering a host name in LFS, in the Start New Host screen. Then exit LFS and open cfg.txt - you will see the language-encoded host name beside the "Game Name" field.
Now that Z28 and its installer provide a way for anyone with an installed LFS to use lfs:// links without installing an external program, I thought it would be a good idea to explain how to make those links that you can put on any web page. They are different from the old ones used by the "LFS Join" program.
The basic idea is :
lfs://join=hostname
For browser compatibility you must use %20 instead of any spaces.
So if your host name is "my host" your link would be :
lfs://join=my%20host
You can also include a password (for example if you are making a link to a private host from a private forum).
The /pass command is used in that case, for example :
lfs://join=my%20host/pass=password
And that is basically it for most hosts. You do not need to include colour codes. However, you need to take care of special characters. For example ? and # have special meanings in a URL so you should use ^q and ^h in their place. Also a / character (slash) in a host name would be interpreted by LFS as the next command on the command line, so you must use ^s in place of the slash.
The full list of special characters is :
* -> ^a
: -> ^c
\ -> ^d
# -> ^h
< -> ^l
? -> ^q
> -> ^r
/ -> ^s
" -> ^t
| -> ^v
Also note that some browsers do funny things with characters above 127. So for those high characters you should again use the %xx encoding (as you do for spaces) where xx is the two digit hexadecimal value of the character.
Finally, if your host name uses a non-latin code page you should use the ^X that LFS uses. E.g. ^J for Japanese and ^C for Cyrillic. One way to work this out is by entering a host name in LFS, in the Start New Host screen. Then exit LFS and open cfg.txt - you will see the language-encoded host name beside the "Game Name" field.