idiot dev, yandere simulator 

so since I did a lot of Unity modding this week, I figured I take a peek at Yandere Simulator and take apart the Assembly it comes with.

IT

DOESN'T

EVEN

HAVE

A

GLOBAL

NAMESPACE

idiot dev, yandere simulator 

what is thissssss

so many properties have "My" prepended to them.

Yandere.MyRenderer, MyProjector, etc.

asdldaskdjals

Show thread

idiot dev, yandere simulator 

switches, you know them?

Show thread

idiot dev, yandere simulator 

to be honest, I have no idea of Unity, but I don't think THIS is the correct way of handling this.

Show thread

idiot dev, yandere simulator 

ah, the classic of manipulating parent state

Show thread

idiot dev, yandere simulator 

oh my my my my my my

Show thread

idiot dev, yandere simulator 

this is all part of "StudentScript"

I know that Unity likes the term Script, doesn't mean you need to suffix your classes with it, oof.

Show thread

idiot dev, yandere simulator 

okay, I'm really not wondering this game has performance issues if a single student carries more properties and methods than my whole game reverse engineering toolkit.

Show thread

idiot dev, yandere simulator 

Sure, I get that the game has a lot of stuff to do

but then just subclass Student types and only assign what's necessary, this is ridiculous.

Show thread

idiot dev, yandere simulator 

if your editor crashes when opening a >single< class file

you know something is horribly wrong

Show thread

idiot dev, yandere simulator 

so I want to share my pain.

feel free to join in in the feast that is consuming this wonderful piece of code.

it just might happen that your browser dies.

The entirity of Yandere Simulators "StudentScript" class.

Enjoy!

gist.github.com/pixeldesu/f6c8

Show thread

idiot dev, yandere simulator 

looks like the tutorials YanDev took code from did never handle the concept of enums.

Show thread

idiot dev, yandere simulator 

"Okay, not wondering about performance issues"²

Every Student carries an instance of the playable character, (this.Yandere)

Show thread

idiot dev, yandere simulator 

So, StudentScript carries "any possible state at any point in time" basically. Including animation references, textures, meshes, etc.

This could be handled so much better.

Show thread
Follow

idiot dev, yandere simulator 

@pixel hey check out this hot new game only requires 32gb of ram

idiot dev, yandere simulator 

@karina all these cross references, holy heck

someone needs to teach this guy about Manager/Singleton patterns ASAP

Sign in to participate in the conversation
pouncetodon

a furry mastodon instance [ art by angiewolfartist ]