The online racing simulator
Parameter 2 is invalid [server config issue]
I'm trying to set up a dedicated server and I'm getting this error message after editing the config file. What does it mean?
#2 - amp88
Post the contents of your cfg file (in #/CODE tags) so we can see what's wrong. Remember to edit out any personal information (such as the admin password and IP address, if entered).
Quote from amp88 :Post the contents of your cfg file (in #/CODE tags) so we can see what's wrong. Remember to edit out any personal information (such as the admin password and IP address, if entered).

// Example host configuration file
// How to use: LFS /cfg=setup.cfg
// Lines starting with // are ignored

// host name
/host=dedicated /o/

// optional: password
//pass=password

// optional: admin password
//admin=password

// optional: InSim port
//insim=29999

// optional: local specified ip address
//ip=xxx.xxx.xxx.xxx

// a high number below 65536
/port=63392

// demo/s1/s2
/mode=demo

// no/yes/hidden
/usemaster=yes

// BL1/BL1R/BL2, SO1/SO1R/SO2, etc
/track=BL1

// weather
/weather=1

// cars allowed - see README.txt
/cars=ALL

// max guests that can join host
/maxguests=4

// slots reserved for admins (0 to 8)
/adminslots=0

// max cars in a race
/carsmax=5

// max cars (real+ai) on host pc
/carshost=1

// max cars (real+ai) per guest pc
/carsguest=1

// smoothness (3-6) number of car updates per second
/pps=4

// qualifying minutes, 0 for no qualifying
/qual=0

// number of laps, 0 for practice
/laps=5

// if laps not specified: hours
//hours=24

// 0=no/1=low/2=high
/wind=1

// nogfx/invisible
/dedicated=nogfx

// no/yes: can guests vote to kick or ban
/vote=yes

// no/yes: can guests select track
/select=yes

// no/kick/ban/spec: wrong way drivers
/autokick=spec

// no restart within X seconds of race start
/rstmin=60

// no restart within X seconds of race finish
/rstend=30

// no/yes: allow join during race
/midrace=yes

// no/yes: pit stop required
/mustpit=no

// no/yes: allow car reset
/canreset=no

// no/yes: force cockpit view
/fcv=no

// no/yes: allow wrong way driving
/cruise=no

// fixed/finish/reverse/random: race start order
/start=finish

// optional: welcome message up to 200 chars
//welcome=welcome.txt

// optional: text file listing allowed tracks
//tracks=tracks.txt

// optional: message log file
//log=deb.log

// no/yes: network debug
/ndebug=no

// MPR autosave (0=off / 1=manual / 2=auto)
/autosave=0

// MPR folder
/mprdir=mpr

// LYT folder
/lytdir=layout

I've only changed the host name from the standard cfg file which functioned fine.
#4 - amp88
Quote from hjjfffaa :
// host name
/host=dedicated /o/

I've only changed the host name from the standard cfg file which functioned fine.

I don't know how LFS parses the configuration file (in terms of 'special' characters such as the forward slash). If you remove the forward slashes from the host name and it works correctly then you will know that forward slashes in the host name are not a good idea. Let us know if that solves the problem or if it persists afterwards.
Okay, thank you. That worked. Now the window starts up but it says TCP Socket: bind failed error.
#6 - amp88
Quote from hjjfffaa :Okay, thank you. That worked. Now the window starts up but it says TCP Socket: bind failed error.

That error normally happens if the port you're trying to use is already in use by another process. Do you already have another LFS server running (using the same port)? If you want to run multiple servers you can edit the config files for each to make sure they're using different ports (e.g. 63392 and 63393).
Yes I Googled it and that was the whole problem. Thank you!
Okay so now my server works, but the password does not. It is set but does not function in game. I'm also having problems timing out but my clients do not.. The server is on my LAN so why is this?
//optional: admin password
//admin=password

Did you remove the two slashes in front?
actually its one slash
-
open in join specific host : drift (Aditya03) DELETED by Flame CZE : spam

FGED GREDG RDFGDR GSFDG