Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Strive: Conquest

A successor to first Strive For Power game, currently at alpha stage · By Strive4Power

In-game AI Portrait Generator (Updated 1 Jun 2026)

A topic by pyro944 created Nov 22, 2025 Views: 7,122 Replies: 39
Viewing posts 1 to 18
(29 edits) (+1)(-3)

This mod hooks up to a local ComfyUI installation to let you generate AI portraits in-game!

It requires a fair amount of setup, so please read the README carefully.


Basic features:

  • Generate prompts based on your character's appearance and equipment.
  • Produce body and face-crop images and save them to the character.
  • Use whatever checkpoint model you like.
For advanced users:
  • Import your own ComfyUI workflow for more advanced image generation.
  • Select LoRAs to use for race and sex, or to apply to every image generation.

You may have used the previous version of this mod, which just generates prompts. That functionality still exists, but has been augmented with ComfyUI integration.

The prompts are opinionated based on what I've found to work decently in the models I've tested. Your results may vary.

Download on GitHub
(Updated 1 Jun 2026)

FAQ:

Q: How do I find the AI image popup menu?
Open a character's info page and find the "AI" button in the bottom left of their full-body portrait.

Q: I have pretty modest hardware. Can I use this?
Probably not! Generating images takes a fairly beefy GPU.

Q: Can I farm out image generation to a cloud service (like Comfy Cloud)?
No. Introducing cloud services is a whole extra layer of complexity that I'm not going to tackle at this time

Q: What are some good LoRAs for fantasy races?
Try these:

Changelog:

1.1.8

  • Fix: Remove tool slot that was replaced in 0.14.3

1.1.7

  • Fix: Support the new interface for CropByBBoxes in ComfyUI 0.19.0.
  • Adjust human skin tone prompts.

1.1.6

  • Support generating clothed body from nude. Note that due to the way the game looks up alternate portraits, you will only be able to do this if the character already has a body image.
  • Clean up input control colors for better readability.
  • Small tweaks to prompt wording and weights.
  • Bug fixes: LoRA dropdown could be too small, main panel was overlapping character portrait and body somewhat, skin color could be incorrect for characters with scales (like Dragonkin).

1.1.5

  • Add img2img workflow that tries to maintain the character's face (`preserve-face`).
  • Fix various behavior issues with the expandable prompt inputs.
  • Add a "Fetch last" button to the UI to help when ComfyUI doesn't return images properly.

1.1.4

  • Add Ultralytics portrait workflow for those who are having trouble with the default.
  • The new workflow requires new dependencies. See the Workflow Dependencies section of the README for details.
  • Add another safeguard for filenames which may contain forbidden characters.

1.1.3

  • Refine prompts.
  • Support more advanced portrait workflows.
  • Support workflows that return multiple images.
  • Better debugging output for error cases.
  • Various small fixes.

1.1.2

  • Fix failure when saving a character with a nickname.
  • Add filtering for LoRA selection.
  • Add more item descriptions
  • Update documentation

1.1.1

  • Fix an error when parsing fur that prevented generation of beastkin.
  • Update various race and item prompts.

1.1.0

  • Add support for LoRAs.
  • Add support for custom workflows.
  • Add settings persistence.
  • Refine the UI.

1.0.0

  • Add ComfyUI integration.

Nice little mod to have for beginners but depending on models, the results of such a prompt may vary a lot. For example, polluting the prompt with that many tags can probably blur the overall result of illustrous based models, which is the one I use. Another idea to complete the mod would be to separate prompts for bodies and portraits too, which usually don't show the same thing and don't have the same format. I very much appreciate the initiative though!

(1 edit)

> the results of such a prompt may vary a lot

Absolutely. Maybe I'll strip it down to just the tags based on the character stats and let the user input any extra tags they care about.

(1 edit)

This is great and fun to play with. Only problems I have are that I cant get it to generate prompts for SFCAric races and I cant seem to copy the nude negative prompt as the window closes whenever I the copy button or try to manually select the prompt. Is there a fix for this?

Thanks for the feedback! I'll take a look at the copying issue.

I don't have SFCAric's installed so I'll need to investigate those races. Shouldn't be terribly difficult to support them.

Works perfectly, thanks for the lightning fast fix!

(1 edit)

Updates:

  • The copy issue should be fixed.
  • All default framing and style directives should be completely overwritten if you provide anything at all in the prompts (even just a space).
  • Added support for SFC Aric's races, based on their text descriptions.

