Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: Rust_Knight on November 30, 2020, 06:40:15 am

Title: DWARF VISION ingame realtime portrait generator [0.2.2 FABULATION UPDATE]-HALTED
Post by: Rust_Knight on November 30, 2020, 06:40:15 am
WHAT IT IS
 


DWARF VISION
was created with the idea in mind to see the main protagonists (and antagonists) of Dwarf Fortress through procedurally generated portraits.
Ideally, these portraits would closely correlate to their in-game textual physical description.

It reads data from a running Dwarf Fortress game and creates portraits (at runtime) of the creatures currently in focus, showing them in-game. Generated portraits are persistent upon resuming a saved game.
   
This would bring a bit more familiarity with Dwarf Fortress creatures and easily identify them through their appearance.
As the number of creatures you encounter grows, Dwarf Vision will aid you in keeping a better mental track of whom you've met and interacted with and what (mental or physical) state they currently find themselves in.

At its peak, Dwarf Vision would let you also see objects like procedural artifacts and art created within the Dwarf Fortress world, as well as certain relevant parts of the environment, the current looked at creature finds itself in.


[Some quality loss when converted to GIF]

(https://i.imgur.com/A8ZkPEc.gif)





USAGE EXAMPLES



Currently it can be used to show one portrait at a time, depending on who is in focus, like so:   

(https://i.imgur.com/fO8qmev.gif)
   


Or, it can be used to display multiple portraits based on look mode cursor position and caption area size

(https://i.imgur.com/04bNi0Y.gif)





STEP BY STEP INSTALL

Spoiler (click to show/hide)

Further usage:
Spoiler (click to show/hide)




UPCOMING



This is a preview of what is to come and what it could look like.
The actual generated portraits can look exactly like this, slightly different or completely different depending on the results of a more serious lore/anatomical analysis.
The actual release will match an appropriate size scale between races.


Some early trials of a female dwarf.

(https://i.imgur.com/YeJVgQ3.png)


Female Elf prototype

(https://i.imgur.com/xZtR25r.png)


Goblin prototype

(https://i.imgur.com/D3VwUrL.png)







THE FUTURE



This project is a love letter to Dwarf Fortress, but it can become more than this. It is just enough to play with and also start a discussion.
The sooner this discussion starts, the better it will shape the project in the direction of Dwarf fortress' lore.
   
Ideally Dwarf Vision would display much of the relevant Fauna and Flora of Dwarf Fortress.
You can expect more exotic display of creatures, such as lizard-folk (https://dwarffortresswiki.org/index.php/DF2014:Lizard_man) or dragons (https://dwarffortresswiki.org/index.php/DF2014:Dragon), once the main races have been established.

   
Thou some are more tricky than others to implement, we are weighting the possibility of:
- expressions (i.e. mental states)
- equipment
- different age representation
- wounds
- full body paper dolls


Some experimentation with damaged Dwarf Gear + wounds

(https://i.imgur.com/JI86QeP.png)

More research needs to be carried out on 2d graphics manipulation algorithms, and possibly machine learning solutions, to gain leverage over the large workload that stands before us.
   

About the editor and portrait interpreter


Since the program behind Dwarf Vision is written in Qt/c++, a Linux and Mac build should not be far away, thou testings and tweaks need to be carried out.
The portrait editor was mostly made around our needs to help us make technical/artistic decisions, but it can also be used to modify already created dwarfs or generate new ones.
It doesn't have the prettiest of interfaces and some minor bugs are still around, particularly related to the Collection feature.
Regard it as a very rough prototype.

Editor interface breakdown image (https://i.imgur.com/FjtU5Lw.png)

A priority is also to rework the way Dwarf Vision talks with Dwarf Fortress for its data export. It will either be via raw TCP or by using Dfhack's protobuff.






HELPING DWARF VISION GROW



PATREON
   
Supporting us and the project via our Patreon  (https://www.patreon.com/dwarfvision)is vital for a long term commitment to this project.
Among other rewards, the first tier will be able to participate in polls as to what feature/race to prioritize next.
This said, the Dwarf Fortress community will still take part in polls regarding general feature debates and feedback.

Due to recent global events we do not have major obligations that keeps us busy in our day-to-day lives.
Either being a blessing or a curse, we are free to allocate a considerable portion of our daily time to this project.
While we could pursue other activities, we wanted to do something we enjoy for a change and see what can come out of it.

It's through each other's concrete effort that a creative energy can stem.
The more we feel this project is wanted, the more creative power we get to further work on it.
If we manage to get a small momentum going, we can vastly expand Dwarf Vision.




SPREADING THE WORD

Do not underestimate this part. Spreading the word is equally important as financial support.
You can save portraits as PNGs for situations where you feel a certain face tells a story you wish to share.
Please consider sharing/showcasing it where ever you feel this project is fit for showing.
Without people knowing such a project exists, we would have a hard time moving forward.

If you feel like it (and want to boast about it), you can always let us know where you made Dwarf Vision known.
All efforts are greatly appreciated!


TALKING TO US

Giving width, height and depth (metaphorically speaking :) ) to Dwarf Fortress creatures is a process that involves a lot of assumptions.
We had fun creating it, but since this is a project that addresses a community, it needs its fair share of input.
That is why flame wars civilized debates are needed to distill vital feedback.
Write your thoughts and recommendations either here or via any other means of communication (we check every personal message as well!).
Reading them will certainly be a joy and a nice tonic for our morale.

(There is also a Discord channel, see below at About Us/Contact)
   

A special note to forum lurker/ninja/ghost readers

Most of the time I'm one myself and I think that a lot of the readers out there are the same. Consider actively joining the discussion.
Few might be swayed by this appeal, but even in few numbers, we think you might have some interesting thoughts to share.
At this stage of development feedback will be invaluable, so give a thought about reaching out to us.


Thank you for reading. We've got a lot lot to talk, so now it's your turn :) !




DOWNLOAD

Dwarf Vision (win_x64) (https://dffd.bay12games.com/file.php?id=15325) hosted at Dwarf Fortress File Depot
source code (https://github.com/RustKnight/Dwarf-Vision) hosted on Github





ABOUT US


We are two good friends, an artist (Aqua) and a programmer (RustKnight), creatures of medium size prone to great ambition!
We love Dwarf Fortress, procedural content and roguelikes in general.
A lot of fun (and FUN!) has been had doing this project. Once we got moving we just couldn't stop.
We really enjoyed the development process so far and we're hoping that this could grow into something truly beautiful.

Contact: Send us a personal message here on Bay 12 - it's hooked to our emails and we'll be sure to read it.

Or you can join our Discord (https://discord.gg/EDuH7a8qgM) channel.




CREDITS SO FAR


To Tarn Adams and Zach Adams for embarking on such a wondrous quest, that also calls others to live and tell their own adventures.
Dfhack which lays the foundations for many incredible works, that also accelerated the development of this one considerably.
   
Master advisors: Rose, _Q (presumably Quietust), Lethosor, WNight, s3rius and Dragos who kindly offered their time, patience and guidance to accelerate the project's progress when most in need. We thank you!





HALL OF SUPPORTERS

Without your support and interest we wouldn't have gotten this far.
It's what keeps us going with such an ambitious project.
Onwards Together!



Resok
Danae
BlackChaos
Marius
Frankenstein Joe
Ausar
Peerless
Jasp Spice
Seen-a Mashcake
Charlie
Alex
Sam



Some Patrons used their real names, therefore some were simplified or changed to maintain privacy. Reach out if you want something changed or removed.




PROJECT STATUS


The project is now halted.
I believe it is only fair to post a small update of what has become of this project.
The way me and Aqua work is usually dedicate full time on projects to gather momentum and drive through it. We sort of tried giving it a part-time try, but it simply doesn't hold.
Thus, needing to find a sustainable source of income that we can maintain ourselves with, we no longer have the time to work on it.
That's one side of the story - the other one is that our current workplace contract prevents us from working on personal projects while employed. But I'd say this was 30% of the reason why we decided to suspend it.
At the time we took this decision, we also informed our Patrons to stop donating. If you happen to stroll over this project, we wouldn't encourage you to donate, given its current status.


So, does that mean it's canceled?
I wouldn't exclude that in the future we would come back to it. We loved developing it and we had some interesting ideas we wanted to see come alive.
In the event that we would gain some financial independence, we would be delighted to come back and continue our work.



We thank you for your love, attention and support!












Title: Re: New graphical mod release
Post by: Rust_Knight on November 30, 2020, 06:43:26 am
   [ 0.2.2 Fabulation Update ] - DOWNLOAD LINK NOW ACTUALLY POINTS TO THE LATEST UPDATE, sorry for that!

NOTE: overwriting symbols.xml is no longer needed, hence it's now been removed from the Dwarf Vision.rar distribution archive.

   For those who already have Dwarf Vision installed:
        - overwrite the Dwarf_Vision.exe (DWARF_FORTRESS_FOLDER\Dwarf_Vision_x64_win_release) and dwarfinfo.plug.dll (DWARF_FORTRESS_FOLDER\hack\plugins)
        - delete the "message.txt" file from within the main Dwarf Fortress folder (DWARF_FORTRESS_FOLDER\temp)
        - if running an older version, update your Dfhack version to 0.47.04-r4-Windows-64bit (message me if you want compatibility with older Dfhack versions)


(https://i.imgur.com/Qx3X8TM.png)
   
   Features

   - added Fabulation feature (press question mark button for more info)

   - added long/medium/short double braided curly and straight

   - added long/medium/short braided straight

   - added a placeholder for female dwarfs (write me up on how you feel about it :)

   

   
   


   
   Quality of Life

   - portraits now get saved with their names + IDs
   
   

   Bug Fixes

   - fixed game freezes when playing with certain mods on large fortresses (needs more testing)

   - fixed a crash occurring when toggling filters on/off and generating portraits

   - fixed an asset filtering bug (displayed text only) in relation with Braided / Double Braided

   - known issue: when click ALL on filter list, the list incorrectly displays used filters

   - known issue: color displayer does not correctly refresh selected color upon loading a portraits
        (workaround: generate another portrait, then go back to initial portrait)




   Note: "No Fabulation" mode will still fabulate when hair is mentioned to be long/short/etc but no hairstyle (braided, neatly combed, etc) is mentioned.

   Your feedback is invaluable and most welcomed!
Title: Re: DWARF VISION in-game realtime Portrait Generator
Post by: Rust_Knight on December 01, 2020, 07:59:56 am
EDIT: For those of you having trouble installing DV, here's a video link with the instructions:

https://www.youtube.com/watch?v=IFnkZU1Gr9U

In case you run into further problems, write in the thread or a direct message.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Teneb on December 01, 2020, 09:01:37 am
This is very cool.

You may want to move this to the graphical mod or the utilities board though.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Enemy post on December 01, 2020, 08:59:28 pm
This is extremely impressive.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: justaguy3 on December 01, 2020, 10:43:29 pm
This is incredible! Exactly the kind of thing to get you truly engaged in a fort, bravo!
Extremely excited to see this progress. What you have so far is way better than I'd have imagined, I'd expect procedurally generated art to be, well, bad, but this looks quite nice!
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 03, 2020, 06:35:48 pm
This is very cool.

You may want to move this to the graphical mod or the utilities board though.
Any idea if the actual link to this post will also change if topic is moved?



This is extremely impressive.
Thank you, Enemy Post! We tried our best :)



This is incredible! Exactly the kind of thing to get you truly engaged in a fort, bravo!
Extremely excited to see this progress. What you have so far is way better than I'd have imagined, I'd expect procedurally generated art to be, well, bad, but this looks quite nice!

Hype is greatly appreciated from you all! Thanks a lot!

Did you guys already try it out? Encountered any problems?

Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Iä! RIAKTOR! on December 03, 2020, 07:07:25 pm
Can you make it like DT? I mean, as program that loads as different window and don't need installation as script.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Lidku on December 03, 2020, 07:29:11 pm
Holy crap! This is awesome!
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 04, 2020, 04:44:38 am
Can you make it like DT? I mean, as program that loads as different window and don't need installation as script.

1. "... as program that loads as different window..."
Currently Dwarf Vision is indeed a separate program (with a separate window), running alongside Dwarf Fortress.
Maybe I've misunderstood what you mean?


2. "... and don't need installation as script. "

The script/Dfhack is there because it needs to read memory from Dwarf Fortress so it knows when and who to draw.
I am considering creating my own memory reading logic inside Dwarf Vision, that way using Dfhack will not be needed, but this would take a considerable investment of time.
For the moment I think it would be best to focus on porting it to other OS, such as Linux and Mac.


Holy crap! This is awesome!
Thanks! we're thrilled that you like it! :)
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Sarrak on December 05, 2020, 01:48:34 pm
This is daaamn great! Looks amazing, I’ll be sure to try it when I dig back in :D
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: neobit on December 07, 2020, 04:47:51 am
@Rust_Knight
Your avatar works as a great advertisement :D Hooked me up immediately.

This looks very nice!
Cant wait to try it out :)
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 07, 2020, 05:36:20 am
@Rust_Knight
Your avatar works as a great advertisement :D Hooked me up immediately.

This looks very nice!
Cant wait to try it out :)

Sacrifices must be made! :))
Thou I guess it looks weird for the main post where you have two GIFs blinking. Feels like a motel.

Thank you for the reply - we're glad to hear you like it!
I think an update is inbound in a couple of days. We'll see how it goes.


EDIT:
- from what post did you find out about Dwarf Vision?
- let me know if you have any issues with it!


Title: Re: DWARF VISION in-game realtime portrait generator
Post by: mgsicko on December 07, 2020, 03:54:52 pm
I'm very glad i frequently visit this part of the forum, this looks great!!

I'll be installing it and coming back with feedback if i feel like i have anything useful, but i must say even now, you got a girl impressed, i love the idea here, as someone who's always been bothered at how hard a time i had recollecting who my dwarves were, im sure this will make a big difference to my experience
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rose on December 08, 2020, 11:10:16 am
Oh shit, this is great. It's like something I've been wanting to do for a while, but haven't had the artistic ability.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 08, 2020, 11:27:41 am
I'm very glad i frequently visit this part of the forum, this looks great!!

I'll be installing it and coming back with feedback if i feel like i have anything useful, but i must say even now, you got a girl impressed, i love the idea here, as someone who's always been bothered at how hard a time i had recollecting who my dwarves were, im sure this will make a big difference to my experience


Hey Mgsicko, really made our day this comment! Aqua was actually (pleasantly) surprised to meet another a girl who's playing Dwarf Fortress, let alone like our generator :)

It's actually weird - we wanted to have a TEXT -> PORTRAIT tool to stare at, what could look like, an artistic interpretation of the textual creature.
But then I realized how actually useful this could be for a lot of people playing, since you would have a visual recognition of creatures you've previously met and orientate yourself better around the story.



Oh shit, this is great. It's like something I've been wanting to do for a while, but haven't had the artistic ability.
Well, well - finally a pleasure to meet your acquaintance Rose :)
I've been reading A LOT about you on the forums as we were developing Dwarf Vision months ago. You wrote some very impressive tools and visualizers! (I actually even saw some videos of yours on Youtube how you exercised in the nature - cool stuff!)
Thank you for dropping by and leaving us a message. At the time being I'm a bit intimidated by the way appearance is handled in Dwarf Fortress..
While I know I can make this work, it takes a lot of digging to understand how to properly read appearance data from the game.

Fun Trivia 1: might have been my subconscious, but I did not have the intention for the title of this tool, Dwarf Vision, to be so close to your tool, Armok Vision.
Fun Trivia 2: just noticed while I copied-pasted; your signature is missing an "i" in Armok Vison









Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rose on December 08, 2020, 11:48:02 am
Oooh, I can help with the coding side of things, actually.

What, specifically, are you confused about, currently? At this point, I basically know how the appearance stuff works inside and out.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 08, 2020, 12:04:02 pm
Do you have Discord? If you do and have the time, PM with your ID and I'll add you.

It's a bit hard to ping-pong tech-topics on the forum.

You intervention in this matter is monumental! Really excited to talk more and get rid of my headaches :)
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: neobit on December 08, 2020, 01:51:33 pm
Oh shit, this is great. It's like something I've been wanting to do for a while, but haven't had the artistic ability.

I have same feeling. Yet I wasnt even dreaming about doing such thing by myself.
Still I was hoping for something like this to appear for so long :) And here it is with much higher quality than I was ever expecting :D

@Rust_Knight
I have updated all my tools and tried this out yesterday with PeridexisErrant's Starter Pack 0.47.04-r10 and it made me smile like a child.
I'm really impressed how well you have made this. I like the way it is being presented in the 'Game Mode' and the speed of it is also great.

What I have immediately changed was the range of the cursor - down to 0.
I tried higher ranges for a while with existing fort with tens of people there and it was confusing pretty quickly. Maybe if I would start the fort from the beginning and got used to the faces I could recognize them better when presented in groups. However I will try out playing my game further with 0 range.

So far I had the feeling it is lacking other races and maybe a little bit more details that could distinguish dwarfs even more... but the fact I already felt some sort of lackiness was scarry. You spoiled us with this... and for sure, be prepared, people will want more :) Very well prepared drug, same to your avatar - really good advertisement :)

I will come back with more feedback in the future  :)

So far I can say this clearly will go to the top of the tools I use for DF. Next to Dwarf Therapist and DF Log.

p.s. Im not sure about Dwarf Vision being a mod, though, as it is rather an observer. Shouldnt this belong to Utilities and 3rd Party Applications? Probably more people would find it out there as most of us play vanilla with tools.

p.p.s the backlog plans you have... man, good luck with it :D
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rose on December 08, 2020, 02:26:39 pm
Do you have Discord? If you do and have the time, PM with your ID and I'll add you.

It's a bit hard to ping-pong tech-topics on the forum.

You intervention in this matter is monumental! Really excited to talk more and get rid of my headaches :)

