Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Let remainingFlow become 125% of realOptFlow, rather than raw optimal… #841

Merged

Conversation

koiNoCirculation
Copy link
Contributor

… flow.

This can fix the inconsistance between optimal flow in tooltip and that in turbine.

When I try to use duranium huge turbine on my XL SC Turbine, I found that the actual output and steam consumption is far less than the calculation.
93449a920eca9b8cf737b1ae74245a13
XL SC turbine outputs 6768000EU/t on server, but according to calculation, output is parallelism * optimal flow * efficiency% * fuel value of SC steam. The optimal flow in XL SC turbine with duranium huge turbine inserted and fast mode enabled is 48 * single optimal flow = 4915200mb/t. The turbine efficiency is 235%, and fuel value of SC steam is 100EU/mb. So final output should be 4915200 * 2.35 * 100 = 115507200 EU/t. Obviously it doesn't work as the description on turbine tooltip.

Through reading the code I found that 6768000 = 6400 * 1.25 * 2.35 * 100 * 48 * 0.75 (effiency when flow over optimal).
While 6400 is the original optimal flow of the turbine, and has different multipliers when used in different type of machine.
I found that the variable realOptFlow uses that multiplier but remainingFlow doesn't, so the optimal flow is limited to original flow, rather than actual flow. Through this change I let the steam/HP/SC turbine behave as tooltip on turbine describes.

Output of SC turbine with duranium huge turbine after fix:
de5c7bcfb085963fdbf7739c8ed4bc16

… flow.

This can fix the inconsistance between optimal flow in tooltip and that in turbine.
@koiNoCirculation
Copy link
Contributor Author

tooltip of duranium huge turbine
3c67927f2290214a6efa5b748093026f

@koiNoCirculation
Copy link
Contributor Author

fec3f7884b5cb80c7def0464a038e4b3

Scanner result shows the optimal flow is 4915200mb/t.

@Dream-Master Dream-Master requested a review from a team February 27, 2024 14:54
@koiNoCirculation
Copy link
Contributor Author

ceca7d0628798ddb47ac99631c9b1b7e

Data of ichorium
e55a9202a57d42d15c1cd476ff6b52cb

int tEU = 0;
int totalFlow = 0; // Byproducts are based on actual flow
int flow = 0;
int remainingFlow = MathUtils.safeInt((long) (aOptFlow * 1.25f)); // Allowed to use up to 125% of optimal flow.
// Variable required outside of loop for
// Variable required outside of loop for
// multi-hatch scenarios.
this.realOptFlow = (double) aOptFlow * (double) flowMultipliers[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was just here from a copy paste error or something like that.
SC does not (!) use flowmultipliers. see https://github.com/GTNewHorizons/GoodGenerator/blob/master/src/main/java/goodgenerator/blocks/tileEntity/SupercriticalFluidTurbine.java

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I don't know what original author thought, maybe we can fix that together.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if necessery we can add a new multiplier to SC steam for turbines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can talk with some more devs. But I dont think we want to buff SC steam. its already the meta for plasma.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! a material specific multiplier for SC will have to wait I think until someone really wants go into balancing SC as a whole. (steelux agreed with me on discord)
I made a PR to add SC to the tooltip so it is clear to the player.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tooltip is really misleading, I wasted a whole day build fusions for duranium :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@chochem chochem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SC should not use flowmultipliers. not sure about SH actually. SH is fine

@chochem chochem dismissed their stale review February 27, 2024 22:00

changes done

@Dream-Master Dream-Master merged commit ece12a2 into GTNewHorizons:master Feb 28, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants