Multiple Players Access Same Inventories/Control Panels

Discussion in 'Suggestions' started by MokahTGS, Jan 20, 2021.

  1. MokahTGS

    MokahTGS Lieutenant

    Joined:
    Jun 4, 2019
    Messages:
    53
    Likes Received:
    41
    This is a feature that must be added for multiplayer/Co-op players on servers. I should be able to be connected to the same logistics network as another player, open the same container they are looking at, open the control panel for anything they are looking at.

    Having to take turns opening inventories is frustrating and basically bad game design for something that should be a real multiplayer game.

    Please make this happen.
     
    #1
    bluemax151 and Darinth like this.
  2. Darinth

    Darinth Commander

    Joined:
    Jan 11, 2021
    Messages:
    109
    Likes Received:
    96
    This is also one of my biggest, most primal gripes.
     
    #2
  3. xtended2l

    xtended2l Commander

    Joined:
    Oct 23, 2020
    Messages:
    174
    Likes Received:
    95
    Even devices cannot access the container you are looking at. So I dont think it will change in near future.
     
    #3
  4. Pembroke

    Pembroke Commander

    Joined:
    Mar 26, 2017
    Messages:
    114
    Likes Received:
    108
    It's still the wrong way to guard against shared access conflicts...

    The proper pattern to use for these, and especially for multiplayer shared inventory access, is the "try to access and react to error". It's never a good idea to try to first check if it's possible and then do it because you'd always still need to lock it for exclusive use as a new access request can come at any point including between the check and your access. So, should be "player/device tries to do an inventory operation and then it either succeeds completely, succeeds partly, or fails". That *works* for multiplayer shared inventories and allows simultaneous access. You just need the additional layer of accepting that the operation may fail.

    I understand that some parts of the code have their origin in the single-player game. You should still plan how to get rid of these when implementing your multi-player side further and further. Otherwise you'll just get bugs in multiplayer or frustrate the players with brute force fixes to those bugs.
     
    #4
    MokahTGS likes this.

Share This Page