STEAM GROUP
State of Decay Modding Crew SoDModding
STEAM GROUP
State of Decay Modding Crew SoDModding
21
IN-GAME
184
ONLINE
Founded
22 September, 2013
Language
English
Novamonk 23 Sep, 2013 @ 8:38am
Editing .cdr files
Over on reddit /u/natiabrosca posted a mod where Maya's outfit was changed to be more military like.

Link[i.imgur.com]

They were nice enough to post their process in the comments section( Link )

Originally posted by /u/natiabrosca:
Find Game>characters>female>human>story_characters. Open up a .cdf file in notepad and get editing.
All the meshes etc are really neatly laid out in folders, so you can just use things like the body folder for reference to tops, legs for pants etc etc. You'll see how it's laid out in my example. The only tricky part is finding the right boobs. I ♥♥♥♥ you not. There's a chest piece that can't be used with the likes of the army shirt because you'll get random tits poking through the mesh.
This is my current Maya .cdf. She has the army shirt, plain green combat pants, and an army hat to match. Feel free to use it however you see fit. Variants are just that, different colours of the outfit. There's no real quick way of viewing them, so you just have to try them out.
<?xml version="1.0" ?><CharacterDefinition> <Model File="characters/female/human/skeleton/skeleton.chr" Material="characters/female/human/skeleton/skeleton"/> <AttachmentList> <Attachment AName="body" Binding="characters/female/human/body/army/army.chr" BoneName="" Flags="0" Material="characters/female/human/body/army/army.mtl" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/> <Attachment AName="legs" Binding="characters/female/human/legs/combat/combat.chr" Material="characters/female/human/legs/combat/variant/v01.mtl" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/> <Attachment AName="skin" Binding="characters/female/human/skin/medsleeves/skin.chr" Material="characters/female/human/skin/variant/nocleavage02.mtl" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/> <Attachment AName="head" Binding="characters/female/human/heads/maya_torres/head.chr" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/> <Attachment AName="hair" Binding="characters/female/human/hair/army_cap/hair.chr" Material="characters/male/human/hair/brown03.mtl" BoneName="Bip01 Head" Flags="0" Position="1.9475756e-005,0.017000001,1.628" Rotation="1,0,0,0" Type="CA_SKIN"/> <Attachment AName="hat" Binding="characters/female/human/parts/hats/army_cap/cap.chr" Material="characters/female/human/parts/hats/army_cap/variant/v02.mtl" BoneName="Bip01 Head" Flags="0" Position="1.9475756e-005,0.017000001,1.628" Rotation="1,0,0,0" Type="CA_SKIN"/> <Attachment AName="eye_left" Binding="" BoneName="eye_left_bone" Flags="0" Position="-0.032982595,0.13186496,1.8033698" Rotation="0.99999988,-3.7252907e-009,8.9406981e-008,0" Type="CA_BONE"/><Attachment AName="eye_right" Binding="" BoneName="eye_right_bone" Flags="0" Position="0.032982595,0.13186496,1.8033698" Rotation="0.99999988,-3.7252907e-009,8.9406981e-008,0" Type="CA_BONE"/></AttachmentList> <ShapeDeformation COL0="0" COL1="0" COL2="0" COL3="0" COL4="0" COL5="0" COL6="0" COL7="0"/> </CharacterDefinition>
The chest piece is "characters/female/human/skin/variant/nocleavage02.mtl". If you want her wearing say the shirt with more cleavage, you'd have to use the appropriate version in the female>human>skin folder.
It takes a little experimentation but it's entirely possible to mod any main story characters. Use the same process but in the male>human folder. I like putting everyone I can in the Shark hoodie..
Once you're done, use CTRL+S to save with the same extension and boot up your game.
Remember to back up originals, obviously. Although the worst that can happen when doing this is there just not being any clothing. So you look like the invisible man with a rucksack. [/qoute]
Last edited by Novamonk; 30 Sep, 2013 @ 9:27am
< >
Showing 1-6 of 6 comments
Warhead 23 Sep, 2013 @ 9:02am 
Good eye, I'll post my findings here later as well.
Mikfail 23 Sep, 2013 @ 1:18pm 
love it, this is the start of character customization :)
Tali 23 Sep, 2013 @ 2:03pm 
Glad you like the find! (natiabrosca from reddit here)

