Jump to content

Accessing total incoming/outgoing resources?


Recommended Posts

Hello! I've written a custom version of the part.RequestResource() method for my Generic Resource Converter, and I could make it a lot better if I could figure out what the total incoming/outgoing resource amounts are for a physics cycle, but I'm not sure how to do that. :\

Currently, the method is limited by the vessel's max reserve for a resource (especially at high timewarp), which doesn't behave realistically if, say, you're simultaneously producing and consuming more than the max. I'd like to address that, but the only way I can think of a way to do so without accessing/calculating the previously mentioned values is to up every part on the vessel's resource capacity by multiplying it with the current timewarp rate.

Y'all have any ideas or experience in this area?

Edited by okbillybunnyface
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...