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?
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.
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.
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 ...
I just checked your GH, and the Dominate submodule at https://github.com/Chris-Prime/FactionsPE/tree/reborn/lib gives a 404
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
PHP: ---# Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Chris-Prime/FactionsPEbranches:- rebornprojects:FactionsPE:path: ""model: defaultlibs:- local: lib/Localizer- local: lib/Economizer- local: lib/Dominate- local: src/sll... This didn't work as well. Any other variants?
Looking through the code I think source libraries can only be model: virion so you'll have to either wait for SOFe or configure poggit.yml files for your libraries like https://github.com/poggit/libasynql/blob/master/.poggit/.poggit.yml for example. Sorry I can't help more, but I'm still figuring it all out too!
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.