Page MenuHomeSchine - Phabricator

Starmade | Storage block inaccurate max capacity
Closed, DuplicatePublic

Description

Some background.
I've been playing with factory and shop restock automation and the only thing I have an issue with is the Storage blocks register as being full or 100% when the sensor block doesn't see this. I believe this is because the max limit is 1 block short, e.g. Storage block filled with Grey Hull = 1999 blocks.

I've only tested with grey hull so far, but have found that if I place the maximum block count + 1 block into the storage block it correctly registers as 100% with the sensor block. Taking grey hull as an example, I drop 2000 blocks into the storage and my sensor registers 100%.

I've tried finding a bug report matching this, so I suspect you most likely know the issue. But I thought I better log something in case it isn't

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Single and Multi
Reproducible
Yes
Category
Control Block System: Functional
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
User/Reporter/Contact
Username on Registry
Lone_Puppy
Steps to reproduce

Create a sensor circuit to monitor for 100% full storage block.
Drop 1999 blocks of grey or other hull and the storage block with register 100% full, but the sensor block will not.
Remove all the blocks to clear the storage.
Now drop 2000 blocks of hull and the sensor will register 100%.

Serverconfig (server.cfg)
 <replace this block with the file content, 
but do not remove the first and last line. 
Before using the paste function, mark the area from the 
opening angle bracket to the closing angle bracket>
Clientconfig (settings.cfg)
 <replace this block with the file content, 
but do not remove the first and last line. 
Before using the paste function, mark the area from the 
opening angle bracket to the closing angle bracket>

Event Timeline

Lone_Puppy changed Affected Gamemode(s) from none/unspecified to Single and Multi.Apr 5 2017, 12:46 AM
Lone_Puppy changed Reproducible from uncertain to Yes.
Lone_Puppy set Username on Registry to Lone_Puppy.
lancake moved this task from New / Unconfirmed to Confirmed on the Issue Navigation board.EditedJun 7 2017, 9:05 AM
lancake added a subscriber: lancake.
lancake claimed this task.

-rejected-

Sensor is reading it fine, it's just that you can't fill up a storage chest completely if that one already contains a block already.
The reason why the storage says it's 100 volume out of 100 volume is because of rounding. 1999 blocks out of 2000 is 99.95% but it rounds to 1 decimal, so rounds up to 100.0

If a storage unit has room for 2000 hull blocks and it already contains 1 hull block, you can only add 1998 blocks for a total of 1999 blocks out of 2000. It doesn't allow you to fill it entirely.
If a storage unit has room for 2000 hull blocks but contains nothing so far, you can drop 2000 blocks in it with a single action to fill it it completely.

EDIT: Issue is already reported, merging tasks.

lancake shifted this object from the S1 Public space to the S3 Starmade space.Jun 7 2017, 9:08 AM
lancake updated the task description. (Show Details)
lancake changed the visibility from "Custom Policy" to "Public (No Login Required)".
lancake changed the edit policy from "Task Author" to "Starmade (Project)".
lancake moved this task from Confirmed to New / Unconfirmed on the Issue Navigation board.
lancake changed Category from none/unspecified to Control Block System: Functional.
lancake renamed this task from Storage Block not 100% when using sensor block to Storage block inaccurate max capacity.
Restricted Application edited projects, added CBS: Functional; removed Issue Navigation. · View Herald TranscriptJun 7 2017, 9:10 AM
AndyP moved this task from Unclassed to Archived on the Starmade board.Jul 20 2017, 10:43 PM