Whew! Got 0.6 finished, big big update for the mod - lot of code behind the scenes to get this working. New features: ---------------------------------------------------------------------------------------------------------------------------------------- -Now can use [] fleet tags at the beginning of the ship name to add a ship to a fleet. I scan for these tags at turn load (haven't tested with time machine), and when ship name is changed. Example - you can rename a ship from MEDIUM DEEP SPACE FREIGHTER to [FLEETA]MEDIUM DEEP SPACE FREIGHTER to have that ship join FLEETA. -Added Previous and Next Fleet buttons to jump between these fleets. When using this, it will always go to the lowest ID ship in the fleet. This only works for tagged ([]) ships. -------------------------------------------------------------------------------------------------------------------- The next part may be a bit confusing. If you don't use [] tags on a ship, I've retained the old behavior. It will show the cargo totals, fuel/neutronium info, set destination, and set speed for ALL ships at that location, regardless of tags. It basically works just like the last version, ignoring any []s. All you'll notice without []s are two new buttons that don't do anything for you :) ------------------------------------------------------------------------------------------------------------------------ If you do have fleet tags on a ship, then the fleet display will ONLY display information for ships bearing that fleet name, regardless of location. So setting destination sets it for all ships with those [] tags, setting speed does the same, clicking the fuel warning button, or looking at cargo. Previous and Next Ship will jump between members of a fleet, regardless of location, when viewing a []'ed fleet member. -------------------------------------------------------------------------------------------------------------------------- If there is a location where you have a mix of []ed and untagged ships, you can have odd behavior. Be warned! For example, lets say you have ships named [a], [b], CCC, DDD at a location, with id's of 1,2,3,4 respectively. So two tagged in two fleets, and two untagged.
If you hit set destination for [a], only [a] is effected. Same with [b]. If you do this with CCC or DDD, then ALL FOUR ships are effected. If this is too annoying, I can work to change this (nothing set in stone here).
Even more confusing. Lets say you hit the previous ship button, starting at DDD. Click once, it will go to CCC. Nothing new there. Click again while CCC is selected, it goes to [b]. Click it again, and nothing happens. Why? Because [b] is the only ship in that fleet, and it reverts to []ed fleet behavior, instead of location group behavior. ------------------------------------------------------------------------------------------------------------------------------------- Obviously still a work in progress, and though I tried to catch error conditions, mixed fleet/non fleet groups, as well as all the above on v2 and v3, its possible I missed things. Heck - I guarantee I missed things. If you see any bugs please let me know: the version (old/v2 or new/v3), if the ship was []ed or not, if there were other ships at the location that were []ed or not, and what specifically you were doing (steps to reproduce). ------------------------------------------------------------------------------------------------------------------------------------- Next up: trying to add []/fleet tags to my shiplist mod.
|