Stellaris

Stellaris

Foxt's Minimalist UI
Foxt  [udvikler] 18. maj 2020 kl. 0:48
Why do the icons look cut off / misaligned / missing / broken?
TL;DR: Any mod that changes the vanilla icons, or adds new ones will conflict with this mod and scramble all the icons above every object.

In depth explanation:

Whenever you see a unit in the game - a ship, station, megastructure, transport, whatever - it does not just have a single icon hovering over it. If you go into the game files and find that icon, it's actually on a big long "ribbon" of all the icons, each one placed next to the other, like this:

A B C D E F G H I J K L

What the game does with this is move that ribbon around left and right above the unit in question, so the icon that corresponds correctly to the unit is directly above it. All the other icons become invisible and non-interactible. So if the icon for "mining station" is "F", each mining station will have the ribbon above it like this:

A B C D E [ F ] G H I J K L

If the fleet icon is C, fleets will look like this:

A B [ C ] D E F G H I J K L

All my mod does to change this is change the image file for this ribbon to look like something else - it's a cosmetic art change, nothing more.

What creates these alignment problems is the addition or removal of a new icon to this ribbon. Let's say a mod adds a new structure with its own new icon for a Jump Gate or something, and the author of the mod places this new icon at the end of the ribbon. It now looks like:

A B C D E F G H I J K L M* <--- new

The problem with this is now, unless additional coding is done, the game does not know the ribbon is now longer. When it tries to place that mining station icon above a mining station, it still moves the same distance rightward on that ribbon, where it expects the mining station icon to be located. Instead, it will land probably in the middle of two icons, like this:

A B C D E [ ]F G H I J K L M*

This is why conflicts with my UI mod will result in the wrong icons above things, no icons at all, or sometimes even half of one and half of another. This mod does not contain the information that informs the game to adjust the distance to move the ribbon left and right for each unit after new icons are added to this ribbon (or removed from it), which changes the length of it and the appropriate distances to move it laterally. Nor can it have that information, because I don't know what other people do in their own mods.

So, look for mods that change UI elements, especially those that add, remove, or change the size of the icons that hover above units. Those are the likely culprits.
Sidst redigeret af Foxt; 20. feb. 2021 kl. 18:27
< >
Viser 1-7 af 7 kommentarer
Foxt  [udvikler] 2. sep. 2020 kl. 22:25 
There is a bug that occurs when this mod is used with NSC2. If this mod comes after NSC2, it will create alignment issues with the various icons. Placing this mod BEFORE NSC2 resolves that, but reverts the starbase buttons back to vanilla. Everything else works normally.

I would therefore advise NSC2 users to load NSC2 after this mod in your load order.
GreatGreenGoo 5. nov. 2020 kl. 6:28 
Thank you for this. I was wondering what was causing the offset issues. I was pulling my hair out. I can live with the Starbase buttons.
Ratib0rus 15. nov. 2020 kl. 6:54 
on version 2.8.1 some superstructure´s icons such as orphan gate and archeological site, have alignment issues. the mod is placed before NSC, what could possibly cause the bug?
edit:such bug appears to mining as well as research stations :(
Sidst redigeret af Ratib0rus; 15. nov. 2020 kl. 7:03
Foxt  [udvikler] 19. nov. 2020 kl. 15:15 
I will investigate this weekend. Whenever Paradox or another mod adds new icons or changes the sizes of any icons, it messes all of them up. More than likely this just means I have to adjust the files to include the new icons or something.
Foxt  [udvikler] 23. nov. 2020 kl. 21:13 
Can you confirm for me it's still a problem, @Ratib0rus? I can't seem to replicate the issue - vanilla Stellaris seems to work fine with this mod as is on my end. Does anyone else have this problem?

EDIT: does your launcher have my mod with a red out of date symbol next to it? If so, you may need to manually clear your mod folder.
Sidst redigeret af Foxt; 24. nov. 2020 kl. 8:48
Ratib0rus 27. nov. 2020 kl. 8:14 
Sorry for late relpy
yeah, I stilI have this problem, but I think it may be caused by the mess in my mod collection, which contains more than 130 mods. :) I had this red flag next to your mod, acouple days ago, but after reinstalling the game completely, it disappeared.
On vanilla the mod works great, can´t judge, but in conjunction with other mods it gives errors.
However, It worked well tho when I had similar mod collection on 2.6.3.
I tried to manually locate the conflict, but when there is more than 4k of them, it quite hard to understand what´s happening.
Foxt  [udvikler] 29. nov. 2020 kl. 11:05 
As someone who also plays with over 100 mods, I understand. I'll try to explain how the mod works so you can identify the problem mod more easily, but make no promises because text is difficult to convey it with.

Whenever you see a unit in the game - a ship, station, megastructure, transport, whatever - it does not just have a single icon hovering over it. If you go into the game files and find that icon, it's actually on a big long "ribbon" of all the icons, each one placed next to the other, like this:

A B C D E F G H I J K L

What the game does with this is move that ribbon around left and right above the unit in question, so the icon that corresponds correctly to the unit is directly above it. All the other icons become invisible and non-interactible. So if the icon for "mining station" is "F", each mining station will have the ribbon above it like this:

A B C D E [ F ] G H I J K L

If the fleet icon is C, fleets will look like this:

A B [ C ] D E F G H I J K L

All my mod does to change this is change the image file for this ribbon to look like something else - it's a cosmetic art change, nothing more.

What creates these alignment problems is the addition or removal of a new icon to this ribbon. Let's say a mod adds a new structure with its own new icon for a Jump Gate or something, and the author of the mod places this new icon at the end of the ribbon. It now looks like:

A B C D E F G H I J K L M* <--- new

The problem with this is now, unless additional coding is done, the game does not know the ribbon is now longer. When it tries to place that mining station icon above a mining station, it still moves the same distance rightward on that ribbon, where it expects the mining station icon to be located. Instead, it will land probably in the middle of two icons, like this:

A B C D E [ ]F G H I J K L M*

This is why conflicts with my UI mod will result in the wrong icons above things, no icons at all, or sometimes even half of one and half of another. This mod does not contain the information that informs the game to adjust the distance to move the ribbon left and right for each unit after new icons are added to this ribbon (or removed from it), which changes the length of it and the appropriate distances to move it laterally. Nor can it have that information, because I don't know what other people do in their own mods.

So, look for mods that change UI elements, especially those that add, remove, or change the size of the icons that hover above units. Those are the likely culprits.
Sidst redigeret af Foxt; 29. nov. 2020 kl. 11:10
< >
Viser 1-7 af 7 kommentarer
Per side: 1530 50