Skip to content
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

Abnormal Building Effects Rendering Colors Caused by Solar Panel with Extremely Low Negative Power Generation #81

Open
shan-luan opened this issue Aug 5, 2023 · 0 comments

Comments

@shan-luan
Copy link

Issue Overview

When connecting a solar panel to the projection accelerator building (new-horizon-assign-overdrive) in the Mindustry game, the colors of the accelerator's effects are displayed abnormally.

Reproduction Steps

  1. In the Mindustry game, set the solarMultiplier to an extremely low negative value (e.g., -1000000000) using the world processor.
  2. Build a solar panel (solar-panel-large) and ensure that its actual power generation value is negative (e.g., -214748364.7).
  3. Connect the solar panel to the projection accelerator building from the new horizon mod using a power node (power-node).
  4. Ensure that all other requirements for the projection accelerator, apart from power, are met and connect a power source (power-source) to the power grid.

Expected Results

The projection accelerator should function properly and display its effects in the correct colors.

Actual Results

Due to the power source having a lower power output than the negative power generation of the solar panel, the projection accelerator does not work properly. However, when disconnecting the solar panel from the power grid, the projection accelerator starts functioning correctly. The color of the accelerator's effects changes from pure black to red and gradually returns to the normal orange color.

Environment Information

  • Game Version: 145.1
  • Server Operating System: Windows 2016LTSB
  • Server Java Version: Java 8
  • Server JVM Parameters:
-d64 -Xms16000m -Xmx16000m -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSConcurrentMTEnabled -XX:ParallelGCThreads=8 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UnlockExperimentalVMOptions -XX:+ExplicitGCInvokesConcurrent -XX:MaxGCPauseMillis=50 -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true -XX:-OmitStackTraceInFastThrow -XX:+OptimizeStringConcat -XX:+UseAdaptiveGCBoundary -XX:NewRatio=3 -Dfml.readTimeout=90 -XX:+UseFastAccessorMethods

Additional Information

Other players have observed the same issue. I approached the author of the new horizon mod for clarification, and they mentioned that the building effects in the mod employ the same rendering methods as the original game, but I could not obtain the specific method names.
本问题描述同时发布到mindustry仓库issue下

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

No branches or pull requests

1 participant