MantisBT - VCMI
View Issue Details
0002518VCMIMechanics - Otherpublic2016-09-25 15:302022-03-22 16:54
Povelitel 
Povelitel 
normaltweakhave not tried
closedwon't fix 
0.98g 
 
0002518: The game permits negative amount of money
I have made:
 
"ai": { "wood" : 5000000, "mercury": 2000000, "ore": 5000000, "sulfur": 2000000, "crystal": 2000000, "gems": 2000000, "gold": 5000000000, "mithril": 0}

But then I noticed that in the console at one AI negative amount of money.
A bug was the original.
No tags attached.
png деньги.png (85,735) 2016-09-25 15:30
https://bugs.vcmi.eu/file_download.php?file_id=2559&type=bug
png
Issue History
2016-09-25 15:30PovelitelNew Issue
2016-09-25 15:30PovelitelFile Added: деньги.png
2016-09-25 19:05WarmongerNote Added: 0006745
2016-09-25 19:06WarmongerStatusnew => acknowledged
2016-09-25 19:32PovelitelNote Added: 0006746
2016-09-25 20:06AVSNote Added: 0006747
2016-09-29 16:37AVSSummaryThe game is perhaps a negative amount of money => The game permits negative amount of money
2022-03-22 16:54PovelitelNote Added: 0008191
2022-03-22 16:54PovelitelStatusacknowledged => closed
2022-03-22 16:54PovelitelAssigned To => Povelitel
2022-03-22 16:54PovelitelResolutionopen => won't fix

Notes
(0006745)
Warmonger   
2016-09-25 19:05   
Well yes. Resources should be prevented from overflow, but it seems to be ineffective if you configure them via json config.
(0006746)
Povelitel   
2016-09-25 19:32   
In fact, I wanted to put five hundred million, but once clicked toe and went outside.
Well, now I'll know that there are also limits.
(0006747)
AVS   
2016-09-25 20:06   
five hundred millions is ok, but you put 5 billions
(0008191)
Povelitel   
2022-03-22 16:54   
int -2147483648 2147483647