forked from Ports/perfect_dark
2.7 KiB
2.7 KiB
Experimental netplay branch
This branch contains a highly experimental implementation of network play.
Currently only Combat Sim is partially working with experimental 8 player support and really bad netcode.
Expect nothing to work right.
Hosting
- Forward the server port (
27100by default, can be changed inpd.ini).- You can also use something like ZeroTier or Hamachi if you can't port forward.
- Choose
Network Game->Host Game, configure the player cap, pressStart Game. - Configure Combat Sim as desired, but do not start it yet. Keep in mind:
- You can save and load the settings as normal.
- Your player will have the config of Combat Sim player 1.
- Wait for everyone to join. You can use the console (press
~) to chat in the meantime. - Hit Enter/Start. During the game no more players will be able to join.
- After game is over, you will be kicked back to Combat Sim settings, at which point people can join again and the process repeats from step 3.
Joining
- Your player will have the config of Combat Sim player 1, so set that up beforehand in the Combat Sim menu.
- Choose
Network Game->Join Game, enter the address (and port if it's not 27100), pressStart Game. - If the message says
Waiting for host, wait until the host configures the game. You can use the console (press~) to chat in the meantime orESCto disconnect. - The game will start automatically.
- After the game is over, press Enter/Start on the stats screen and you will be kicked back to the
Waiting for hostscreen, at which point the process repeats from step 3.
Misc
- Everyone has to have the same ROM. The game only compares the file name, but different regions in one game will definitely break everything.
- Press
~to bring up the console, pressF9for network stats. - You can chat at any time during a net game by entering messages in the console and hitting Enter.
- Server port and other network settings can be configured in
pd.ini. - For a 4+ player game I would recommend changing
Net.Server.UpdateFramesto2inpd.inion the server to lower the bandwidth usage. - You can paste stuff into the
Enter Addressprompt by hittingCTRL+V. - Expect nothing to work right.
Known issues
- Clients can't throw laptop guns.
- Clients see rocket rotation incorrectly.
- Clients can't use Slayer fly-by-wire rockets and they will not correctly sync if the server uses them.
- Clients can't use the alt fire mode on the FarSight and probably a couple other guns.
- Cloaking device is not synced.
- Most likely only Combat works properly.
- Sims don't work in netgames.
- Bandwidth consumption on the server is pretty large on the default settings, especially with 8 players.