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

Solved Download resource pack without showing Form and remove it

Discussion in 'Development' started by KHAV, Jun 24, 2018.

  1. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Is it possible to make when the player join to the server download for it resource pack without show the resource pack form and ask him if he wants to download it and remove the resource pack from his device when he leave.
    I think i should use: ResourcePackClientResponsePacket but how i should use it exactly?
     
  2. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Umm is this possible?
     
  3. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    I don't think you can apply a resource pack to a client without the client receiving that message, if that's what you mean. I know I wouldn't want a server forcing a resource pack on my device without asking first. I may be mistaken, but I believe server resource packs are disabled when you leave that server.
     
    EdwardHamHam likes this.
  4. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Yeah this is what i mean.
    You may be right, but i want it because there is a thing i didn't like it, That when i edit a file in my server's resource packs, And the player join for not first time, He gets the old resource pack that before i edit it, So he should remove it from 'Settings->Storage->Cache Data->Remove' to get the new resource pack that i edited, So i thought why if i make when the player leave, The server remove the resource pack from his device using a code and when the player joins, The server download the resource pack to him without showing him the message about if you want to download the resource pack.
     
    Last edited: Jun 26, 2018
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    There's definitely no way to clear any data from the user's device, but maybe if the changed texture pack has a different identifier or name, the device would download it instead because it's a "different" texture pack?
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Changing the uuid of the pack will probably make MCPE download it again, but if you change it too often, the player's device will be full of your old packs.
     
  7. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    So i said what if i can remove the resource pack from player device when he leave.
     
  8. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Yeah you are right but like what said @HimbeersaftLB , the player device will be full of old resource packs
     
  9. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Instead of changing the uuid you should change the version of your resourcepack. That way the old resourcepack will be replaced, too, afaik.
     
  10. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    TIL Resourcepacks have a version o_O
     
    KHAV likes this.
  11. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Yeah you right thx!
     
  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.