chrisrabe / bitburner-automation

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

Runtime Error diamond-hands.js #26

Closed steini225 closed 1 year ago

steini225 commented 1 year ago

RUNTIME ERROR diamond-hands.js@home (PID - 60093)

getPosition: Invalid stock symbol: ECP

Stack: diamond-hands.js:L12@getStonks diamond-hands.js:L92@Module.main

lnagler1 commented 1 year ago

When do you get this Error, right after running or after some time?

steini225 commented 1 year ago

right after running. looks like there are some issues because some things got changes at gameupdates

Zerris commented 1 year ago

ns.stock.buy and ns.stock.sell got depreciated and replaced in the game. To get your copy of the script running just replace the .buy with .buyStock and .sell with .sellStock.

chrisrabe commented 1 year ago

PR merged. Should work now 👍 Thanks @Zerris