Giter VIP home page Giter VIP logo

Comments (12)

alainbryden avatar alainbryden commented on July 30, 2024 1

Agreed that this has been something I've been thinking about for a long time, but there are lots of problems to solve before this can be done automatically without screwing the player over.

Long story short, it most definitely has to be an "opt in" (flag to do it, like --purchase) and we probably want it to do a few other things:

  • We would need to assess how much stocks we have (liquidation value) compute what augs we can afford based on that, and force a stop of stock scripts / liquidation of stocks before we actually pull the trigger on purchasing / installing.
  • At a certain point, it makes more sense to purchase other things before e.g. adding just one more neuroflux level, such as Home computer RAM and CPUs, sleeve augmentations, gang equipment, buying back company stock. These things all persist after augmentation, but our cash does not, so we shouldn't install unless we're positive there's nothing left to put our cash towards.
  • We may be this close to getting enough faction reputation to unlock donations next round, or earning enough rep for one more important augmentation. What is our threshold for holding off on installing augmentations so that we can finish gaining reputation?
  • Depending on our current income rate from all sources (stocks, scripts, gangs), we might be close to affording another purchase. It would be a shame to reset too early if we're just a few minutes from the next aug, but a few hours after the last.
  • Depending on whether corporations is active, user may want to sell stock or turn on dividends a while in order to afford more permanent upgrades or augmentations before resetting.

Basically all the things you check on / do before you go ahead and augment and more, I'd want the script to take a decent stab at doing the same. These are the things that have stopped me from automating it, there's so much to do before a reset, more in some BNs than others.

All that said, we can start adding basic controls so that other people that use this can decide whether they want to auto-reset on some regular interval despite all those missed opportunities.

from bitburner-scripts.

raziel420 avatar raziel420 commented on July 30, 2024

Just a suggestion, while doing this, maybe a fallback for the script for pre-source 4?

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

@raziel420 what sort of thing do you have in mind? I don't think there's anything that can be done pre SF4. Not without hard-coding all the augmentation data that the script currently uses SF4 to retrieve.

from bitburner-scripts.

calpa avatar calpa commented on July 30, 2024

I think the minimal visible product is to once X (10) augmentations is purchased, then install the augmentations.

from bitburner-scripts.

raziel420 avatar raziel420 commented on July 30, 2024

Maybe a temp file for a generalized path to at least beat the first run? The failure of the purchase generation script also causes a failure of the faction work script as well, meaning manual crime/faction/work the entire first run.

Once you can choose a node to run you can hop over to 4 and slog your way to automating the rest.

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

@raziel420 I'm not sure what you mean... there's no way to automate crime/faction/work unless you have SF4... the faction manager script doesn't affect that. Not to mention that the purchase generation script only gets run if you run with the "--purchase" flag, which is off by default, including when the daemon calls it.

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

I think the minimal visible product is to once X (10) augmentations is purchased, then install the augmentations.

Perhaps this and a few other low-hanging fruit like selling off stock first? That's a big one.

from bitburner-scripts.

calpa avatar calpa commented on July 30, 2024

@alainbryden Maybe we can start something simple first, and add the other functions later?

For now, the scripts will hang and run forever without purchase augmentations and install augmentations in SF 4.1...

from bitburner-scripts.

Mikek05 avatar Mikek05 commented on July 30, 2024

Just a couple of raw thoughts:

  • "Recovery time" parameter calculation. I.e., the time to restore approximately the same average level after reloading.
  • Together with the rate of improvement on the main indicators, this will allow having an estimate at each moment, "the desire to reload" and compare with the "desire to postpone until the event" (when there will be enough money to buy something, etc.) It's just an approach, roughly the same way competing desires work in our brains.
  • Also, it would be great to be able to control the behavior of the daemon with quick commands from the terminal without restarting. I take over the strategy while present, and when I'm gone, let it decide something on its own, though not optimally.

from bitburner-scripts.

rmdi-el avatar rmdi-el commented on July 30, 2024

Sorry, this is probably a silly newbie offtopic question, but I'm at a loss. I can't understand how does the value assigned at the beginning affect the result if no run options are specified?
Example:

let pctTraining = 0.25; // I changed this
...
const argsSchema = [
    ['training-percentage', 0.20],
...
async function initialize(ns) {
    options = ns.flags(argsSchema);
    pctTraining = options['no-training'] ? 0 : options['training-percentage'];

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

This has been mostly solved with the new ascend.js

Feel free to request follow-ups for anything important you think was missed.

I will eventually give daemon an option to enable auto-ascending given some heuristic, but right now I'm requiring human judgment.

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

4b49e8c

from bitburner-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.