ZacariasF100

Newbie
Nov 1, 2022
92
53
141
ZacariasF100

The issue about "lives in Unknown", or when the location does not appear in the map, its a real nuissance.

When only affects to 1 single NPC, it can be fixed by typing in console while dialoguing with her:

$ the_person.generate_home(force_new_home = True)

This will reset her house location, that you can know by typing in console while dialoguing with her:

mc.known_home_locations.append(the_person.home)


The real problem is when that affects two or more NPCs sharing the same house, I couldn't find a solution for that.

Renaming NPCs tends to cause this issue. I recomend knowing the address before renaming.
Its the best way to solve this for now.Thank U guy!
 

leminal

Newbie
Jun 27, 2020
60
28
77
I'm using a slightly older, unmodded version and can't get the cloning facility to work. I got the policy, clicked on the option to build the cloning facility in the R&D section, but nothing happened. A few weeks passed in-game.
I've got T3 research and the dungeon.

Anyway I can build it with console or change requirements for cloning? It might just be a bug at this point.
 

ramvivat

Engaged Member
Jun 28, 2022
3,554
2,087
396
not asking why - it doesn't make any sense to my why you want that -
if you find the event flags, you might be able to reset them
could break more stuff than you realize due to possible dependencies
this is necessary for the implementation of the final policy of turning the city into a city of total debauchery haha... and for this you must give your mother into the hands of Vanderberg so that he fucks and knocks up your mother. then he will agree to the fact that the policy of officially allowing public sex on the street will be available (which will turn the city into a debauchery city). a big goal of this kind requires big sacrifices. personally, I did not go for such sacrifices. but that's me - a snowflake who does not like NTR. I quickly took my mother away from Vanderberg, making her my Personal secretary slash personal office slut, making it impossible to implement this event in principle. in my city public nudity is allowed, but not public sex.
 

nobodx

Newbie
Nov 2, 2017
95
66
194
I'm using a slightly older, unmodded version and can't get the cloning facility to work. I got the policy, clicked on the option to build the cloning facility in the R&D section, but nothing happened. A few weeks passed in-game.
I've got T3 research and the dungeon.

Anyway I can build it with console or change requirements for cloning? It might just be a bug at this point.
If I recall correctly, it just allows you to copy an existing NPC, I think from their dialog - they might've been infertile - not sure about that- but i found no reason to copy someone for myself (who needs a cabon copy of your sister - not as your sister, but a normal npc)
 

Edwarf

Member
Jun 8, 2017
432
495
210
ZacariasF100

For those having problems with NPC homes, like "She lives in Unknown", or missing a location due renaming the house owner:

- The workaround for "She lives in Unknown" was already mentioned here.

- To recover a location missed for renaming an NPC, we need to talk with the owner and set her name in her house again by typing in console:

the_person.home.name = "Actual Name"

Then, we have to type in console:

the_person.home.formal_name = "Actual Name"

Where "Actual Name" is the name of the NPC right now. After that, the house should be accessible again.
 
Last edited:

DawnFeather

New Member
Oct 31, 2022
3
1
13
You can increase the trigger-chance for the morning / evening crisis-events to fire, if that's what you mean - it should be somewhere in the mod-options in your bedroom
I meant more of viewing the python code, all of the files seem to be in binary. I saw people discussing how they checked the code for events and triggers before, but haven't been able to find any plaintext files.
 

nobodx

Newbie
Nov 2, 2017
95
66
194
I meant more of viewing the python code, all of the files seem to be in binary. I saw people discussing how they checked the code for events and triggers before, but haven't been able to find any plaintext files.
Ahhh
you might want to check out UnRen for that
https://f95zone.to/threads/unren-ba...compiler-console-developer-menu-enabler.3083/
its a batch-file that extract the RenPy files from the ".rpa" archives using python and should be able to generate readable (and editable) ".rpy" textfiles
 

OverlordCW

Member
May 22, 2023
143
214
176
I meant more of viewing the python code, all of the files seem to be in binary. I saw people discussing how they checked the code for events and triggers before, but haven't been able to find any plaintext files.
 

