[Mod] "Simoom's Galactic Dress Code"- NPC Appearance Overhaul

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

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

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

[Mod] "Simoom's Galactic Dress Code"- NPC Appearance Overhaul

Post by Simoom » Thu, 19. May 16, 20:49

[Disclaimer] This mod is neither based on nor related to Give us more Cloth please! Any similarity is incidental and no plagiarism is intended. I've been customizing NPC appearance by splicing codes into my save game since XR 1.x, so this has been on my to-do list for a long time... just so happens my other modding project gave me the know-how. :)

=======================================================================
Image
=======================================================================
Humanity's terrible fashion sense has provoked the ire of an ancient deity, who thus decrees...

DOWNLOAD
  • Steam
  • Nexus Mods
    [CAUTION] Back up your save game before trying this mod. It should be save game safe... but it does make extensive changes to NPC macro component values, and these do go into the NPC attributes which are stored in the save game. My understanding is that if you uninstall the mod and the game can't find the components a macro is pointing to, it simply uses the macro's default, so that's likely what will happen if you uninstall this mod.
INSTALLATION
  • Extract the mod folder to the "extensions" folder in the X Rebirth root directory (default C:\Program Files (x86)\Steam\steamapps\common\X Rebirth\extensions).
=======================
...Thou Shall be Beautiful
=======================

Simoom's Galactic Dress Code is a comprehensive NPC appearance overhaul containing exhaustive changes to the character macro architecture. It is made with the following goals:
  • Removal of Ugly Props - Simoom's Galactic Dress Code removes some of the most hideous props found in the game, so you'll never see them again.
  • Utilization of All Assets - Minus the ugly props it removes, Simoom's Galactic Dress Code uses every asset currently available to the (human) NPC models to create a true sense of life and variety in NPC appearance. This includes unique props and facial models used only on plot characters, and several exclusive assets not found in vanilla.
  • Variety with Distinction - While Simoom's Galactic Dress Code significantly increases the number of possible prop combinations, it aims to do so while retaining the distinctive look and feel of each class of NPC's. The primary uniforms for most NPC classes remain intact, while only props deemed appropriate for respective NPC classes (or looks good with the class uniform) are allowed.
  • Hunting for Beauty - Simoom's Galactic Dress Code is structured such that the more beautiful/exotic NPC facial models, clothing, and props spawn more rarely (and some rare combinations in fact look REALLY good). In effect this creates a new minigame, as finding that perfect look for your valued crew positions may just be tempting enough for players (such as myself) to invest their time in.
============================
Meet the New Faces of Rebirth
============================

Facial Models - Available to all classes.
  • The Gents - Three male facial models have been added to the macros of all NPC classes, including one unique (Falk Borman), one semi-unique (used only on "Argon Generic"), and one exclusive ("Old Guy") not used in vanilla. Additionally, two NPC's who previously only have one facial model assigned ("Argon Generic" and "Argon Farmer") now have access to all 7 facial models.
    ImageImageImageImageImageImageImage
  • The Ladies - The two "space grandma" facial models have been removed (this was done in character_macros.xml, not in the materials library like NoMoreGrandmasInSpace), and three unique models were made available to all NPC classes (Karen Stringer, Yisha Tarren, and an exclusive "African" head model not used in vanilla). Note that care has been taken to make sure no clipping issue occurs with Yisha's hair; if you notice anything out of place, let me know.
    ImageImageImageImage
List of Props - Availability based on class.
  • Banned - These props are hereby banished, by decree of Simoom Almighty, for the crime of being butt-ugly:
    Space Helmet from the 60's, Swimming Cap from the 20's, and the Giant Police Hat.
    ImageImageImage
  • Available - These props have been deemed worthy and are allowed to proceed. Custom-tailored class availability. Contains exclusive Navy Cap not used in vanilla.
    ImageImageImageImageImageImageImageImageImageImageImage
=============
NPC Class List
=============

