News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

No Clones

Started by maddmaxx, Nov 12, 2022, 12:02 PM

Previous topic - Next topic

maddmaxxTopic starter

Is there a way to have no clones without error messages every time the game spawns new girls?
I don't see the point of playing with clones even when playing with a low amount of characters.
"Not enough girl templates available - Check your girlpack configuration"
pops up all the time, do I need to always have at least a certain amount of packs active or will it always pop up as long as I'm playing with no clones?

worldsoul

most likely. You can easily get up to eighty or more free girls alone, in the unfinished chapters once all six regions are open, to say nothing of girls you own or ones in the slave market.

Ch12

#2
Hi Madmaxx,

I think I have a solution for your problem. I created a variant of the get_girls-function - this function handles the creation of new girls for the slavemarket and city. I added a new parameter called prefer_original, which tells the game to first try to create original girls. However, it falls back to non-orginal, if necessary.

I attached the updated sourcecode as a textfile. If you want to use it, you need to replace the function with the new code.
To do that, open BKfunctions.rpy and replace the whole function with the new code . (In my version, it starts with line 272 in BKfunctions)

How to test that it works:
  • Create a new game (skip intro) and enable only one mix with only a few girls
  • Check the Slavemarket - it should contain all the original girls
  • Talk to some of the girls in the city - the girls here should be random girls. There may be some originals if the girlmix was big enough

As for how to continue, it depends on what you want to achieve. Right now, the game will probably still run out of original girls at some point - it will prefer original girls also for the city, and as worldsoul explained, those quickly add up. You could, for instance, enable this only for the Slavemarket - that way, only the Slavemarket should be filled with original girls, without blocking them by generating them for the city.

Note: cloning options/unique is untouched by my algorithm! Your problem sounds like you added unqiue = True to all your girlpacks. Please remove the unique-setting at least from some of your girlpacks, or you will keep seeing this error.

Question for Goldo:
Could you add my modification to the game's codebase? I marked the necessary spots with my usual comments, the change is really simple and "cooperates" well with your algorithm. If you set the default value of the parameter to False, it should not mess with your game at all.
If you're willing to go the extra mile, I could e.g. imagine two new options in the game's settings, "Prefer original girls in the Slavemarket" and "Prefer original girls in the City".
Download My High Quality Girlpacks
Belldandy, Urd, Kaenbyou Rin, Jessica Albert, Kino Makoto (Sailor Jupiter), Temari, Tohsaka Rin, Pyra, Lyndis, Atago, Zelda

Goldo

Sure, will do that for 0.3. Not sure it answers OP's problem though (in fact, I don't see how playing with a low number of characters AND no clones could be made to work).
Maker of BK. Looking for the latest patch for BK 0.2? It's right here. The link doesn't change, so bookmark it!

Ch12

I agree that his request is not 100% resolved with this. It's kind of asking for the impossible, though. :)

What I would envision is enabling the functionality only in the slavemarket. So the streets would be filled with clones, giving the game the opportunity to generate originals in the market.
Keep in mind that as long as an original girl is roaming the city, she cannot be created as an original for the market. Another idea might be to remove a girl from the city if she is needed for the market. I think this might be a little more tricky to implement, but doable within a reasonable amount of time.

If you want the streets to be filled with originals, too, I think you have no choice other than getting a lot of girlpacks.
Download My High Quality Girlpacks
Belldandy, Urd, Kaenbyou Rin, Jessica Albert, Kino Makoto (Sailor Jupiter), Temari, Tohsaka Rin, Pyra, Lyndis, Atago, Zelda

maddmaxxTopic starter

Quote from: Ch12 on Nov 13, 2022, 02:43 AMHi Madmaxx,

I think I have a solution for your problem. I created a variant of the get_girls-function - this function handles the creation of new girls for the slavemarket and city. I added a new parameter called prefer_original, which tells the game to first try to create original girls. However, it falls back to non-orginal, if necessary.

I attached the updated sourcecode as a textfile. If you want to use it, you need to replace the function with the new code.
To do that, open BKfunctions.rpy and replace the whole function with the new code . (In my version, it starts with line 272 in BKfunctions)

How to test that it works:
  • Create a new game (skip intro) and enable only one mix with only a few girls
  • Check the Slavemarket - it should contain all the original girls
  • Talk to some of the girls in the city - the girls here should be random girls. There may be some originals if the girlmix was big enough

As for how to continue, it depends on what you want to achieve. Right now, the game will probably still run out of original girls at some point - it will prefer original girls also for the city, and as worldsoul explained, those quickly add up. You could, for instance, enable this only for the Slavemarket - that way, only the Slavemarket should be filled with original girls, without blocking them by generating them for the city.

Note: cloning options/unique is untouched by my algorithm! Your problem sounds like you added unqiue = True to all your girlpacks. Please remove the unique-setting at least from some of your girlpacks, or you will keep seeing this error.

Question for Goldo:
Could you add my modification to the game's codebase? I marked the necessary spots with my usual comments, the change is really simple and "cooperates" well with your algorithm. If you set the default value of the parameter to False, it should not mess with your game at all.
If you're willing to go the extra mile, I could e.g. imagine two new options in the game's settings, "Prefer original girls in the Slavemarket" and "Prefer original girls in the City".
Thanks a ton.