The new character UI changed substantially in 0.13.3. I'll need to move this button somewhere else when I get the chance.

Updated for 0.13.3.

I've overhauled the mod. You can now generate portraits right in-game if you have ComfyUI installed!

Hi,

I managed to install ComfyUI and the mod and to generate images for my characters, but I can't manage to generate the portrait from body. It gives me this:


Do you have an idea what I missed in the installation?

I would recommend checking the console within ComfyUI to see if it has any additional information.

I can also see about including more debugging information in the next release (which I'm preparing now).

Running into the same error with the ComfyUI console logs giving 

"invalid prompt: {'type': 'missing_node_type', 'message': "Node 'Face Bounding Box' not found. The custom node may not be installed.", 'details': "Node ID '#2'", 'extra_info': {'node_id': '2', 'class_type': 'FaceBoundingBox', 'node_title': 'Face Bounding Box'}}".

Possible cause I found checking I noticed that my import of "ComfyUI_FaceAnalysis" through ComfyUI mentioned in the ReadMe failed. I'd assume it's due to it requiring DLib or InsightFace. Trying to install those and get it working with Comfy have been a pain I'm working through.

Not 100% if this would be the cause of the issue, just wanted to chime in with my own findings. Hope this helps!

Yeah, that'll do it. I assumed the node would ship with all its dependencies (it did for me), but it seems like that might not always be the case. What platform are you running ComfyUI on?

Looking at it, it seems ComfyUI fails to install ComfyUI_FaceAnalysis for me too.

Now to install it manually...

Got it fixed and it's working now, I was correct and it was due to not having InsightFace installed which I had to do manually. What got it to work for me:

1. Using the terminal (I used VSCode Terminal) find the folder path where ComfyUI stores the virtual environment (.venv) folder, it will be the same folder that has the models. output, custom_nodes folder. 

2. Start the virtual environment. Should be like ./venv/Scripts/Activate

3. run the command "python -m pip install * " where the * is "insightface" then "onnxruntime" "opencv-python" and "numpy"

4. verify it installed correctly with the command "python -c "import insightface; print('InsightFace installed')""

Next time you open ComfyUI and check it should show no errors with the ComfyUI_FaceAnalysis node and it should work making portraits in game. This is what worked for me and I could of forgotten a step or two, ChatGPT was great in troubleshooting some stuff.

This was on a Windows 11 desktop for the platform.

Fantastic mod though it's very well implemented!

I'm glad you got it working, but manually installing packages into Comfy's venv is not ideal.

I'm looking into other options for face detection and cropping so people will potentially have alternate options.

I managed to get past the previous error, but I still get the same as Farquisian.

I think I'll wait for the mod next version to try again. It's taking to much brain power after a day of work. ^^

Thanks for the great mod. :-)

Hi Pyro, 
I'm getting an error "ComfyUI Error: No images in ComfyUI output". I can generate images manually using ComfyUI but nothing seems to happen in game. 

Is that using a default workflow? Are there any errors in the ComfyUI console?

Default workflow, yep. 

Its throwing ComfyUI Error: ComfyUI execution error: and then calling "ComfyUI\\resources\\ComfyUI\\execution.py" with a large string of text. 
I have extremely minimal coding knowledge so I can't pinpoint any other errors beyond the "No Images in ComfyUI output". It almost seems like the mod isn't asking ComfyUI to generate anything?

If you can dump the entire error into pastebin and link it here, I might be able to tell you what's going wrong. That "large string of text" is probably a stack trace that'll tell us what's crashing.

Sure thing:

https://pastebin.com/D3wwbyBi

That stack trace looks similar to one I saw yesterday. See the troubleshooting section in the README and try the last thing mentioned:

I'm seeing an error that looks like "[Errno 22] Invalid argument

This usually indicates a problem with ComfyUI's configuration. As discussed in this issue, try changing the port that ComfyUI is using (in the Server-Config settings).

That fixed it! Appreciate the help

I've released 1.1.4, which contains an alternate portrait workflow for those having trouble with Face Analysis.

To use the new workflow, you will need to download new dependencies using the manager:

Node packs: ComfyUI Impact Pack, ComfyUI Impact Subpack
Models: face_yolov8m (bbox)

It works! You're a good man pyro944.

I had to uninstall and reinstall ComfyUI, and the mod in the game. It could have worked faster if I had started by the mod. ^^

But now, it works and I just need to find good Loras and checkpoints. Any suggestions?

