Comments (12)
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.
Just a suggestion, while doing this, maybe a fallback for the script for pre-source 4?
from bitburner-scripts.
@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.
I think the minimal visible product is to once X (10) augmentations is purchased, then install the augmentations.
from bitburner-scripts.
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.
@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.
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.
@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.
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.
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.
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.
from bitburner-scripts.
Related Issues (20)
- Autopilot destroy bitnode bug HOT 6
- Suggestion: hacknet ram managment
- Bug in spend-hacknet-hashes.js HOT 3
- Autopilot doesn't hack
- Ascend Without TIX API liquidate error HOT 5
- RAM usage error HOT 2
- Autopilot Warning/Error loops HOT 3
- Make work-for-factions.js display remaining time also considering sleeves. [enhancement] HOT 2
- Daemon settings(?) HOT 1
- Provide an option to sync player stats to an external location HOT 1
- suggestion: better progression understanding HOT 1
- autopilot stuck in constant reset HOT 4
- Git-Pull needs to use current working directory HOT 1
- faction-manager.js: Problem with rep cost estimates HOT 3
- faction-manager.js: Trying to join Netburners while not having to requirements
- Repeating warning with Bitburner v2.5.2 HOT 5
- Daemon.js: Non-integer thread count
- Bitbutner v2.6.0dev: Bladeburner skill cost of "null" breaks script
- Stanek's gift not activated automatically HOT 6
- daemon.js: Errors in late BN12.XXX when server initial values are outside of min/max values.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitburner-scripts.