Corp.js stops with you cannot create products for this industry
Opened this issue · 1 comments
This seems to happen to me when I manually created the first division to one which wasn't a product division. Currently it seems the scripts is semi-hard-coded (it seems to loop across all divisions but it only creates a Tabaco and Healthcare) to function on product divisions.
I temporarily fixed this by adding a if (division.type != 'Agriculture') {}
(or whichever division type you chose) to line 20 and adjusted the subsequent (now) lines 28-30 to account for the additional index.
I ended up in this state due to being on BN3 for the first time and not having the RAM available to run this script until I had enough money to upgrade. Because of this I followed the commonly shared guide to get started which advises you create Agriculture as your first division.
Hope this helps you temporarily until the script is updated/overhauled!