ZacariasF100

Newbie
Nov 1, 2022
92
53
141
ZacariasF100

For those having problems with NPC homes, like "She lives in Unknown", or missing a location due renaming the house owner:

- The workaround for "She lives in Unknown" was already mentioned here.

- To recover a location missed for renaming an NPC, we need to talk with the owner and set her name in her house again by typing in console:

the_person.home.name = "Actual Name"

Then, we have to type in console:

the_person.home.formal_name = "Actual Name"

Where "Actual Name" is the name of the NPC right now. After that, the house should be accessible again.
Thank U very much.What is more ,is there any way to solve the Pregnant Belly without any information in the girl's profile?I recruit her then she become milky and get the Big Belly but no event happen to change her status to Pregnant.
 

ZacariasF100

Newbie
Nov 1, 2022
92
53
141
can player add girl names and families?
i wanna have Tomoe Kisaragi and other girls from VN "Waifu Academy" in my harem.
the File for Names is in the renpy-8.3.7-sdk\lr2mods-develop\game\major_game_classes\character_related\configuration.Just use Notebook to open the "character_name_lists_ren.py".
 
  • Like
Reactions: ramvivat

hibakuxa

Newbie
Nov 10, 2017
31
32
37
For anyone using GenAI who’s still struggling with image generation or finding prompts overwhelming, I’ve made major modifications to the code that have produced excellent results.


Key improvements include:

  • An intelligent caching system where images are stored based on character state, so identical scenes reuse existing images instead of regenerating them.
  • The prompt generation is now enhanced with a robust clothing detection and classification system that correctly handles all clothing types.
  • In terms of performance, this has cut generation time by around 80% for repeated scenes.
  • The cache persists across game sessions

From a technical standpoint, it now includes comprehensive clothing region mapping (torso_full, torso_upper, etc.), a visibility aware weighting system, deduplication, and error handling with fallbacks.

View attachment 5131973 View attachment 5131981 View attachment 5131984 View attachment 5131986 View attachment 5131990

The system is far from perfect so use at your own risk. I just wanted to share this with the community in case anyone finds it useful.
I tested your GenAI upgrade. I can't help coding, but I hope the feedback helps with some random thoughts:
1 - Your upgrades are interesting and it does run smoothly overall. So I'm very grateful for your great work.
2- I really like the feature you added where you can turn on and off the GenAI, allowing you to play with the ingame pictures. Although if possible I would prefer it to be automatic. Showing ingame images until there is a GenAI image to replace it.
3- Also the cancel button... Big thanks! For those with slow computers like me... huge thanks!
4 - A quick upgrade to all GenAI versions out there is adding a location tag: "at the beach", "at the gym", etc, it helps the AI to produce more realistic content even if you have no background. For instance adding "at the beach" deeply impacts women's hair.
5 - I do miss a few things from the GenAI version I've been using before: One thing I miss is the "Narration Processing", I don't use it all the time but when I see good behaviourally relevant narration text I turn it on and it can produce some very interesting pictures. You can find it here: version from AnotherMike with Narration Processing. If you can add this to your version would be awesome.
6 - Now if I'm being picky, I would suggest a clearer prompt builder. Something like this.

FULL POSITIVE PROMPT = A + A'' [BREAK] B + B'' [BREAK] C + C''
FULL NEGATIVE PROMPT = D + D'' [BREAK] E + E'' [BREAK] F + F''

Example below - I can't code but i do know how to use a drawing tool ;)
example.png

So basically what I'm proposing is a positive and negative prompts with space for the whole prompt to be visible and properly readable. These 2 prompts are a sum of the ones below.
The partial prompts below would work as buttons instead of repeating the text again there. When you click it opens a non-transparent BIG box for you to write whatever.

The A+D prompts would be valid to all the interactions within the game. It relates to the overall style of the images created.
The B+E prompts would contain information only valid to that specific women. It relates to age, profession, face, body, hair, skin, etc.
The C+F prompts would contain the conditional information that relates to that specific interaction only. It would contain locale, clothing, pose, interaction details, etc

