CreatorsOk
vrengames
vrengames

patreon


Memory Leaks Fixed, More Nora Writing, and a Mod Shoutout!

A few days ago I mentioned I was going to track down the memory leak that was plaguing the late game of LR2. I spent some time looking around and found a couple of possible culprits (primarily Ren'py's rollback, which was saving an unreasonable number of steps back), but the main answer ended up being provided by some amazing LR2 mod developers!

So for those curious, here's what the cause was: In a previous update I had modified the girl creation code to add a home for them when they were created, so they could properly go home before and after work, invite you home, etc. A side effect of this was that when you went to hire someone and a batch of applicants was generated each of them was given a home location. Previously the extra applicants would have no references remaining once you had picked the person to hire so the garbage collection would sweep them up. The home location meant that they needed to be kept track of. Each time you generated a new list of applicants every single one would be added to the game permanently. To fix this, new employees no longer have home locations created until they are actually hired.

I have to give thanks to the awesome mod developers who spotted and fixed this bug before I did. You can check out their mod here. It makes me incredibly happy to know that there is a community of people out there modding LR2 and doing cool things with it! This seems like a good time to mention that Lab Rats (1 and 2) are both released unencrypted and that mods and additions are absolutely welcome! The only limitations are that mods must be provided for free and that credit/a link to this patreon page must be provided. If there are other mod groups out there feel free to leave a comment about them!

Besides that optimization hunt I have been working more on Nora's new storyline events. (Minor spoilers ahead) After some revision her new content has ended up being focused on unlocking new super serum traits. By bringing her field reports about interesting characters she can develop these serum traits for you. The "interesting characters" end up being people with extreme (high or low) sluttiness, obedience, love and/or happiness. People with unique relationships with you (your mother, sister, alexia, etc.) can also unlock special traits unique to them, if they have been corrupted in the correct (ie. most thematic) way. Your mother, for example, when brought in with very high love and sluttiness lets Nora develop a super love trait.

I have some more coding to do to get the last of the serum traits working, but everything is going well so far! Less than a week to go until the release of v0.20!

Comments

As an added measure to reduce memory and save overhead, have you considered having a generic 'character housing' location as the home for all characters not assigned a specific home, and then only assigning a specific home to characters that need one - (i.e. only Special characters, or after a successful date). In that way the 'generic' housing location would be singular, like the Mall or Downtown, just not shown on the map, and thus not generating extra link and furnishing info until it actually became relevant to that character.

RogueKnightUK

Go to Outfit Manager (top left corner) to make different clothing sets. Once you've made a clothing set, you can assign it as a work uniform by clicking "manage uniforms" in the main office.

Synshie

Hey, so... I'm not a patron, at least, not yet, but I was wondering, how do I add outfits? Or manage corporate uniforms? I bought all the uniform policies previously, but all I got are those annoying labels like outerwear sets and pushing on the labels seems to do nothing. Is it because I'm on apk?

Will this fix be implemented for 0.20?

Synshie

It would be cool if there was a mod to rewrite ages for a lot of the characters but locked the ages to 18 and then go up from there.

ZinTek

> some sort of addictiveness trait that will give a happiness penalty if they dont get another dose in a certain period of time Too many characters to keep track of everyone. This will quickly become a chore. To implement the “addict fetish”, it will be much easier to add the “Make her beg for the serum” option into the “Try to Give Her a Dose” menu.

Pat Patrick

i know it probably does not belong into this sort of game, but i am kind of hoping for some sort of addictiveness trait that will give a happiness penalty if they dont get another dose in a certain period of time since the last does i guess it could one of the random side effects, where a character gets a temporary penalty if he does not get repeated doses, or the other way around a character gets a penalty if he gets too many doses in a time period dunno maybe it adds too many checks, but i guess it is an idea for another side effect

retchedegg

Could you, please, lower mom's age to 39-42 y.o.? It seems to me that 49 is too extreme age to talk about pregnancy. Or, perhaps, introduce a "serum of youth" so that you can alter the age of the characters?

Pat Patrick


More Models and Creators