chrisrabe / bitburner-automation

Automation scripts I use for my Bitburner gameplay videos.
125 stars 40 forks source link

Upgrade launch-fleets to address YT commenter suggestions and issues #6

Closed chrisrabe closed 2 years ago

chrisrabe commented 2 years ago

Problems or enhancements

Acceptance Criteria

Supporting comments

Comment from Brandon Keith

When trying to utilize the launch-fleets.js script im running into a runtime error "
RUNTIME ERROR
pirate.js@pserv-7
Args: ["grow", "omega-net", 31799.604894601012, 0]

Failed to resolve module specifier "./find-targets.js". Invalid relative url or base scheme isn't hierarchical.
stack:
TypeError: Failed to resolve module specifier "./find-targets.js". Invalid relative url or base scheme isn't hierarchical." an im not understanding why it is having an issue with the refference file.
could you help me out on this?

Comment from Sivade

Hi CS, you're doing great work with these videos and tutorials. I'm doing my best to follow your scripting but I'm a novice in all things javascript still.

I wanted to ask if there is a way to alter or allow for the auto-starter.js to utilize some of the Home Server ram. I feel like it should be possible to factor some of our Home Server computing power in the start up, since that gives us a clear advantage, especially when we have a good amount of ram after our first augmentation reset (or subsequent resets). Is it tricky to allocate some of our Home Server ram into the Auto-Starter.js?

Comment from InfiniteTrial:

Its true that your servers are under 100% but a lot of it is just dead weight.

Let's say you have one server with 2048GB RAM and three scripts hack.js, weaken.js and grow.js that each only contain their respective command.
pirate.js needs 2GB of RAM
hack.js needs 1.7GB,
weaken.js and grow.js both need 1.75GB

On that server you could run one of the following:
1024 x pirate.js for 100% load,
1204 x hack.js for 99.94% load, or
1170 x weaken.js (or grow.js) for 99.98% load.

In that scenario you would loose up to 15% of actual workpower, depending on which skript you run.
It gets only worse when the server size increases.
It would be more efficient to split pirate.js into its components and only call the one that s needed at the moment.
chrisrabe commented 2 years ago

Closing issue. Code for the new gimme-more-money script will be pushed tomorrow.