Mod Lab Rats 2 Reformulate GenAI Mod Thread

idfkru

Newbie
Nov 6, 2024
41
38
86
I'm guessing it only crops up when you don't have a json that matches your checkpoint.

So would putting your model name in the json "Model" field avoid this?

I haven't done much testing with maswoo's and appreciate your feedback as I'm trying to implement some of his features in my GenAI mod.
I'm gonna be honest I'm in the very beginning stages of learning coding, and mostly just on C++ so far at that, so I'm not going to be much use here
 
  • Like
Reactions: Magister Crudi
May 23, 2023
266
184
119
I'm gonna be honest I'm in the very beginning stages of learning coding
I don't need your coding insight so much as your testing experience with maswoo's mod.

Best of luck learning coding BTW. If you enjoy it enough to keep at it as a hobby it will help keep your logical and structural thinking sharp as you get older, even if you never earn money with it.
 
  • Like
Reactions: idfkru

waaazzzaaa

New Member
Nov 3, 2022
6
5
127
'Mature' GenAI mods:


AnotherMike's 'bugfix' version
AnotherMike's narration text version

All of the above include html instructions for installing Stable Diffusion.

Attached is the V0.01 alpha release of a mod I'm working up from AnotherMike's narration text version. It currently only works properly with the but I'll be adding more over time. It's meant to better fit generated GenAI images to what's happening in the game. Eventually I'll train a checkpoint optimised to LR2 image requirements and post a link in this forum.
It may be unique to my 512x768 rez, which may limit my compatibility with cyberpony but I've made quite a few prompt changes to the builder and its been a huge improvement.

Probably the biggest is no angry or sad... going from sad to happy would either totally change the person or +/- 15 years instantly.
I've set a few more tiers and it works really good with almost everything except glasses (but nothing works with glasses :rolleyes:)
300 to 250 Happyness = very happy>happy>smiling>content>stoic>frowning; else=grumpy

I changed African to Black, and black skin to dark skin. CyberPony African was very limited. So an output would be:
green eyes, stoic, (dark skin:1.3), , (((Black:1.55))), 33 years old -etc

also Latina was changed to Hispanic for the same reason. Hispanic works pretty good with hair colors and skin weights up to 1.5:
green eyes, content, ((brown skin:1.3)) , (((Hispanic:1.3))), 31 years -etc.

White or black skin was nearly impossible with Latina. Hispanic is also adaptive with the color weight, noticeable gradients going down to ((brown skin:1.1)) but rarely changing the face entirely, ((white skin:1.1)) and ((black skin:1.1)) less perceptible but functional. Maybe eventually tanning salon and serum skin lightening could be incorporated by adjusting the prompt weights.

"tan" skin seems to work best as ((brown skin:1.3))

I took "aki" out of Asian and added "Ling". Ms.Warugaki is one of the SuperSecretaries from the mods but almost always spawns as an Amazon with orange hair. I couldn't get that to work with Asian

"Grandmother" can be a bit extreme... especially an angry Grandmother with glasses... oh man PTSD!!! Elderly characters that don't have white hair are much less traumatic.

mouth overflowing was removed, just left as dripping and drooling.

Maybe just personal preference but FF breasts became huge:1.3 and the others scaled accordingly.

Body weight seemed to work best with Skinny>thin>'blank'>curvy>overweight. Thin seems to be just below avg and doesn't scale much but skinny and curvy had noticeable changes with prompt weights. Some of your fancy BMI maths could make those bodys dynamic. :geek:

I think (tall body:0.3) is actually short :ROFLMAO:

Capris pants seems to break CyberPony's brain and nearly guarantees a mild hallucination... usally streaking but can be worse. I'm experimenting with "Leggings" as a replacement.

added - "logo, logos, text," to default negative prompt as there was a lot of logos on shirts, those nagative don't eliminate the issue just reduce.

And lastly, my greatest contribution to the universe.... glasses are replaced by (contact lenses:0.1) :cool:*

*possibly breaks any story related to LASIK as that option seems to have disappeared
 
May 23, 2023
266
184
119
Probably the biggest is no angry or sad... going from sad to happy would either totally change the person or +/- 15 years instantly.
I've set a few more tiers and it works really good with almost everything except glasses (but nothing works with glasses :rolleyes:)
300 to 250 Happyness = very happy>happy>smiling>content>stoic>frowning; else=grumpy
Yeah, I've noticed that problem. Thanks for the tip. Will try it out.

