ILLISIS / Constructron-Continued

Other
13 stars 21 forks source link

Constructron-Continued with dynamic bot counts #151

Closed HEROgold closed 1 month ago

HEROgold commented 9 months ago

This PR contains code that add's support for dynamic bot amount.

What does it mean? It adds a setting to the mod, which allows you to enable or disable this feature (on by default) It adds a bit of code that manages to get the total size of roboports from the equipment grid, and requests X many bots (Total amount supported by the equipment together).

This way users aren't limited to the setting that sets the amount of requested bots.

With this feature all constructrons will try and use as many bots as their equipment allows. also makes it easier to use different personal roboports, and

Mod support? supports other mods that add personal-roboports.

What tests have been run? I've tested this new code with a roboport (modded) that can handle 500 robots, the construtron requests 500 robots.

Locale? Sadly only managed to add english!

ILLISIS commented 9 months ago

Hi I am unable to merge this into the repo as the code is dramatically changing (understatement) in the next version. Initially, I foresee a few issues I see which could arise from this change but I will keep this PR open. The good thing it you have written it in an optional way.

Happy to discuss this more in discord if you like

HEROgold commented 9 months ago

Hey, Thanks for the response, id like to know your thoughts about the issues that could arise if this would be a feature.

I'll keep an eye open for the big new version that you're currently working on. Much luck!