[Studio Beta] Package Overrides and Usability Improvements

Due to the setup I’m using, I’m assuming I would require the LocalFunctionality module before the lifecycle of my regular modules are triggered.

This allows me to essentially monkey-patch a function or several variables inside the separate “Controller” (client) or “Service” (server) modules table before the lifecycle is began, because modules all share the same first require, meaning they can overwrite each others values and read from each others values after they’ve been changed.

I suppose the only real negative to this is the LocalFunctionality module stored inside that specific place that has overrides would patch out a portion of the functionality and due to that, the new code would be updated in other areas except the method that was monkey-patched.

So, the true answer is having this update you guys made properly affect scripts. That, or I’m misunderstanding you as I’ve never truly worked with packages before due to this limitation. The architecture I’m using may or may not be as advanced as something you may be referring to. For example, my game stores modules in a folder and all modules are required at runtime and have a method named Start() executed.

Same is performed on the server-side. I get this setup may be flawed or imperfect, but it’s held up shockingly well so far.

The script editor as a whole is currently just unusable with this beta feature.

Clicking any key results in this banner popping up, not allowing you to make any changes.
Even after clicking it again, the same results leaves you in a loop of typing one letter and the same banner popping back up.

An issue I also had before was when using the script editor inside of the studio with package overrides also tended to change the current line I was scripting on every couple seconds, rendering it unusable.

Repro Link:

External Media
1 Like

I’ve been using this feature since release and I’ve had to disable it because it prevented me from opening my game, as studio would just hang indefinitely while loading.

Would love to share privately details about this, I’ve created a bug report here: [Package Overrides] Opening my game freezes studio indefinitely

Thanks for the report! We’re looking into it! I was able to reproduce the state you were in, and we should have a fix soon, thanks for your patience!

Hey Kohl, I replied on your main thread, but feel free to message me directly as well!