I changed African to Black, and black skin to dark skin. CyberPony African was very limited.
I get good results with 'African' (example below) but yeah, 'Latina' tends to be subtle, though still noticeable. Will check out 'Hispanic'.

I took "aki" out of Asian and added "Ling". Ms.Warugaki is one of the SuperSecretaries from the mods but almost always spawns as an Amazon with orange hair. I couldn't get that to work with Asian
Below is my current Ms Warugaki engaged in one of her favourite pastimes. I don't have problems with the 'Asian' attribute but the orange hair can be a problem unless I also specify it in the 'Append' part of the prompt. Ditto with Myrabelle's blue hair.

There's also other Asian surnames ending in 'aki' in the game and they always work properly for me. Hadn't spotted 'Ling' before though.

"Grandmother" can be a bit extreme... especially an angry Grandmother with glasses... oh man PTSD!!! Elderly characters that don't have white hair are much less traumatic.
Yeah, lots of probs getting CyberPony to respond well to age prompts. It's either nothing or full-tilt. V14 is a noticeable improvement over V13 though.

Maybe just personal preference but FF breasts became huge:1.3 and the others scaled accordingly.
I've been messing with breast scales since I started and still can't find anything I consider reasonable. Even setting the game start sliders for large/huge breasts to tiny percentages seems to give me a lot of women who look like they'd have trouble walking.

Capris pants seems to break CyberPony's brain and nearly guarantees a mild hallucination... usally streaking but can be worse. I'm experimenting with "Leggings" as a replacement.
Maswoo solved that with his jsons and I'm currently in the process of stealing his ideas. BTW, CyberPony can't seem to decide if leggings are full length pants or just thick stockings that only reach the thighs. Maswoo's stuff solves a lot of problems with models not understanding prompts; whether it's clothes, colours, body descriptions, locales, furniture ...

And lastly, my greatest contribution to the universe.... glasses are replaced by (contact lenses:0.1) :cool:*
A cheat, but a forgiveable one given CyberPony's issues with them.

Like maswoo, I plan to make my mod adaptable to different checkpoints with json files. Looks like I'll have to include 'glasses' in that - as well as emotions like 'happy', 'angry', etc. Don't want to give users nightmares about their naked grandmas coming after them with meat cleavers.

Thanks heaps for your feedback waaazzzaaa. It's exactly what I've been hoping for.
 

jamrow

New Member
Jun 3, 2017
2
3
186
Hi, I don't have any previous experience with AI or programming, but I wanted to install this mod. As a result, I got something like this:
1760451875611.png
Could someone help me figure out me what I fucked up?
 
May 23, 2023
266
184
119
Could someone help me figure out me what I fucked up?
OK, but it's nearly 2am here so I'll be a while.

In the meantime could you post details of the GenAI mod you're using, your Stable Diffusion checkpoint, your hardware and maybe a screenshot of what the GenAI Config screen looks like when your MC is chatting up dogs.
 

jamrow

New Member
Jun 3, 2017
2
3
186
OK, but it's nearly 2am here so I'll be a while.

In the meantime could you post details of the GenAI mod you're using, your Stable Diffusion checkpoint, your hardware and maybe a screenshot of what the GenAI Config screen looks like when your MC is chatting up dogs.
I am using mod from this link: , I don't know how to chcek Stable Diffusion checkpoint, my graphic card is Nvidia rtx 3060 laptop gpu,
1760458350037.png
1760458386532.png
 

NaughtyAnon

Newbie
Apr 2, 2020
44
36
152
I am using mod from this link: , I don't know how to chcek Stable Diffusion checkpoint, my graphic card is Nvidia rtx 3060 laptop gpu,
View attachment 5341967
View attachment 5341969
gimb Nailed it. You don't have any profiles or they are in a folder that cannot be read. It should look like these two screen shots. The first one is a profile has been selected and the second is the list of available profiles which would have at least the default and sample.

Screenshot 2025-10-14 094548.png Screenshot 2025-10-14 094618.png

If no profiles folder is found it needs to be added and profiles from the from the original download added back in.
 

TheItch

Newbie
Jul 24, 2021
44
162
124
Can someone explain how to build prompts for this mod? Not in game but as a .json.
I've attached one of my older, but functional profiles that you can use as a base.
(it includes a snapshot of Maswoos GenAI mod that the profile was made for).

The way i do it:
I will take an image from \game\mods\GenAI\generated_images, import it in A1111 (PNG info), send it to txt2img and start tuning/crafting the prompts.
Isolate either pose prompts, or clothing prompts, or w/e else and get to modifying them.
Once i find a prompt that works, i put it into json, and run it in game to see various prompt interactions and if something breaks, i repeat the img import process and look for the prompt(s) that is causing instability.
A lot of trial and error, really.

