Anonymous | Login | 2024-11-21 11:49 UTC |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0002461 | VCMI | AI - Adventure Map | public | 2016-08-23 03:47 | 2016-09-08 01:31 | ||||||||
Reporter | SXX | ||||||||||||
Assigned To | SXX | ||||||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||||||
Status | resolved | Resolution | fixed | ||||||||||
Platform | OS | OS Version | |||||||||||
Product Version | 0.98g | ||||||||||||
Target Version | Fixed in Version | 0.98g | |||||||||||
Summary | 0002461: VCAI: Infinite loop when attempt to compare and exchange artifacts | ||||||||||||
Description | Back when I fixed 0002455 there was typo (I suppose it's wasn't intentional since there was no comments) in Warmonger's code that made AI stop artifact exchange after first item was swapped. https://github.com/vcmi/vcmi/commit/39fe9472b60d05401aa2889d4698bac2c74a9c6b#diff-17182f23fecdfcf334d0f03f9bd612c7L1089 [^] End up that without that break AI tend to go into infinite loop since "compareArtifacts" func is very basic from perfect. E.g first time AI exchange arts since stats better and second time it's make change back since price is higher. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
Notes | |
(0006579) SXX (administrator) 2016-08-23 03:49 |
I worked on a bit better compareArtifacts code, but since I switch to fix leaks and desyncs want to keep in on bugtracker. |
(0006631) SXX (administrator) 2016-09-08 01:31 |
Fixed easy way for now: https://github.com/vcmi/vcmi/commit/78a560767bce07f25b07b4b55e02a232269b393f [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2016-08-23 03:47 | SXX | New Issue | |
2016-08-23 03:47 | SXX | Status | new => assigned |
2016-08-23 03:47 | SXX | Assigned To | => SXX |
2016-08-23 03:48 | SXX | Description Updated | View Revisions |
2016-08-23 03:49 | SXX | Note Added: 0006579 | |
2016-08-23 03:49 | SXX | Product Version | 0.99 => 0.98g |
2016-08-23 03:49 | SXX | Relationship added | related to 0002455 |
2016-08-23 03:52 | SXX | Summary | VCAI: Loop when attempt to exchange artifacts => VCAI: Infinite loop when attempt to compare and exchange artifacts |
2016-09-08 01:31 | SXX | Note Added: 0006631 | |
2016-09-08 01:31 | SXX | Status | assigned => resolved |
2016-09-08 01:31 | SXX | Fixed in Version | => 0.98g |
2016-09-08 01:31 | SXX | Resolution | open => fixed |
Copyright © 2000 - 2024 MantisBT Team |