chrisrabe / bitburner-automation

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

Issue when unbalanced #7

Closed beastyrabbit closed 2 years ago

beastyrabbit commented 2 years ago

Hi, I tried your script and watch "most" of the Video.

But I think I found some issues. But I'm playing Bitburner only for a few days so maybe I'm wrong.

When I didn't have a formula it for the most part only pushed one Server. It switched around in the beginning but then decided that catalyst is "THE SERVER" to push. So The balance of catalyst is now on 10b and has a way to high-security level.

After buying the formula it pushed with 23 or the 25 Servers on "the-hub". If I understand your idea correctly it should utilize all servers and all targets.

But if a few servers are pushed way too high with the "basic" script it is using all threads to only work on one or two servers and all threads are maxed out.

I changed to total thread number to be 1/ 23 of the real total to give every target a change to be worked but of course that is not a good solution. and for the really big servers the wait time gets unbelievable. And blocking threads that could be used for other servers.

current server bal Link

Network-Report node: the-hub maxMoney: 4547045775 maxRam: 16 curMoney: 4547045775 reqHackLevel: 302 security: 13 minSecurity: 13 secThresh: 18 moneyThresh: 3410284331.25 reqPorts: 2 hasRoot: true hackChance: 0.5700191518083182 revYield: 2591903175.899097 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: netlink maxMoney: 6875000000 maxRam: 16 curMoney: 393731942.30191207 reqHackLevel: 403 security: 69.418 minSecurity: 22 secThresh: 27 moneyThresh: 5156250000 reqPorts: 3 hasRoot: true hackChance: 0.16200657866332724 revYield: 1113795228.3103747 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7 node: omega-net maxMoney: 1591811075 maxRam: 32 curMoney: 922586425.7501872 reqHackLevel: 213 security: 9.046 minSecurity: 9 secThresh: 14 moneyThresh: 1193858306.25 reqPorts: 2 hasRoot: true hackChance: 0.6964703224284631 revYield: 1108649172.6504483 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: johnson-ortho maxMoney: 1951601350 maxRam: 0 curMoney: 545525763.9505286 reqHackLevel: 258 security: 20 minSecurity: 20 secThresh: 25 moneyThresh: 1463701012.5 reqPorts: 2 hasRoot: true hackChance: 0.567876572875226 revYield: 1108268686.2566643 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: aevum-police maxMoney: 6475341600 maxRam: 16 curMoney: 259013664 reqHackLevel: 438 security: 70 minSecurity: 23 secThresh: 28 moneyThresh: 4856506200 reqPorts: 4 hasRoot: true hackChance: 0.14588167866184448 revYield: 944633702.516874 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7 node: silver-helix maxMoney: 1125000000 maxRam: 64 curMoney: 1125000000 reqHackLevel: 150 security: 10 minSecurity: 10 secThresh: 15 moneyThresh: 843750000 reqPorts: 2 hasRoot: true hackChance: 0.7595908095840866 revYield: 854539660.7820975 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: summit-uni maxMoney: 7629573250 maxRam: 32 curMoney: 7629573250 reqHackLevel: 436 security: 77.332 minSecurity: 15 secThresh: 20 moneyThresh: 5722179937.5 reqPorts: 3 hasRoot: true hackChance: 0.11079130340274868 revYield: 845290364.7742453 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7 node: phantasy maxMoney: 600000000 maxRam: 32 curMoney: 565619935.3924651 reqHackLevel: 100 security: 7 minSecurity: 7 secThresh: 12 moneyThresh: 450000000 reqPorts: 2 hasRoot: true hackChance: 0.8426669788245931 revYield: 505600187.2947558 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: iron-gym maxMoney: 500000000 maxRam: 32 curMoney: 492471506.4575503 reqHackLevel: 100 security: 10 minSecurity: 10 secThresh: 15 moneyThresh: 375000000 reqPorts: 1 hasRoot: true hackChance: 0.8154841730560578 revYield: 407742086.5280289 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: catalyst maxMoney: 9531396475 maxRam: 128 curMoney: 9531396475 reqHackLevel: 435 security: 91.59999999999998 minSecurity: 22 secThresh: 27 moneyThresh: 7148547356.25 reqPorts: 3 hasRoot: true hackChance: 0.04115987286075959 revYield: 392311067.0964921 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7 node: max-hardware maxMoney: 250000000 maxRam: 32 curMoney: 182685782.0093494 reqHackLevel: 80 security: 5.024 minSecurity: 5 secThresh: 10 moneyThresh: 187500000 reqPorts: 1 hasRoot: true hackChance: 0.8841648450646412 revYield: 221041211.2661603 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: zer0 maxMoney: 187500000 maxRam: 32 curMoney: 145717854.79623497 reqHackLevel: 75 security: 8 minSecurity: 8 secThresh: 13 moneyThresh: 140625000 reqPorts: 1 hasRoot: true hackChance: 0.862173762676311 revYield: 161657580.50180832 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: neo-net maxMoney: 125000000 maxRam: 32 curMoney: 1483033.3783959278 reqHackLevel: 50 security: 8.028 minSecurity: 8 secThresh: 13 moneyThresh: 93750000 reqPorts: 1 hasRoot: true hackChance: 0.8904703865506207 revYield: 111308798.31882758 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: harakiri-sushi maxMoney: 100000000 maxRam: 16 curMoney: 295850.1727133036 reqHackLevel: 40 security: 5 minSecurity: 5 secThresh: 10 moneyThresh: 75000000 reqPorts: 0 hasRoot: true hackChance: 0.9315871097347799 revYield: 93158710.97347799 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: hong-fang-tea maxMoney: 75000000 maxRam: 16 curMoney: 58196265.71857587 reqHackLevel: 30 security: 5 minSecurity: 5 secThresh: 10 moneyThresh: 56250000 reqPorts: 0 hasRoot: true hackChance: 0.9433868198010849 revYield: 70754011.48508136 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: nectar-net maxMoney: 68750000 maxRam: 16 curMoney: 18823959.52386954 reqHackLevel: 20 security: 7 minSecurity: 7 secThresh: 12 moneyThresh: 51562500 reqPorts: 0 hasRoot: true hackChance: 0.9350773397649187 revYield: 64286567.10883816 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: joesguns maxMoney: 62500000 maxRam: 16 curMoney: 47924050.581422836 reqHackLevel: 10 security: 5 minSecurity: 5 secThresh: 10 moneyThresh: 46875000 reqPorts: 0 hasRoot: true hackChance: 0.9669862399336948 revYield: 60436639.99585593 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: sigma-cosmetics maxMoney: 57500000 maxRam: 16 curMoney: 42680784.785165615 reqHackLevel: 5 security: 3.016 minSecurity: 3 secThresh: 8 moneyThresh: 43125000 reqPorts: 0 hasRoot: true hackChance: 0.9932040529922602 revYield: 57109233.04705496 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: foodnstuff maxMoney: 50000000 maxRam: 16 curMoney: 19834779.793117914 reqHackLevel: 1 security: 3 minSecurity: 3 secThresh: 8 moneyThresh: 37500000 reqPorts: 0 hasRoot: true hackChance: 0.998187157498493 revYield: 49909357.874924645 strategy.type: nourish strategy.seq: g,w strategy.allocation: 0.6,0.4 node: computek maxMoney: 6227134825 maxRam: 0 curMoney: 6227134825 reqHackLevel: 385 security: 99.55000000000003 minSecurity: 20 secThresh: 25 moneyThresh: 4670351118.75 reqPorts: 3 hasRoot: true hackChance: 0.0024844600063289725 revYield: 15471067.426730866 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7 node: n00dles maxMoney: 1750000 maxRam: 4 curMoney: 1750000 reqHackLevel: 1 security: 1 minSecurity: 1 secThresh: 6 moneyThresh: 1312500 reqPorts: 0 hasRoot: true hackChance: 1 revYield: 1750000 strategy.type: plunder strategy.seq: h,w,g,w strategy.allocation: 0.25,0.25,0.25,0.25 node: crush-fitness maxMoney: 1158758575 maxRam: 0 curMoney: 1158758575 reqHackLevel: 264 security: 99.8 minSecurity: 14 secThresh: 19 moneyThresh: 869068931.25 reqPorts: 2 hasRoot: true hackChance: 0.001404786535262226 revYield: 1627808.443779644 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7 node: rothman-uni maxMoney: 5021361725 maxRam: 128 curMoney: 5021361725 reqHackLevel: 420 security: 100 minSecurity: 18 secThresh: 23 moneyThresh: 3766021293.75 reqPorts: 3 hasRoot: true hackChance: 0 revYield: 0 strategy.type: flog strategy.seq: g,w strategy.allocation: 0.3,0.7