Captain - Captains are the NPC class players interact with the most. They pretty much are the "face" of ships (how often do you comm the DO or Engineer?), as such I felt it necessary to give them more variety than the rest. Due to the lack of variety for female military uniforms, I added a rare chance for female Captains to use the Manager macro (it's a nice-looking uniform, anyway).
  • Military Captain's Uniform - Contains two exclusive (pure black and light grey) male uniforms not used in vanilla.
    Rarity: Common
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M), Navy Cap (M)

    ImageImageImageImage
  • Civilian Captain's Uniform - 3 color variants for each male uniform.
    Rarity: Uncommon
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M), Quilt Hat (M), Collar (F), Hood (F)

    ImageImageImageImageImage
  • Elite Uniform
    Rarity: Rare
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M), Navy Cap (M)

    ImageImageImage
Defense Officer - While the male defense officer has discrete body parts that can be randomized, the female defense officer only has one full body set (and it's listed as a "head" for whatever reason). I gave discrete body parts to female DO the way it should; unfortunately this meant the vanilla model had to be removed to avoid potential clipping issues (since the NPC would technically have four arms, four legs, and two torsos). It now uses the pilot uniform as the base (without possibility of a jetpack).
  • Defense Officer's Uniform
    Rarity: Common
    Props: Visor (M/F), Glasses (M/F), Shade (M), Mohawk (M), Quilt Hat (M), Helmet (M)

    ImageImage
  • Elite Uniform
    Rarity: Uncommon
    Props: Visor (F), Glasses (F)

    Image
Engineer - One thing that always bothered me was that Engineers always had their face covered (vanilla macro does not have a "no prop" option). That has been addressed, and I added some additional props for selection as well.
  • Engineer's Uniform
    Rarity: Common
    Props: Visor (M/F), Glasses (M/F), Mohawk (M)

    ImageImage
Marine Officer - In vanilla, Marine Officers use the pilot macro for some reason... they should use defense officer macro instead. Also added rare chance for it to use the Manager macro (the red uniform looks aggressive).
  • Marine Officer's Uniform
    Rarity: Common
    Props: Visor (M/F), Glasses (M/F), Shade (M), Mohawk (M), Helmet (M)

    ImageImage
  • Elite Uniform
    Rarity: Rare
    Props: Visor (F), Glasses (F)

    ImageImage
Pilot - First off, the unspeakably hideous space helmets are gone, so that's a massive improvement already. I also added a lot more props, including the jetpack for male pilots (for some reason vanilla only allowed female pilots to have it, even thought he prop works fine on the male model).
  • Pilot's Uniform
    Rarity: Common
    Props: Visor (M/F), Glasses (M/F), Jetpack (M/F), Mohawk (M), Quilt Hat (M)

    ImageImage
Architect - Gone are the silly hat in vanilla and the glasses (which does NOT go with the Architect outfit at all). The only allowed prop option is the visor.
  • Architect's Uniform
    Rarity: Common
    Props: Visor (F)

    Image
  • Elite Uniform
    Rarity: Rare
    Props: Visor (F), Hood (F)

    Image
Manager - Removed glasses for female managers (which don't go with the outfit), and added visors as well as rare uniforms.
  • Manager's Uniform
    Rarity: Common
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M)

    ImageImage
  • Elite Uniform
    Rarity: Rare
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M), Hood (F)

    ImageImage
Specialists - I felt it would be redundant to have Specialists use the same parts as Engineers. I also figured Specialists would be academics from their relevant fields (rather than being a "ship technician" sort of thing). Therefore I made them use the various civilian assets instead.
  • Specialists' Uniform - 3 color variants for each male uniform.
    Rarity: Common
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M), Collar (F), Hood (F)

    ImageImageImageImageImageImage
Canterans - One completely new male uniform (not used in vanilla) has been added, available as DV Male Type B (the two Canteran male uniforms appear identical, so I changed one completely). The number of available props have also been increased significantly for all Canteran macro types (and the ugly female glasses have been removed). Lastly, all Canteran NPC's will now use both Type A and Type B macros interchangeably (with higher chance for one or the other, depending on class).
  • Canteran Uniform - Contains one exclusive male uniform not used in vanilla, comes with 6 possible pants variants.
    Rarity: Common
    Props: Visor (M/F), Glasses (M), Shade (M), Mohawk (M), Quilt Hat (M), Navy Cap (M - Type A)

    ImageImageImageImage
======================
Known Incompatibilities
======================

Due to the exhaustive changes this mod makes to character_macros.xml and charactergroups.xml, it is likely to be incompatible with any other mod that also modifies these files.
[NOTE] Give us more Cloth please! appears to alter different sections of charactergroups.xml, so it is in fact compatible with this mod if you want to use both. :)
Last edited by Simoom on Tue, 24. May 16, 05:36, edited 22 times in total.

