Logo Platform
logo amplifiers simplified

[PC/Epic, v1.0.15.2767-S10 64-bit build 239948] Merchant star requirement overflow

Reply
Copied to clipboard!
2 years ago
Oct 13, 2022, 8:55:17 PM

auto-save 1638.ctrauto-save 1634.ctr

I guess my empire earned more money then the variable could handle. Its strange because its about 1000 times less then an int capacity, and way more then short could handle.

Its obvious how to reproduce, and what is expected so, that's it.

Updated 2 years ago.
0Send private message
0Send private message
2 years ago
Nov 29, 2022, 7:50:46 PM
comPLete wrote:

auto-save 1638.ctrauto-save 1634.ctr

I guess my empire earned more money then the variable could handle. Its strange because its about 1000 times less then an int capacity, and way more then short could handle.

Its obvious how to reproduce, and what is expected so, that's it.

It is because all values are stored as *1000 in raw. For instance any decimal value .xxx is also stored as int.

0Send private message
2 years ago
Feb 7, 2023, 4:51:24 AM

as of Feb 6, 2023

bug still not fixed. one turn I had earned money of 1995k, the next turn after earning around 224k money the merchant star report gave -2055k

so the bug is triggered around 2 million earned money. dunno if it is a decimal or binary negative overflow. simply fix is to expand field by one digit

NOTE - I needed 475k earned money to get 3rd merchant star in contemporary (last) game era. so the bug occurred at slightly less than 5 times what the game wanted me to earn to get my last star, not that big a buffer. if binary the one digit expansion would raise it to around 4 million before negative overflow occurs, a much more reasonable value. however I play at fast game speed. those on slower game speeds no doubt run into this bug much earlier


Updated 2 years ago.
0Send private message
?

Click here to login

Reply
Comment