Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 10 11 [12] 13

Author Topic: [v.0.01c] Dwarf Appearance Visualizer  (Read 51782 times)

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #165 on: June 16, 2016, 01:00:35 pm »

Work in progress image crowd sourcing here!

If anyone knows alternatives to this fecking site, please share it. I still need the complete list of descriptions so anyone who feels like rooting in the raws or just checking the range on their current dwarves much thanks.
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #166 on: June 16, 2016, 01:45:53 pm »

complete list of descriptions you say?

Spoiler (click to show/hide)
« Last Edit: June 16, 2016, 08:53:35 pm by Meph »
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #167 on: June 16, 2016, 01:56:39 pm »

:D
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #168 on: June 16, 2016, 01:57:32 pm »

Code: [Select]
command_result dump_bp_mods(color_ostream &out, vector <string> & parameters)
{
    remove("bp_appearance_mods.csv");
    ofstream output;
    output.open("bp_appearance_mods.csv");

    output << "Race;Caste;Bodypart Token;Bodypart Name;Tissue Layer;Modifier Type\n";

    for (int creatureIndex = 0; creatureIndex < world->raws.creatures.all.size(); creatureIndex++)
    {
        auto creatureRaw = world->raws.creatures.all[creatureIndex];
        for (int casteIndex = 0; casteIndex < creatureRaw->caste.size(); casteIndex++)
        {
            df::caste_raw *casteRaw = creatureRaw->caste[casteIndex];
            for (int partIndex = 0; partIndex < casteRaw->bp_appearance.part_idx.size(); partIndex++)
            {
                output << creatureRaw->creature_id << ";";
                output << casteRaw->caste_id << ";";
                output << casteRaw->body_info.body_parts[casteRaw->bp_appearance.part_idx[partIndex]]->token << ";";
                output << casteRaw->body_info.body_parts[casteRaw->bp_appearance.part_idx[partIndex]]->name_singular[0]->c_str() << ";";
                int layer = casteRaw->bp_appearance.layer_idx[partIndex];
                if (layer < 0)
                    output << "N/A;";
                else
                    output << casteRaw->body_info.body_parts[casteRaw->bp_appearance.part_idx[partIndex]]->layers[layer]->layer_name << ";";
                output << ENUM_KEY_STR(appearance_modifier_type, casteRaw->bp_appearance.modifiers[casteRaw->bp_appearance.modifier_idx[partIndex]]->type) << "\n";
            }
        }
    }

    output.close();

    return CR_OK;
}

https://docs.google.com/spreadsheets/d/1c3y2lXEkgdndpat3g09t5YqWw9Ra9X7A8yiAIV5J0jk/edit?usp=sharing
« Last Edit: June 16, 2016, 02:01:02 pm by Japa »
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #169 on: June 16, 2016, 02:59:27 pm »

I've updated the doc to include valid ranges.

Fun fact: hair reaches maximum length after just 3 years, not including styling.
Also the description is the same anywhere after a year's worth of growth.
Logged

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: [NEED HELP] Dwarf Appearance Visualizer
« Reply #170 on: June 16, 2016, 03:36:27 pm »

gimp pallete file with all colours, named

https://www.dropbox.com/s/yox6h9qhbwgu0os/Dwarf_fortress.gpl

Which are skin colours and which eye? No worries, it's quite short.

Also, i say we steal this to read Dwarf Fortress

How are you exporting/importing the Dwarf information? What information are you including?

I'm using Dfhack lua scripting to export the data to plain text and python to read the data.

Here's my lua script hope it helps.
Spoiler (click to show/hide)



Can you have curly and greasy/dense hair in-game?
« Last Edit: June 16, 2016, 05:03:41 pm by Novel Scoops »
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #171 on: June 16, 2016, 08:41:00 pm »

@Meph - please, use a code block instead of a quote!  (or just spoiler it, I suppose)

(e: thanks, much better!)
« Last Edit: June 16, 2016, 10:46:13 pm by PeridexisErrant »
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #172 on: June 16, 2016, 08:53:50 pm »

@Meph - please, use a code block instead of a quote!  (or just spoiler it, I suppose)
Better?
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #173 on: June 16, 2016, 10:37:59 pm »

I don't think there's anything stopping hair from being both greasy and curly, but the game might only show one description.
Logged

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #174 on: June 17, 2016, 06:36:07 am »

Can dwarves be gigantic, or is that only for animals? I keep seeing "gigantic but skinny" in that list and i'm not sure how to reconcile it. Can a dwarf be so muscly and tall that he's "huge", yet be thin?

« Last Edit: June 17, 2016, 07:08:06 am by Novel Scoops »
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #175 on: June 17, 2016, 06:46:25 am »

Dwarfs have both height and with attributes. He can be really tall, but slender.
Logged

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #176 on: June 17, 2016, 07:08:57 am »

Dwarfs have both height and with attributes. He can be really tall, but slender.

So "huge", "gigantic" and all that don't apply? I only ask because i swear I've seen "enormous" humans. They do apply


I used the command "gui/gm-editor" in dfhack while having a dwarf in game chosen with the cursor beforehand. I tried editing values and observed how they changed the description of the dwarves. The values used by this visualizer are found in "appearance>bp_modifiers". The values are stored as numbers and I have some of their translations written down here.

Rallor did you really push those numbers? Take the "very round eyes" for example. Can they go up to extremely or incredible?

Actually, is it safe to assume everything can be extreme or incredible?
« Last Edit: June 17, 2016, 01:54:17 pm by Novel Scoops »
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #177 on: June 17, 2016, 06:16:24 pm »

The image crowdsourcing survey is now complete! This is a separate project that will soon have it's own thread, based on providing a best match to your dwarf's description from a pool of submitted images (accepting submissions!). Japa (spoilers!) has a different project, where he will be generating a model for each dwarf much like the original post in this thread. I hope they can complement each other. Godspeed!
« Last Edit: June 17, 2016, 06:18:19 pm by Novel Scoops »
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

CharonM72

  • Bay Watcher
  • Proficient Laughingdwarf
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #178 on: June 18, 2016, 02:16:26 am »

Suddenly all this is moving very quickly. I hope to see something functional soon; a picture of a dwarf is worth a thousand words (almost literally, in DF's case).
Logged
Ever wanted to see your DF world Google Earth-style? Check out my Satellite Map Maker!

He he, yeah, I was like, "how are we going to be sure the leader will die in the trap?"  And then I saw the 10 adamantine weapons in the trap.  Then I was like, "but what if they live through the fall if they dodge?"  Then I saw the giant magma pool.

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: [v.0.01c] Dwarf Appearance Visualizer
« Reply #179 on: June 18, 2016, 12:12:07 pm »

Progress so far.

Spoiler (click to show/hide)

This is as much about teaching myself WPF as anything else.
Logged
Pages: 1 ... 10 11 [12] 13