I highly recommend using this plugin to speed up prompt crafting/tuning:

I am more active on the LR2 discord than on F95. And there are a bunch more people doing this shit over there as well. Most of my json profiles are posted here:
 
Last edited:

idfkru

Newbie
Nov 6, 2024
41
38
86
I am using mod from this link: , I don't know how to chcek Stable Diffusion checkpoint, my graphic card is Nvidia rtx 3060 laptop gpu,
View attachment 5341967
View attachment 5341969
did you install Python 3.10.6 while installing Automatic1111? Not sure if not doing so could present like this, but seeing that the prompt builder is a .py file it's possible (although there are already json prompts?) Could someone more knowledgeable chime in
 
Last edited:
May 23, 2023
266
184
119
Could someone help me figure out me what I fucked up?
I agree with gimb and NaughtyAnon. Running maswoo's with no profile could give you anything.

I haven't looked at TheItch's FaserCore mod (thanks TheItch) but I can endorse using A1111 to tune the prompts. It's a lot faster (and more transparent) than tweaking the jsons and restarting the game until you get what you want. OTOH the more complex compound prompts the game builds don't always behave the same as the simpler ones you type into A1111.

I don't know how to chcek Stable Diffusion checkpoint
Open the A1111 UI in your browser. If it doesn't come up automatically when you start WebUI you can start it by pasting into your address bar (assuming your webui-user.bat has --port=7860 in its COMMANDLINE_ARGS).
You'll see your currently selected Stable Diffusion checkpoint in the top left corner.

From your screenshot you're using dreamshaperXL ('model' and 'checkpoint' are often used interchangeably). I find it's best to select the same checkpoint/model in A1111 and GenAI to avoid confusing the mod.

I haven't used maswoo's mod much, but when I do I use with the attached profile and get reasonable results. Put the checkpoint in your webui\models\Stable-diffusion folder and illustriousUltrareal_v10.json in your mods\GenAI\prompts folder. To load the checkpoint in A1111 you'll need to click the refresh button next to the Stable Diffusion checkpoint pull-down menu then select it with the pull-down.

Edit: When I attached the json alone F95 flagged it as a virus, so I've included it as part of maswoo's mod. Not sure if my version of maswoo's is up to date so it's probably best to only copy over the prompts folder instead of the whole thing.
 
Last edited:
May 23, 2023
266
184
119
added - "logo, logos, text," to default negative prompt as there was a lot of logos on shirts, those nagative don't eliminate the issue just reduce.
The logos on shirts often give hints as to what words aren't being processed as prompts by the checkpoint.

They're not the only clues though. This is what you get when Mom walks into the living room wearing an orange Teddy.
 
Last edited:

waaazzzaaa

New Member
Nov 3, 2022
6
5
127
The logos on shirts often give hints as to what words aren't being processed as prompts by the checkpoint.

They're not the only clues though. This is what you get when Mom walks into the living room wearing an orange Teddy.
But how can that be mother of a CEO?! Well, maybe the CEO of a laboratory that made her wrinkle erasing skin serums... I suppose

I wondered if it was 2010 World Cup again, as everybody started wearing "Africa" on their shirt. Also, randomly teleporting to Brazil:ROFLMAO:



The contact lenses seem to be working wonders, no story issues, I can still gift them LASIK. It just took a few days to be available I guess.

(drooling:1.5) (dripping:2.0) are much more evident, so I've been running with that replacement. Not sure if there is any way to pull the count from belly tracker but if that could somehow increase the prompt weight each time... :alien:


I'm finding that a generic replacement generally is great way to fix unrealistic or incompatible hair colors
I made emerald (light colored hair), dark emerald (dark colored hair), dark grey "blank", Forest Green (hair highlights)

For eyes I'd do something similar - emerald = (light colored), dark blue = (dark colored), grey = no eye prompt

If I understand prompting correctly,
(parenthesis) = this has priority
(((parenthesis))) = this has priority!!!
(parenthesis:1.5) = do what is in parenthesis 1.5 x stronger
(parenthesis:0.5) = 50% less; also possibly, don't make a freakazoid render to make that true

Assuming the above is correct, I changed the happiness scale to eliminate sad, grumpy, unhappy or even frown, as those seemed to be trained on angry witches with wrinkles to varying degrees. Best replacement I could find was melancholy. Also, "very happy" seemed to be trained on people who just won the lottery.

