Game Development Community

TGE and Pref::Net::BindAddress?

by Vincent Cojot · in Torque Game Engine · 08/28/2003 (6:10 am) · 1 replies

Just a quickie,

I know it really is a stupid question but....

Has anyone been able to make Pref::Net::BindAddress work with the default Torque demo? I am unable to figure out:
1) the correct syntax
Is it 'Pref::Net::BindAddress' or '$Pref::Net::BindAddress'?

2) where to place it (common/prefs.cs or server/prefs.cs, both files appear to be overwritten every time I launche the server)?

Perhaps I'm missing a clue here but I'd definitely apreciate some help.
The reason why I need this is that I'm testing the Solaris Server from a multi-homed Linux box (eth0 as internal interface and eth1 as default gateway.. of course TGE binds to eth1 while I would want it to bind to eth0....).

Thanks for reading!

Vincent

#1
08/28/2003 (6:13 am)
Hmm.. found it. Sorry about the noise:

edit $HOME/.garagegames/torqueDemo/fps/client/prefs.cs
and add:
$pref::Net::BindAddress = "";

I wonder why this goes into the 'client' prefs.cs, even though I'm trying to start the dedicated server...

Vincent