I'm useless with scripting, so I mainly do cosmetic mods for games. I hope to bring in some meshes and textures in the future.
_________LuNandor 29 Sep, 2013 @ 2:14pm 
Here's a more friendly version of that code snippet with some added comments, if it helps.

I think it might be better to change the subject of this post to "Editing .CDF Files" since we're modifying the CDF for which CHRs it points to, rather than CHRs themselves. Should help with search engine optimization as the other would be misleading, no?

I'd also recommend Notepad++ (a free, and full featured, code editor) to open the files, then change the language in the language menu to XML so it is much more readable with the color coding.


=========================
.CDF File Contents Start Here
=========================
<!--Note: This code can be pasted straight into a file, if needed; this comment, and other comments, are XML-based and thus won't cause any trouble.-->

<?xml version="1.0" ?>

<!-- Start of character information -->
<CharacterDefinition>

<!-- Which skeleton to apply the materials and meshes to -->
<Model File="characters/female/human/skeleton/skeleton.chr" Material="characters/female/human/skeleton/skeleton"/>

<!-- Start attachments (Components that make up the parts of the character to be rendered -->
<AttachmentList>

<!-- All the pieces go here -->

<!-- Torso -->
<Attachment AName="body" Binding="characters/female/human/body/leatherjacket_leggings/leatherjacket_leggings.chr" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN" Material="characters/female/human/story_characters/maya_torres.mtl"/>

<!-- Leggy bits -->
<Attachment AName="legs" Binding="characters/female/human/legs/leggings/leggings.chr" Material="characters/female/human/legs/leggings/variant/v01.mtl" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/>

<!-- The skin for all of the body except the skull and front of the neck.

Note: it looks like the .chr and the .mtl have to be matched properly or they don't render which results in all of your character's skin, except the head, becoming invisible.

Secondary Note: Some of the female torso clothing skins/materials will render extra skin layers onto the character so you may have to roll your own skin for the clothing in order to resolve that issue, as well -->
<Attachment AName="skin" Binding="characters/female/zombie/skin/shortsleeve/skin.chr" Material="characters/female/zombie/skin/shortsleeve/skin.mtl" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/>

<!-- The skin for the skull, front of the neck, eyes, and teeth -->
<Attachment AName="head" Binding="characters/female/human/heads/maya_torres/head.chr" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/>

<!-- The skin to be applied to the hair mesh -->
<Attachment AName="hair" Binding="characters/female/human/hair/hair06/hair06.chr" BoneName="" Flags="0" Position="0,0,0" Rotation="1,0,0,0" Type="CA_SKIN"/>

<!-- Left eye and right eye in the default models appear to always use one eye in the skin, then grab that region of the skin to be applied to both; so if you want two different colored eyes you'll have to build your own region then modify the odd eye's position data to target it -->
<Attachment AName="eye_left" Binding="" BoneName="eye_left_bone" Flags="0" Position="-0.032982595,0.13186496,1.8033698" Rotation="0.99999988,-3.7252907e-009,8.9406981e-008,0" Type="CA_BONE"/>

<!-- Right eye - see previous entry for notes -->
<Attachment AName="eye_right" Binding="" BoneName="eye_right_bone" Flags="0" Position="0.032982595,0.13186496,1.8033698" Rotation="0.99999988,-3.7252907e-009,8.9406981e-008,0" Type="CA_BONE"/>

</AttachmentList>

<ShapeDeformation COL0="0" COL1="0" COL2="0" COL3="0" COL4="0" COL5="0" COL6="0" COL7="0"/>

</CharacterDefinition>
Last edited by _________LuNandor; 29 Sep, 2013 @ 2:20pm
Novamonk 30 Sep, 2013 @ 9:29am 
Originally posted by Phacops:
I think it might be better to change the subject of this post to "Editing .CDF Files" since we're modifying the CDF for which CHRs it points to, rather than CHRs themselves. Should help with search engine optimization as the other would be misleading, no?

I'd also recommend Notepad++ (a free, and full featured, code editor) to open the files, then change the language in the language menu to XML so it is much more readable with the color coding.


Thanks for catching the error in the title.

Also thank you for the tip on changing it to xml. I've been using Notepad++, but I didn't of changing it to .xml.
_________LuNandor 30 Sep, 2013 @ 7:46pm 
Absolutely, on both counts :)

I use a lot of XML codes in my web development since the core pages get ported to RSS-XML when I drop them live - I might as well be reading greek if it isn't color coded, haha.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: 23 Sep, 2013 @ 8:38am
Posts: 6