Jump to content

Conveyor receptacle fitting transfer bug (due to low mass)


rafker
  • Branch: Live Branch Version: Windows Pending

Receptacle fitting seems to not be able to transfer low mass items (7.6g of glass in my case) into either rocket storage or port unloader (in both glass is allowed and both have space)

And because it's stuck in fitting's internal storage, the whole system gets stuck


Steps to Reproduce

Somehow put a low mass item into a conveyor system and make it go into fitting (already there in the save file)

Chilly Dog Cycle 1381.sav




User Feedback


This code is likely responsible:

float storedMass = this.storage.MassStored();
if (storedMass >= this.targetLevel - 0.00999999977648258 && storedMass <= this.targetLevel + 0.00999999977648258)
return;

The this.targetLevel variable is set to 0.0 for sending receptacles.
The this.targetLevel variable is set to 20.0 for receiving receptacles.

It basically says if storedMass is within 10 grams of targetMass then abort transfer.

The storedMass variable reads as 0.008kg (8 grams) in your receptacle (rounded of course). This puts it within the boundaries that abort the transfer.

This sort of check is found in several places throughout the ONI code. Many are not related to mass calculations. I'm not sure why mass is allowed to to be divided into millionths of grams in some places (like vacuuming out gases) and limited to essentially 10s of grams as it is here.

Anyways that's my 10 cents.
  • Like 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...