Universal Machines Idling Themselves

@Andre Aquila <Aquila Industrial> I've finally gotten to the point where I am installing a great number of machines via blueprints, but now every time I'm loading up, I'm finding machines that are idling themselves. I cannot restart them unless I delete and reinstall that machine, then it is fine.
No description
44 Replies
AndreAquila
AndreAquila2mo ago
Hmm thats new. Is that happen8ng only with machines with fluid output, or to every machine? Some conflict with the more fluid space maybe?
KnHawke
KnHawkeOP2mo ago
Quite! So far, it is only happening with my Rocket fuel Recipe. Since this is a Fuel Power plant, all are utilizing that mod. Right now, I cleared the area of the generators in attempt to test if it is the blueprint or something else. I'm leaning to something else since the HoR, Diluted Fuel and Turbofuel portions are still 100%. @joanna_hammond Hmmmm... Looks like your insight may be dead on the money. The BPs I set down and hooked up, I took the power leads off the generators in the BP Designer, let them fill their buffers completely and stall out... Then I plugged in the FuelGens to see what happens... So far, Nothing. :interesting: Okay... Now that I know where to look, definitely seems to be in the Increased Machine Fluid Buffer mod: It seems to like buffers filled to near capacity when the machine is running. Letting everything fill to stall seems to let it work, otherwise it thinks like the machine is filled to capacity and waiting for the buffer to empty. Update: Yeah, sure seems to be the Fluid Buffer Mod. Just installed half of one arm of my power plant, nearly a thousand generators, everything is fine!
AndreAquila
AndreAquila2mo ago
Hmmm Good to know Hawke!
joanna_hammond
joanna_hammond2mo ago
? Hmmm, doesn't make a lot of sense. If a pipe is connected and there is somewhere for the fluid to flow it should just empty. It's no different to before, just bigger. If there is nowhere for the fluid to go it will stall.
KnHawke
KnHawkeOP2mo ago
I know it sounds very strange. It's just my observation as one that beats the tar outta everything to see if it breaks. Got the Buffer limit set to 500. Only machines that are self stalling were the ones not permitted to fill up to capacity after installation. Now that I am letting them fill up, they're running fine.
joanna_hammond
joanna_hammond2mo ago
ok, 555m3 output? wow
KnHawke
KnHawkeOP2mo ago
yeap 🙂
joanna_hammond
joanna_hammond2mo ago
that roundbracket figure... is that really 277,000 m3 output? 277k m3 per minute?
KnHawke
KnHawkeOP2mo ago
That's a long standing bug in the vanilla system far as I know I get that weirdness in other Machine Mods
joanna_hammond
joanna_hammond2mo ago
Strange, maybe it's something to do with being so close to the 600m3 max? for pipes.
KnHawke
KnHawkeOP2mo ago
Maybe. Shouldn't be, since I keep everything within the system set limits for said pipes. Like my HoR Machines are cranking out 560/min... and theyve been working fine from the outset
joanna_hammond
joanna_hammond2mo ago
I can't think of anything that I could do to make it do something different. All the mod does is change the size of the output buffer from 50m3 to (your choice)m3
KnHawke
KnHawkeOP2mo ago
Hum... Maybe just put a warning on the Mod page about the stalling when set to the max limit? At least till some epipheny hits ya where the problem may lie 🙂
joanna_hammond
joanna_hammond2mo ago
The code is silly simple, maybe Andre can see if he can see an issue......
if (not recipe)
{
UE_LOG(LogLFOB, Display, TEXT("Recipe not set, nothing to do."));
}
else
{
UFGInventoryComponent* inventory = self->GetOutputInventory();
FInventoryItem item;
FInventoryStack stack;

FLargeFluidOutputBuffersConfigurationStruct config = FLargeFluidOutputBuffersConfigurationStruct::GetActiveConfig(self->GetWorld());
int32 size = 1000 * config.OutputBufferSizeFluids;
TArray< FItemAmount > products = UFGRecipe::GetProducts(recipe);

for (int32 i = 0; i < products.Num(); i++)
{
TSubclassOf<class UFGItemDescriptor> itemClass = products[i].ItemClass;
EResourceForm form = UFGItemDescriptor::GetForm(itemClass);
FString itemDesc = UFGItemDescriptor::GetItemName(itemClass).ToString();
if (form == EResourceForm::RF_GAS || form == EResourceForm::RF_LIQUID)
{
UE_LOG(LogLFOB, Display, TEXT("Found %s Output '%s' at index %d, increasing buffer to %d m3"), (form == EResourceForm::RF_GAS ? TEXT("Gas") : TEXT("Fluid")), *itemDesc, i, config.OutputBufferSizeFluids);
inventory->AddArbitrarySlotSize(i, size);
}
}
}
if (not recipe)
{
UE_LOG(LogLFOB, Display, TEXT("Recipe not set, nothing to do."));
}
else
{
UFGInventoryComponent* inventory = self->GetOutputInventory();
FInventoryItem item;
FInventoryStack stack;

FLargeFluidOutputBuffersConfigurationStruct config = FLargeFluidOutputBuffersConfigurationStruct::GetActiveConfig(self->GetWorld());
int32 size = 1000 * config.OutputBufferSizeFluids;
TArray< FItemAmount > products = UFGRecipe::GetProducts(recipe);

for (int32 i = 0; i < products.Num(); i++)
{
TSubclassOf<class UFGItemDescriptor> itemClass = products[i].ItemClass;
EResourceForm form = UFGItemDescriptor::GetForm(itemClass);
FString itemDesc = UFGItemDescriptor::GetItemName(itemClass).ToString();
if (form == EResourceForm::RF_GAS || form == EResourceForm::RF_LIQUID)
{
UE_LOG(LogLFOB, Display, TEXT("Found %s Output '%s' at index %d, increasing buffer to %d m3"), (form == EResourceForm::RF_GAS ? TEXT("Gas") : TEXT("Fluid")), *itemDesc, i, config.OutputBufferSizeFluids);
inventory->AddArbitrarySlotSize(i, size);
}
}
}
KnHawke
KnHawkeOP2mo ago
Worth a shot I guess!
joanna_hammond
joanna_hammond2mo ago
As you can see, it just replaces the existing stack with a new stack (AddArbitrarySlotSize) either adds at the index or replaces the current at the index. Nothing else on the machine is changed.
KnHawke
KnHawkeOP2mo ago
IKR, but I wouldn't know that much... been almost 30 years since I touched coding 😉
joanna_hammond
joanna_hammond2mo ago
hehe.
KnHawke
KnHawkeOP2mo ago
I'm just a Technical Engineer that finds and solves problems hehe
joanna_hammond
joanna_hammond2mo ago
Well, let's see if Andre can see an issue with it. But it is a little confusing.
KnHawke
KnHawkeOP2mo ago
Yeap! At least there is a way around it!
joanna_hammond
joanna_hammond2mo ago
true
KnHawke
KnHawkeOP2mo ago
ah well. Still, thanks for hearing me out about the potential issue!
joanna_hammond
joanna_hammond2mo ago
It can't even be backflow I would guess, fluids can't go back into the machine... lol
KnHawke
KnHawkeOP2mo ago
IKR!
joanna_hammond
joanna_hammond2mo ago
Of course I'll listen, don't want bugs 😄 You really are pushing the game to it's limits though... LOL
KnHawke
KnHawkeOP2mo ago
Not as hard as some vanilla players I could name! But they are more Architectural!
joanna_hammond
joanna_hammond2mo ago
Yeah, Kibitz
KnHawke
KnHawkeOP2mo ago
He's nothing compared to Fluxo!
joanna_hammond
joanna_hammond2mo ago
true
KnHawke
KnHawkeOP2mo ago
All Righty Then! I'm gonna close out this thread and let you and Andre put your heads together about this issue. And I'll be MORE than happy to test it if ya guys come up with anything!
joanna_hammond
joanna_hammond2mo ago
ty The error you described is VERY real... It's a timing issue. I started to experience it yesteday on a super stupid slooped test machine. I think I have a fix, testing now. And it all appears to be fixed 😄
KnHawke
KnHawkeOP2mo ago
Very Noice! Knew there was something there! 😜
joanna_hammond
joanna_hammond2mo ago
an x41 production machine... lol a batch size of 656m3 Not an issue when you have pipes of 2400m/min, 4800, 9600 and 19200 ..... Still under development but.... 😄
KnHawke
KnHawkeOP2mo ago
Good luck getting around THAT particular peice of Hard Coding! 👍
joanna_hammond
joanna_hammond2mo ago
Already done.
KnHawke
KnHawkeOP2mo ago
Buah?! 🤯
joanna_hammond
joanna_hammond2mo ago
No description
joanna_hammond
joanna_hammond2mo ago
Lots to fix still though, valves work but the entry text won't accept values above 999.... and the flow value is wrong (even though the underlying model [debug output] is correct.)
KnHawke
KnHawkeOP2mo ago
still...! 😁 ya like making gamechanging mods, duncha!? 😉
joanna_hammond
joanna_hammond2mo ago
I do 😄 If you DM me I can give you a link to a preview version, manual install on a backup save obviously. It has issues obviously. But if you want to play and test?
KnHawke
KnHawkeOP2mo ago
Sure, why not? I'm known for beating the eff out of things till they break 😉
joanna_hammond
joanna_hammond2mo ago
I'll dm you the link then, I assume you know how to do a manual mod install?
KnHawke
KnHawkeOP2mo ago
Yarp

Did you find this page helpful?