Tuesday, December 4, 2018

BREEDING MOTHERFUCKER

see title.

okay, it's more code bullshit, let's get into it. last post, i had successfully completed a system of fluffy genetics shortly before my slightly-more-responsible-than-usual ass decided that where i left off was an ideal time to die of sleep deprivation for the night. either way, i am back from the dead, so let's breed fluffies.

the first thing i did was have the female fluffy store a copy of the father's genes upon mating. females don't have any way to detect who's mating with them, all mating stuff being handled by the male, so I had him insert a copy of his genetics into the female and set a variable that gives her a reference to the copy.

on the female's end, nothing is really done with these variables until it's time to give birth. due to the way unity animations work and the fact that foals are born in the middle of the animation, the birth routine is stored in a different script, so i went there and did a bunch of bullshit to it, which mostly consisted of randomly grabbing one of two alleles from each parent. this is the point where i'd check for the creation of a deformation from the alicorn gene and fuck the mare up, but i didn't feel like it at the moment.

after adding the first check, my birth routine looked a little like...



this. all that was left to do was repeat that check ad nauseam and it would be perfect, or so i thought. that's exactly what i did next. colors were a little more complicated, because the way i decided to store them is incredibly bullshit to work with, but i managed. a bunch of editing because i forgot that the gene setting function existed, then manually tampering with my fluffies to force them to fuck because i somehow turned stallions gay by accident later...

i realized that literally nothing was working. fluffy seeking behavior in general seemed to have been critically fucked up by whatever the hell i did last night. as well as this, i apparently put the "insert father genes" code in the "notice rape" section of the mating script, meaning that the number of loads being simultaneously blown in the mare was being determined by how many fluffies were watching, which was none in my testing environment.

with the nut button returned to its rightful place, i tried again, seeking still broken... and immediately paused my game to avoid crashing unity as the stallion started spawning a whole bunch of clones of himself, all of them screaming, bleeding, and probably spawning clones of themselves as they all beat the shit out of each other for apparently raping the mare. i paused to write this paragraph and then ended the simulation before diving back into the code and struggling to figure out what the actual hell just happened.



i got the stallions to stop being flaming homosexuals, but this still happened. after some research...

"If you are cloning a Component then the GameObject it is attached to will also be cloned"

well, shit. doing some digging revealed that there's no way to clone a component beyond just creating an entirely new one and copying the values over, which is complete bullshit and also what i did next. yay. after directing my script to create what basically amounts to a pile of genes with some useless unnecessary variables slapped on, i test it.


it worked! you can see the resemblance in the foals. the stallion was separated, because upon digging into his variables like the filthy cheater i am, i quickly discovered that he was a psycho molester and two morality points away from wanting to get his hooves on some chirpies. a bit more digging revealed that the black pegasus with the pink cutie mark would have been an alicorn if i had actually implemented that. nice!

to celebrate, i allowed that family of testers to live for a while before i ended all of existence. eventually, the foals grew up and started having sex with each other, and i quickly learned that at least one of them was a rapist. the original stallion had previously been locked in an attic, never to feel huggies, love, or the nonexistent sun again, or at least until i started selectively breeding for black fluffies and locked all the rejects in with him without food. at some point, i noticed a pair of red foals in what had previously been a green, teal, and black population and let the two out of the attic, because why the hell not.

in the end, i went 'fuck it' and deleted the attic floor, along with the entire house, and let the fluffies live their lives on the flat, grassy floor of the world, at least the ones who were strong enough to survive the fall.

as i listened to the sounds of roaming fluffies in a relatively decent "society", if you can call it that, i fixed bugs, namely the mystery of the invisible corpses (death function relied on leftover variables that are no longer in use) and the nonexistence of alicorns. i can't test anything while the game is running or else it gets drunk and starts doing weird shit for the rest of the session, and the game was lagging pretty hard from the sheer numbers of fluffies anyway, so as genuinely attached to this run as i ended up becoming by the end of it, i had to say goodbye.


No comments:

Post a Comment