Max Resource aid amount bug

5 Replies
User
23 August, 2018, 9:26 PM UTC

At least on PC.

When one enter maximum resource amount in "Resources aid" input, wrong amount is selected.

Example:

Maximum convoy size is 12,425,000. If one enter that amount manually using digits, only 1.2M is selected / sent.

If one add or subtract 1 unit, or anything above / below, correct amount is sent. E.g:

Max Convoy size: 12,425,000
Tax rate: 8%

Enter          Sent Gross    Sent Net
12,425,001 12,425,000 11,431,000
99,999,999 12,425,000 11,431,000
12,424,999 12,424,999 11,431,000 (rounded up from 11,430,999.08)

12,425,000 1,242,500 1,143,100 (error - last zero vanishes)
12,000,000 12,000,000 11,040,000
124,250,000 12,425,000 11,431,000 (punching an extra zero)

If max amount is entered, exactly, the las digit is eaten up by the code.

If one use slider this bug is not affecting the amount.

Know it is a minor thing, but still.

Have cleared cache and all that.

Tested on Windows and Linux using Firefox, Vivaldi and Chrome.

UTC +2:00
0
Administrator
24 August, 2018, 2:56 PM UTC

Dear UVUCA,

Thank you for informing us about this situation. This request has been forwarded to our technicians. Have a good day!

Helping Jarls with their issues about the Vikings’ universe
UTC +8:00
1
Administrator
27 August, 2018, 12:48 PM UTC

Hello UVUCA! We want to help, but to avoid misunderstanding if it's possible please attach video illustrating the issue. Thank you in advance and waiting for your answer.

Helping Jarls with their issues about the Vikings’ universe
UTC +8:00
0
User
29 August, 2018, 4:54 AM UTC

Here are some GIF's from a recording illustrating the issue.

The big white numbers are keys being physically entered. Displayed by a keyboard software tool.


  1. Entering 1 unit less then max, all OK (12.4M selected):




  2. Entering Max amount Look at "Total Selected" / "To be sent" at bottom.

    It ends at 1.2M not 12.4 even though 12.4 is punched in.




  3. Entering 1 unit more then max, all OK (12.4M selected):




  4. Punching an extra zero at end.

    This "fixes" the issue, and correct amount is selected.



Hope this helps.


UTC +2:00
0
Administrator
29 August, 2018, 7:51 AM UTC

Dear UVUCA,


Thank you very much for providing us with this information. This request has been forwarded to our technicians for further investigation. We will contact you if we need any additional information. 

Thank you for your understanding and patience. Have a good day!

Helping Jarls with their issues about the Vikings’ universe
UTC +8:00
0
User
29 August, 2018, 10:01 PM UTC

No worries. It is a minor nuisance. But – as you hopefully have focus on DRY/WET code etc, some of the thought is that it could affect other parts of the code as well.

Have a great day.
UTC +2:00
1
6773802 users registered; 112161 topic; 462226 posts; our newest member:jacobpajda