Jrpl / Bitburner-Scripts

A collection of scripts written for the game Bitburner
MIT License
88 stars 33 forks source link

threads should be a positive integer #14

Open CthuutLoops opened 1 year ago

CthuutLoops commented 1 year ago

TYPE ERROR hack-manager.js@home (PID - 9)

exec: threads should be a positive integer, was 7320.958053450061

Stack: hack-manager.js:L366@Module.main

L366: ns.exec('targeted-grow.js', prep_server, gt, gt, 0, hack_target);

i think its the gt variable from L339: gt = ns.growthAnalyze(hack_target, initial_growth_amount);

exec() says it round to the nearest integer but apparently its not.

I'm not sure if this is an issue for your script or bitburner

CthuutLoops commented 1 year ago

Just heard from that exec doesnt round for threads anymore in an update.

JulianoBC commented 11 months ago

u should add a Math.Round at 217 line of hack-manager i think