Skip to content

Conversation

@lupusagax
Copy link

Implements #541

Adds a percentage loss when importing FE into FE Storage Cells.

I set the default at 2.5% to match AE2's Energy P2P losses, but it may need to be set to 0% until a major version bump because it can break existing setups which are currently endlessly looping power in and out every tick. An easy example of this is Mekanism universal cables. It will quickly drain overall power with them connected unless you set the cable to push or pull explicitly on the flux accessor.

I'm sure there are issues with this on edge cases and maybe from rounding issues, but I took a stab at this to play around with. I will try to setup some better testing saves with this when I get a chance.

@lupusagax lupusagax marked this pull request as draft December 5, 2025 19:16
@GlodBlock
Copy link
Owner

I don't think it's a good idea because most mods don't add power tansmission loss.

@lupusagax
Copy link
Author

I don't think it's a good idea because most mods don't add power tansmission loss.

It will be a bit before I can get enough time to finish this properly since I realized I have to handle all the storage bus interactions. I was also considering an exponential loss on export to allow tuning the mod for a falloff point based on transfer rate. For now, I figured I can try to explain more why I think this is a good and needed feature.

Just because most mods do not implement this does not mean that they should not. Applied Flux in particular is excessively powerful for energy transmission and storage since it is strapped directly on top of the ME network which can be routed to anywhere at minimal cost.

In fact, one very important exception to the rule of mods not adding transmission loss is already present in the base AE2: P2P Energy tunnels have applied a percentage loss for years in an attempt to balance the ability to use the ME network for power transmission (Though technically it is applied as tax on the ME network's energy usage, not directly as a loss.) Since Applied Flux is an expansion of the energy P2P feature, I think it is very reasonable to expect it to support similar.

Applied Flux currently has no tiers for any of its functionality outside of storage, so besides gating access to it entirely, there is no way to control when players can access full power for it.

Adding the ability to tune a loss percentage for this mod will enable modpack authors to balance this mod in line with the various other methods of moving power around to allow it to remain very flexible without overwhelming other transmission options. Without this, I'm afraid many modpacks are left with no choice but to ignore the mod entirely since they will struggle to balance it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants