Looking for Krastorio support?
https://mods.factorio.com/mod/vanilla-loaders-hd-krastorio
Adding custom loaders:
For interested mod authors, you can create a vanilla-style loader with your own coloring very easily by setting this mod as a dependency and calling the following function:
vanillaHD.addLoader(name, color, belt_name, technology, previous_tier, next_tier)
Parameters:
name
- String, e.g."your-loader-name"
.color
- Table, e.g.{r = 255, b = 255, g = 255, a = 209}
, Alpha value of 209 is recommended.belt_name
- String, name of the belt integrated into your loader, e.g."express-transport-belt"
.technology
- String, name of the technology to unlock your loader, e.g."logistics-2"
.previous_tier
- String, name of the loader previous to yours to create a generic recipe which you can then modify at leisure, e.g."loader"
. Also sets the upgrade path of the loader specified byprevious_tier
to upgrade to your loader.next_tier
- String; Optional parameter. When specified, sets the upgrade path of your loader to the loader specified bynext_tier
. Only specify when inserting a loader in between existing tiers of loaders.
When adding multiple loaders, call the function from lowest tier to highest tier; the function will connect the upgrade paths.
When inserting in between existing tiers, remember to replace the loader ingredient in the next_tier loader.
Using Loader Redux's Snapping:
See https://github.com/kirazy/vanilla-loaders-hd/blob/master/control.lua for example on registering your loader with Loader Redux's snapping whitelist.
Known Issues:
- When Loader Redux is installed and snapping logic is enabled, loaders will connect to belts behind them.
- Train loading is limited to 120 items/s pending adjustments to control logic (affects Ultimate Belts).