Skip to content

Increase valve flow rates similar to pump#501

Closed
heinwessels wants to merge 2 commits intopyanodon:masterfrom
heinwessels:patch-1
Closed

Increase valve flow rates similar to pump#501
heinwessels wants to merge 2 commits intopyanodon:masterfrom
heinwessels:patch-1

Conversation

@heinwessels
Copy link
Contributor

@heinwessels heinwessels commented Jan 21, 2026

The pump's flow rate is increases 10x. This change does the same for valves. This was requested on Valves: Pyanodon's Adjustable Thresholds, but this seems like base Py just forgot to increase the flow rate? Or maybe there's a reason, I'm not a Py player (yet) :)

If this PR is not accepted then I'll just make the flow rate configurable through my mod :)

image

The pump's flow rate is increases 10x. This change does the same for valves.
@heinwessels heinwessels marked this pull request as draft January 21, 2026 09:46
@heinwessels
Copy link
Contributor Author

Hold up, still making sure it works

@heinwessels
Copy link
Contributor Author

Yeah it works

@heinwessels heinwessels marked this pull request as ready for review January 21, 2026 09:47
@heinwessels
Copy link
Contributor Author

heinwessels commented Feb 3, 2026

For anyone wanting this feature, the newest version of Valves: Pyanodon's Adjustable Thresholds now allows you to set the valve flow rate as a mod setting :)

@oorzkws
Copy link
Contributor

oorzkws commented Feb 22, 2026

I have to ask, why put it in pycoalprocessing as an update instead of modifying the base definition in pyindustry?

@protocol-1903
Copy link
Contributor

Added via pyanodon/pyindustry#153

@heinwessels
Copy link
Contributor Author

I have to ask, why put it in pycoalprocessing as an update instead of modifying the base definition in pyindustry?

Because it's only in PyCoalProcessing that the game's flow rate is increased to be able to support 12kps.

data.raw["utility-constants"]["default"].max_fluid_flow = math.max(data.raw["utility-constants"]["default"].max_fluid_flow or 0, 500)

Honestly, thought that if a player then played with only PyIndustry, then the tooltip would say 12kps but only practically reach 6kps, like I did here at some point. But it seems like the tooltip shows this correctly, this this is not really an issue.

However, with only PyIndustry pumps are still limited to 1200, and not 12000. It's only in PyCoalProcessing that it's bumped to 12000. So now with only PyIndustry players can choose between a pump that requires power and is big, or a smaller valve that pumps 10 times as fast without the need of power :)
image

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.

3 participants