perfect_dark icon indicating copy to clipboard operation
perfect_dark copied to clipboard

[Feature Request] Dedicated Server for netplay

Open megatog615 opened this issue 2 years ago • 3 comments

Netplay should offer the ability to be hosted by a headless server daemon. By default the game should be configurable by one of the clients, possibly the first to connect. In future, options in a server ini file should allow the host to configure what game modes are allowed, or if the host wants to set up a server that only runs specific settings.

A restrictive config file could have these example options, with blank values being the default values:

[Net.Server]
DisallowMaps=ravine,carpark
DisallowSimulants=meatsim,darksim
DisallowWeapons=farsight

etc

A server that only plays complex, four players, only pistols, no simulants, default limits(forcing a map disables customization, and with no option set for simulants, doesn't enable them per default):

[Net.Server]
Map=complex
WeaponGroup=pistols

megatog615 avatar Jan 07 '24 21:01 megatog615

While it's not too difficult to make a headless server by just disabling audio/video, making a usable dedicated would involve adding a voting system and figuring out what to do with the dedicated server's local player.

fgsfdsfgs avatar Jan 07 '24 22:01 fgsfdsfgs

i think maybe as a first step after figuring out how to eliminate the server's player would to just have fixed settings and skip the game setup entirely

megatog615 avatar Jan 07 '24 23:01 megatog615

Also keep in mind that there's currently no form of lag compensation, which gives the host a massive advantage. Lag comp should be added someday, but for now, a dedicated server might help mitigate this a little bit (although it would still advantage those with lower pings).

As someone living in Australia, I was playing yesterday, and my ping made it nearly impossible to hit anything even if I managed to hit it from my perspective, and sometimes I got kills by shooting in front of people.

tunbridgep avatar Jan 28 '24 23:01 tunbridgep