Parallel Research

by Tename

Allows researching multiple technologies at the same time, evenly distributing the workload between all available labs.

Utilities
4 days ago
2.0
1.52K

i More player feedback

4 months ago

This mod is great, especially with all the planets and how few infinite technologies use all of them. That said, there's very little feedback to the player that it's actually working. It seems to override all vanilla research functionality to implement its own thing, but this leads to several places where it looks to the player like nothing's researching at all. All the labs appear to shut down being "disabled by script", and both the SPM graph and the production graph show 0 SPM. Even the consumption graph doesn't report any science packs being consumed.

In addition, there's no indication which techs are being worked on. If the first technology in the queue is being contributed to, then the progress number will go up, though not as smoothly as normal, For other technologies, you have to rely on the tiny progress bar in the technology screen to check the progress, which won't even change while watching it without multiplayer or disabling pausing in the tech screen. There is a "researched" percentage attached to technologies on the screen if you select one, but it only works for technologies currently in the list, which doesn't include infinite technologies that are in the queue.

Between these factors, despite how much I want to use this mod to be able to use every available science pack at a similar rate, it's very difficult to trust that it's not eating my science packs or giving me research points for free. At the very least, the consumed science packs should appear on the production graph. As for other information, probably a small GUI showing each technology being worked on, its progress, and estimated SPM or eSPM.

4 months ago

Sadly, it's not truly solvable due to modding limitations. I have to completely disable vanilla functionality and emulate it with scripts, there is no other way. I cannot make labs appear to work when they are disabled, I cannot add script-consumed science packs to the consumption statistics and I cannot modify vanilla GUI.

But I could add a small custom GUI somewhere with all that info. I'll think about how to do it.

4 months ago

Of course you can delete items from inventories, but not "consume" them. Why would you want the player to know that items are being deleted? /s

There's probably the option to replace the labs with custom assemblers that look like labs, but then you'd basically need separate recipes for each technology, and it wouldn't work with quality since assemblers can't mix quality inputs.

This isn't the first time I've been disappointed by what's available for scripting, but not being able to record item consumption feels like a very jarring omission. I'd honestly expect the default behavior to be that consumed and spawned items appear in the production graphs.

4 months ago

Taking a closer look, it seems that LuaFlowStatistics.on_flow() can be called to add items produced or consumed. So you'd need to get the instance for the specific surface each lab is on, and then call that function with the item stack each pack was consumed from as well as the number of packs consumed, but negative since it's consumption rather than production.

It might be possible then that you could set production statistics for the "science" "item" and eSPM could get shown as well.

4 months ago

Oh hey, I missed it somehow. Yeah, it's possible to add consumed packs / science to statistics then.

Alright, I'll push an update today or tomorrow with stats and GUI.

4 months ago

Unfortuantely in multiplayer or the setting, seems to mess up a bit.
I have the setting to research the first thing is a lab can with the research that it has.
Placed down a lab and some science packs. After researching a thing, it deleted all the science packs in it, and the science packs I afterwards put into it.
After deleting about 15 or so packs it didn't delete any further but also didn't work anymore, just disabled the lab.

Toggling it off it would work but whenever enabled it would say "disabled by script".
Really enjoyed the idea of not needing to micromanage research as much.

4 months ago

The mod is supposed to "delete" science packs and disable labs while active because it completely overrides vanilla functionality.

Does it progresses research? If you are running the latest version you should have a GUI on top right with a list of currently active researches and their progress, science produced will also get shown in the production statistics.

The mod currently doesn't work with multiple player forces, but regular multiplayer should theoretically work fine.

4 months ago
(updated 4 months ago)

only to start off with, but as soon as it started deleting when I put packs into the lab, it just stopped
Edit: I have tried it again, it works, but it's just unintuitive as it did actually work.
one thing though it seems to work without any science packs which is why it deleted them afterward, I guess.
Working as intended. Sorry for the false alarm. (though I still don't know why it said it couldn't research anything)

4 months ago
(updated 4 months ago)

Your concern does largely fall into "needs more player feedback". The behavior you were seeing is intentional and intended behavior, but prior to the GUI addition and recording production/consumption stats, there was no way to tell that it was working as intended without looking at the code.

One thing that could help as well is LuaEntity.custom_status. Maraxsis uses this to say "Flooded" for any entity in a pressure dome that can't run due to a lack of atmosphere. This mod could employ something similar with a custom status for something like "Managed by Parallel Research" to inform the player why the lab is disabled rather than a generic "disabled by script". It even seems like it can be used to override the status light, making it green despite being "disabled". Maybe it could even change the message depending on what's being researched?

4 months ago

Thanks for the tip, added it.

New response