myk
patron mod of ugly ducklings and black sheep

Posts: 10410
Registered: 04-02 |
RazTK said:
How do I start a net game?
Someone needs to start a server (usually on one of the players' computers but it could be elsewhere) with its command line parameters (check the documentation for which apply.) The clients each connect to it using the -net command, plus the IP or the computer name. On the server it's a good idea to specify the -c command, that lets the server know what CFG to use for the game, from where it takes all the shared CFG info (and leaves aside individual stuff like key bindings and whatnot.) The clients don't usually add anything else to the command line themselves unless selecting the IWAD, recording, or making changes to output.
Check README.command-line.txt for more info. You can also run a server with -N 1 (1 node, or 1 player) and join it yourself with -net and 127.0.0.1 (or localhost), but that's internal and was working for PrBoom+ even before the fix. If you run both the server and the client on your machine each naturally needs its own command prompt (it's good to have a specific shortcut, script, or batch for the server.)
One thing I noticed is that the server dictates the path to the PWADs used, so it's best for the clients to have them in the same directory as the engine (unless the clients and the server all have the same subdirectory structure for PWADs.)
|