View Issue Details

IDProjectCategoryLast Update
0027808Heart Of The MachineBug - OtherMay 1, 2023 1:19 pm
ReporterThe Gerbilest Assigned ToDraco18s  
Status resolvedResolutionfixed 
Product Version0.302 Sweet Release From Death 
Summary0027808: Credit calculation error on encounter
DescriptionSteps to reproduce
- dispatch to encounter (mall in this case)
- deploy units to complete encounter
- add remove assistive nanoswarms from 0 to n, then from n to 0

Behavior

Credits will jump randomly by small (rounding?) amounts.

Screenshots
exact same encounter with the exact same units taken without closing dispatch interface. In one SS credits are given and in the other SS they are not. Adding or removing nanoswarms changes whether credits are given or not at the same unit value (0 nanoswarms in SS examples but credits remain inconsistent rewards at the same unit values even at non-zero values).
TagsNo tags attached.

Activities

The Gerbilest

Apr 29, 2023 1:12 pm

reporter  

MoneyCalculationScenario.jpg (121,726 bytes)   
MoneyCalculationScenario.jpg (121,726 bytes)   

The Gerbilest

Apr 29, 2023 1:12 pm

reporter   ~0067624

Chris_McElligottPark

Apr 29, 2023 2:30 pm

administrator   ~0067625

Those amounts jumping around are actually based on the total amount of credits in the faction changing, unless you have the game paused. They're constantly making and spending money, and you're skimming a percentage of what they have. We freeze it in time for a moment every time it is calculated, since it's a very small amount that you're skimming in the first place (like two thousandths of one percent of that faction's income).

If the game is paused, then it's possible that is just normal variance in very small floating point calculations, but somehow I suspect it's not paused.

The Gerbilest

Apr 29, 2023 2:48 pm

reporter   ~0067626

Confirming the game was not paused. Very sorry for the false report, I didn't think of it working like that.

Chris_McElligottPark

Apr 29, 2023 2:58 pm

administrator   ~0067627

No worries at all! When you see something strange, you should say something. I'm leaving the report open, because I'll need to adjust the tooltips here to be more clear, since other people will later be confused the same way. If you have to ask the developer why something is happening, then there's a problem, haha.

Draco18s

Apr 30, 2023 12:34 am

manager   ~0067628

May also be worth flooring/rounding/ceilinging to the nearest lump of 25 or something.

Chris_McElligottPark

May 1, 2023 12:01 pm

administrator   ~0067635

I like your idea of rounding to the nearest 25 credits here. I think we should also make the tooltip include information that explains briefly what is happening ("this is calculated off of the current total credits held by the building owner, and may fluctuate.")

Draco18s

May 1, 2023 1:19 pm

manager   ~0067642

Updated tooltip and rounded to nearest 25 credits to make the fluctuations happen less.

Issue History

Date Modified Username Field Change
Apr 29, 2023 1:12 pm The Gerbilest New Issue
Apr 29, 2023 1:12 pm The Gerbilest File Added: MoneyCalculationScenario.jpg
Apr 29, 2023 1:12 pm The Gerbilest Note Added: 0067624
Apr 29, 2023 1:12 pm The Gerbilest File Added: MoneyCalculationScenario2.jpg
Apr 29, 2023 1:16 pm The Gerbilest Description Updated
Apr 29, 2023 2:30 pm Chris_McElligottPark Note Added: 0067625
Apr 29, 2023 2:48 pm The Gerbilest Note Added: 0067626
Apr 29, 2023 2:58 pm Chris_McElligottPark Note Added: 0067627
Apr 30, 2023 12:34 am Draco18s Note Added: 0067628
May 1, 2023 11:59 am Chris_McElligottPark Assigned To => Draco18s
May 1, 2023 11:59 am Chris_McElligottPark Status new => assigned
May 1, 2023 12:01 pm Chris_McElligottPark Note Added: 0067635
May 1, 2023 1:19 pm Draco18s Status assigned => resolved
May 1, 2023 1:19 pm Draco18s Resolution open => fixed
May 1, 2023 1:19 pm Draco18s Note Added: 0067642