If this could be coded I think it would make navigating the prompts far easier. Going even further, the Narration Processing could be included with on and off switches as two extra buttons.

I hope it helps. Everything looks so easy when you don't know how to code.
I hope my remarks help in any way and Big big thanks for your contributions!
 
  • Like
Reactions: JoZEr

AxelVieyra

Member
Jul 10, 2021
301
70
152
I tested your GenAI upgrade. I can't help coding, but I hope the feedback helps with some random thoughts:
1 - Your upgrades are interesting and it does run smoothly overall. So I'm very grateful for your great work.
2- I really like the feature you added where you can turn on and off the GenAI, allowing you to play with the ingame pictures. Although if possible I would prefer it to be automatic. Showing ingame images until there is a GenAI image to replace it.
3- Also the cancel button... Big thanks! For those with slow computers like me... huge thanks!
4 - A quick upgrade to all GenAI versions out there is adding a location tag: "at the beach", "at the gym", etc, it helps the AI to produce more realistic content even if you have no background. For instance adding "at the beach" deeply impacts women's hair.
5 - I do miss a few things from the GenAI version I've been using before: One thing I miss is the "Narration Processing", I don't use it all the time but when I see good behaviourally relevant narration text I turn it on and it can produce some very interesting pictures. You can find it here: version from AnotherMike with Narration Processing. If you can add this to your version would be awesome.
6 - Now if I'm being picky, I would suggest a clearer prompt builder. Something like this.

FULL POSITIVE PROMPT = A + A'' [BREAK] B + B'' [BREAK] C + C''
FULL NEGATIVE PROMPT = D + D'' [BREAK] E + E'' [BREAK] F + F''

Example below - I can't code but i do know how to use a drawing tool ;)
View attachment 5191775

So basically what I'm proposing is a positive and negative prompts with space for the whole prompt to be visible and properly readable. These 2 prompts are a sum of the ones below.
The partial prompts below would work as buttons instead of repeating the text again there. When you click it opens a non-transparent BIG box for you to write whatever.

The A+D prompts would be valid to all the interactions within the game. It relates to the overall style of the images created.
The B+E prompts would contain information only valid to that specific women. It relates to age, profession, face, body, hair, skin, etc.
The C+F prompts would contain the conditional information that relates to that specific interaction only. It would contain locale, clothing, pose, interaction details, etc

If this could be coded I think it would make navigating the prompts far easier. Going even further, the Narration Processing could be included with on and off switches as two extra buttons.

I hope it helps. Everything looks so easy when you don't know how to code.
I hope my remarks help in any way and Big big thanks for your contributions!
Is it normal that images takes much time to create? Or I configured it wrong? Because I have to wait like 7 minutes to each option, talk, small talk, kiss and each one generates a image.
 

hibakuxa

Newbie
Nov 10, 2017
31
32
37
Is it normal that images takes much time to create? Or I configured it wrong? Because I have to wait like 7 minutes to each option, talk, small talk, kiss and each one generates a image.
The time it takes depends a lot on your configs, desired results, and the machine you're playing in.
I have an old machine. I have to use the "--lowvram" in the stable diffusion command line for it to work. Each image takes about 2 minutes for me. And i find it unplayable. The reason I'm investing time in it is because I expect to have a new computer soon enough.
Anyway, if you don't have to use that argument in the command line, you should get faster results than me.

Screenshot 2025-08-28 015752.jpg <<< these are the in-game configs i use

You can find the model checkpoint here: and basically I use their recommended settings for sampler (LCM) steps (7) and cfg scale (1.3). I also kept their image aspect ratio of 1.25 although using a lower resolution 640x800. I tried using their recommendation size but it would take more time to generate the images and it would break often.

