Fractal Softworks Forum

Starsector => Mods => Modding => Topic started by: Ed on September 18, 2020, 06:01:04 AM

Title: Is there a way to force the game to focus the ship portrait on one module?
Post by: Ed on September 18, 2020, 06:01:04 AM
I have a problem with my longboi where the game try to show all modules, but it ends up with the portrait looking horrible instead, is there a way to force the game to focus the portrait on the central module only?
(https://i.imgur.com/h1QG3Uc.png)
(https://i.imgur.com/XKpgRFM.png)
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Alex on September 18, 2020, 09:33:26 AM
Ah, unfortunately there isn't. At least, not that I can think of. Sorry!
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Ed on September 18, 2020, 10:09:16 AM
Ah, unfortunately there isn't. At least, not that I can think of. Sorry!
Could you add a tag in the ship_data to make sure the portrait focus on the main module next update pretty please? :)
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Alex on September 18, 2020, 11:36:56 AM
I'm not actually sure exactly what you mean - what would you like it to look like? What's the main module in this case?
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Ed on September 18, 2020, 02:13:10 PM
I'm not actually sure exactly what you mean - what would you like it to look like? What's the main module in this case?
I think either of those could work, a tag on the module you want to focus or it could be in the main module .ship file
(https://i.imgur.com/3NU3BPw.png)
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Alex on September 18, 2020, 02:17:22 PM
Ah, I'm sorry - I meant "look like" in terms of in-game, not implementation-wise. Like, I don't even know what the "main" module for the ship in question is, let alone what you'd like it to look like in either of those two screens/what the problems are.
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Jaghaimo on September 18, 2020, 02:35:40 PM
Would it help if some viewports had defined aspect ratio and scale / zoom image accordingly?
In this case the viewport seems to have a defined aspect ratio (it's a square in which we view the ship, and it does not change if ship is wide or narrow) but does not scale down the sprite inside (thus it overflows).

Another example is the intel icon - this one scales whatever you give it (height wise, so it doesn't overshoot) but does not have viewports aspect ratio (you'd want an icon to be a square so it aligns nicely - it will maintain aspect ratio of the sprite used instead).
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Ed on September 18, 2020, 03:46:28 PM
More like this maybe?

(https://i.imgur.com/2l7ic8t.png)
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Alex on September 20, 2020, 12:46:36 PM
Added DO_NOT_SHOW_MODULES_IN_FLEET_LIST ship hint!
Title: Re: Is there a way to force the game to focus the ship portrait on one module?
Post by: Ed on September 20, 2020, 02:34:27 PM
Added DO_NOT_SHOW_MODULES_IN_FLEET_LIST ship hint!
love you dude