Sure! I hang out in the Armok Vision discord server at https://discord.gg/rMpYGHy
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 08, 2020, 02:39:12 pm
To Neobit:


Some quick examples of how I see Dwarf Vision can scale:

- more assets: it's not necessarily hard to make, as Aqua seems to take enormousness pleasure out of it (but it takes time of course). It can cover more ranges of noses/eyes and so on and bring more variation
- modular sub-components; Example: just as a face can be composed of several parts, a nose for example, can also be composed of several sub-pieces, resulting in even more variation (thou some limitations are obvious)
- create derived assets via various algorithms, like stretching or squeezing, molding new shapes

This is what I could write from the top of my head.

As for the future release, I'm thinking to add a placeholder for female and child dwarves, until they get released. I actually did not test dead dwarves, but I should make them look black and white if they're dead and within cursor range.
As some of you might noticed, the text to portrait is not yet working. This is in part because the appearance system is not yet fully implemented. I hope in 1 week to have the above changes, including text description.

PS: Glad to hear it didn't fail for large forts - I don't have my old saves since I played years ago and I didn't get a chance to make a serious test.

PPS: Aqua is actually going to start on the female dwarves pretty soon. As mentioned we want to cover as many races as we can, but we're focusing on the main ones first.

PPPS: neobit, you did notice I wrote you in  your DF music thread (http://www.bay12forums.com/smf/index.php?topic=177386.0), right?






Title: Re: DWARF VISION in-game realtime portrait generator
Post by: qualiyah on December 09, 2020, 05:03:35 pm
This is *such* an exciting project. Having unique portraits for each dwarf would do more for me than any tileset or other graphical improvement that could be made to the game. And the existing portraits look *so* good!

I'm really looking forward to seeing the female dwarves. Armokspeed!
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: voliol on December 10, 2020, 03:06:29 am
This is really cool. Like really really cool.

As for the female dwarves, I’ve seen many people, especially among the new Steam players, who say they want female dwarves with beards. As that will probably be one of the most common mods, make sure the female dwarves are compatible with beards, unless that takes drawing a whole new set of beards.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rose on December 10, 2020, 03:49:20 am
I don't see any reason the mod won't just read to see if there's a beard or not.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 10, 2020, 01:15:00 pm
This is really cool. Like really really cool.

As for the female dwarves, I’ve seen many people, especially among the new Steam players, who say they want female dwarves with beards. As that will probably be one of the most common mods, make sure the female dwarves are compatible with beards, unless that takes drawing a whole new set of beards.



Excellent point! (Albeit a bit weird and funny in the same time?)
Art-wise, it shouldn't be all that hard so it's something to consider.
Maybe I should just make an option natively in Dwarf Vision that can be toggled at will.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: DarthRubik on December 10, 2020, 07:05:25 pm
PTW......Looks pretty awesome.

I cannot wait for the female dwarves to come out, because my current fort has a hammer wielding queen.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Shonai_Dweller on December 10, 2020, 10:30:48 pm
This looks fantastic.
How well does it (will it) work with mods?

By which I don't mean whole new modded races, more the "bearded female dwarves, humans with braided beards, goblins with blue eyes" kind of mods.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 11, 2020, 01:04:30 am
This looks fantastic.
How well does it (will it) work with mods?

By which I don't mean whole new modded races, more the "bearded female dwarves, humans with braided beards, goblins with blue eyes" kind of mods.

As long as these characteristics are reflected in the game's raws, it means Dwarf Vision will also take note of them. Some will work straight away, others might need a small tweak.
As an example, because Voliol made a very pertinent point about this, it made me aware of the situation before starting to work on dwarven females, thus being able to adapt them accordingly.

On a general note on mod compatibility, it should be almost 100% compatible with any mod, since all it does is to interpret data from Dwarf Fortress. Currently I cannot think of a scenario where it wouldn't be. (never say "never" thou  ;) )




Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Shonai_Dweller on December 11, 2020, 03:25:43 am
This looks fantastic.
How well does it (will it) work with mods?

By which I don't mean whole new modded races, more the "bearded female dwarves, humans with braided beards, goblins with blue eyes" kind of mods.

As long as these characteristics are reflected in the game's raws, it means Dwarf Vision will also take note of them. Some will work straight away, others might need a small tweak.
As an example, because Voliol made a very pertinent point about this, it made me aware of the situation before starting to work on dwarven females, thus being able to adapt them accordingly.

On a general note on mod compatibility, it should be almost 100% compatible with any mod, since all it does is to interpret data from Dwarf Fortress. Currently I cannot think of a scenario where it wouldn't be. (never say "never" thou  ;) )
So, you don't have to worry if modders add beards to goblins, it'll just work? Your comment about female dwarves made it seem like you'd have to take into account every possibility and adjust accordingly for each one. Is it more flexible than that then?
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 11, 2020, 07:37:33 am
This looks fantastic.
How well does it (will it) work with mods?

By which I don't mean whole new modded races, more the "bearded female dwarves, humans with braided beards, goblins with blue eyes" kind of mods.

As long as these characteristics are reflected in the game's raws, it means Dwarf Vision will also take note of them. Some will work straight away, others might need a small tweak.
As an example, because Voliol made a very pertinent point about this, it made me aware of the situation before starting to work on dwarven females, thus being able to adapt them accordingly.

On a general note on mod compatibility, it should be almost 100% compatible with any mod, since all it does is to interpret data from Dwarf Fortress. Currently I cannot think of a scenario where it wouldn't be. (never say "never" thou  ;) )
So, you don't have to worry if modders add beards to goblins, it'll just work? Your comment about female dwarves made it seem like you'd have to take into account every possibility and adjust accordingly for each one. Is it more flexible than that then?

Indeed it is so - with the current system in place you would need to account for each one of them.
That isn't to say there aren't means to adapt this. Make a measurement of the base skull of the creature and manipulate the beard asset to re-scale and reposition on the new face.

The calculations/work would be done once, in realtime (also makes a PNG copy). After that the portrait will just reload a saved copy of a PNG. When new changes are made (Ex: loss of beard), a new realtime interpretation is needed.
I doubt this would be computational intensive since I've already tried it on other (defunct) projects of mine. (see below)

(NOT related to Dwarf Vision) - used only as example
(https://i.imgur.com/Zc3mJvZ.gif)

To be honest, Dwarf Vision can walk on a lot of paths. The potential is indeed almost limitless.
It just depends on the support/how-used-it-is-by-the-community.

If that's the case, sure - you can brush even machine learning solutions in. But I am of the belief that you can do a lot even without ML, thou it's nice to have.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: MudSoakedReacher on December 11, 2020, 04:33:38 pm
Has anyone succeeded in setting this up the latest version of the lazy noob pack? I'm getting freezes when I try to run my save file.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: neobit on December 13, 2020, 07:08:34 am
Has anyone succeeded in setting this up the latest version of the lazy noob pack? I'm getting freezes when I try to run my save file.

I does happen for me. I had one startup when it all worked out great, but since then it is freezing for me as well.

@Rust_Knight
How can we debug this? What sort of logs are useful for you to see what could be causing the problem?

EDIT1:
Im not completely sure how it was working that well earlier and now just stopped. So the pictures are not updating, selecting any dwarf causes a long freeze (probably ending up with some sort of a timeout) and DFHack prints this red message
table: 0000027F980867A0
After that game doesnt freeze anymore but picutres are not being updated as well. Is that your plugin that crashes?

EDIT2:
All of that using PeridexisErrant's Starter Pack 0.47.04-r10 so it is not the setup you recommended, though.
It is even reported "Warning: Plugin dwarfinfo compiled for DFHack 0.47.04-r3-34-gc73a8a05, running DFHack 0.47.04-r3-0-gb343d008"

EDIT3:
I have tried removing all under portraits_Play_Sessions but that did not help. There is one bin when freeze happens and that is all.
If was different table now tough: 000002C24D173DF0 (but I assume it is not that important)
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 13, 2020, 12:06:11 pm
To Neobit and MudSoakedReacher

Could you two save an archive of your DF folder (best compression method) and upload it via https://www.sendgb.com to a link?
You could send the links as private messages to me.

It will be much easier to debug if I can have the saves and exact configuration of your DF + mods and playtest them a bit.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: qualiyah on December 15, 2020, 02:29:06 pm
I just ran the program from the Lazy Newb Pack, with a graphics set and Dwarf Therapist running simultaneously, and it worked fine; I didn't get any freezes. I did start a brand new world for this purpose though--maybe that makes a difference? I had my dwarves run around for a bit and didn't see any problems.

One minor suggestion to consider for the future: It's pretty easy to find a good place to put just one portrait, in a corner, but I don't really want 4 portraits at a time on my screen since that takes up too much space, and anyhow, I can't tell which portrait goes with which dwarf. So I think I'd prefer it if it displayed only the portrait of the exact dwarf selected, rather than the portraits of every dwarf within a tile or two of the cursor.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: qualiyah on December 15, 2020, 02:39:11 pm
Since I saw that neobit said it worked *once* and freezes ever since, I also tried running the world for a bit, quitting, then reloading it, and that did still work. I'll admit I didn't play for long either time though.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: neobit on December 16, 2020, 07:20:33 am
Since I saw that neobit said it worked *once* and freezes ever since, I also tried running the world for a bit, quitting, then reloading it, and that did still work. I'll admit I didn't play for long either time though.

I probably would need to try it out on a fresh run as well. There might be a limit in regards of amount of dwarfs for the dfhack to still maintain sending dwarf info over and over.
The save I used has 180 citizen (48 pets and others). That is rather big fortress.

Anyway I have delivered my game with the save to Rust_Knight so there might be some solution to this  (or answers if I did something wrong ;)).
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: FantasticDorf on December 16, 2020, 09:45:20 pm
Definitely has my interest, the fluidity of moving it into the UI boxes with the mouse example is very impressive alongside the high artistic quality of it (not that im not affable to the idea if some animals could recieve generic portraits, so i can sort by goodest boy's from my donkies)

Do you think you could pull up a DFhack ui box especially for framing all of our portraits sorted by some criteria there? Double click a portrait to zoom to them and the game would seem almost triple A.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 17, 2020, 02:41:51 am
I just ran the program from the Lazy Newb Pack, with a graphics set and Dwarf Therapist running simultaneously, and it worked fine; I didn't get any freezes. I did start a brand new world for this purpose though--maybe that makes a difference? I had my dwarves run around for a bit and didn't see any problems.

One minor suggestion to consider for the future: It's pretty easy to find a good place to put just one portrait, in a corner, but I don't really want 4 portraits at a time on my screen since that takes up too much space, and anyhow, I can't tell which portrait goes with which dwarf. So I think I'd prefer it if it displayed only the portrait of the exact dwarf selected, rather than the portraits of every dwarf within a tile or two of the cursor.


Yes, I guess the multi portraits mode is more of a feature demonstration, than it is practical  :D. Yet, I imagine some might still like it this way. In order to see who is who, you can hold the X above a specific dwarf, and it will highlight its respective dwarf.
You might know this, but I'll write it anyway - you CAN change the number of displayed dwarfs from the onLoad.init (example) file. Let me know if it worked out.
repeat -time 20 -timeUnits frames -command [ dwarfinfo -n 3 ] Change the number in red to 0 to have just one dwarf displayed at a time, when looking over him.


Since I saw that neobit said it worked *once* and freezes ever since, I also tried running the world for a bit, quitting, then reloading it, and that did still work. I'll admit I didn't play for long either time though.

I probably would need to try it out on a fresh run as well. There might be a limit in regards of amount of dwarfs for the dfhack to still maintain sending dwarf info over and over.
The save I used has 180 citizen (48 pets and others). That is rather big fortress.

Anyway I have delivered my game with the save to Rust_Knight so there might be some solution to this  (or answers if I did something wrong ;)).


Normally there should be no limit on how many dwarfs can be viewed. I was a bit busy implementing a features I already started working on, but I will try to reproduce this problem as soon as I get the change. My recommendation is, until I come up with a fix, delete your YOUR_DWARF_FORTRESS_FOLDER\Dwarf_Vision_x64_win_release\portraits_Play_Sessions\WORLD_CAUSING_ERRORS
WORLD_CAUSING_ERRORS folder. This will cause portraits to be redrawn, so you will lose current "faces" of your dwarfs and gain new ones. But it might also fix the problem.
Let me know if it had any positive impact on the issue.



Definitely has my interest, the fluidity of moving it into the UI boxes with the mouse example is very impressive alongside the high artistic quality of it (not that im not affable to the idea if some animals could recieve generic portraits, so i can sort by goodest boy's from my donkies)

Do you think you could pull up a DFhack ui box especially for framing all of our portraits sorted by some criteria there? Double click a portrait to zoom to them and the game would seem almost triple A.


Hey FantasticDorf,
Such a morale tonic you served us today  ;D Thanks for coming over and sharing this with us.
We actually did mention on Patreon that after a while we will release a procedural Cat portrait!
Indeed, some animals might actually appear amidst the main races drawing, if we can do them fast and elegantly enough.
Generic portrait holders also isn't bad at all. Already made a note on this.

So let me see if I understood you correctly:
Compose a list showing dwarfs and their portraits/names ordered by some conditions (least depressed <-> depressed; healthy <-> injured)?
And if you click on it, it focuses the screen on them.

If that's what you meant, yes it is possible to implement such a feature. The UI that you see displaying the portraits thou, isn't a DFhack UI, it's a QT Window from Dwarf Vision - this means these portrait windows do not have direct information to what dwarfs they are displaying. This will probably be much easier to do when I replace the current messaging system with tpc or protobuff.














Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Fi on December 17, 2020, 10:23:43 am
Wow, this looks amazing and probably would completely replace Dwarf Portrait for me since I've sorta been using that for getting a general visual of nearby creatures. The visuals of the Elves and the Goblins are my favorite so far, and I'm definitely going to look forward to seeing how it visualizes animal people.

Is this tool compatible with Adventure Mode? I didn't see any mentionings of that game mode in the thread, and the installation instructions seem to specify Fortress Mode.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 21, 2020, 07:53:37 am
Wow, this looks amazing and probably would completely replace Dwarf Portrait for me since I've sorta been using that for getting a general visual of nearby creatures. The visuals of the Elves and the Goblins are my favorite so far, and I'm definitely going to look forward to seeing how it visualizes animal people.

Is this tool compatible with Adventure Mode? I didn't see any mentionings of that game mode in the thread, and the installation instructions seem to specify Fortress Mode.


Currently it's working only for Fortress mode. I'm now done with the "Fabulation" slider feature, which allows a degree of control on how random/non-random your portraits are in regard to their textual description. Adventure mode is next on the list and it shouldn't be all that difficult to implement. I'll write further updates as I go.

Upcoming tasks are: Adventure mode, Linux/Mac integration, better communication protocol between Dfhack and Dwarf Vision.
Aqua added some extra hair/beard that was missing and is continuing on to work on the dwarf female sets.


PS: I'm actually happy to hear the Goblin and the Elf were well received! Thank you for the kind words :)


(https://i.imgur.com/UVeDVoQ.png)


Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rust_Knight on December 23, 2020, 07:33:59 am
Since I saw that neobit said it worked *once* and freezes ever since, I also tried running the world for a bit, quitting, then reloading it, and that did still work. I'll admit I didn't play for long either time though.

I probably would need to try it out on a fresh run as well. There might be a limit in regards of amount of dwarfs for the dfhack to still maintain sending dwarf info over and over.
The save I used has 180 citizen (48 pets and others). That is rather big fortress.

Anyway I have delivered my game with the save to Rust_Knight so there might be some solution to this  (or answers if I did something wrong ;)).


I managed to fix the issue. The save you sent always crashed shortly after looking around.
When deleting the temp folder, it would work fine for a bit, but still freeze again.

Did some changes to dwarfinfo.dll and it seems to be fixed now. More testing will be needed thou.

Fix will be included with next release (should be in a couple of days). PM me if anyone wants a nightly build and doesn't want to wait longer.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Ulfengaard on December 24, 2020, 03:57:09 pm
Holy smokes. I have another post on the exact problem that I was having with 'seeing' my dwarves and being able to remember who they were. Not sure how long ago I posted it, but this is very welcome. I'm really happy to be able to see my dwarves faces, now. It helps them to become stronger characters in the story. Tremendous appreciation, mate.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: LordBalkan on December 26, 2020, 02:32:40 pm
OMG totally posting to watch and support!
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Iklistkel on December 26, 2020, 03:14:04 pm
i only play without dfhack  :'(
... just this. i don't like play DF with dfhack. So, for me, no beautiful portraits..  :'(
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Iä! RIAKTOR! on December 26, 2020, 04:11:48 pm
i only play without dfhack  :'(
... just this. i don't like play DF with dfhack. So, for me, no beautiful portraits..  :'(
And this why author must create non-dfhack version.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rose on December 26, 2020, 04:13:58 pm
i only play without dfhack  :'(
... just this. i don't like play DF with dfhack. So, for me, no beautiful portraits..  :'(
And this why author must create non-dfhack version.
It uses DFHack to do its most basic functionality. How do you propose it should work otherwise?
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Iä! RIAKTOR! on December 26, 2020, 06:00:46 pm
i only play without dfhack  :'(
... just this. i don't like play DF with dfhack. So, for me, no beautiful portraits..  :'(
And this why author must create non-dfhack version.
It uses DFHack to do its most basic functionality. How do you propose it should work otherwise?
Why Dwarf TheRapist work without dfhack?
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Rose on December 26, 2020, 07:07:34 pm
i only play without dfhack  :'(
... just this. i don't like play DF with dfhack. So, for me, no beautiful portraits..  :'(
And this why author must create non-dfhack version.
It uses DFHack to do its most basic functionality. How do you propose it should work otherwise?
Why Dwarf TheRapist work without dfhack?
It's Therapist, not a rapist, and it works by duplicating all of the work that DFHack already does. The only reason it's doing it that was is because it's actually older than DFHack.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: Rust_Knight on December 28, 2020, 02:36:30 pm
Holy smokes. I have another post on the exact problem that I was having with 'seeing' my dwarves and being able to remember who they were. Not sure how long ago I posted it, but this is very welcome. I'm really happy to be able to see my dwarves faces, now. It helps them to become stronger characters in the story. Tremendous appreciation, mate.
This is quite funny - when we embarked on making this project happen, we mostly wanted to have this visualizer for things you have in Dwarf Fortress. It later became aware to me that this is indeed more than just eye-candy, so it's now shifting a bit more to an actual tool.
We're really happy to know you like it! Cheers!  ;)


OMG totally posting to watch and support!
Any help is most welcomed! Delighted to see people hyping  :)



i only play without dfhack  :'(
... just this. i don't like play DF with dfhack. So, for me, no beautiful portraits..  :'(

And this why author must create non-dfhack version.
This can be achieved, but not without a considerable effort - the good part is, the artist doesn't have to stop and wait while the programming side is working on other tasks.
This being said, it would be wise to focus on adding Adventure Mode and porting Dwarf Vision to Mac and Linux (which by the way, I'm wondering how many people are in those boats... :-\ )
before embarking on more daring quests.


It's Therapist, not a rapist, and it works by duplicating all of the work that DFHack already does. The only reason it's doing it that was is because it's actually older than DFHack.
I actually didn't know that - actually wondered why Dwarf Therapist went parallel with the Dfhack technology, instead of using it.
Thanks for clearing out the technicalities, Rose!  :P





In OTHER NEWS:

0.2 update has now been released. Main feature is the Fabulation options and some fixes regarding freezes/crashes.
Do tell if you run into further problems and any other observations and recommendations you might have.

Second post from page 1 will now pertain updates...
http://www.bay12forums.com/smf/index.php?topic=177615.msg8218599#msg8218599







Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: ANickel on December 29, 2020, 12:16:34 am
This is a fantastic add-on to the game, and one that I wish we could see in some official capacity at some point.  For now, we have your great efforts!
Thanks much.
Title: Re: DWARF VISION in-game realtime portrait generator
Post by: Fi on December 29, 2020, 03:52:34 pm
Currently it's working only for Fortress mode. I'm now done with the "Fabulation" slider feature, which allows a degree of control on how random/non-random your portraits are in regard to their textual description. Adventure mode is next on the list and it shouldn't be all that difficult to implement. I'll write further updates as I go.

Upcoming tasks are: Adventure mode, Linux/Mac integration, better communication protocol between Dfhack and Dwarf Vision.
Aqua added some extra hair/beard that was missing and is continuing on to work on the dwarf female sets.

Ooo, you got me all excited with anticipation for those new features. ღ

I tried to use it around the time I made my comment with LNP, but it gave me some sort of error about it being compiled for a different version of DFHack, so I don't know if LNP uses a different or unique version of DFHack that might cause version incompatibilities over time.

PS: I'm actually happy to hear the Goblin and the Elf were well received! Thank you for the kind words :)

No problem at all! ❦

I enjoy seeing Artists' depiction of the non-fiction races that are more... fanciful (in Dwarf Fortress's terms) than other races when it comes to their features.

Your style of the Elves and the Goblins reminds me of the way Lord of the Rings portrays their Elves and the way Goblins are portrayed in Dungeons & Dungeons as well as World of Warcraft, and I like that very much.

I'll absolutely be keeping my eyes peeled as far back as possible (I promise I'll blink here and there) for your Adventure Mode update!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: Iä! RIAKTOR! on December 30, 2020, 02:26:38 pm
DF goblins and elves are different, so they will be better if they look don't be copy of just imges in popular games.

Also, I suggest generator of images for procedural generated creatures, like night trolls.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: Rose on December 30, 2020, 02:56:00 pm
I totally suggest leaning into the fact that DF elves are cannibals.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: Luckyowl on December 30, 2020, 05:42:13 pm
Goblins have hair, so make sure you generate hair for them.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: ANickel on January 06, 2021, 10:37:23 pm
This is an amazing little tool that makes recognizing dwarves 1000x easier!
I can't wait to see more updates from you guys, I know modding is a lot of hard work that often feels unappreciated but at least know that you've got a few fans rooting for you guys!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: Fi on January 10, 2021, 03:57:08 am
DF goblins and elves are different, so they will be better if they look don't be copy of just imges in popular games.

Surely their appearances are in the eyes of the beholders since I personally haven't really seen any official documentations on how the basic races supposed to look in Dwarf Fortress—just the basics of their bodily structures, cultures, and personalities.

People just seem more drawn towards the primitive (their lifestyles) yet graceful and beautiful type of Elves which are more attuned to nature that... also eat people for some potentially unholy reason... and the more humanoid or imp-esque type of Goblins.

I think the way Goblins are portrayed now is new—probably due to World of Warcraft or Dungeons & Dragons' fan art as most people seem to enjoy more humanoid creatures in our own likeness than grotesque aberrations, but I think the way Elves are portrayed has always been the same (excluding all of their subraces that came about).



Here are some fine examples of how our depictions of them evolved over the years since a lot of games based their races on Tolkien's work and D&D which was also inspired by Tolkien:

https://forgottenrealms.fandom.com/wiki/Goblin
https://forgottenrealms.fandom.com/wiki/Orc
https://forgottenrealms.fandom.com/wiki/Kobold

I didn't add the Elves since they seemed to have always looked the same over the years:
Title: Re: DWARF VISION in-game realtime portrait generator [0.2 FABULATION UPDATE]
Post by: davidoskky on January 11, 2021, 01:36:37 pm
This looks amazing!! The art is incredible, all of them look as if they were purposefully drawn that way!

I can't wait for a linux release to try it out!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Rust_Knight on January 12, 2021, 07:00:29 am
IMPORTANT NOTE

When I released the Fabulation update 0.2, it was still pointing to the old (initial launch) version. Download link has now been fixed. Sorry for that!

Meanwhile, 0.2.2 was released which now is compatible with the latest version of Dfhack (0.47.04-r4-Windows-64bit).
ALSO, overwriting symbols.xml is no longer needed, hence it's now been removed from the Dwarf Vision.rar distribution archive.

One of our supporters, Zenith, pointed this out - this goes to show how much we need your feedback. Thank you for your vigilance Zenith  ;)
   
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Free_ on January 12, 2021, 07:26:31 pm
I can't wait to download this, it really does look like an amazing project. It may be my first Patreon, even!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Rust_Knight on January 13, 2021, 07:16:27 am
I can't wait to download this, it really does look like an amazing project. It may be my first Patreon, even!

Indeed, I did notice that some of our Patrons subscribed just for our project alone.
It creates a very strong sentiment knowing that Dwarf Vision is wanted and it gives us fresh energy to keep on working!

We thank you!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Dragonslayerelf on January 18, 2021, 09:44:32 am
How does this interact with custom races, and if it doesn't, how would one add them to this? I have this race called 'dark dwarves' in my game that are basically just like Dark Iron Dwarves from WOW, and I was wondering if I patched that into this if it would work and/or how it would be possible.

Also this is super amazing. Sometimes I draw out my dwarves, but I generally like getting a sense of what my dwarves look like, and this is amazing for that!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: LordBaal on January 26, 2021, 10:56:11 am
PTW
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Rust_Knight on January 27, 2021, 04:47:26 pm
How does this interact with custom races, and if it doesn't, how would one add them to this? I have this race called 'dark dwarves' in my game that are basically just like Dark Iron Dwarves from WOW, and I was wondering if I patched that into this if it would work and/or how it would be possible.

Also this is super amazing. Sometimes I draw out my dwarves, but I generally like getting a sense of what my dwarves look like, and this is amazing for that!


In its current state Dwarf Vision can only supply portraits for vanilla Dwarf Fortress.
Making this work with mods isn't hard, but making DV display modded items/races graphically is.
I'll have to make it a bit more accessible to pair vanilla races with modded races, so that at least you can use the regular portraits in modded games.
I am aware that a lot of players use mods, so it's definitely something on the to-do list.

Thank you for the praise! It's something we'll be doing for a lot of time from now.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: neobit on January 28, 2021, 08:21:29 am
@Rust_Knight
FYI I have played on my big fortress for ca 40 minutes with DV 0.2.2 and PeridexisErrant's Starter Pack 0.47.04-r11 (comes with DFHack 0.47.04-r4-0-geb6957a1) and it worked stable without any crashes/lags :) Good job!
I like to play with Fabulation set to None, would be great if DV would remember that choice upon restart.
p.s. Good that you have added the version to the release archive.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: zetathix on January 30, 2021, 08:17:12 am
Wow, this is very impressive. Do you guys plan to make items image generator too?
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Rust_Knight on January 31, 2021, 07:14:16 am
@Rust_Knight
FYI I have played on my big fortress for ca 40 minutes with DV 0.2.2 and PeridexisErrant's Starter Pack 0.47.04-r11 (comes with DFHack 0.47.04-r4-0-geb6957a1) and it worked stable without any crashes/lags :) Good job!
I like to play with Fabulation set to None, would be great if DV would remember that choice upon restart.
p.s. Good that you have added the version to the release archive.


Excellent! Very glad to hear that. Thank you very much for the feedback, Neobit.
Yes, I'll add that on the to do list so that it stays on the last chosen Fabulation setting.
Re-PS: you mean, good thing that I corrected that last update to the current one?  ;D


Wow, this is very impressive. Do you guys plan to make items image generator too?

Thank you Zetathix! We're happy to hear you like it :)
Yes, I was thinking about it. It's on the features list, but for now all focus will go on vanilla civilizations and their gear.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: neobit on January 31, 2021, 10:21:11 am
Re-PS: you mean, good thing that I corrected that last update to the current one?  ;D

I meant that it is good that the name of the archive is pointing to the specific version i.e. 0.2.2. I was one of the victims of your 'corrupted' upload and was wondering why you were claiming the previous bug is fixed. As there was no version information it was hard to be sure I was using correct one. Anyway... good step towards more professionalism :)
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: treehugger on February 02, 2021, 07:51:00 am
Just tested this! Fantastic work.. I LOVE this!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Mountain_King on February 02, 2021, 09:19:51 am
First off, this is absolutely amazing. Thank you for bringing us this work of art so that we can better enjoy the dwarfiness that we all love.

Besides that, I just have one comment perhaps induced by my unusually early rise this morning. I was looking at the WIP mock-up for the upcoming interface (https://bay12games.com/dwarves/imgs/dwarf_sheet.png) and you see, in the dwarf info area, the little box with the dwarf right above the relations tab? By Armok, that is the perfect spot for where an in-game unit portrait should be. I can't help but imagine a future release of Dwarf Fortress where procedural portraits of Dwarf Vision's caliber - just slightly pixelated - exist within the game and on that spot. Maybe it's something that became possible because the right people talked to the other right people and perhaps a beautiful cooperation then occurred. I don't know how within grasp that might truly be, but I can't help but look at that interface and have some amount of yearning due to the opportunity presented there.

Anyhow, thank you again for this wonderful contribution, Dwarf Vision team! This project is fantastic and I'm grateful for its existence.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Rust_Knight on February 03, 2021, 01:30:34 am
Just tested this! Fantastic work.. I LOVE this!

Glad to hear it went well on first try (hopefully!...)
You can leave more feedback either here or on the Discord :)


First off, this is absolutely amazing. Thank you for bringing us this work of art so that we can better enjoy the dwarfiness that we all love.

Besides that, I just have one comment perhaps induced by my unusually early rise this morning. I was looking at the WIP mock-up for the upcoming interface (https://bay12games.com/dwarves/imgs/dwarf_sheet.png) and you see, in the dwarf info area, the little box with the dwarf right above the relations tab? By Armok, that is the perfect spot for where an in-game unit portrait should be. I can't help but imagine a future release of Dwarf Fortress where procedural portraits of Dwarf Vision's caliber - just slightly pixelated - exist within the game and on that spot. Maybe it's something that became possible because the right people talked to the other right people and perhaps a beautiful cooperation then occurred. I don't know how within grasp that might truly be, but I can't help but look at that interface and have some amount of yearning due to the opportunity presented there.

Anyhow, thank you again for this wonderful contribution, Dwarf Vision team! This project is fantastic and I'm grateful for its existence.


Hey Mountain_King,
I'm very happy to read your thoughts on this. Yes, there are a lot of places where one could place portraits.
While I didn't think about this right now, I imagine there will be a Dwarf Vision for the steam version as well.
It would be trivial to shrink and place portraits exactly over that spot. Pixelation of portraits is also achievable, thou that would be something different than making pixel portraits from scratch. We'll see.

What I'm really excited and thankful is that you actually took the time to register and share these thoughts with us!
We thank you for this intervention and made notes of what you recommended.
When steam-DF will come out, we'll give it a go and see how it works  ;D
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Mountain_King on February 03, 2021, 03:22:14 pm
Hey Mountain_King,
I'm very happy to read your thoughts on this. Yes, there are a lot of places where one could place portraits.
While I didn't think about this right now, I imagine there will be a Dwarf Vision for the steam version as well.
It would be trivial to shrink and place portraits exactly over that spot. Pixelation of portraits is also achievable, thou that would be something different than making pixel portraits from scratch. We'll see.

What I'm really excited and thankful is that you actually took the time to register and share these thoughts with us!
We thank you for this intervention and made notes of what you recommended.
When steam-DF will come out, we'll give it a go and see how it works  ;D

That's awesome to hear, and as this project progresses I look forward to see what you guys do with it. Hopefully someday these portraits or something similar becomes a native addition to the graphical interface without the need for a third party program. That'd definitely be the dream! Regardless I eagerly check back now and then to see how things go. I am a longtime lurker that has been playing DF for many years now, but I haven't had much impetus to interact on the boards until now. Seeing this project though, I had to express my thanks.

On the artistic side of things I am quite enjoying the WIP samples you have shown off so far. Female dwarves especially! If I may levy a single nitpick though - and this is just opinion of course - personally I always imagined Goblins having much more striking red eyes vs the orange in the current WIP picture. In Adventure Mode even, when you encounter Goblins, they have one of the few graphical representations in DF - when shrouded in darkness their glowing red eyes appear as red " (or just ' if they are missing an eye) instead of their normal g icon. Zach as well has drawn them (https://dwarffortresswiki.org/images/a/a2/Goblin_riding_beak_dog_crayon.jpg) with what look to be black, perhaps even split pupils like you guys have done against a red eyeball. Of course it's all artist interpretation, but I just hope that this little detail helps to inform future development.

That being said, keep on keeping on with this wonderful marriage of programming and art!
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Silverwing235 on February 11, 2021, 05:37:27 pm
PTW.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: FrankVill on June 06, 2021, 11:06:48 am
Hi!

Are there any possibility for updating this utility to DFHack 0.47.05?
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: CovertJaguar on June 21, 2021, 12:13:43 am
Presumably, if you could just recompiled the dwarfinfo plugin, it would work, but... as far as I can tell, the sources for that is NOT on github sadly. Hopefully the project is still alive.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Rust_Knight on July 13, 2021, 11:39:41 am
I've updated the github with the missing dwarfinfo plugin.
https://github.com/RustKnight/Dwarf-Vision/tree/main

For those interested they can now compile it for the latest version of dfhack.

Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: Laterigrade on July 29, 2021, 10:01:35 pm
thanks, bay12forums, very cool
(why are you looking at me like that I’m being sincere)
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: DolorousJohn on July 30, 2021, 09:49:40 am
I've updated the github with the missing dwarfinfo plugin.
https://github.com/RustKnight/Dwarf-Vision/tree/main

For those interested they can now compile it for the latest version of dfhack.

This is great, but I'm too dumb to figure out how to compile it correctly, any chance of an updated version for the dumb dumbs like me?
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: crispy_ross on August 09, 2021, 02:38:45 pm
Here is my build for 0.47.05:

https://www.dropbox.com/s/9dmukmzwbn97312/dwarfinfo.plug.dll?dl=0 (https://www.dropbox.com/s/9dmukmzwbn97312/dwarfinfo.plug.dll?dl=0)
https://www.virustotal.com/gui/file/9c29dd97e35f7293441e2210868e7681edde4a5af448d6d7fb43983ed3f20058/detection (https://www.virustotal.com/gui/file/9c29dd97e35f7293441e2210868e7681edde4a5af448d6d7fb43983ed3f20058/detection)

I don't know if this is the "correct" way to build it, but I downloaded the dfhack source, put dwarfinfo.cpp file in /plugins, added "dfhack_plugin(dwarfinfo dwarfinfo.cpp)" to /plugins/CMakeLists.txt, then built dfhack using their instructions.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: DolorousJohn on August 11, 2021, 04:13:53 pm
You are an absolute lad. Thank you.
Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: AudiRgr8 on October 16, 2021, 07:33:49 am
This is so awesome! PTW

How did you create this man? Did you draw each feature individually and mash it together in a generator or is there machine learning involved? I've recently got into coding C# and would love to do something like this one day!

Cheers

Title: Re: DWARF VISION ingame realtime portrait generator [0.2.2 FABULATION UPDATE]-HALTED
Post by: Rust_Knight on October 16, 2021, 01:57:19 pm
Another section was added at the end of the first post explaining the status of the project.
Your praises delight us and humble us in the same time. We are grateful for this.
Thank you for being with us and we hope that in the future we will meet again.


EDIT: Reply for AudiRgr8

Sorry to have greeted you with such news!
Yes, each body part has dozens of variants and our generator just takes those images and mashes them together (well, it can also read textual description of a dwarf and generate a -close as possible with given assets- portrait). No machine learning is involved.
I'd recommend something for you, if you plan to get familiar with C# and wish to do similar generators.
Take a look at this fan-made tool of Crusader Kings 2 generator: https://github.com/rquinio/PortraitBuilder

To be frank, the code architecture is quite advanced, much more modular than my approach for Dwarf Vision and you definitely shouldn't be surprised if you don't understand the overall architecture of the code at start. You need some exposure/bit of experience to understand what is going on.
Learn a bit about event systems / design patterns, come back again at it, scratch your head, learn what you can, repeat and enjoy the journey!







Title: Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
Post by: FrankVill on October 17, 2021, 08:04:03 am
Here is my build for 0.47.05:

https://www.dropbox.com/s/9dmukmzwbn97312/dwarfinfo.plug.dll?dl=0 (https://www.dropbox.com/s/9dmukmzwbn97312/dwarfinfo.plug.dll?dl=0)
https://www.virustotal.com/gui/file/9c29dd97e35f7293441e2210868e7681edde4a5af448d6d7fb43983ed3f20058/detection (https://www.virustotal.com/gui/file/9c29dd97e35f7293441e2210868e7681edde4a5af448d6d7fb43983ed3f20058/detection)

I don't know if this is the "correct" way to build it, but I downloaded the dfhack source, put dwarfinfo.cpp file in /plugins, added "dfhack_plugin(dwarfinfo dwarfinfo.cpp)" to /plugins/CMakeLists.txt, then built dfhack using their instructions.

Marvelous !! :)
I should add that it only works on DFHACK 0.47.05-r02, I have tried it on r03 and it doesn't work. So if someone uses PeridexisErrant, they have to use the old version 0.47.05-r04.
Thank you very much for doing that.

Another section was added at the end of the first post explaining the status of the project.
Your praises delight us and humble us in the same time. We are grateful for this.
Thank you for being with us and we hope that in the future we will meet again.


EDIT: Reply for AudiRgr8

Sorry to have greeted you with such news!
Yes, each body part has dozens of variants and our generator just takes those images and mashes them together (well, it can also read textual description of a dwarf and generate a -close as possible with given assets- portrait). No machine learning is involved.
I'd recommend something for you, if you plan to get familiar with C# and wish to do similar generators.
Take a look at this fan-made tool of Crusader Kings 2 generator: https://github.com/rquinio/PortraitBuilder

To be frank, the code architecture is quite advanced, much more modular than my approach for Dwarf Vision and you definitely shouldn't be surprised if you don't understand the overall architecture of the code at start. You need some exposure/bit of experience to understand what is going on.
Learn a bit about event systems / design patterns, come back again at it, scratch your head, learn what you can, repeat and enjoy the journey!









Thanks for doing this project, I hope that one day you can continue with it. I am frankly excited about its potential.