Page 1 of 1

Mod libraries

Posted: Mon Oct 10, 2016 4:57 pm
by movermeyer
Hello,

I'm just getting into this modding scene. Are there any "stdlib" mod libraries that take the bolierplate out of common operations?

Some examples of common operations that the mod I'm working on relies on:
  • Find all ore connected to a player selection. Seems like there are several mods that rely on this functionality, but reimplement it themselves (ex. YARM).
  • Find all upstream belts of a selected belt.
  • Find all entities that are placing resources onto a belt.
I'm currently grinding through writing all of these myself, but it seems that others have probably done so already.
Are there Factorio mod libraries? Is there a way to find such libraries?

If there are not such libraries, I will likely release mine. However, if they exist, I'll go and use/extend those instead.

Re: Mod libraries

Posted: Mon Oct 10, 2016 7:17 pm
by aubergine18
I've not seen any existing libraries that do these sort of things but if you are developing that stuff as library functions it would be great if you could contribute to https://github.com/Afforess/Factorio-St ... ter/stdlib

Re: Mod libraries

Posted: Tue Oct 11, 2016 11:00 am
by movermeyer
That looks good. Reasonable licensing too.

Re: Mod libraries

Posted: Tue Oct 11, 2016 12:53 pm
by bobingabout
https://mods.factorio.com/mods/Bobingabout/boblibrary
This is what I use. I wrote it myself. You're free to use it too if desired, you just have to depend on me keeping it up to date, and so on.