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

ResourcePacks

Discussion in 'Development' started by RedstoneAlmeida, Dec 17, 2016.

  1. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    it's possible to send texture/resource pack to client using ResourcePack packets?
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Yes, it is, but we still don't know exactly how...
    It's basically sending a zip file...
     
    applqpak likes this.
  3. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    I saw that it is possible, but I have no idea, I think I should try to put the URL in the Strings
     
  4. imYannic

    imYannic Baby Zombie

    Messages:
    113
    applqpak likes this.
  5. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    I already asked her and she told me: This will be distributed next year, nothing more
     
  6. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    I Have used code:
    Message by Client: "Error to download or place resource pack"

    Code:
    $pk = new ResourcePackStackPacket();
            $pk->bool = true;
            $pk->short1 = $url;
            $pk->string1 = "PlusMobs";
            $pk->string2 = "Plus Mobs §eby §l§4Fraxx§f";
            //$pk->short2 = $url;
            $pk->string3 = "0.1";
            $pk->string4 = "Add new giant and baby mobs //Add Giant Zombie and Baby skeleton and baby enderman //Example of new functions of MCPE 0.16
    ";
            $player->dataPacket($pk);
     
    applqpak and Muqsit like this.
  7. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Did you use a web URL for $url? Try using path to an internal directory maybe?
     
    applqpak and imYannic like this.
  8. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    I think it would be good to download, I'm not sure how to do it, do you have any ideas?
     
  9. Wii54

    Wii54 Silverfish

    Messages:
    16
    GitHub:
    wii54
    There is a ResourcePackStackPacket()?
     
  10. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    Yes, it was the closest possible to get a download / error screen
     
  11. Magicode

    Magicode Baby Zombie

    Messages:
    183
    GitHub:
    magicode1
    I am actually super pumped for this. It looks super cool!
    I would just wait for it to be released into Pocketmine, but I guess that just me :)
     
    applqpak and HimbeersaftLP like this.
  12. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    No it's not just you ;P
    But it will probably take some time...
     
    applqpak, HimbeersaftLP and Magicode like this.
  13. CreeperFace

    CreeperFace Witch

    Messages:
    58
    GitHub:
    creeperface01
    So nobody knows how to send a resource pack?
     
  14. Ad5001

    Ad5001 Silverfish

    Messages:
    16
    GitHub:
    ad5001
    Maybe the zip should be sent with ethe folder texture of a .mcpack (which is a zip) ?
     
    applqpak likes this.
  15. 0x15f

    0x15f Baby Zombie

    Messages:
    145
    GitHub:
    0x15f
    MiNET has this feature Implemented, if I remember correctly MiNET did force a texture pack when the packet was first added. That would be good place to check.
     
    applqpak and Muqsit like this.
  16. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    They forced one of the default texture packs which come with the app.
     
    applqpak likes this.
  17. Tester_master

    Tester_master Silverfish

    Messages:
    19
    many pc server have this api feature inside of there plugins
     
  18. SergeyIvanov

    SergeyIvanov Witch

    Messages:
    59
    GitHub:
    sergeyivanov14
    ResourcePackStackPacket don't exists.
     
    applqpak likes this.
  19. imYannic

    imYannic Baby Zombie

    Messages:
    113
    But it works for his fork, so your post was not helpful.
     
  20. RedstoneAlmeida

    RedstoneAlmeida Spider

    Messages:
    9
    GitHub:
    redstonealmeida
    BlueLightJapan contains ResourcePackStackPacket, i'm ported to PMMP
     
  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.