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

What to do with edited core to install it?

Discussion in 'Help' started by Dolphin was the first, May 17, 2020.

  1. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    Suppose I edited the PMMP 1.14.60 core(that is, I redid it from phar to zip and unpacked it to get the src and vendor folders). What should I do with core to install it on the server ????
    P.S. I used an English translator
     
  2. Provsnoobgaming

    Provsnoobgaming Baby Zombie

    Messages:
    134
    GitHub:
    provsalt
    Don't edit when you don't know how to.
     
  3. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    He just like me 14 months ago. No one had helped me but i won't let's it happens. I will help you
     
  4. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    So you want to make Spoon or edit the server software?
     
  5. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    I want to edit the server core (PocketMine-MP 1.14.60). But I do not know how to put it on the server later
     
  6. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    thank you very much
     
  7. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    1. There aren't anything called PocketMine-MP Core.
    It's called A server software ok?
    One more thing! When you get a bug or crash or error, etc in your edited server software. Pmmp may don't help you. Don't try to do that. Also Pmmp is stable now, modify it may brings a lot of troubles to you.

    Important: Pmmp is PocketMine-MP if you don't know
    2. Give me a reason about why do you want to modify Pmmp?
    To modify Pmmp, you need a reason. Pmmp is very stable, also maybe its logic may not really correct but it's ok for me.

    3. I will teach you now
    PocketMine-MP.phar is a phar.
    In software, a PHAR (PHP Archive) file is a package format to enable distribution of applications and libraries by bundling many PHP code files and other resources (e.g. images, stylesheets, etc.) into a single archive file.
    For more information: https://en.m.wikipedia.org/wiki/PHAR_(file_format)

    So now you need the source code of pmmp. Take one from your server phar and converts it to zip extension.
    Remember: Don't take the one from github, if you want, you must ensure that your phar has vendors folder (Not an empty folder lol)
    After that you unpack the file. Now you can edit what you want but it will be getting hard quickly. After you had modified it, you need to compress it to zip extension. Then you convert it to phar!
    Important: Phar has stub, for example:

    PHP:
    <?php
    require("phar://" __FILE__ "/src/pocketmine/PocketMine.php");
    __HALT_COMPILER();
    If your phar don't register a stub like this, it won't load.
    That's all. My English is the horriblest thing in the world :'(
    If you want to run pmmp from source code, it is another help help for you
     
    Dolphin was the first likes this.
  8. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    That is the largest thing i ever did in this forum xD
     
    Dolphin was the first likes this.
  9. Provsnoobgaming

    Provsnoobgaming Baby Zombie

    Messages:
    134
    GitHub:
    provsalt
    you don't convert phar to zips
    you build pm get dependencys for composer
    install the files required
    modify to your liking
    build it

    anyways most things can be accomplished via plugins as well so why waste time editing it
     
    Dolphin was the first likes this.
  10. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    I want to change the generation of the server (on another forum they threw the normal.php file. This file needs to be replaced with another file in the server software to change the generation)
     
  11. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    Thank you.Where can i convert zip to Phar???
     
  12. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    That is, I need to change the server software format from phar to zip, then unzip and edit server software, and then compress the vendor and src folder to zip, and then change the format from zip to phar ???
     
  13. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    You don't need to modify the source for changing of world generation
    You can use plugins like this https://git.ad5001.eu/Ad5001/BetterGen
    It is highly recommended that you don't modify the source
     
  14. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    does not work (maybe I did something wrong), but thanks anyway
     
  15. Provsnoobgaming

    Provsnoobgaming Baby Zombie

    Messages:
    134
    GitHub:
    provsalt
    You can extend the default generator can't you the plugin above can be also used as a reference
     
  16. Dolphin was the first

    Dolphin was the first Spider

    Messages:
    13
    GitHub:
    Dalp
    I don’t understand
     
  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.