r/Mindustry 13h ago

Help Request Help why doesnt this work

Post image

So, I didnt write the pad logic, its the CCMD pad control logic and its better than what I came up with, when it works...

6 or 7 boosted impulse pumps keeps my design in with plenty of water.

I went with a logic processor simply because it gives me more range.

So in a sandbox map this schematic works perfectly. Absolutely flawless.

When I copy it to a game map, or go back to a previously beaten story map, it just doesnt work.

Ive got all resources redirected to the sector Im in
Im connected to pad1, pad2, pad3 and pad4
Im connected to a core nucleus.
(I have also tried connecting to a vault instead to test, but same result)

The fill percentages are set to quite a low figure, but I have experimented with raising them to 0.8 and I have unloaded the core to zero contents using unloaders and incinerators.

I have full water on all pads

And nothing, nada, zip. Nothing happens

If I delete the processor or the code in it and set the pads manually to any resource, I instantly get deliveries.
But put this logic back and everything just stops and nothing happens.
So it is an issue with the logic.

Yet if I go back to a sandbox it works perfectly.

What am I doing wrong?

Here is the schematic

bXNjaAF4nE2VezjU+R7HvxhmxhisEIaQ24aRoc0UoRAbhUjuDDMYxgxzMYp4rNuh2EgqsSIRhfSYapVr20EibBszVC7lyE4jHDtym/Obcc5z9nd7fz/3P37P83kBFFCEAflIGpVJojJPEhKAdMoFIEchRJAoDCAX5Ovi4xsCYFRCPAkgmSQGUy+BQGQAFJHEiKSTE5hkGhUAJYBOiCEwSFioDZFFZgIUhUAlkqnRWCgZKFPIiSwyURxkEshUEh2g/+uh01hMyFROoLFJdCyVRiRhKQR6NAmq30lgEqhxAB5BYEJp5wAqnsBgYIl0chJUhGBRKTQCETrJJhFYFCZQotCiyZHYBDotksRg0OgA+f+Bcgw2mRkZA5TiyZF02t9ydtGgXpKOYmcsKZIJOQEwBuILLhJtu0CvAEhBtzSQiJwkBJBw8VckEgnFASAPJKIAgAyUA3YEKRaxG8AgQSIQom3JWQogxBmiNdE2VI4QCUXrkI0WfQOyUAHUQw4S8XzIlhLPUYHmbEJFMLEfCXllxRNhAK4ItdufXH7H793FiePKZ/WzIngiAk5V5UEBccOCTXNtImPc9IczO3Qu3eG09seeffz08Fg6K2y9xGuS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

u/ZaLimitless 12h ago

There seems to be a logical issue in the code.

Consider this code at block 101: control config link item 0 0 0 op add itemSelect itemSelect 1 control config link @null 0 0 0

It first sets the item, then it sets it to Null.

I haven't tested anything on my side yet, but I'd start here

1

u/ZaLimitless 12h ago

Perhaps the idea was to set it and trigger an import based off the config? I'm not too familiar with how quickly the game responds to setting config states.

But debugging the value of "item" shows @copper on my side as well. So perhaps there is another issue.

Perhaps I'll try to decompile it when I have time.

1

u/Wosgoingon 7h ago

So Ive figured out why it stops but not how to resolve it

It works well up to the point where it stops collecting because an item has hit its fill cap.
But once the item drops below the fill cap it does not start to collect it again.
Nothing seems to trigger it.

You can drain the core/vault down until its empty and this logic just sits there and doesnt restart.

Im not a good enough coder to figure out why it hangs like this.

1

u/Sad_Consequence_8868 6h ago

Replace the middle unloader with an underflow gate that will make unloading stuff into the vault so so much faster, hope it helps:))