Oarcinae / FactorioScenarioMultiplayerSpawn

A mod for Factorio which provides each player a unique starting spawn point in a multiplayer game.
MIT License
54 stars 31 forks source link

Add interactive request with approval from spawn host when players request to join. #42

Closed Oarcinae closed 6 years ago

Oarcinae commented 6 years ago

Add interactive request with approval from spawn host when players request to join.

Possible flow:

  1. Player 1 starts a new base.
  2. Player 1 opens up base for requests.
  3. Player 2 joins game and requests to join.
  4. Player 1 has to open up spawn control menu to view new requests, can click on buttons with player name to allow them in.
  5. If allowed, player 2 joins. If not allowed, player 2 can opt to cancel request and go back to spawn menu.

Menu navigation will be tricky to make sure there are no edge cases.

AusKarlos commented 6 years ago

Add a double confirmation to reduce edge case.

  1. Player opens up spawn control menu to view pending requests, clicks on accept or reject button with players name next to the GUI buttons to allow / reject.
  2. If allowed player 2 gets a popup GUI message to click to join, If rejected player 2 is notified and returns to lobby menu.

Have an auto-timeout trigger to auto reject requested invites. Dont use server ticks to count time just in case server ticks are above default.

Oarcinae commented 6 years ago

Added in a basic GUI system to allow/deny. No fancy auto-timeout stuff yet and it's likely a bit buggy around edge cases. Any help testing this would be greatly appreciated.

Oarcinae commented 6 years ago

Marking this one as done.