#1
5th Dec 2020 at 4:41 PM
Last edited by lizcandor : 5th Dec 2020 at
8:58 PM.
Posts: 313
Thanks: 2024 in 13 Posts
10 Achievements
View My Journal
[Resolved]Object script replacement causes crash
I'm trying to replace the script for an object with an altered version without changing anything else about it. I was thinking I could do that by making a default replacement for the object, deriving a new class from the object's original class, changing the methods of the new class that I want to be different, and then making the default replacement object's OBJK point to the new class instead of the normal one; I've followed Lyralei's default replacement tutorial
here to try to do that, and it's definitely done something because the game now crashes when it tries to create an instance of the object, but that's not exactly the intended outcome.
Does anyone know what kind of mistake might cause this? "Game turns entirely off" isn't an error my usual debugging methods are equipped to shed much light on
I at least know that whatever happens must be happening before any of the object's methods try to run, since I put debugging messages in all of them that don't appear before the crash.