Prototyping Update - Automation Success! (Patreon)
Content
First, lets cover what I've been working on and why. Lab Rats 2 will feature the ability to dress girls up in different outfits, which can be designed by the player piece by piece and that are removed during sex scenes and represented dynamically by the characters image. There will also be a number of different angles and positions the girls will be represented in, standing normally, from behind, kneeling, ect. Each girls image is built up of individual sprites for each piece of her clothing, layered up to create a complete outfit.
While this lets me give you a ton of control over how sex scenes play out, it results in a huge number of different clothing items that have to be imaged at different angles. With 10 breast sizes and 3 body types and starting with 5 basic poses, each new top would require 65 individual images. Generating these images is a fairly simple process, but involves a ton of routine menu switching that eats up a lot of time. At 2 minutes per pose, a single new piece of clothing would take over 2 hours just to generate the basic images. These images then have to be photo shopped a little to make sure they layer correctly with everything else.
So, to make this easier and faster, I set out on a journey to automate the whole process. First, I needed a way to interact with Honey Select on a more direct level. The IronPython Interactive Console Mod was exactly what I needed. It gave me an interface that allowed me to call HS functions directly with a python script. Without this the whole automation effort would have been much harder.
The console mod gave me a way to call any HS function, but didn't include much documentation on how they should be used. To figure out what functions did what, I needed to dig into the actual code of HS and poke around. dotPeek provided me a way to decompile the C# code of HS (Which is built in Unity, an engine I'm fairly familiar with). The decompiled code included every method, class, and field inside Honey Select, but no documentation for how they were intended to work together. Finding the functions I needed and teasing out the way to use them was an interesting mixture of fun puzzle and frustrating wild goose chase. It took two days of digging to pull out all of the functionality I needed, but my efforts ended in success.
Last night I wrote up the first version of my automation software, which will sequentially load character models, clothe them in the appropriate piece of clothing, take a screenshot, then move onto the next piece of clothing/position. There is still some photo shopping work that needs to be done once the image set is created, but the most tedious section has been completely removed now. Tonight I will be polishing up the software so it's as user friendly for me as possible, then I can turn my attention to other parts of Lab Rats 2.