Stellaris

Stellaris

Legacy Human Reforged
Cicattrix 9 Jul, 2024 @ 4:00am
Clothing code outdated
Hello! My intention is to help, not to criticise...

You did a nice and hard work there, but you use an outdated coding system for the clothing, which is ignored by the game. As such, your specialised outfits are not restricted to the intended classes, but are all over the place.

As you know, they changed the leader classes, as such these are invalid:

leader_class = admiral
leader_class = general
leader_class = governor


If you look into the clothes files from the Stellaris folders, the new valid code for giving separate outfits to admirals and generals is:

#leader scope leader = { #scientists, generals, admirals, governor "gfx/models/portraits/humanoid/humanoid_02_outfit_scientist.dds" = { leader_class = scientist } "gfx/models/portraits/humanoid/humanoid_02_outfit_general.dds" = { leader_class = commander leader_should_wear_general_uniform = yes } "gfx/models/portraits/humanoid/humanoid_02_outfit_admiral.dds" = { leader_class = commander leader_should_wear_general_uniform = no } "gfx/models/portraits/humanoid/humanoid_02_outfit_governor.dds" = { leader_class = official } }

So, in your filles, change

random = { trigger = { leader_class = general }

with

random = { trigger = { leader_class = commander leader_should_wear_general_uniform = yes }

The same way for the admirals too. And dont forget about... leader_class = official.
Last edited by Cicattrix; 9 Jul, 2024 @ 4:13am
< >
Showing 1-9 of 9 comments
Devourwulf  [developer] 9 Jul, 2024 @ 9:02pm 
I'll check it out. They work for leaders, but the population specialists aren't random clothing what it looks like.
Last edited by Devourwulf; 9 Jul, 2024 @ 9:02pm
Devourwulf  [developer] 9 Jul, 2024 @ 9:11pm 
You are correct that they changed it, but somewhere in there hard coded lines still links to the old code, so it is currently working for me when changing leaders of generals, admirals, scientists and leaders. I'll change it to the newer code if they do get rid of those hard coded variables. The pops though I forgot to add randomly. I'll change it to the new format and make sure population gets random set of clothing for that occupation.
Devourwulf  [developer] 9 Jul, 2024 @ 10:48pm 
Updated the asset files hair/clothes.
Devourwulf  [developer] 10 Jul, 2024 @ 8:45am 
Later today I'll do the same for portraits.
Cicattrix 10 Jul, 2024 @ 10:13am 
I learned these things because I tend to check the mods that I download and I have learned to correct them, in order to not wait ages for the modders to fix them.
Thing is that I checked your mod into the game and from the start all the leaders had mixed clothes. Like general clothes into one scientist, or and an Admiral with ”governor” clothing. That its why I have come to tell you this.
I dont know about what hardcode are you talking about, but I havent observed none as working on the old sistem. I have returned to Stellaris after a few years out and I was forced to ”adapt” all the old clothing or portraits mods to the new sistem, because some modders were off for good and the old code was simply dead, the game distributing them to all the leaders.
But, is your choice...
Devourwulf  [developer] 10 Jul, 2024 @ 10:24am 
Nice catch. I did change the asset folder files so if stellaris catches this mod updated, you'll see the change or unsubscribe/subscribe. I will later today change gfx/portraits/portraits/wulfian_portraits to match with comander, official and etc.
Devourwulf  [developer] 11 Jul, 2024 @ 7:07pm 
If you find anything else.. Keep doing what you are doing. It is helpful when they do change things because I don't look at stellaris everyday and somethings they do break species from the latest patch. Its good that this is a minor thing that maybe since you have the DLCs possibility it is doing what you say. They did change there variables to match the new leader system, which of hard testing didn't see a difference on my end since of hard coding or possibly my if else statement helped.. That if else statement could have possibly gave random clothing what you saw but still worked. I am not 100% sure, but it is best to have it changed like you said which I did. Keep finding stuff like this, it is a good change.
Devourwulf  [developer] 11 Jul, 2024 @ 7:08pm 
This did help to look again at the codes seeing I did miss population clothing lol. At least my new mod I am working on Reforged_Humanoids will have the new change from the start.
Last edited by Devourwulf; 11 Jul, 2024 @ 7:09pm
Cicattrix 17 Jul, 2024 @ 8:05am 
glad to be of help! you do a nice and creative job!

auto-testing may be tricky... first, because you get used with your potraits and clothing so much, that you may not even ”see” them in game properly. second, because as you work excited on the mod, your mind rushes way ahead, thus not paying enough attention at verifying detalis which it considers already done.

I have made, for my personal use, a few potraits and clothing mashups and I have also made a few species using internet photos, dont make me tell how many times I needed to go back from the game because I havent observed some details on the file naming or in the coding.

so, this things happen to all, but this at least we can do as community, to help the content creators by beta testing.
< >
Showing 1-9 of 9 comments
Per page: 1530 50