So now I have - happy>smiling>(smiling:0.5)>(smiling:0.1)>content>stoic>(melancholy:0.3); else=melancholy

New geforce drivers today and I chose the clean install option, renders in the webui went from 15 to 11 seconds. So, now my poor mans version of a HQ button, is simply turning on Adetailer and those take about 20 seconds. (8gb gtx3070 using cyberpony @ 512x768) I'd still never want to walk around town with adetailer always on though. Adetailer is too prejudice against ladys with wrinkles.



Is there a way to add adetailer to a characters append prompt and have it take less steps and focus mainly on eyes?
 

kxx

Newbie
Aug 11, 2016
24
29
106
Those command line args are AnotherMike's suggestions for GPUs that struggle with Stable Diffusion. If you've got a recent NVidia GPU you should take out --medvram and --no-half-vae.
Oh, thank you! Just removed them.

But that wouldn't fully explain the errors you're getting. Your first screenshot suggests SD is throwing garbage images from the prompts the game sends it.
I'm guessing it could be some incompatibility between the game version I was using? No idea really, but it worked just fine on maswoo's branch of the mod as soon as I fixed that one mistake on SD_UI.py.

What do you mean by 'close the terminal'?
Just closing the AI's cmd window.

Yeah there's a mistake in the code. Go to the mods/GenAI folder, edit the file SD_UI.rpy, go to line 127 (just ctrl+f for mismatch, it's the only place it's used in the document) and put parentheses where the error message tells you to, so it should say:
Thanks, it worked. Given how I couldn't run a single version of the mod I just thought I was getting some bullshit error message and didn't even think to try and check it.
 

Muji-k

New Member
Mar 1, 2018
10
3
91
I just modded glasses out in my prompt files. Full-body portraits don't leave enough pixels to make good-looking eyes with glasses.
Adetailer can help a lot with faces with not enough pixels to make details.
I'm trying to create a custom profile for my use for a model that I like (pornmaster_proSDXLV7), and the results are quite nice, even with glasses
1760570051903.png 1760570122952.png
although Adetailer does increase generation time, as it has to do a second pass to fix the faces so I also recommend to use the 'dmd2_sdxl_4step_lora', to reduce generation steps (these images were created with 8 steps, with a model tuned to ~25 steps). I find out that it helps a lot, although sometimes it messes up the generation (1/20)
 
Last edited:
  • Like
Reactions: Magister Crudi
May 23, 2023
266
184
119
But how can that be mother of a CEO?! Well, maybe the CEO of a laboratory that made her wrinkle erasing skin serums... I suppose
I thought you were using CyberPony too. Don't you get age appearances as either young hotties or old hags with nothing in between?

I wondered if it was 2010 World Cup again, as everybody started wearing "Africa" on their shirt.
If you're using 'Africa' instead of 'African' as a racial prompt it would do that, but didn't you change it to 'Black'?

If I understand prompting correctly,
(parenthesis) = this has priority
I have a lot of Irish friends, so I think of (parenthesis) as "to be sure", ((parenthesis)) as "to be sure, to be sure" and (((parenthesis))) as "dhera, now yer just messing with me".

New geforce drivers today and I chose the clean install option, renders in the webui went from 15 to 11 seconds.
Do you use a utility (e.g. MSI Afterburner) to throttle your GPU?
Reason I ask is because I use MSI to stop the GPU temp going over 80C and last time I updated the driver it cleared the setting. I immediately got quicker responses but, as I soon discovered, at the cost of 85+C GPU temps.

Is there a way to add adetailer to a characters append prompt and have it take less steps and focus mainly on eyes?
If you want to focus on eyes use . Using ADetailer only for certain characters would take some extra coding and is beyond the scope of 'Append'.
 
Last edited:

Muji-k

New Member
Mar 1, 2018
10
3
91
Now there's a promising model name. Gonna check that one out.
lol, yeah the model name is quite suggestive, it's easy to find as it's one of the most popular nsfw models on civitai, and I find it's one of the better ones at doing both, sex scenes and non sex scenes.
It also understand quite nicely the clothing prompts, the only problem I'm having is with the suit jacket, which the model refuses to understand that the girl should be wearing a shirt under the jacket,and gives a picture of a girl with jacket and bare boobs 90% of the time, but I'm still tweaking my profile to try to solve it.
And it doesn't help that negative prompts are apparently not working on the mod, (the picture generated is the same, no matter what I put on the neg prompt).