[Request] Sorting of crew

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

strude
Posts: 1471
Joined: Wed, 3. Aug 05, 08:15
x4

[Request] Sorting of crew

Post by strude »

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
Gaming PC: Gigabyte H270M-D3H | i7 7700 | 16Gb DDR4 | Gigabyte GTX1060 6Gb OC | Asus Xonar DGX | Window 10 Home 64bit | Samsung 256Gb SSD
Phipsz
Posts: 335
Joined: Mon, 23. Apr 12, 23:56
x4

Post by Phipsz »

Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Post by Requiemfang »

Awesome Phipsz
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

Oh man, thanks guys! :D
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

Downloaded, installed, and laid out on the dissecting table. Looks unintimidating enough to get me started on my lua baby steps. Thanks, Phipsz!
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

Oh boy, what have you started Phipsz?

Miscellaneous In Detail Page Defense Officer Tweaks
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

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...
Phipsz
Posts: 335
Joined: Mon, 23. Apr 12, 23:56
x4

Post by Phipsz »

@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?
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

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.
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

Sorry it was ambiguous, Phipsz. I was just pulling w.evans' leg :)

Defense Officers had a drone replacement option pre-4.0 that w.evans used in the past but it was removed in 4.0 so I was joking it might come back in the future.
antoniut
Posts: 198
Joined: Sat, 4. Oct 14, 13:07
x4

Post by antoniut »

Sparky Sparkycorp wrote:Oh boy, what have you started Phipsz?

Miscellaneous In Detail Page Defense Officer Tweaks
:lol:
antoniut
Posts: 198
Joined: Sat, 4. Oct 14, 13:07
x4

Post by antoniut »

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...
:lol:
Phipsz
Posts: 335
Joined: Mon, 23. Apr 12, 23:56
x4

Post by Phipsz »

@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.
strude
Posts: 1471
Joined: Wed, 3. Aug 05, 08:15
x4

Post by strude »

Phipsz wrote:fixed it for you :)
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 bit :D
Gaming PC: Gigabyte H270M-D3H | i7 7700 | 16Gb DDR4 | Gigabyte GTX1060 6Gb OC | Asus Xonar DGX | Window 10 Home 64bit | Samsung 256Gb SSD
Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Post by Requiemfang »

strude wrote:
Phipsz wrote:fixed it for you :)
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 bit :D
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 suffered :lol:

Return to “X Rebirth - Scripts and Modding”