Fleet overlay

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
defaultuser
Juggernaut
Posts: 854
Joined: Wed Aug 26, 2015 6:15 pm

Fleet overlay

#1 Post by defaultuser »

This is a problem I have from time to time. In the image below, there are actually two fleets. They apparently aren't close enough together see both when you click on the top one. But nothing I can do will allow me to select the one that's under it. So in this case I'd like to change the destination of both fleets to somewhere else. But I can't get the larger fleet selected.
ol.jpg
ol.jpg (14.83 KiB) Viewed 2141 times

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Fleet overlay

#2 Post by Oberlus »

If zooming in doesn't work, and there is not a more elegant GUI solution, I guess it would be good to be able to click-n-drag-select fleets.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Fleet overlay

#3 Post by Geoff the Medio »

A workaround is to use the objects window to select the fleet. Double-clicking a fleet in the objects list should select it in the fleets window. You can also add / sort by columns for the next system a fleet is moving to, or the nearest system to the fleet.
Attachments
objects window for fleets
objects window for fleets
objects_fleets.png (110.66 KiB) Viewed 2130 times

dbenage-cx
Programmer
Posts: 389
Joined: Sun Feb 14, 2016 12:08 am

Re: Fleet overlay

#4 Post by dbenage-cx »

Agree this can be annoying, could also use hotkey (alt + f / g, or ctrl + f / g).

In addition to group selection, another thought is to add fleets within a small radius to fleet window when selecting from map.

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Fleet overlay

#5 Post by Dilvish »

dbenage-cx wrote:In addition to group selection, another thought is to add fleets within a small radius to fleet window when selecting from map.
Yes, I think this is the way to go (and to avoid weirdness if two ships are technically close due to being near their destination system, but actually approaching on different starlanes, I would only include fleets that are either (i) in the same system or (ii) on the same starlane and within something like 5-10 uu, probably best dependent on zoom level, maybe even have the threshold calculated from zoom level and fleet button size.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

defaultuser
Juggernaut
Posts: 854
Joined: Wed Aug 26, 2015 6:15 pm

Re: Fleet overlay

#6 Post by defaultuser »

Sorry, I was away. Thanks for the tips. I'll mark the thread for next time it comes up.

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: Fleet overlay

#7 Post by LGM-Doyle »

I started a branch to address this last fall, in the manner Dilvish described. I will look into completing it.

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: Fleet overlay

#8 Post by LGM-Doyle »

I've pushed a pull request, PR that closely implements Dilvish's suggestion.

Fleets at or departing from systems should be unchanged and are grouped by system and empire.

When a moving fleet button is selected the fleets from all touching fleet buttons on the same starlane are included in the fleet window. This may include fleets from differing empires. All moving fleets that are not on a starlane are handled separately in the same manner.

The PR also changes the tracking behavior of the fleet window, so that it will try to follow moving fleets provided that they stay close together. Otherwise it will close the window.

Post Reply