-
Notifications
You must be signed in to change notification settings - Fork 523
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
Fix artifact analyzers to consume power only during scanning #2064
Fix artifact analyzers to consume power only during scanning #2064
Conversation
Maybe there's a way for a power receiver to ramp up its own consumption (just as a generator does with its supply power). |
Technically wattage is set to 1 while not scanning for upstream APC bugs reasons.
8b3beeb
to
0d94d14
Compare
Based |
Resources/Prototypes/Entities/Structures/Machines/artifact_analyzer.yml
Outdated
Show resolved
Hide resolved
the power ramping on the back end definitely leads to this, but I see it more as a shortcoming of the underlying power ramping system not being ideal. |
Content.Server/Xenoarchaeology/Equipment/Systems/ArtifactAnalyzerSystem.cs
Show resolved
Hide resolved
Content.Server/Xenoarchaeology/Equipment/Systems/ArtifactAnalyzerSystem.cs
Show resolved
Hide resolved
Other then the comment this is alright, just need to make sure the changed lines are marked so we can keep track in case this is changed upstream. |
…-station-14 into artifact_analyzer-idlepower-fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a few changes for consistent commenting to Frontier changes.
Looks good, works fine under test.
Thanks, I will try to follow the comment convention better next time. If this stands as it is, I want to eventually address the brownout / event spam in another pr |
About the PR
Currently artifact analyzers consume 12000W regardless of whether they are in use or not. In the YML it is commented that the intention is to only consume power during scans, but this is not the case because the APC load doesn't get updated. I think there was confusion about what apc.NeedsPower actually does, as it shouldn't affect the receiver's load (but rather, the receiver's requirement for power in the first place).
Technically wattage is set to 1 while not scanning for upstream APC bugs reasons, as @dvir001 mentioned earlier.
Why / Balance
It would certainly reduce power / fuel requirements for science ships. However the same effect is achieved by unanchoring the analyzer. Currently it's just an extra step that feels lrp.
How to test
Spawn a science ship, place artifact and scan / finish scan while monitoring power. Experiment with toggling power during scans as well to make sure pause / resume logic wasn't affected.
Media
Requirements
Breaking changes
Not a breaking change, but something I'd like to do better before this is merged: when the analyzer begins scanning, the sudden 0->12kW power draw causes apc brownout. This
ideas?
Changelog
🆑