2019-08-25 03:54 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005445Spring engineAIpublic2017-02-01 14:26
Reporteraeonios 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version103.0 +git 
Target VersionFixed in Version103.0 +git 
Summary0005445: AI unit info functions broken
DescriptionThis 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 Informationunit.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.
TagsNo tags attached.
Checked infolog.txt for lua Errors
Attached Files

-Relationships
+Relationships

-Notes

~0017160

Kloot (developer)

already fixed by PR 287
+Notes

-Issue History
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
+Issue History