Opened 8 years ago
Last modified 4 years ago
#4134 new defect
GUI trader error - tradingDetails.gain is null
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | Backlog |
Component: | UI – In-game | Keywords: | |
Cc: | mimo, Imarok | Patch: |
Description (last modified by )
In this svn game with r18586 I had selected at least one trade cart at minute 56 which repeated the following GUI error:
TypeError: tradingDetails.gain is null unitActions["setup-trade-route"].getActionInfo@gui/session/unit_actions.js:542:1 getActionInfo@gui/session/input.js:230:8 unitActions["setup-trade-route"].actionCheck@gui/session/unit_actions.js:560:8 determineAction@gui/session/input.js:309:8 updateCursorAndTooltip@gui/session/input.js:63:7 onTick@gui/session/session.js:601:2 __eventhandler642 (tick)@sn tick:0:1
This seems to be the same error as in #3277, however I can't reproduce it this way anymore. There was very likely a captured or destroyed market / dock involved though.
Also the "Gain" tooltip sometimes shows an empty string, reproduce:
- produce trade cart at market 1
- right click market 2
- right click market 1
the tooltips will show "Origin trade market. Gain: " and "Destination trade market. Gain: ".
Attachments (3)
Change History (9)
by , 8 years ago
Attachment: | commands.txt.7z added |
---|
comment:1 by , 8 years ago
by , 8 years ago
Attachment: | commands.txt added |
---|
alpha 20 replay where the bug occurs with 8 trade carts at min 47 after the two markets have been captured and deleted min 45. Reproducible by changing the perspective to the blue player, selecting the carts and hovering a new market.
by , 8 years ago
Attachment: | commands.txt.2.7z added |
---|
Alpha 21 r18830 replay where that error occurs to some of my trade carts when they were idle in the bottom left corner of the map (f.e entity 46250)
comment:2 by , 7 years ago
Priority: | Should Have → Must Have |
---|
comment:3 by , 7 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
comment:5 by , 5 years ago
Component: | UI & Simulation → In-game UI |
---|
Move tickets to In-game UI
as UI & Simulation
got some sub components.
comment:6 by , 4 years ago
Also the "Gain" tooltip sometimes shows an empty string, reproduce: produce trade cart at market 1 right click market 2 right click market 1 the tooltips will show "Origin trade market. Gain: " and "Destination trade market. Gain: ".
This shows actual gain of the trader, not what trade gain of the route is in general. So it shows nothing as he has nothing at that point.
Seems like the error can't be reproduced from a visual replay in perspective unfortunately.