RELEASED Cat and dog at the same time

Discussion in 'Pets/Horses' started by keyten, Mar 15, 2016.

  1. MrIce

    MrIce Subatomic Cosmonaut

    wait what? you have different cat skins? how?
     
      Zovino and Dawn like this.
    • Dawn

      Dawn Phantasmal Quasar

      SECONDED (!?!?!?!)
      (must know, need more dogs)
       
        Vixxi and MrIce like this.
      • Vixxi

        Vixxi Aquatic Astronaut

        Thirded. I was going to do this, but I first want to know how to get dfferent breeds,not just with pets, but the other animals too. I wonder if you can get two horses?
         
        • blargsnarf

          blargsnarf Pangalactic Porcupine

          Well, fourth'd, obviously, but I'm sure three asks is enough for keyten :D.
           
          • keyten

            keyten Cosmic Narwhal

            Oh, someone actually want to know how to do that?)
            Just a little thing I made in storm while I was testing different stuff.
            Here is a code in case somebody want to make an actual mod in storm.
            Code:
                        
                        int CatNum = 1, DogNum = 1;
                        for (int i = 0; i < curloc.Characters.Count; i++)
                        {
                            string s;
            
                            if (curloc.Characters[i].Name=="Cattos")
                            {
                                s = "Cat_" + CatNum+".png";
                                CatNum++;
                                if (CatNum > 16) CatNum = 1;
                            }
                            else
                            {
                                s = "Dog_" + DogNum + ".png";
                                DogNum++;
                                if (DogNum > 14) DogNum = 1;
                            }
                            var path = Path.Combine(PathOnDisk, s);
                           
                            @event.ReturnValue = @event.Root.LoadResource(path);
                            Console.WriteLine(@event.ReturnValue);
                            OpenTexture = @event.Root.LoadResource(path);
            
                            var CustomAnSprite = @event.Proxy<AnimatedSpriteAccessor, AnimatedSprite>(new CustomAnSprite());
                            curloc.Characters[i].Sprite = CustomAnSprite;
                            curloc.Characters[i].Breather = false;
                        }
             
            • Webmetz

              Webmetz Space Hobo

              Wow. Could someone, perhaps, make a SMAPI version of this?
               
                Vixxi, Colleen95 and MrIce like this.
              • MrIce

                MrIce Subatomic Cosmonaut

                i want it in SMAPI too .3.
                 
                  Vixxi likes this.
                • Vixxi

                  Vixxi Aquatic Astronaut

                  Agreed. For I have not transitioned to Storm, so all my mods are SMAPI.
                   
                    MrIce likes this.
                  • bigbeartk

                    bigbeartk Void-Bound Voyager

                    can we change name for each?
                     
                    • keyten

                      keyten Cosmic Narwhal

                      I belive you can. But why?
                       
                      • Dawn

                        Dawn Phantasmal Quasar

                        Is there a purpose to even having one name ;D
                         
                        • keyten

                          keyten Cosmic Narwhal

                          There is one, you can read it in the menu. But I don't see why we need more names If you are not going to tie special sprites to names as I did in the code posted above.
                           
                          • MageTabby

                            MageTabby Scruffy Nerf-Herder

                            do i need to have storm or the save editor to install this?? i'd love to have a dog too as well as my toothless cat! ;;
                             
                            • MrIce

                              MrIce Subatomic Cosmonaut

                              you need to put it on your save file
                               
                              • MageTabby

                                MageTabby Scruffy Nerf-Herder

                                thank u!! i figured out how and ive got a fox too! <33
                                 
                                • MrIce

                                  MrIce Subatomic Cosmonaut

                                  Nice
                                   
                                  • Valkjosandi

                                    Valkjosandi Subatomic Cosmonaut

                                    I gave my cat and dog separate names, what it does is it occasionally switches the name of your pet, in the menu it will always show the first pet you picked but sometimes it will switch between the name of pet 1 and the name of pet 2, also your spouse when filling up their water bowl will say the name that is displayed on the menu. That's about it though, I just like to pretend that it's talking about the cat and not the dog when it switches (I picked dog as my starter).
                                     
                                      Last edited: Mar 21, 2016
                                    • Dawn

                                      Dawn Phantasmal Quasar

                                      ah, that's true...
                                      i just want all my dogs to have their own names...
                                       
                                      • BerrySmoothie

                                        BerrySmoothie Big Damn Hero

                                        this works great, thank you for sharing! however, I have one question: the little code earlier for getting different but multiple pets, would that have to be a separate mod (such as a SMAPI mod for different animals) or would I be able to do that on my own through the save file. just wondering, I'm not very good with coding (like at all). thanks! :)
                                         
                                        • uorasputin

                                          uorasputin Void-Bound Voyager

                                          I'm guessing the "Spawning Position" outside has something to do with the <Position><X>3392</X><Y>512</Y></Position> part
                                           
                                            Abokado likes this.

                                          Share This Page