im curious, would it not be better to generate the nudes first before the clothed, or is there some reason you are generating the clothed first?

That's a great question!

When I tried to do that in the past, I almost always ended up with very skimpy clothing. For example, if I had explicitly prompted for sleeves, I wasn't able to get sleeves without really pumping up the weight of that part of the prompt.

You can still see this in reverse today. If you have a character with most of their skin covered, some of your nude generations will often have little bits of clothing covering them.

Facing these tradeoffs, I opted for giving the best support to the image that players would most likely see the most: the clothed body.

This is an amazing mod!  However, I seem to be running into an issue where the image generation just randomly gets stuck without saying there are any errors.  The status will say "Generating... (step 10/20)" and the step it gets stuck on is always random.  I can see looking at my ComfyUI console that all the steps are completing and the image shows up in my outputs folder, but it seems like the mod is getting interrupted somehow.  Pulling up the debug menu with F2 doesn't show any info.

Any idea what could be going on?  I can provide additional information if you need it.

Try the latest version of the mod. It has two changes that may help in cases where ComfyUI seems to be communicating inconsistently.

  1. I'm using a different event to signal the end of the workflow. This may be more reliable, but I can't prove it without more data.
  2. There's a new "Fetch last" button that will allow you to manually fetch the output of the last prompt if you know ComfyUI has actually finished.

It seems to be worse at detecting when the image is finished generating now.  I tried many times, but it never showed the pop up that the generation completed.  However, the fetch last button works great, so I was still able to get my outputs that way.

(+1)

I'm tracking an issue where sometimes the prompts generate for the wrong character. If you encounter it, the workaround is simple: just switch to another character's info screen and switch back.

This is *probably* fixed in the latest version (1.1.6). I haven't encountered it again since I put in some safeguards.

(1 edit) (+1)

Very cool mod. Finally pushed me to make my GPU try to do stuff. Claude Code made a breeze of installation, hard part is learning to prompt good images of fantasy races.

I can't find face_yolov8m (bbox) :(

(1 edit)

Make sure you've toggled "Use legacy Manager UI" on, then restart ComfyUI and search for face_yolov8m (bbox) in Model Manager, it should now appear there
Hope it helps

(1 edit)

Unsure why, but I can't generate portraits using the ultralytics method. I've followed the installation process correctly. txt2img and img2img work perfectly fine, but I'm presented with this error for portraits specifically:

ComfyUI Error: ComfyUI execution error: {"prompt_id":"2d7ba987-8840-42c4-564c-6ed56ed59556","node_id":"22","node_type":"ImpactFrom_SEG_ELT","executed":[],"exception_message":"From_SEG_ELT.doit() missing 1 required positional argument: 'seg_elt'
","exception_type":"TypeError","traceback":["  File \"F:\\...\\ComfyUI\\resources\\ComfyUI\\execution.py\", line 534, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
File \"F:\\...\\ComfyUI\\resources\\ComfyUI\\execution.py\", line 334, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
File \"F:\\...\\ComfyUI\\resources\\ComfyUI\\execution.py\", line 304, in _async_map_node_over_list
await process_inputs({})
File \"F:\\...\\ComfyUI\\resources\\ComfyUI\\execution.py\", line 296, in process_inputs\n    result = f(**inputs)
"current_inputs":{"seg_elt":[]},"current_outputs":["19","10","17","23","18","12","13","24","8","1","21","22","20","25","4","9"],"timestamp":1777412457081}

Is this a bug, or am I doing something wrong?

EDIT: I've been playing through a new save for a bit, and I think I can say that for whatever reason, the portraits are working with the exception of my own character, which is just a male Beast Wolf. I'm not really sure why, as I've made portraits for several humanoid characters and a few other beastkin, and it seems to work. My only guess is that the character itself has a pronounced muzzle compared to other characters, which may be making it difficult for him to have his face recognized.

Could be an incompatible change to an interface. I'll update Comfy and check on it.

Ive been getting this error cant find a fix to it


ComfyUI Error: ComfyUI rejected prompt (HTTP 400): {"error": {"type": "missing_node_type", "message": "Node 'Power Lora Loader (rgthree)' not found. The custom node may not be installed.", "details": "Node ID '#29'", "extra_info": {"node_id": "29", "class_type": "Power Lora Loader (rgthree)", "node_title": "Power Lora Loader (rgthree)"}}, "node_errors": {}}


Any ideas as to why Ive checked that rgthree is installed and working but for some reason i just get this error ive changed the security level and network mode nothing changed