-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Ignoring "Expensive electrolysis mode" option from "bobplates" mod #920
Comments
In angels this is more complicated, we should only make it more expensive in the case where you can (still) burn hydrogen... |
Electrolysis is very energy-consuming process as itself, in reallife. Case with receiving more energy than spent on it, with water electrolysis - just mostly obvious example. But my main idea was increasing compatibility with bob's mods, and just considering settings from there(I guess, that 2.5x multiplier has some theoretical justification, and mr. Bob didn't take it "just because"... of if he did, at least this is partial solution - simple water electrolysis will become energy deficient). Also, this option("Expensive mode") is disabled by default, so player needs manually activate it, if he want a little bit harder game experience. For other players, on default settings, nothing changes. p.s.: Sorry for close-reopen issue, that was misclick |
Another option is to just hide the setting ... 🤔 |
I would prefer to have the issue 'fixed' that it cannot be used as a power generator... At that point the setting can be removed... |
No option - no problem... Yep, this is also some kind of "solution". At least players will not confuse "why its not working?" |
Describe the bug
Angels electrolysers ignoring option "Expensive electrolysis mode" from bobplates mod, what do them electricity positive at any case: you can gain more energy from burning hydrogen, that spent on water->hydrogen+oxygen splitting reaction. And as angel's electrolysers disable bob's by default, seems this is bug.
To Reproduce
Additional context
Bob's electrolysers, its parameters and overrides (with enabled "Expensive electrolysis mode" option) defined into two different places:
1). First tier - electrolyser.
Parameteres at \bobplates\prototypes\entity\entities.lua, line 96 and bellow:
"Expensive mode" override at \bobplates\data-updates.lua, line 11:
2). Next tiers - electrolyser-2, electrolyser-3, electrolyser-4 and electrolyser-5.
Power consumption parameters at \bobassembly\prototypes\electrolyser.lua, lines 287, 321, 355 and 388:
"Expensive mode" override at \bobassembly\prototypes\electrolyser-updates.lua, line 7:
As we see - with expensive electrolysis, power consumption higher at 2.5 times, that with default settings.
And at the same time, all angels electrolysers and their parameters are defined at \angelspetrochem_0.9.24\prototypes\buildings\electrolyser.lua, with next power consumption(lines 48, 174, 300 and 425):
And no matter - enabled "Expensive electrolysis mode" option or not. These values do not change.
Possible solution
Adding if-check for enabled "Expensive electrolysis mode" option at override section: \angelspetrochem_0.9.24\prototypes\override\bobplates.lua, with the same 2.5x multiplier at example. Something like this:
As me seems, angelspetrochem has many tiers for electrolysers by default, with no options to change it, so there are no reason for checking if bobassembly mod enabled with his high tier electrolysers(with only bobplates mod, without bobassembly and angels mods, you will have just one, first tier electrolyzer). Or if I'm wrong - just add additional checking for bobassembly mod, that to apply power override for high-tier electrolysers only when mod active and expensive mode is on.
Regards
The text was updated successfully, but these errors were encountered: