alainbryden / bitburner-scripts

My own scripts for playing bitburner
MIT License
608 stars 272 forks source link

daemon.js: Address TODO about freeing up hack threads in advanced --xp-mode #426

Closed alainbryden closed 3 weeks ago

alainbryden commented 3 weeks ago

// TODO: If the remaining hosts on the network can't fit 4 sets of grow + weaken recovery threads needed, switch to single-server mode! (should take into account already-scheduled cycles)

When in --xp-mode, there's a TODO that we need to check whether there's room for all recovery threads on hosts.

Right now we don't check this and it leads to an error that we ran out of RAM while scheduling recovery weaken and grow threads.