• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.12 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Shuya

Looks Shuya

Hi, there's a small bug in your 'hair color changer' script

Code:
        public override void Init()
        {
            try
            {
                _person = SuperController.singleton.GetSelectedAtom();
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }

Code:
!> Exception caught: System.NullReferenceException: Object reference not set to an instance of an object
  at LarrysArms.HairColorChanger.Init () [0x00000] in <filename unknown>:0


This should be:
Code:
        public override void Init()
        {
            try
            {
                _person = containingAtom;
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }
 
Hi, there's a small bug in your 'hair color changer' script

Code:
        public override void Init()
        {
            try
            {
                _person = SuperController.singleton.GetSelectedAtom();
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }

Code:
!> Exception caught: System.NullReferenceException: Object reference not set to an instance of an object
  at LarrysArms.HairColorChanger.Init () [0x00000] in <filename unknown>:0


This should be:
Code:
        public override void Init()
        {
            try
            {
                _person = containingAtom;
                if (_person.category != "People")
                {
                    SuperController.LogError("The plugin must be on a Person atom.");
                    return;
                }
thank you very much ! i think i need to remove it after i change the hair color.
 
Back
Top Bottom