Opened 11 years ago
Closed 10 years ago
#1822 closed defect (fixed)
[PATCH] Batch-trained traders fail to arrive at market rally point
Reported by: | zoot | Owned by: | leper |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 16 |
Component: | UI & Simulation | Keywords: | patch wip |
Cc: | Patch: |
Description (last modified by )
Steps to reproduce:
- Build two markets, market A and market B.
- Draw a zig-zagging line of several rally points from market A to market B.
- Train a batch of traders in market A.
What happens:
The batch of traders follow the rally points, but halt at the second-to-last point (the one just before the destination market).
What should happen:
The traders should arrive at market B and continue walking back and forth between the markets.
Attachments (2)
Change History (9)
by , 11 years ago
Attachment: | screenshot0086.jpg added |
---|
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 11 years ago
Component: | Core engine → UI & Simulation |
---|---|
Keywords: | patch added |
Milestone: | Backlog → Alpha 14 |
Summary: | Batch-trained traders fail to arrive at market rally point → [PATCH] Batch-trained traders fail to arrive at market rally point |
The patch works and fixes the issue, but the code is sort of ugly so I will not commit this patch as it is now. One of the problems is that SetupTradeRoute depends on the entity to have the Trader component, which for the formation controller isn't true.
Moving the logic from SetupTradeRoute to Order.Trade could work, but would make queued trading (move first, then start to trade) a bit strange.
I suppose fixing this would have some code overlap with the first point of #1207.
comment:3 by , 11 years ago
Milestone: | Alpha 14 → Alpha 15 |
---|
comment:4 by , 11 years ago
Owner: | set to |
---|
comment:5 by , 11 years ago
Keywords: | wip added |
---|
comment:6 by , 10 years ago
Milestone: | Alpha 15 → Alpha 16 |
---|
Batch of trader stopped at second-to-last rally point.