#Failed to create derived admin toy wrapper

12 messages · Page 1 of 1 (latest)

worldly tusk
#

[2025-05-03 17:47:52.960 +05:00] [ERROR] [MapEditorReborn] [MapEditor] Failed to initialize CameraObject for LczCameraToy(Clone) (ID=fa112084-8dc7-4167-adc7-cb28a242fabf)
[2025-05-03 17:47:52.977 +05:00][ERROR] [LabApi] Failed to create derived admin toy wrapper. Missing constructor handler for type AdminToys.Scp079CameraToy

I try to create Scp079CameraToy but I get an error.

karmic mulch
#

you can ignore these messages, they shouldnt break anything in the meantime

worldly tusk
karmic mulch
#

likely something else could be wrong, the above errors you can ignore

#

there is a bug currently if you try to spawn a camera outside the facility, could that be what you are doing?

karmic mulch
#

if you can, try to find a stack trace either from the server or client thats related it might help

warm mirage
#

if you're so determined to get rid of that error, I got a prefix for ya

#

just ignore the name ClassDTroll

[HarmonyPatch(typeof(LabApi.Features.Wrappers.AdminToy), "AddAdminToy")]
public class LabAPISucks
{
    [HarmonyPrefix]
    public static bool Prefix() => false;
}