Senner
Posts: 211
Joined: Sun, 15. Aug 10, 15:12

Post by Senner » Thu, 19. May 16, 21:09

Nice!

Will try it some time soon.

Will you do the station interior as well? :)

Ezarkal
Posts: 1049
Joined: Wed, 22. Apr 15, 02:27
x4

Post by Ezarkal » Thu, 19. May 16, 21:39

WOHOOO!!! Many thanks...
I'll try this next time I play (most probably tonight). I'm sure I'll directly adopt it. I'll be sad to lose "Give us more Cloth please!", but this looks like an awesome alternative.

More specifically, thank you for allowing more people to use the only 2 hairstyles in the game (yisha's and mohak). I always thought having every NPC either bald or shaved was one of the game worst problems, when it came to NPC appearance (although not the only one, of course).
Humans are deuterostomes, which means that when they develop in the womb the first opening they develop is the anus.
This means that at one point you were nothing but an asshole.

Some people never develop beyond this stage.

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

Post by Simoom » Fri, 20. May 16, 04:21

Thanks for the feedback guys! :) Hope you enjoy it; as always feedback and suggestions are welcome.
Senner wrote:Nice!

Will try it some time soon.

Will you do the station interior as well? :)
You mean improving the texture/modeling of station interiors? I am not a 3D artist... this mod plays around with only Egosoft's existing assets, it's not a texture/model replacer.

But if you mean making the interior layouts more interesting using existing interior props, I can look into that... can't promise anything though, that's a lot more complicated to do than this thing (I'll go over the codes for Capital Ship Bridge for some ideas).
Ezarkal wrote:WOHOOO!!! Many thanks...
I'll try this next time I play (most probably tonight). I'm sure I'll directly adopt it. I'll be sad to lose "Give us more Cloth please!", but this looks like an awesome alternative.

More specifically, thank you for allowing more people to use the only 2 hairstyles in the game (yisha's and mohak). I always thought having every NPC either bald or shaved was one of the game worst problems, when it came to NPC appearance (although not the only one, of course).
Egosoft severely limits the variety of props used for generic NPC's, because a lot of more unique-looking stuffs are either reserved for plot characters, or given to specific factions/types (the mohawk hair is only available in vanilla on male Canterans, commanders, and managers). The rest of the cast look more or less the same, which I always found distressing.

Funny thing is since the mohawk itself is a prop, there's never any clipping issue (since if a macro chooses it, it won't choose any sort of hair). No such safety net exists for Yisha's hair, so I had to improvise so solutions to avoid clipping while allowing her head model to spawn with all possible cloth combinations (for example her head is allowed on the PMC Civilian body, but that body selection is located in a different macro from the main PMC Civilian macro, and doesn't have the overhead hood in its selection pool).

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

Post by Simoom » Fri, 20. May 16, 10:51

Hey folks - I dug around in the character asset files and found a few things not listed on the vanilla macro library at all. I tested them one by one and eliminated the stuffs that don't work, and added the working stuffs in. So here's the first update to this mod!

