-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera regions triggering client crash #423
Comments
It looks like this might be caused by a CameraModifier without a brain (which presumably korman should not export). The crashing line in Plasma is when it accesses the brain here: https://github.com/H-uru/Plasma/blob/d7363e6367de6365861ee4a46cfa66f559e4f287/Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.cpp#L1870 |
Digging into the PRPs, I found that a handful of cameras had two brains instead of no brain. It appears to happen with similarly-named cameras (eg DefaultCam, DefaultCam.001, DefaultCam.002, etc). The camera objects with the extra numbers at the end receive two brains: "DefaultCam.001" and "DefaultCam_001". So my guess is it's a blip in a renaming scheme for objects with decimals? EDIT: Nevermind. Seems that's normal for follow cameras. I'll keep digging. EDIT 2: It appears one of the camera brains has a null plKey in the EDIT 3: Both camera modifiers are missing the |
All `plCameraModifier` objects *must* have a brain or the client will crash dereferencing a null pointer. This commit audits all `plCameraModifier` creations and ensures that we are using a camera that will have a brain. There are probably better ways to do this, but I am le tired.
Not sure if this is due to a larger imported Age like the city/Ae'gura (where I'm finding this crash happens quite a bit; many things are needlessly duplicated too), but I've been getting this error when entering certain camera regions:
The text was updated successfully, but these errors were encountered: