The online racing simulator
Problems running dedicated server
Hi All.

Top game, I'm trying to run a dedicated server to get some of my mates to play.

When i start with lfs cfg=setup.cfg i get an error 'invalid command line'

my setup.cfg is

//Example dedicated host configuration file.
//How to use : LFS /cfg=setup.cfg

//FIRST IN LIST
/host=Host Name

//if required - password
//pass=password

//if required - admin password
//admin=password

//if required - InSim port
//insim=29999

//if required - 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

//Blackwood/South City/Fern Bay/Autocross/Westhill/Kyoto Ring/Aston
/track=Blackwood

//config : 1=GP/2=RALLYX in Blackwood
/config=1

//no / yes
/reversed=no

//weather : 1,2,3 in Blackwood
/weather=1

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

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

//max number of cars in a race
/carsmax=5

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

//max number of 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/yes/ban/spectate : wrong way drivers
/autokick=spectate

//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

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

and my deb.log says

LFS DEDICATED HOST : 0.5Q
timer resolution 1 ms
read config
get command line
Invalid command line

I have only just downloaded the dedicated server zip and have made no modifications

It's running on an AMD XP2400+, 512MB, Windows XP Media Edition

Can anyone help?

ta Spotta
Try "lfs /cfg=setup.cfg" instead.
Doh!

ta
Probably another n00b question -
But is there a way to add a couple of AI cars to the dedicated server in the cfg?

and can someone tell me a way of setting up some script etc to start the dedicated server whenever Windows boots

Thanks
Create a shortcut for the LFS server with the command line operator /cfg=config.cfg in the properties. Then drag the shortcut to your Startup folder on the Start/Programs menu.

There are other ways, but this is quick and easy .
Ta.

Nice sig.
Perhaps a question inviting a "yes" or "no" reply would have a better chance of a quick answer.....suggest you contact the admin or buy the full version..
Hi spotta.

Are you playing and running the dedicated server on the same computer or have it in LAN?

If you have it on LAN. Try connect with that computers IP.

You can check http://www.lfsworld.net/ . Login as Guest and click "Racers and hosts online". Find your server there?

Otherwise its the same boring stuff. Check firewalls and routers.
neo2004, is the "server" the directly connected to the internet? If not you need to do some port forwarding, and make sure that any internal firewalls allow LFS past.
Hi,

I have some problems with my dedicated server, too

The Server runs on the same machine as the Game, so when I connect to my local IP-adress it works. But if my friends try to connect to my server there is a message which says that the server isn't online. BUT if my friends search for me it works.

Ports (29339 TCP and 63392 TCP/UDP) are forwarded to my PC and the firewall is correctly configured.

So...what's the problem?

Here's my cfg file:
/host= // name
/pass= // password
/admin= // password
/port=63392
/mode=s2
/usemaster=yes
/maxguests=20
/carsmax=20
/carshost=1
/carsguest=1
/pps=6
/dedicated=nogfx
/vote=yes
/select=yes
/rstmin=0
/rstend=0
/autokick=no
/midrace=yes
/mustpit=no
/start=random

Thanks for your help.

Kind regards
Max

PS: My english isn't very well, I hope you understand what I mean

FGED GREDG RDFGDR GSFDG