Update 5/20/16:
  • [New Faces] Added the following faces to macro selection pool:
    • "Old Guy" (assets/characters/argon_bodies/ar_m_head_old_guy) - Exclusive asset not used in vanilla. It's a lot less wrinkled than the standard model used by old male NPC's, and provides a good middle ground between that and the young model.
      Image
    • "African" (assets/characters/argon/heads/char_ar_f_head_african) - Exclusive asset not used in vanilla, presumably for black female NPC's (the skin tone is slightly darker, but not enough to cause matching issues with character's hands). Hair and eyebrows are dark, too, and should provide a nice alternative to all the identical-looking white faces.
      Image
  • [New Prop] Added the following prop (class-dependent):
    • "Navy Cap" (assets/characters/argon_bodies/ar_m_prop04) - Exclusive asset not used in vanilla. Appears to be a captain's hat of some sort, so I allowed it only for Argon Commander and DeVries Male type-A (which is an aged Commander uniform) macros.
      Image
  • [New Uniforms] Added the following uniforms:
    • "Commander Uniform - Variant A" (assets/characters/argon_bodies/ar_m_body04_a) - Exclusive asset not used in vanilla. It's a darker (pure black) version of the Argon Commander uniform with white accents (instead of orange). Goes very well together with the Navy Cap.
      Image
    • "Commander Uniform - Variant B" (assets/characters/argon_bodies/ar_m_body04_b) - Exclusive asset not used in vanilla. It's a light grey version of the Argon Commander uniform.
      Image
    • "Canteran Male - Type B" (assets/characters/argon/bodies/ch_ar_m_torso_03e) - Exclusive asset not used in vanilla. The file name implies it to be an Argon uniform... however, the aesthetics of it much more closely matches that of Canteran design (it looks like the counterpart to Canteran Female - Type A). Those who have paid attention to the game files probably already know that the two Canteran male models (Type A & B) have identical uniforms, therefore I took over the macro settings for Type B and made it into this. This asset appears to be unfinished, since it doesn't come with matching pants, so I used a selection of pants from Argon Civilian macros (they match perfectly fine, I already tested them all). There are 6 possible pants for this uniform.
      Image
  • [Other Changes] The following changes have been made to NPC macro selection:
    • All Canteran NPC classes will now use both Type-A and Type-B, with greater chance for one or the other depending on their class (Male Type-A is more military, Type-B is more civilian. Female is the reverse).
    • Added rare chance for Architects to use the PMC Civilian (Karen Stringer outfit) macro.

eMYNOCK
Moderator (DevNet)
Moderator (DevNet)
Posts: 2034
Joined: Thu, 21. Aug 03, 10:37
x4

Post by eMYNOCK » Fri, 20. May 16, 14:24

Also compatible to Give me some Cloth please!

But i have to say, nice Stuff you did... and much more work than i wanted to do. :lol:

1++

But i think i will stay with my little Cloth Mods. ;)

Regards


Edited:
because the mods are Compatible
Last edited by eMYNOCK on Sat, 21. May 16, 12:52, edited 2 times in total.
For my Steam Workshop, klick below:
Image

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

Post by Simoom » Fri, 20. May 16, 15:27

Steam version is up everyone! Sign up there for easy updates. :)

@eMYNOCK - Thanks for the endorsement! :D The approach of our mods are very different, so aside from the fact that they both add more NPC appearance, I don't think their end results overlap (if I understand correctly, your mod doesn't restrict different NPC classes to their old uniforms).

eMYNOCK
Moderator (DevNet)
Moderator (DevNet)
Posts: 2034
Joined: Thu, 21. Aug 03, 10:37
x4

Post by eMYNOCK » Fri, 20. May 16, 16:51

Well...

Code: Select all

<diff>

<!--Add Male Architects for your CVs and give them more cloth to choose from -->

<!-- Albion -->

<add sel='//character[@name="albion.architect"]'>
    <select character="albion.commander.male" />
    <select character="albion.commander.female" />
    <select character="albion.manager.male" />
    <select character="albion.manager.female" />
    <select character="albion.trader.male" />
    <select character="albion.trader.female" />
</add>

<!-- DeVries -->
...
...
...
Thats all that i've did.
For my Steam Workshop, klick below:
Image

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 6054
Joined: Mon, 15. Dec 03, 19:53
x4

Post by BlackRain » Sat, 21. May 16, 02:08

Looks good! Anything that adds more diversity with NPC's is great. Wish we had even more (especially more male and female heads and hair types)

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

Post by Simoom » Sat, 21. May 16, 02:55

BlackRain wrote:Looks good! Anything that adds more diversity with NPC's is great. Wish we had even more (especially more male and female heads and hair types)
I increased chance for props to occur during character generation significantly (from 1-5 to 4-5), so that should help a bit.

The problem with the "space grandmas" female models isn't so much that they are ugly but the fact that Egosoft didn't put in proper voice matching based on character's age... so it's really creepy when an old granny talks all flirty in a little girl's voice. ~_~

User avatar
Nikola515
Posts: 3025
Joined: Fri, 4. May 12, 07:40
x4

Post by Nikola515 » Sat, 21. May 16, 03:24

Nice mod :) Would it be possible to actually change color of clothing? For example have white engineers or captains?
It's not world hunger because we can't feed poor,it's because there will never be enough to feed the rich .....

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13914
Joined: Sun, 20. Nov 05, 23:45
x4

