Opened 8 years ago

Last modified 3 years ago

#3556 new enhancement

Dedicated server — at Version 2

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Network Keywords: patch, beta
Cc: andy011973@…, Victor ADASCALITEI Patch:

Description (last modified by elexis)

Requirements

  • A dedicated host is a gameserver running from command-line
  • It has almost no performance requirements
    • no graphics are displayed
    • no local player/observer joins the game
  • could allow Wildfire Games to host multiple games on a single machine
    • can be patched independently from the release cycle (f.e. in case of bugs or abuse)
    • might satisfy the demand for servers (as only a minority of users can host/configure their router currently)
    • useful for rated games as we could make sure to not quit the server prematurely
    • ideally ensure not to kill all games when restarting the lobbybot

Notice that the source code is freely available, which means everyone will be able to use dedicated hosts. It will be the job of the programmers and lobby moderators to prevent and stop abuse.


Roadmap:

  1. Implement & commit basic functions
    • Only one host per instance
    • Use chat commands instead of gui (similar to scythewirlers autohost implementation #3419)
    • No client-side changes required (bugs can't affect regular hosting/joining)
  1. Implement gamesetup UI changes
    • Allow either the first or everyone to control the gamesettings (#3806)
    • If there are serious bugs, we could revert to 1
  1. Implement hosting on different ports (to be done in #3575)
    • Requirement for Wildfire Games being able to host multiple games simultaneously on a single machine
    • To prevent abuse (in case of attacks on users IP-addresses), hosting games by unauthorized users could be prohibited.
    • Optional: Trusted hosts (authorized lobby accounts) could be able to advertize more than one game at a time.
  1. Lobby changes
    • New button "Wildfire-Games Host"
      • XPartaMupp will spawn (at most) 1 gameserver per user
      • The user will join this game and become a moderator of it

Change History (5)

by elexis, 8 years ago

Proof of concept. Server running and chat working. Still opens an unused window and has no features besides chat yet.

by elexis, 8 years ago

No more useless windows, only command line. Takes a fraction of a second to start. Changed to class structure.

comment:1 by elexis, 8 years ago

Description: modified (diff)

comment:2 by elexis, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.