Error appeared onscreen slightly into a game when no shares purchased yet (hadn't even left Eridani):
06/09/2018 00:09:33 OnGlobalUpdate [810220]: Division by zero [((add totalPrice (multiply (divide (@ stockPosition "shares") 100) (@ stockPosition "boughtAt"))) (divide newShares 100))] ### (divide (add totalPrice (multiply (divide (@ stockPosition "shares") 100) (@ stockPosition "boughtAt"))) (divide newShares 100)) ###
nms 9 Jun 2018:
The problem is in the stockInvestorBuys function in StockMarket.xml. If sharesToBuy > 0 but newShares < 100, (divide newShares 100) will be 0 and you'll get division by 0.
nms 22 Jun 2018:
george moromisato 15 Aug 2018:
Merged into CC 1.2.15. Thanks!
Resolve
Archive
Reopen
Create
Edit
Save
Attach File
Cancel Edit