Jump to content

what does the fill amount mean on the ModuleResourceConverter


fusedbean89

Recommended Posts


i have been crating a mod lately i was making a generator that turns uranium into energy i was editing some stuff and i came across this

MODULE
    {
         name = ModuleResourceConverter
         ConverterName = Generator
         StartActionName = Start Generator
         StopActionName = Stop Generator
         FillAmount = 0.95
        AutoShutdown = false
        GeneratesHeat = false
        UseSpecialistBonus = false

what does the fill amount mean?

Link to comment
Share on other sites

  • 8 months later...

Can't say authoritatively what it is, but for what it's worth, I can describe what it looks like.

It doesn't seem to scale with bigger, higher-volume parts.  e.g. Look at FuelCell.cfg and FuelCellArray.cfg.  Even though the latter generally has values 12x the former (e.g. input and output resource Ratio's, and ElectricCharge amount), they both have 0.95 as the FillAmount.

It defaults to 1 in code, but is 0.95 in Squad's stock CFG's.  If I had to venture a wild guess, I'd posit that it's something to do with how much % of the part's local output resource storage is filled per cycle or frame or something.  You always want a converter to store a small amount of the output, maybe this limits how much can be utilized, for whatever reason.

It is probably the compliment of TakeAmount, and possibly the 0.95 is used to represent some (5%) of the input resources being lost during conversion.

You could try putting FillAmount and TakeAmount attributes on a custom converter part and playing with their values to see what happens.

Let us know if you find out more!

Edited by Fwiffo
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...