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

Configuring Poggit

Discussion in 'Development' started by Primus, Dec 30, 2016.

  1. Primus

    Primus Zombie Pigman

    Messages:
    749
    Hi my friends. I've been exhausted creating my factions plugin, It's been a year or so, but the battle has not ended. I'm facing my new enemy. I call them "noobs", I'll use this word to reference humans with disability to fully understand the meaning of life (Github) and install my masterpiece. Many PocketMine users are still on windows and they try to download plugins via Github using "Download .zip" button which doesn't include sub-modules, we all know that, so thats not an option for noobs. However as Poggit came and introduced its ability to build plugins for developers automatically. I want to redirect all noobs to poggit page. No problem. But Poggit is building my plugin incorrectly, It's not including sub-modules as well.

    I already contacted @SOFe but he went for milk, meanwhile I'm trying to get answer here. This is my brief question to him:
    This is my .poggit.yml
    Code:
    ---
    # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Chris-Prime/FactionsPE
    branches:
    - reborn
    projects:
    FactionsPE:
    path: ""
    libs:
    - local: Localizer
    - local: Economizer
    - local: Dominate
    ...
    
    You already see my silly attempts of including libraries, ha! Any tips?
     
    applqpak, Awzaw and Sandertv like this.
  2. Dinokiller

    Dinokiller Spider Jockey

    Messages:
    33
    Poggit is a brilliant tool for those who pretend to understand it. I don't think anyone except @SOFe knows how to do this so I would just wait on him replying. I don't know, I could be all wrong maybe there is someone else who could solve this.
     
    applqpak likes this.
  3. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Check https://poggit.pmmp.io/help, I think you need to configure the path for the libs too as in that example, and maybe the model, I'm not 100% sure as I haven't added any projects with submodules yet - I'll check and get back to you.
     
    Last edited: Dec 30, 2016
    applqpak and Primus like this.
  4. Primus

    Primus Zombie Pigman

    Messages:
    749
    Nothing, it only created useless "plugin projects" on my repo. I tried:
    Code:
    ---
    # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Chris-Prime/FactionsPE
    branches:
    - reborn
    projects:
    FactionsPE:
    path: ""
    libs:
    - local: lib/Localizer
    - local: lib/Economizer
    - local: lib/Dominate
    - local: src/sll
    ...
    
    and
    Code:
    ---
    # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Chris-Prime/FactionsPE
    branches:
    - reborn
    projects:
    FactionsPE:
    path: ""
    libs:
    - local: Localizer
    - local: Economizer
    - local: Dominate
    - local: Simple-LibLoader
    Localizer:
    path: lib/Localizer
    type: library
    Economizer:
    path: lib/Economizer
    type: library
    Dominate:
    path: lib/Dominate
    type: library
    Simple-LibLoader:
    path: src/sll
    type: library
    ...
    
     
    applqpak likes this.
  5. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Can you try now with type: library and model: default ?
     
    applqpak and Primus like this.
  6. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    applqpak and Primus like this.
  7. Primus

    Primus Zombie Pigman

    Messages:
    749
    For which manifest? Poggit generated or one of I show above?
     
    applqpak likes this.
  8. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    You can commit with 'model: default' directly to poggit.yml in your repo and poggit should make a new build - but I think the Dominate lib is missing too
     
    applqpak and Primus like this.
  9. Primus

    Primus Zombie Pigman

    Messages:
    749
    PHP:
    ---
    # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Chris-Prime/FactionsPE
    branches:
    reborn
    projects
    :
    FactionsPE:
    path""
    model: default
    libs:
    locallib/Localizer
    locallib/Economizer
    locallib/Dominate
    localsrc/sll
    ...
    This didn't work as well. Any other variants?
     
    applqpak likes this.
  10. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Last edited: Dec 30, 2016
    applqpak and Primus like this.
  11. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    I have just been informed that
     
    Primus, applqpak and Awzaw like this.
  12. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    I can confirm what @TheDeibo said: using libraries is indeed incomplete, but should be ready by Poggit 2.0. Eventually you'll be able to set up your submodules as Virion projects and include them in your plugins, but for now we still are still working on getting 'Release' finished.
     
    HBIDamian, Primus and applqpak like this.
  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.