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

Solved help : unable to use API Updater PocketMine Tools

Discussion in 'Development' started by TeraCube, Dec 4, 2017.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    Hello,

    Can you help me please
    I try to use API Updater PocketMine Tools to update plugin Worlds on Alpha10
    DevTools/
    https://poggit.pmmp.io/ci/survanetwork/Worlds/Worlds

    1/If i try update phar file with API updater button i have this error message :
    Code:
    Could not build phar: RecursiveDirectoryIterator::__construct(phar:///var/www/DevTools/data/phars/phar_Worlds_v1.0.12d83b8f8c131c54337a06e50f40aeaffaa1052971.phar): failed to open dir: phar error: invalid url or non-existent phar "phar:///var/www/DevTools/data/phars/phar_Worlds_v1.0.12d83b8f8c131c54337a06e50f40aeaffaa1052971.phar"<br /> phar url "phar:///var/www/DevTools/data/phars/phar_Worlds_v1.0.12d83b8f8c131c54337a06e50f40aeaffaa1052971.phar" is unknown

    2/if i try to Build a .phar with master.zip and add ALPHA10 in plugin.yml i have this error message
    Could not build phar:
    Errors found (1):
    CRITICAL: Invalid plugin.yml provided.
    what mean Invalid plugin.yml provided

    i try with others plugins and it's ok
    but not with Worlds plugin
    why ?
    thanks
     
  2. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Just download DevTools, and download source code Worlds Plugin and change api to 3.0.0-ALPHA10
     
  3. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    You should have noticed by now that everyone always says this is a bad idea, and there are very good reasons why.

    There's no reason any production server needs the latest cutting-edge build, unless you want to be forced to check and update your plugins with every core commit, and you have regular off-site backups. If you don't know how to update plugins - not just changing an API version string, but how to update code when a core class becomes abstract for example - then you are better off using the latest tagged release, which is currently 3.0.0-ALPHA9, is very stable and has loads of plugins on Poggit and elsewhere.

    Anything can change at any time in an untagged Alpha, so the best approach is to use the latest cutting-edge builds only for testing and updating plugins, but not on any server which contains data or worlds that you don't want to lose.
     
    TeraCube likes this.
  4. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Some plugin u can change API, Other Plugins you need to change commands or others that was new to pmmp or something else. (Forgot to say api)
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Please don't oversimplify the problem. For many plugins, you have to update other things in addition to type hints and the API. (For example, for plugins using libasynql, they have to change the AsyncTask::__construct call to AsyncTask::storeLocal() since ALPHA8, and this is only one of the many examples)
     
    jasonwynn10 and Awzaw like this.
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    consider using DevTools plugin, since that site you used is a 3rd party site, pmmp do not endorse or support neither provide support for it
    if you insist getting support, please kindly use their site for support
    3rd party sites can be faulty or buggy or even straight up malicious since it's not provided by PMMP we here have no guarantee it will work as advertised or intended neither as hoped for

    there's also a reason for the api versions, think of it as how each laptop's plug and socket is not the same, you shouldnt just rewire a plug and plugging it in your laptop hoping it wont fry your laptop
     
    Last edited: Dec 5, 2017
    Awzaw likes this.
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Every time I read this thread, I need to think twice if you really meant DevTools.

    DevTools is better than DevTools! Don't use DevTools! Use DevTools intsead!
     
  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.