Results 1 to 3 of 3

Thread: Character Generator (CGen)

  1. #1
    Super Moderator BoneCrafter's Avatar
    Join Date
    Mar 2012
    Posts
    30

    Character Generator (CGen)

    Open the files game/modkit/tutorial/tutorialDatablocks.cs and game/dataBlocks/characterGenData/characterGen_SpecialGirls.cs with your code editor. You may use the SpecialGirls.cs and SpecialGuys.cs for reference.

    The CGen defines all of the assets used to make complete characters or sets of characters that we can spawn in the world.

    The accessory datablocks define accessories that characters can wear
    Code:
    datablock AccessoryData(some_data)
    Often we use variables to define lists of accessories or other character features
    Code:
    $CharacterGen::pigmyChickHairSet = "bald_data;Afra_data;shagChicks2_data";
    The game will pick randomly from these lists

    Character gen datablocks define a character's skin, body type, accessories, power moves, etc.
    Code:
    datablock CharacterGenData(someChick)
    The character class datablocks define what character gens are included in a character class. Character classes are used to spawn characters from wait nodes.
    Code:
    datablock CharacterClassData(someClass)
    Texture and HSL variable sets are used to define a HSL (Hue, Saturation, Lightness) range a texture can have
    format is: "texture;HSL low,HSL high"
    Code:
    $CharacterGen::chickPantiesPurpleHSL = "chicks/accessories/pants/textures/PantiesHSL;0.25 -0.5 -0.5,0.35 0.2 0.1";
    The game will pick randomly within the range

    Morph weight variables are used to define body types.
    Guys: Buff, fat, tall, short
    Girls: Hot, fatty, athletic, petite
    Code:
    morphWeightsLow0 = "0.0 0.6 0.0 0.0";
    morphWeightsHigh0 = "0.4 1 0.0 0.0";
    The game will pick randomly within the range
    *Note: Accessories may not morph correctly depending on the number of *.dtm files used to create the accessory.

    We use inheritence often to define variations of other character gen datablocks.
    Code:
    datablock CharacterGenData(someChick : somePurpleFatChick)
    Last edited by BoneCrafter; 05-25-2012 at 11:05 AM.

  2. #2
    Colonel Korbe78's Avatar
    Join Date
    Dec 2011
    Location
    New England,U.S.A.
    Posts
    291
    Quote Originally Posted by Vermilion29 View Post
    Also, is it possible to get the decompiled CharacterGen files from BoneTown? There seem to be a number of classes and random chick types that aren't included in the BoneCrafter .cs files (namely the "boss" chicks, like Britney).
    Yes! I miss the Jewish Wife, 18 oriental daughter & the twins! (Amy where are you?)
    I love redheads & killing zombies!

  3. #3
    Super Moderator BoneCrafter's Avatar
    Join Date
    Mar 2012
    Posts
    30
    The engine will auto remove accessories durring sex according to the slot they occupy. Pants, dresses, and underwear will always be removed. Shoes and tops are removed at random. Everything else such as jewelry stays on.

    For example in the accessory file game/modkit/tutorial/TutorialDatablocks.cs:

    Code:
    datablock AccessoryData(shortsDenim_data : dudeAccessory_data)
    {
       slot = $Character::ACCSLOT_BOTTOM;
       removeList = "thighs_d;thighs1_d;thighs2_d;thighs3_d;thighs4_d";
    
       morphName0 = "~/data/dudes/accessories/pants/dtm/shortsBuff.dtm";
       morphName1 = "~/data/dudes/accessories/pants/dtm/shortsFat.dtm";
       morphName2 = "~/data/dudes/accessories/pants/dtm/shortsTall.dtm";
       morphName3 = "~/data/dudes/accessories/pants/dtm/shortsShort.dtm";
    
       numReplacementMaterials = 1;
       originalMaterial0 = "game/data/dudes/accessories/pants/textures/ShortsDenim";
       replacementMaterial0 = "game/data/dudes/accessories/pants/textures/ShortsDenim";
    };
    slot = $Character::ACCSLOT_BOTTOM; tells the denim shorts to occupy the bottom slot (which gets removed durring sex).

    Here is a link to all of the BoneTown datablock files:
    http://cdn.d-dub.com/bonecrafter/BT_Datablocks.zip

    Please note that some datablocks from BoneTown will not work right off the bat. Do not replace your existing modkit files with the BoneTown files. Instead you will want to copy and paste the datablocks you want from bonetown into your existing modkit datablock files (Such as game/modkit/tutorial/TutorialDatablocks.cs).
    Last edited by BoneCrafter; 05-29-2012 at 10:39 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
****Custom Design Skin By BoneMaster****