[Request] Sorting of crew
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 1471
- Joined: Wed, 3. Aug 05, 08:15
[Request] Sorting of crew
Does anyone know enough LUA to change the sorting of the crew in ship details to be by entity type rather than first name. I'm tired of them jumping around all the time. For example
Captain Ashunty Blah
Defence Officer Peter Pipper
then the next ship has
Defence Officer Ashunty blahblah
Captain Cookie Cutter
It just makes it less efficient to get to the details I need having to check the order, rather than knowing that on every capital ship that the order is
Captain
Defence Officer
Engineer
Even if someone can tell me the file to look at would be a start.
Thanks
Captain Ashunty Blah
Defence Officer Peter Pipper
then the next ship has
Defence Officer Ashunty blahblah
Captain Cookie Cutter
It just makes it less efficient to get to the details I need having to check the order, rather than knowing that on every capital ship that the order is
Captain
Defence Officer
Engineer
Even if someone can tell me the file to look at would be a start.
Thanks
Gaming PC: Gigabyte H270M-D3H | i7 7700 | 16Gb DDR4 | Gigabyte GTX1060 6Gb OC | Asus Xonar DGX | Window 10 Home 64bit | Samsung 256Gb SSD
-
- Moderator (English)
- Posts: 8074
- Joined: Tue, 30. Mar 04, 12:28
-
- Posts: 2963
- Joined: Tue, 18. Nov 14, 16:23
-
- Posts: 2963
- Joined: Tue, 18. Nov 14, 16:23
a mod tweaking Phipsz' mod:
captain always above defence officer always above engineer,
unless the defence officer's set to attack, then that goes on top,
unless the captain's flying a combat capship and is attacking, then that goes on top,
unless the defence officer runs out of drones, then that goes on top and turns red,
unless the engineer's Split,
unless the captain's Split too...
captain always above defence officer always above engineer,
unless the defence officer's set to attack, then that goes on top,
unless the captain's flying a combat capship and is attacking, then that goes on top,
unless the defence officer runs out of drones, then that goes on top and turns red,
unless the engineer's Split,
unless the captain's Split too...
-
- Posts: 335
- Joined: Mon, 23. Apr 12, 23:56
@w.evans: lua is really simple. I really like it, as I am normally programming with python, which feels similar enough to me
if you want to add these features, you'd only have to alter the menuAddon.entitySorting table for sorting. for colouring you sadly would have to overwrite the original menu.addControlEntity method, or, alternatively, manually add the DO with red colouring first and then add all others via the normal method. I'm happy to help if you want to implement the tweaks 
@sparky: were you talking about tweaks w.evans listed or something different?


@sparky: were you talking about tweaks w.evans listed or something different?
-
- Posts: 2963
- Joined: Tue, 18. Nov 14, 16:23
It's very generous of you to offer. I have to admit though, the barriers to me learning lua lie more in the direction of lack of time and motivation. Having said that, there are a couple of spots in my MICT mod that could use a bit of a UI brush-up. Just might take you up on that offer one of these days. Maybe.
-
- Moderator (English)
- Posts: 8074
- Joined: Tue, 30. Mar 04, 12:28
-
- Posts: 198
- Joined: Sat, 4. Oct 14, 13:07
-
- Posts: 198
- Joined: Sat, 4. Oct 14, 13:07
w.evans wrote:a mod tweaking Phipsz' mod:
captain always above defence officer always above engineer,
unless the defence officer's set to attack, then that goes on top,
unless the captain's flying a combat capship and is attacking, then that goes on top,
unless the defence officer runs out of drones, then that goes on top and turns red,
unless the engineer's Split,
unless the captain's Split too...

-
- Posts: 335
- Joined: Mon, 23. Apr 12, 23:56
@w.evans: If you want I could also just pull together a version of crew sorting that incorporates the features you mentioned. just giving you the fish instead of teaching you to get it yourself for now, so to speak.
@sparky: ah, ok. hm, if I find a way to let fight ships without cargo but only dronebay I'll look into bringing it back
@all: I uploaded a bugfix, the current version was blocking showing subordinate ships in some cases.
@sparky: ah, ok. hm, if I find a way to let fight ships without cargo but only dronebay I'll look into bringing it back

@all: I uploaded a bugfix, the current version was blocking showing subordinate ships in some cases.
-
- Posts: 1471
- Joined: Wed, 3. Aug 05, 08:15
Fantastic, thanks mate. I'll be taking a look at your code to see what I can learn. At least, that's what I tell myself. Bought Fallout 4 yesterday, so Rebirth will be on a time share arrangement for a little bitPhipsz wrote:fixed it for you

Gaming PC: Gigabyte H270M-D3H | i7 7700 | 16Gb DDR4 | Gigabyte GTX1060 6Gb OC | Asus Xonar DGX | Window 10 Home 64bit | Samsung 256Gb SSD
-
- Posts: 3206
- Joined: Thu, 16. Jul 09, 12:24
oooh boy deciding which to play is always hard, thing with Bethseda games is they have a very bad habit of sucking you in and away from other games. First time I played skyrim... couldn't put it down every other game... hell my social life sufferedstrude wrote:Fantastic, thanks mate. I'll be taking a look at your code to see what I can learn. At least, that's what I tell myself. Bought Fallout 4 yesterday, so Rebirth will be on a time share arrangement for a little bitPhipsz wrote:fixed it for you