Post by UniTrader » Sat, 21. May 16, 03:48

Nikola515 wrote:Nice mod :) Would it be possible to actually change color of clothing? For example have white engineers or captains?
if its just a texture swap it should be doable, here roughly the required steps:
=> Copy existent textures and change their hue/Color (or paint a new one if you are skilled; if copying only diffuse map is required, rest can be re-used from the original)
=> copy the materials in the libraries/material_library.xml reffering to the new textures from before (as before: only new diffuse map, just keep the other values ;) )
=> copy NPC meshes and change the used materials for their clothing to the modified ones (note: requires hex editor - but not much magic. material name is in plain text in the mesh files and therefore easily changeable if the name doesnt get longer)*
=> also copy macro and component files and let them refer to the copied NPC meshes (for completeness sake also change materials here, but these are not evaluated by the game)
=> and as last step include the new macros into the character db



* just describing it this way because thats what i would do, i think the model converter can also handle these files.. but for a texture change its imo faster this way than importing, changing a string and exporting
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

Post by Simoom » Sat, 21. May 16, 11:07

Hey everyone:

For those of you who want to add back some of the "Banned" props, you can do so by adding them back into the selection pool under the "character_macros.xml" patch file.

For your convenience, here's the list of asset path for the "banned" props:
  1. assets/characters/argon_bodies/ar_m_prop03 - Appears identical to the Engineer visor.
  2. assets/characters/argon/props/ch_ar_f_body_spacesuit_jp_ht - Female space helmet.
  3. assets/characters/argon/props/ch_ar_m_body_spacesuit_jp_ht - Male space helmet.
  4. assets/characters/argon/props/ch_ar_f_prop_kappe - The ugly red & white "swimming cap" found on female traders.
  5. assets/characters/argon/props/ch_ar_f_prop_hat_b - Architect's hat (WARNING: Has clipping issue with Yisha's hair)
Simply add an entry like this under the <model type="props"> node:

Code: Select all

<select index="1" weight="4" ref="assets/characters/argon/props/ch_ar_m_prop_brille" />
Give the "index" a unique value, and tweak the "weight" value to adjust the chance of the prop being chosen.
Nikola515 wrote:Nice mod :) Would it be possible to actually change color of clothing? For example have white engineers or captains?
UniTrader already provided a pretty detailed answer. :) But yeah... messing with texture files is not something I know how to do, yet. I also would prefer to avoid creating new macros, since this will cause problems if the mod is uninstalled (say you hired a NPC who uses a macro added by the mod, then the mod is removed, the NPC will glitch out).
Last edited by Simoom on Mon, 23. May 16, 17:08, edited 3 times in total.

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13914
Joined: Sun, 20. Nov 05, 23:45
x4

Post by UniTrader » Sat, 21. May 16, 18:01

Simoom wrote:UniTrader already provided a pretty detailed answer. :) But yeah... messing with texture files is not something I know how to do, yet. I also would prefer to avoid creating new macros, since this will cause problems if the mod is uninstalled (say you hired a NPC who uses a macro added by the mod, then the mod is removed, the NPC will glitch out).
from my expierience with removing macros from a save they will simply disappear, the save will probably load just fine ;) but it could be that the dialogue tree instace isnt removed properly because the actors arent really destroyed..
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

User avatar
Simoom
Posts: 1100
Joined: Sat, 30. Oct 10, 14:14
x4

Post by Simoom » Sun, 22. May 16, 14:09

Update 5/22/16:
  • [New Props] The following props have been "Unbanned". I am still not a big fan of them, but they look passable and X Rebirth's prop selection is already pitiful as it is... so if this adds a bit more variety, so be it. Refer to the NPC Class List to see what classes have access to them.
    ImageImage
  • [Uniform Changes] The following uniform assignments have been added:
    • Captains now have a rare chance to use the Manager macro. This is to make up for the fact that there are 3 military male commander uniforms, and only 1 female set; besides, the red looks pretty good.
    • Increased chance for the Yisha uniform to occur for Defense Officers. This is to add some variety, since right now 3 classes use the female pilot uniform (Defense Officer, Marine Officer, and Pilot).
    • Marine Officers now have a rare chance to use the Manager macro. Again, to add variety, and the red is appropriate here (pretty aggressive-looking).

Post Reply

Return to “X Rebirth - Scripts and Modding”