• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
Shuya

Looks Shuya

Download [35.11 MB]
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