Mod libraries

Place to post guides, observations, things related to modding that are not mods themselves.
movermeyer
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Oct 10, 2016 4:28 pm
Contact:

Mod libraries

Post 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.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Mod libraries

Post 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
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
movermeyer
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Oct 10, 2016 4:28 pm
Contact:

Re: Mod libraries

Post by movermeyer »

That looks good. Reasonable licensing too.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Mod libraries

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding discussion”