-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow drawing bug- unnecessary horizontal line being drawn #1056
Comments
@FrostionAAA Yeah, I noticed this as well. We'll need to fix this. |
I hate Math for this particular case... @DanVanAtta @ron-murhammer |
@RoiEXLab Would it be possible to write a unit test that fails because of this issue? |
@ron-murhammer I am concerned that we will not be able to catch this bug via unit test effectively without some major work. A patch fix would be good here if it allows for this feature to catch the 1.9 train. Otherwise we're at about at point where features that fail get Q/A are going to be reverted, instead of being patched. We need to get 1.9 out. edit we're about at the point where we should revert instead of patch, not necessarily there yet. |
@DanVanAtta Agree and I'm fine reverting the route draw changes if necessary. |
@DanVanAtta @ron-murhammer |
I'll try to get a PR out today... |
#1065 has a fix |
This should be fixed now, please close the issue then |
No it's not, but somewhat related... This happens very rarely to me, and when it does I cannot reproduce it. This has a lower priority... But I will see what I can do once I'm back home |
@Roi if you play revised, set the other players to AI and move the fighter On Aug 29, 2016 10:51 AM, "RoiEX" notifications@github.com wrote:
|
Ok then... |
Does not sound like it is terribly urgent. A point fix is going to be acceptable enough. Going forward the key will be to preserve lobby->client compatibility, and save game compatibility. |
how common is the problem exactly? is it just the one rare path?? @RoiEXLab , thoughts on how to fix? |
Sorry, just noticed that the problem exists for HexGlobe FFA too, on the X axis; just not on the Y axis. So, I guess the only wrapping maps that would be unaffected would be those with Y only (not X) scrolling. I suggest you use HexGlobe FFA as the main referring game for this issue. |
#1199 has a fix for the horizontal case. On hexglobe, it looked like things were fine, but I would not be 100% surprised if the vertical case had issues. |
I confirm what Ruin says. There is something serious bugging off when you select an unit and go around with the mouse to possible destinations (nobody else but this: not clicking anything else but the initial selection of the unit), and it happens even if you never actually try to wrap around a border. For example, here the Yamamoto submarine seems convinced that the best way of going to an adjacent sea zone (I didn't set any path with Ctrl or anything) is by going 24 times around the world: I surmise that you need to make sure that the path is given at any time regardless of what paths were given in the past, as it seems the previous ones somewhat influence the current one for no reasons. |
@DanVanAtta what have you done? You created a monster! |
Yeah, this I think is the only showstopper bug we have left. |
@RoiEXLab , please double check which updates introduced this. The update I applied a week ago made the problem a lot less likely. |
@Cernelius , from which SZ is the sub in? I was not able to repro. I've only been able to reproduce when the unit is very far from the map 'seam'. Which is a rare thing. @ron-murhammer , we can fix this in a point release since no game data is involved. Hence I do not think it is a show stopper. |
@DanVanAtta Sorry, if I'm wrong at some point... |
"this single line in some cases" Which single line? Which "small" bug? |
@DanVanAtta I mean the Screenshot sent by @RuinChristmas |
I was able to repro the screenshot from @RuinChristmas . That was a problem before #1199. The move in that screenshot is not a valid move. Hence, this issue AFAIK is going to be pretty rare to hit. I'm concerned by Cernel's report that he can hit it with movement to an adjacent territory (which I have not been able to repro, hoping for some more info) |
@Cernelius can you give details on how you were able to get the screenshot above, which SZ was the sub in to start with? I put a sub in every pac SZ in that region and could not hit the route wrapping problem. |
Of course, I'm using the latest prerelease (3154). As I said, it is a thing that sums up, so I cannot reproduce it exactly as before, unless I like make the same moves, I guess. Just select the submarine and move the mouse around (nothing else!); you should soon see horizontal lines piling and piling up in a neverending stream of red spaghetti. It always happens in a different way, like: or: And, yes, never happened with the current release. |
Still, not seeing it. Please give step by step instructions if you would @Cernelius . Which SZ is the sub in? |
Okay, hit it. Looks like first you have to move the mouse cursor and route to be very far away, scrolling around the map. Once triggered, adjacent territories no longer have their routes drawn correctly. |
Ah yeah, forgot to say that the map was zoomed 50% (as you can see). You are unlikely to hit it if that one is at 100%, I guess, but it is quite easy at 50%. |
And, yes, it starts from a move somewhere illegal, and then it continues when you go legal, but this is quite easy to hit in WAW at 50%, because you hit the islands or the borders that are a "none" spot; I don't really know which one of the two causes it. |
I installed “triplea_windows-x64_1.9.0.0.2728.exe”.
I don’t have any other versions installed at the moment, so this version is where can see the bug, but I don’t know if it is an older bug. It is also present and can be reproduced in the tutorial map.
The short version:
If a units moves from one place to another, generating an arrorw, and both ends of the arrow can be displayed inside the viewable area, then everything is OK.
But if one of the ends of the arrow is outside the viewable area in the west/left direction, then the end of the arrow in that direction is moved to a far-right/far-east destination.
It seems that it does not matter if it is the pointy or round end of the arrow that gets hidden from view, the error is the same.
I made a screen recording of the bug to supplement these pictures. (8 MB, MP4)
Showing is so much easier then telling :-)
https://dl.dropboxusercontent.com/u/91867373/ArrowBug.mp4
Before the left side of arrow is hidden, all is good:
After hiding the left side, the arrow bug is seen:
The text was updated successfully, but these errors were encountered: