[2.0.15] Inventory quantities doubling in value for space platform

Bugs that are actually features.
PSquared1234
Burner Inserter
Burner Inserter
Posts: 11
Joined: Thu Mar 22, 2018 7:59 pm
Contact:

[2.0.15] Inventory quantities doubling in value for space platform

Post by PSquared1234 »

Hi, I've been having an issue with one of my Space Platforms and circuit connections.

Basically, with regards to the quantity of items in the ship's inventory, the quantity number gets doubled. If I have 7 stacks of "Firearm magazine" (stacks of 100), all the circuit conditions think it has 14 stacks (2 x 700). If a stack of ammo is sent up by rocket, it 100 ammo gets added to inventory, but the circuit conditions record that as 200.
11-15-2024, 00-19-24.png
11-15-2024, 00-19-24.png (310.69 KiB) Viewed 259 times
. I'm using ammo as an example but the quantity of all the items in inventory are doubled. Note that the icon and its count are correct - in the example, the inventory shows 7 stacks of ammo, each with 100 count.

Note that the actual requests are "correct" - if I request 200 units of something, 200 are sent up. They're just recorded as double in the circuit conditions. So if I double the amounts I need in the circuit conditions, things work as one would want.

If I leave the inventory screen and just hover the mouse cursor over the hold, the correct number of items are displayed.

If I am double-counting the circuits by somehow feeding things back, I'm missing it - I did check for such. Apologies if this has been reported elsewhere - I did check to the best of my abilities.

Save available if you need it.

Thanks, and loving the DLC!
wild_dog
Inserter
Inserter
Posts: 30
Joined: Tue Apr 19, 2016 8:07 pm
Contact:

Re: Inventory quantities doubling in value for space platform [2.0.15 PC]

Post by wild_dog »

You have both red and a green circuit attatched to the platform.
You have both read content and send to platform active.

The paltform is reading the contents, sending that as signals to both the green and red circuits, and both the green and red cirquits are feeding it back to the platform, doubling the value since both circuits are combined.

If you really need both a red and a green circuit, I'd advice splitting off 1 circiut (personally I'd use green for read/status and red for write/commands) to purely read the contents.
Send it into a decider combinator to isolate feedback signals propagating back through it, and create red and green circuits from that.
Whenever you need to send aditional signals to the platform, first do the same isolation with a decider combinator again, send the output of that combinator to the write (red) cirquit, and subtracting on that (red) cirquit what is read from the platform (green) so the platform itself recieves balanced signals again.
PSquared1234
Burner Inserter
Burner Inserter
Posts: 11
Joined: Thu Mar 22, 2018 7:59 pm
Contact:

Re: Inventory quantities doubling in value for space platform [2.0.15 PC]

Post by PSquared1234 »

Thanks for the reply. You were right, and I suspected as such. I disconnected all the connections until I found the one that caused the doubling problem. To be honest, I still don't understand why it caused the problem - the trouble-causing connection was connected to the INPUT of 3 decider-combinators (that do not output the inventory state). I disconnected & reconnected the wires to confirm this fact, and that it was not connected to anything else.

Very, very strange.

Thanks again for the help.
wild_dog
Inserter
Inserter
Posts: 30
Joined: Tue Apr 19, 2016 8:07 pm
Contact:

Re: Inventory quantities doubling in value for space platform [2.0.15 PC]

Post by wild_dog »

The problem is that the paltform is both an autput and input SIMULTANIOUSLY.

If you had the 2 network wires, and connected them to a power pole only, it would still output to both networks, and both networks would be an input to the platform as well, with the total signals the platform recieves being double the content.

The platform sets X plates on the red wire, and X plates on the green wire. The platform then reads red wire and finds X plates, and the green wire and finds X plates, for a total combined signal of 2X connected to the platform.
Benjaminnn
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Nov 20, 2024 9:23 am
Contact:

Re: Inventory quantities doubling in value for space platform [2.0.15 PC]

Post by Benjaminnn »

wild_dog wrote: Sat Nov 16, 2024 2:21 am The problem is that the paltform is both an autput and input SIMULTANIOUSLY.

If you had the 2 network wires, and connected them to a power pole only, it would still output to both networks, and both networks would be an input to the platform as well, with the total signals the platform recieves being double the content.

The platform sets X plates on the red wire, and X plates on the green wire. The platform then reads red wire and finds X plates, and the green wire and finds X plates, for a total combined signal of 2X connected to the platform.
you are right
Post Reply

Return to “Not a bug”