My first attempts at GenAI were far worse. For instance when I tried the LCM sampler for the first time I thought it was literally the worse of the list. In the meantime I realized that the important thing is to use a model checkpoint with the settings they were trained to work with to get proper results.
Some model checkpoints are meant for artistic purposes with high quality generations but require an high number of steps to provide any outcome, while others give you decent results with few steps but if you raise the number of steps they fall behind in the artistic value.
In our case if the game is to be playable and enjoyable, that means time is an important factor. So my advise is using a model checkpoint that was trained to give good and consistent results with a low step requirement. The lower the steps, the faster the generations will be.

These are a few examples using the GenAI version shared by user689. No big prompt changes. Just adding to positive prompt style "<lora: Pony Realism Slider:2.8>, Stable_Yogis_PDXL_Positives2" and to negative "Stable_Yogis_PDXL_Negatives2-neg".
You can find the LORA here:
You can find the embeddings here: ,

00000-33751248.png 00001-34472145.png 00002-35782872.png 00003-34275537.png 00004-34865363.png 00005-35455196.png 00006-34341075.png 00007-34078931.png 00008-33489099.png 00009-35061968.png

Those are the first 10 interactions in a new game. Not all is perfect but I have to say that I'm happy with image quality and overall consistency of the results.
 
Last edited:

simon247

Newbie
Jan 1, 2020
30
18
47
FYI the realporn MOD (and the GenAI MOD) do not work out of the box on Linux because the author sets the path to game/Mod while the real name of the folder game/mod and then there is sometimes an issue with the casing of the genre subfolders..
A couple of months back I had tracked down the code of the MOD and made a fix but I can't seem to find it anymore.
I was going crazy trying to figure out why it's not working. Did anyone have any luck making an update or edit of that mod so it works on platforms that aren't Windows?
 

Draakaap23

Dying is always an option
Donor
Jul 5, 2017
1,288
2,901
499
I was going crazy trying to figure out why it's not working. Did anyone have any luck making an update or edit of that mod so it works on platforms that aren't Windows?
You can run it through Lutris on Linux with standard settings and the Realporn mod works then. I do not use the AI slop so I don´t know about hat part
 
  • Like
Reactions: simon247

AxelVieyra

Member
Jul 10, 2021
301
70
152
The time it takes depends a lot on your configs, desired results, and the machine you're playing in.
I have an old machine. I have to use the "--lowvram" in the stable diffusion command line for it to work. Each image takes about 2 minutes for me. And i find it unplayable. The reason I'm investing time in it is because I expect to have a new computer soon enough.
Anyway, if you don't have to use that argument in the command line, you should get faster results than me.

View attachment 5193167 <<< these are the in-game configs i use

You can find the model checkpoint here: and basically I use their recommended settings for sampler (LCM) steps (7) and cfg scale (1.3). I also kept their image aspect ratio of 1.25 although using a lower resolution 640x800. I tried using their recommendation size but it would take more time to generate the images and it would break often.

My first attempts at GenAI were far worse. For instance when I tried the LCM sampler for the first time I thought it was literally the worse of the list. In the meantime I realized that the important thing is to use a model checkpoint with the settings they were trained to work with to get proper results.
Some model checkpoints are meant for artistic purposes with high quality generations but require an high number of steps to provide any outcome, while others give you decent results with few steps but if you raise the number of steps they fall behind in the artistic value.
In our case if the game is to be playable and enjoyable, that means time is an important factor. So my advise is using a model checkpoint that was trained to give good and consistent results with a low step requirement. The lower the steps, the faster the generations will be.

These are a few examples using the GenAI version shared by user689. No big prompt changes. Just adding to positive prompt style "<lora: Pony Realism Slider:2.8>, Stable_Yogis_PDXL_Positives2" and to negative "Stable_Yogis_PDXL_Negatives2-neg".
You can find the LORA here:
You can find the embeddings here: ,

View attachment 5193217 View attachment 5193218 View attachment 5193223 View attachment 5193224 View attachment 5193225 View attachment 5193226 View attachment 5193227 View attachment 5193231 View attachment 5193233 View attachment 5193248

Those are the first 10 interactions in a new game. Not all is perfect but I have to say that I'm happy with image quality and overall consistency of the results.
Thank you so much. I will try this setup. They look good, which one is Nora?
 
  • Like
