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

Store chunks in MySQL

Discussion in 'Development' started by Kyd, Mar 4, 2018.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Is it possible to store all chunks in level to MySQL database and then send them to player? (except entities and tiles. Only blocks)
     
  2. svile

    svile Spider

    Messages:
    14
    It's possible but it's such a bad idea, it would be so inefficient. Tell us what's your goal so we can give you an hint on what's the better way to achieve it.
     
  3. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I have adventure map on my server, I want to store chunks of this world and then load it for player that's on totally another server.
     
  4. svile

    svile Spider

    Messages:
    14
    And why can't you just copy-paste this world in the other server's worlds dir?
     
  5. Bamuel

    Bamuel Silverfish

    Messages:
    16
    GitHub:
    bamuel
    [​IMG]
    This is a normal MySQL table, How on earth are you going to store chunks in it.

    You're better writing a plugin that downloads the map from a server
     
    Enrico Angelon likes this.
  6. svile

    svile Spider

    Messages:
    14
    Using the BLOB type but as i said, it's inefficient
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Use a database genuinely designed for large files, or just use an online file transferring service like transfer.sh (although they most likely aren't designed for automation)
     
    Muqsit and xXNiceAssassinlo YT like this.
  8. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Do you want to sync the two worlds, or do you simply want to copy? Do you want events happening on one world to get sent to another one too?
     
  10. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Well, I don't want to paste world folder on my other servers because I have about 30 maps on server and when all of them are loaded on all of my servers it start lagging
     
  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.