Setting up local lobby and server: Difference between revisions
No edit summary |
m (→Register the Executables: fixed mistake where file path said /lobby/lobby.exe instead of /lobby/alllobby.exe) |
||
| Line 4: | Line 4: | ||
===Register the Executables=== | ===Register the Executables=== | ||
First locate objs10/FZDebug/lobby/ | First locate objs10/FZDebug/lobby/alllobby.exe and objs10/FZDebug/Fedsrv/allsrv.exe. Run both of these files once with the -regserver switch, i.e. create a shortcut to ...objs10/FZDebug/Fedsrv/allsrv.exe -regserver or navigate there using the command prompt and run allsrv.exe - regserver and AllLobby.exe -regserver. | ||
===Create a Config File=== | ===Create a Config File=== | ||
Revision as of 04:42, 22 August 2010
Setting up a local lobby and server running on your machine will allow you to test without using allsrvui.exe and allow for more straightforward debugging.
Register the Executables
First locate objs10/FZDebug/lobby/alllobby.exe and objs10/FZDebug/Fedsrv/allsrv.exe. Run both of these files once with the -regserver switch, i.e. create a shortcut to ...objs10/FZDebug/Fedsrv/allsrv.exe -regserver or navigate there using the command prompt and run allsrv.exe - regserver and AllLobby.exe -regserver.
Create a Config File
The next step is to create a local.cfg file and host it remotely for your client and server. An example local.cfg file can be found at http://alleg.egretfiles.com/Xynth/local.cfg . These files will need to be edited to replace all instances of the local IP (192.168.1.73 in these files) with your local (inside the LAN) IP address found with ipconfig at the command prompt.
Registry Changes
Finally, your registry needs to be edited to point to these remote local.cfg files. A CfgFile string value set to the cfg file location (in my case "http://alleg.egretfiles.com/Xynth/local.cfg") needs to be added to the Microsoft Games\Allegiance\1.1 folder and an equivalent CfgFile value goes in Microsoft Games\Allegiance\1.1\Server. Additionally, create a ServerAddress string in Microsoft Games\Allegiance\1.1 folder that has a value of <LANIP>:2304 for example to match my local.cfg my key is 192.168.1.73:2304 .
Debugging with Local Lobby and Server
Now to start a debugging session in Visual Studio, right click the appropriate projects and select Debug->Start new instance. Do this for the Lobby, Server, and Allegiance project in that order.
Using Retail Lobby and Server
Additionally, if you repeat the -regserver steps in the first paragraph on your objs10/FZRetail allsrv.exe and lobby.exe you can run those by simply executing them to give a less resource intensive server and lobby if you aren't debugging.
Reverting Back To Normal Beta Server
If you want to go back to using the normal beta server with everyone else, simply rename the CfgFile registry key in your Microsoft Games\Allegiance\1.1\ folder to notCfgFile.