Reactions: hibakuxa

hibakuxa

Newbie
Nov 10, 2017
31
32
37
Thank you so much. I will try this setup. They look good, which one is Nora?
I didn't do the generations of the introduction. So there is no Nora.
1 Stephanie, 2 Sis (Lily), 3 Mom (Jennifer), 4 Camilla and the rest are random NPCs

I should warn you that the GenAI version from user689 seems to have a problem with layers of clothing. If the girl is wearing a jacket, it's not retrieving the info from the game to the prompt of whatever she's wearing below. So you will be getting lots of topless action below jackets. I only understood the problem after that post. I'm considering going back to the version shared by AnotherMike: https://f95zone.to/threads/lab-rats-2-reformulate-v2025-4-0-37.32881/post-17311834
 
  • Like
Reactions: AxelVieyra

AxelVieyra

Member
Jul 10, 2021
301
70
152
I didn't do the generations of the introduction. So there is no Nora.
1 Stephanie, 2 Sis (Lily), 3 Mom (Jennifer), 4 Camilla and the rest are random NPCs

I should warn you that the GenAI version from user689 seems to have a problem with layers of clothing. If the girl is wearing a jacket, it's not retrieving the info from the game to the prompt of whatever she's wearing below. So you will be getting lots of topless action below jackets. I only understood the problem after that post. I'm considering going back to the version shared by AnotherMike: https://f95zone.to/threads/lab-rats-2-reformulate-v2025-4-0-37.32881/post-17311834
Ok, the ai is so complicated. I will try those to genAi and lower the resolution to see which one is better. Thanks.
 

Not YrBroom

Member
Feb 9, 2023
196
242
134
Seeing some odd behavior with the GenAI stuff and the 2025.07-betaVTMod4.0.37 release. I can't generate images and when I try I see a traceback on the SD console:

Code:
│E:\ai\sdnext\sdnext\modules\processing.py:135 in process_images                                                       │
│                                                                                                                      │
│  134 │   for k in p.override_settings.keys():                                                                        │
│❱ 135 │   │   stored_opts[k] = shared.opts.data.get(k, None) or shared.opts.data_labels[k].default                    │
│  136 │   processed = None                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
KeyError: 'always_discard_next_to_last_sigma'
Also when I try to click the "GenAI Settings" option I'm seeing this:


Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/mods/GenAI/SD_UI.rpy", line 775, in execute
    screen SDConfig_menu():
  File "game/mods/GenAI/SD_UI.rpy", line 775, in execute
    screen SDConfig_menu():
  File "game/mods/GenAI/SD_UI.rpy", line 778, in execute
    frame:
  File "game/mods/GenAI/SD_UI.rpy", line 784, in execute
    viewport:
  File "game/mods/GenAI/SD_UI.rpy", line 790, in execute
    vbox:
  File "game/mods/GenAI/SD_UI.rpy", line 801, in execute
    if not have_connection:
  File "game/mods/GenAI/SD_UI.rpy", line 816, in execute
    vbox:
  File "game/mods/GenAI/SD_UI.rpy", line 889, in execute
    frame:
  File "game/mods/GenAI/SD_UI.rpy", line 892, in execute
    vbox:
  File "game/mods/GenAI/SD_UI.rpy", line 921, in execute
    hbox:
  File "game/mods/GenAI/SD_UI.rpy", line 924, in execute
    $ schedulers = get_available_schedulers()
  File "game/mods/GenAI/SD_UI.rpy", line 924, in <module>
    $ schedulers = get_available_schedulers()
  File "game/mods/GenAI/SD_UI.rpy", line 104, in get_available_schedulers
    available_schedulers = sdClient.get_available_schedulers()
TypeError: string indices must be integers
SD is up and running and listening on the correct port and I can use the SD web UI to generate images manually successfully. Any tips?
I had the same get_available_schedulers issue and it was fixed by updating my stable diffusion install. I have A111 installed via git so I just had to pull the latest.
 
4.60 star(s) 79 Votes