View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0005445 | Spring engine | AI | public | 2017-02-01 13:22 | 2017-02-01 14:26 | ||||
Reporter | aeonios | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 103.0 +git | ||||||||
Target Version | Fixed in Version | 103.0 +git | |||||||
Summary | 0005445: AI unit info functions broken | ||||||||
Description | This did not occur in 103.0.1-289 but does in 103.0.1-529+. The following methods return -1 instead of a proper value: unit.getMaxSpeed() unit.getStockpile() unit.getStockpileQueued() Apparently this does not affect unit.getMaxHealth() for whatever reasons. | ||||||||
Additional Information | unit.getMaxSpeed() and unit.getMaxHealth are technically optional since that information is retrievable from the unitDef. Those functions could technically be removed although they're convenient. getStockpile and getStockpileQueued are not optional and cannot be read from unitDefs. Unless support for stockpiling is being dropped from the engine (and I haven't seen any evidence that it is) then those functions need to return proper values in order for AI to be able to use units that stockpile properly. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2017-02-01 13:22 | aeonios | New Issue | |
2017-02-01 14:26 | Kloot | Assigned To | => Kloot |
2017-02-01 14:26 | Kloot | Status | new => resolved |
2017-02-01 14:26 | Kloot | Resolution | open => fixed |
2017-02-01 14:26 | Kloot | Fixed in Version | => 103.0 +git |
2017-02-01 14:26 | Kloot | Note Added: 0017160 |