1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Possibility? Static lobby

Discussion in 'Development' started by WreckagePE / ZAYD, Mar 4, 2017.

  1. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Is it possible to have:
    One PVP arena.
    Multiple gamemodes, buhc, PotPVP, soup etc go on in the arena at the same time BUT matches do not interrupt each other.
    Like Badlion. They have a massive amount of players... Do they have over 1000+ arenas? Trying to figure this out lol
     
  2. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    If you wanted to have it be static you would have to setup some sort of system that either duplicates levels and loads them for each arena then unloads and deletes them after the match or create some sort of system that loads an arena schematic in and removes it after the match or create a proper networking system that allows your servers to efficiently communicate and transfer players to game servers that have multiple arena's available.
     
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    It's pretty simple. I can make you a shell script (f you, windows). The only thing you'll need to worry about would be hard space.
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    What if it was done through blocking certain packets to certain clients? Couldn't it be all done in a single level?
     
  5. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Big servers write their own server/modify server software heavily, where the blocks are just saved in memory.
     
  6. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Duplicating worlds is the worst anyone could do. You can differentiate every game session and use UpdateBlockPacket to your advantage. I think that's what big servers do..?
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    What if the game mechanics require detection of changes to the arena? For example, water flow?
    So, is it impossible to do this without modifying the source?
    What about Level->setAutoSave(false)? It should have minimal effect to the level storage.
    Otherwise, use a custom level provider to prevent writing. I wrote a proof of concept here. Never tested it though.

    Is it really that costly to duplicate the level every time? If blocks are only saved in memory, it is identical to unloading, deleting, duplicating and reloading the level every time. Is there really so much difference?
     
    jojoe77777 and Jack Noordhuis like this.
  8. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Isn't that possible through packets?
     
  9. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.