Mods / Pet AI

Category: #Creatures #Library
Author: Gerste
Side: Both
Created: Nov 20th 2021 at 8:39 PM
Last modified: Apr 23rd at 8:33 PM
Downloads: 114117
Follow Unfollow 724

Latest file for Various v1.19.x:
petai_v2.2.4.zip 1-click install


Small library containing a variety of AI Behaviors and Tasks that i consider useful for domesticating/ taming animals.

This mod on it's own won't do anything in your world. You need to add any of the following:

Now includes ModConfig:

  •     "tamingMultiplier": Increase value for easier taming
  •     "obedienceMultiplier": Increase value for easier obedience gain
  •     "disobedienceMultiplier": Decrease value for less obedience
  •     "growingMultiplier": Decrease value for less growth time
  •     "pvpOff": Toggles if pvp is possible against other players pets
  •     "resurrectors": Contains a List of items that can revive a dead pet

There is some API Information for modders documented in the mods README.

If you want to create your own pets with this system but can not figure out how just by looking at my other taming mods, feel free to ping me on the Official VS Discord

Contributors:

  • macoto_hino (japanese translation)
  • Cendar (french translation)
  • Mamoru Mondai (russian translation)
  • Lantalia (wildcraft compatibility)

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v2.2.4 5193 Apr 23rd at 8:33 PM Show petai_v2.2.4.zip Install now
v2.2.3 14836 Jan 23rd at 7:39 PM Show petai_v2.2.3.zip Install now
v2.2.2 475 Jan 22nd at 7:29 PM Show petai_v2.2.2.zip Install now
v2.2.1 2797 Jan 10th at 9:55 PM Show petai_v2.2.1.zip Install now
v2.2.0 2927 Dec 12th 2023 at 8:36 PM Show petai_v2.2.0.zip Install now
v2.0.0 2515 Nov 18th 2023 at 2:35 PM Show petai_v2.0.0.zip Install now
v1.8.1 18365 Sep 16th 2023 at 3:05 PM Show petai_v1.8.1.zip Install now
v1.8.0 4921 Aug 25th 2023 at 7:00 PM Show petai_v1.8.0.zip Install now
v1.7.10 10168 Jun 29th 2023 at 8:00 PM Show petai_v1.7.10.zip Install now
v1.7.9 4896 May 25th 2023 at 6:12 PM Show petai_v1.7.9.zip Install now
v1.7.8 1100 May 20th 2023 at 5:51 PM Show petai_v1.7.8.zip Install now
v1.7.7 1087 May 14th 2023 at 7:50 PM Show petai_v1.7.7.zip Install now
v1.7.6 284 May 14th 2023 at 3:22 PM Show petai_v1.7.6.zip Install now
v1.7.5 159 May 14th 2023 at 3:06 PM Show petai_v1.7.5.zip Install now
v1.7.4 599 May 12th 2023 at 8:45 PM Show petai_v1.7.4.zip Install now
v1.7.3 658 May 11th 2023 at 8:13 PM Show petai_v1.7.3.zip Install now
v1.7.2 2353 Apr 30th 2023 at 5:34 PM Show petai_v1.7.2.zip Install now
v1.7.1 879 Apr 28th 2023 at 4:57 PM Show petai_v1.7.1.zip Install now
v1.7.0 3001 Apr 18th 2023 at 8:03 PM Show petai_v1.7.0.zip Install now
v1.6.0 1693 Mar 3rd 2023 at 6:52 PM Show petai_v1.6.0.zip Install now
v1.5.5 9543 Oct 22nd 2022 at 5:05 PM Show petai_v1.5.5.zip Install now
v1.5.4 3435 Sep 2nd 2022 at 5:37 PM Show petai_v1.5.4.zip Install now
v1.5.3 685 Aug 14th 2022 at 4:30 PM Show petai_v1.5.3.zip Install now
v1.5.2 447 Jul 28th 2022 at 8:46 PM Show petai_v1.5.2.zip Install now
v1.5.1 680 Jul 1st 2022 at 9:26 PM Show petai_v1.5.1.zip Install now
v1.5.0 326 Jun 26th 2022 at 3:21 PM Show petai_v1.5.0.zip Install now
v1.4.4 5547 Apr 29th 2022 at 7:01 PM Show petai_v1.4.4.zip Install now
v1.4.3 972 Apr 20th 2022 at 6:44 PM Show petai_v1.4.3.zip Install now
v1.4.2 1458 Apr 5th 2022 at 4:12 PM Show petai_v1.4.2.zip Install now
v1.4.1 363 Apr 4th 2022 at 6:02 PM Show petai_v1.4.1.zip Install now
v1.4.0 386 Apr 3rd 2022 at 1:30 PM Show petai_v1.4.0.zip Install now
v1.3.7 1693 Mar 10th 2022 at 8:44 PM Show petai_v1.3.7.zip Install now
v1.3.6 841 Mar 5th 2022 at 12:28 AM Show petai_v1.3.6.zip Install now
v1.3.5 1495 Feb 15th 2022 at 6:29 PM Show petai_v1.3.5.zip Install now
v1.3.4 1301 Feb 5th 2022 at 4:41 PM Show petai_v1.3.4.zip Install now
v1.3.3 468 Feb 4th 2022 at 11:29 PM Show petai_v1.3.3.zip Install now
v1.3.2 673 Feb 1st 2022 at 6:38 PM Show petai_v1.3.2.zip Install now
v1.3.1 510 Jan 31st 2022 at 10:27 PM Show petai_v1.3.1.zip Install now
v1.3.0 526 Jan 30th 2022 at 4:17 PM Show petai_v1.3.0.zip Install now
v1.2.1 1401 Jan 5th 2022 at 7:47 PM Show petai_v1.2.1.zip Install now
v1.2.0 406 Jan 2nd 2022 at 6:46 PM Show petai_v1.2.0.zip Install now
v1.1.0 594 Dec 11th 2021 at 7:03 PM Show petai_v1.1.0.zip Install now
v1.0.2 583 Nov 23rd 2021 at 10:42 PM Show petai_v1.0.2.zip Install now
v1.0.1 476 Nov 22nd 2021 at 7:58 PM Show petai_v1.0.1.zip Install now
v1.0.0 402 Nov 21st 2021 at 9:42 PM Show petai_v1.0.0.zip Install now

118 Comments (oldest first | newest first)

💬 bratmoroll, 3 days ago

My pets (a cat and 2 wolfdogs) died due to a drifter from a temporal storm finding its way in. Tried countless amounts of reed-horsetail poultices, but only a clean bandage works. I am not sure if this is a bug, but glad to have my pets back!

💬 MrTango, 3 days ago

Plz can you make a primative pet cushion, say out of hay, for early game.

💬 Agentfyre, 3 days ago

Thank you!

💬 GersteAuthor, 4 days ago

Yes, its located where all modconfig files are located. /VingatestoryData/ModConfig Agentfyre

💬 Agentfyre, 4 days ago

Where can the modconfig file be found? Is it a json file?

💬 Vedrit, May 12th at 8:04 AM

I found an exploit in multiplayer. If a player improves the obedience of a pet they do not own, there is no cooldown on improving obedience, though they otherwise cannot interact with the pet.

💬 Ghaelen, May 11th at 1:16 PM

@Gerste

 

Can you please describe what disobedienceMultiplier does?  I assume it's related to the mechanic that controls the decrease of obedience through time.   From the description "Decrease value for less obedience" it sounds like if the number is increased from the default of 1.0, the pet's obedience will decrease slower.

But this seems opposite of the variable name -- "disobedience multiplier" sounds like increasing it will make the obedience decrease faster.

Can you please describe what disobedianceMultiplier does exactly?  Thank you!

💬 GersteAuthor, Apr 27th at 11:04 PM

Depends on the config of your server. The items that are valid resurrectors can be set via config file. Moonhunter

💬 Moonhunter, Apr 27th at 5:20 PM

Does the resurrection not work on multiplayer server? I can resurect pets in a singleplayer save just fine. But in a multiplayer server the poultice gets used but the pet doesnt stand up. 

💬 I3eauLeBoi, Apr 23rd at 9:35 PM

Gerste

We've come to realize its not because of a old installation, this was before todays update.
We've just used the "install" option which was most likely 'tied' to a older version of the petai mod.
So we kept downloading a older version without realising. Today it worked because the 'install' promt here on the page was now set appropiately.

Cheers nontheless!
The server is now up and running with no faults c:

💬 GersteAuthor, Apr 22nd at 7:05 PM

Looks like you still have an old installation laying around somewhere that messes things up: [petai] Exception: \Vintagestory\server\Cache\unpack\petai_v2.0.0.zip I3eauLeBoi

💬 I3eauLeBoi, Apr 21st at 7:26 PM

Hello! Gerste,

Here's a another log about PetAI and wolf taming from the server.

21.4.2024 21:06:59 [Notification] Mods, sorted by dependency: rpgitemrarityreborn, game, betterruins, commonlib, petai, sharablewaypoints, creative, survival, woodenfortifications, xlib, playercorpse, wolftaming, xskills 21.4.2024 21:06:59 [Error] [petai] Exception thrown when attempting to retrieve all types of the assembly petai, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Will ignore asssembly. Loader exceptions: 21.4.2024 21:06:59 [Error] [petai] Exception: Unable to load one or more of the requested types. Method 'GetShape' in type 'PetAI.ItemPetAccessory' from assembly 'petai, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.Assembly.GetTypes() at Vintagestory.Common.ModContainer.GetModSystems(Assembly assembly) in VintagestoryLib\Common\API\ModContainer.cs:line 527 21.4.2024 21:06:59 [Error] [petai] Exception: Method 'GetShape' in type 'PetAI.ItemPetAccessory' from assembly 'petai, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. No stack trace 21.4.2024 21:06:59 [Error] [petai] An exception was thrown when trying to load assembly: 21.4.2024 21:06:59 [Error] [petai] Exception: \Vintagestory\server\Cache\unpack\petai_v2.0.0.zip_a75f2b4a6d36\petai.dll declared as code mod, but there are no .dll files that contain at least one ModSystem or has a ModInfo attribute at Vintagestory.Common.ModContainer.LoadAssembly(ModCompilationContext compilationContext, ModAssemblyLoader loader) in VintagestoryLib\Common\API\ModContainer.cs:line 462 21.4.2024 21:07:00 [Notification] Instantiated 123 mod systems from 12 enabled mods

💬 King_Doggo, Apr 14th at 3:57 AM

Hey can you expand a bit on what you mean by "Resurrectors" and where the ModConfig.. Is? - Only one I have that is changeable is Malteiz's Firearms, otherwise the in-game Mod Config menu seems to not detect Pet AI as far as I can tell.

 

I've dove into the Pet.AI zip file and got a whole lot of nada.

 

Edit: Oh - You mean just general healing items - Well figured it out myself.

💬 N7Maggus, Apr 10th at 12:14 PM

Hi, what is the setting "teleport" doing. Thanks

💬 Wolfzank, Apr 8th at 7:55 AM

Tested it and it's exactly what I needed. Thanks a lot again for your help! And for the work you do with this and your pet mods, they're all amazing ^^ Gerste

💬 GersteAuthor, Apr 7th at 3:03 PM

Try this one Wolfzank

💬 Wolfzank, Apr 7th at 2:15 AM

Aloha, I wanted to ask if there's a way to disable friendly fire for pets? Everytime I hit one of my dogs by accident, they all start killing each other. I've been setting them on passive to revive the dead ones and back on protective, but it can get a bit tiring sometimes, especially when hunting with a pack or during temporal storms.

💬 BadRabbit49, Feb 26th at 12:55 AM

Someone should really use these APIs for making like a bodyguard/soldier mod. Would be really useful for PvP armies and the like. I'm tempted to try and make one myself but I'm afraid of getting into a whole new project with an unfamiliar code language.

VSVillage has guards which are great against mobs and even guarding with the Quest enabled but just not very suitable for PvP since you can't equip them yourself with weapons or armor or really give them orders. Also they wander around alot and get lost.

💬 TRexTheHunter, Feb 2nd at 6:53 PM

If this could be of any help? Found in client-main log while looking for something else.

---

2.2.2024 12:56:57 [Warning] (x_x) Captured 14 issues during startup:
2.2.2024 12:56:57 [Warning] Texture asset 'e:textures//workspace/vintage_story_mods/wolftaming/resources/assets/wolftaming/textures/backpack/backpack.png' not found (defined in Shape file petai:backpack/backpack-empty).
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-male-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-male-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-male-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-male-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-female-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-female-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-female-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-horse-female-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-foal-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-foal-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-foal-arabian using shape feverstonehorses:entity/land/horse-arabian
2.2.2024 12:56:57 [Error] Missing mapping for texture code #null during shape tesselation of item feverstonehorses:creature-foal-arabian using shape feverstonehorses:entity/land/horse-arabian

---

Thanks!

💬 Hydromancerx, Jan 29th at 10:15 PM

Gerste

It was the recipe with the Knife. I guess i will have to make a chisel if i want a Pet Whistle then.

💬 GersteAuthor, Jan 29th at 9:47 PM

The whistle already has to different crafting recipes, one with a chisel and one with a knife. Hydromancerx

💬 Hydromancerx, Jan 29th at 4:40 PM

So i use this and Weapons Pack Alpha and the Pet Whistle has the same recipie as Javelin head tips. Could you please alter the positon.configuration of the Pet Whistle so you can use both mods? Thanks in advance!

💬 GersteAuthor, Jan 22nd at 6:57 PM

Should be explained in the itemdescription CrusadingPriest

💬 CrusadingPriest, Jan 22nd at 6:07 PM

How do you use the Pet carrying backpack? I saw it but have no idea how it works. 

💬 GersteAuthor, Jan 17th at 6:27 PM

Version 1.8.1 is compatible with all 1.18 versions after 1.18.8 LyingSheep

💬 LyingSheep, Jan 16th at 10:55 AM

@Gerste are you planning on making the mod compatible with 1.18.15? Or only with newer versions of VS?

💬 Willowwolf222, Jan 16th at 3:32 AM

Oh then I can't use the mods then, I have version 1.18.15 Gerste

💬 GersteAuthor, Jan 15th at 10:12 PM

You need to download the version that matches your game version. Willowwolf222

💬 Willowwolf222, Jan 15th at 5:54 PM

Hi, so I'm trying to use the fox, wolf, cat, and horse mods and i have everything downloaded but it keeps saying "Unable to resolve some mod dependencies. Check log files" and I can't figure out how to get it working :(

💬 Stroam, Jan 8th at 5:44 AM

Thanks. So much better than seeing a mention of other mods and then going back and searching by mod author.

💬 GersteAuthor, Jan 7th at 3:33 PM

Like this? Stroam

💬 Stroam, Jan 7th at 4:35 AM

Please add links here for your other mentioned mods.

💬 BraniyaKz, Dec 9th 2023 at 11:18 AM

@FMDS and Aodhwyn - Delete the mod & its config, re-download, and if the crash persists, check you windows redistributables 2015-2022 installation, perhaps repair or reinstall. Then restart your pc and try again. If nothing works, try downloading this mod. I released it way too early just for you. 😁

💬 FMDS, Dec 7th 2023 at 11:38 PM

Gerste

Having crash issues on start up with v1.8.1 petai running on VS 1.18.15 

Crash on start up 

"System.Exception:Don't know how to instantiate collectible behavior of class 'considerpetfood' did you forget to register a mapping?"

I was hoping to use some mods with this as a dependancy. I believe Aodhwyn is having the same issue. Maybe an issue with update 1.18.15.

💬 BraniyaKz, Dec 7th 2023 at 3:48 AM

@Gerste - Wildcraft bombardment for your petconfig.json healing items incoming!:

 
Note to all: You can simply paste this into your config, overwriting what's already there, and it should work, provided you've pasted it in correctly.
 
Also @Gerste - A fix for your bone texture path for the whistle in v.1.8.1:
  {
    "enabled": true,
    "file": "petai:shapes/petwhistle.json",
    "op": "replace",
    "path": "/textures/bone",
    "value": "game:block/creature/bone", // <--- This right here was the problem, now fixed.
    "side": "client",
    "dependsOn": [ { "modid": "petai" } ]
  }
💬 Falco, Dec 4th 2023 at 2:00 PM

Wildcraft poutices work for ressurrecting (after adding them to the config), but they don't heal the wolf.
Also after ressurecting a few times, the model is offset from it's hitbox and the UI.

image

💬 Aodhwyn, Dec 2nd 2023 at 8:13 PM

Gerste ive tried multiple version, in all different orders, i cant for the life of me get it to work without crashing, even just having pet ai alone with no mods to go with it crashes my game for some reason

💬 GersteAuthor, Nov 19th 2023 at 10:48 PM

Yeah you need to wait for the 1.19 game release or use one of the pre versions. DepressedPepe

💬 DepressedPepe, Nov 19th 2023 at 10:46 PM

Hi, After updating to newest PetAI version, the mod doesnt work anymore. I run it on a server, all PerAi related entities didnt spawn, the whistle has No texture. 

Is there a correct way to update it..? xP 

💬 GersteAuthor, Nov 19th 2023 at 3:57 PM

You have to manually feed them Malfiros

💬 Malfiros, Nov 19th 2023 at 3:43 PM

Do troughs work for feeding cats and dogs, for the purpose of breeding? Or do you have to manually feed them meats to get their portions up?

💬 GersteAuthor, Nov 12th 2023 at 4:18 PM

Currently not Whiteshadoh

💬 Whiteshadoh, Nov 12th 2023 at 2:55 PM

Is there a way to impliment that the [Taming Notification] be sent to another chat so it doesnt clog up the default chat tab within game?

💬 NukoSan, Oct 13th 2023 at 11:14 PM

fair enough ;-)

 

💬 GersteAuthor, Oct 13th 2023 at 10:46 PM

If you go into immersive/ third person mode you might be able to spot the reason behind this. NukoSan
Spoiler alert: I am going to hit you with the good old "Its not a bug, its a feature" :)

💬 NukoSan, Oct 13th 2023 at 10:16 PM

When holding right-click the obedience of my tamed wolf is going up, not sure which mod is the source of this issue.

💬 GersteAuthor, Oct 1st 2023 at 12:10 PM

Good catch. Will be fixed in the next version. Moon_Dew

Tyron changed the location of the bone texture which causes this error.

💬 Moon_Dew, Sep 24th 2023 at 2:26 AM

There's a minor conflict between this and Medieval Fashion Vanilla Textures.  Pet whistle is missing its texture.

💬 Mucky, Sep 16th 2023 at 8:14 PM

Anybody else keep crashing with this new update?

💬 Gikame, Aug 31st 2023 at 3:20 AM

Well weirdly enough, I took a bit of a break since last session and after I logged back into my world after a day it seemed to have fixed itself out of nowhere. I still made the change tho which did seem to prevent it for the time being. Or maybe not, I am not sure. Maybe something I did made it bug out, who knows o.o"

💬 GersteAuthor, Aug 27th 2023 at 10:13 AM

Can you go into the horse zip file and open ..\assets\feverstonehorses\entities\horse.json and there look for the following code block: 

{
"code": "stay",
"priority": 3,
"priorityForCancel": 1.7,
"command": "stay",
"movespeed": 0.006,
"maxDistance": 10,
"searchRange": 40,
"animation": "walk"
}

If you change the value of maxDistance to something lower like 1 for example, that should solve the problem Gikame

Otherwise there might be a bug in the stay command I need to fix.

💬 Gikame, Aug 25th 2023 at 11:14 PM

@Gerste If that is true, it has been wandering quite far away from my location. On top, I brought it back home since and to its fenced in area and told it to stay and its been walking into the fence ever since for roughly an hour now :o

💬 GersteAuthor, Aug 25th 2023 at 9:15 PM

The horse won't stay completely still, but will stroll the nearby surroundings whilst staying at a certain distance. Gikame

💬 Gikame, Aug 25th 2023 at 8:28 PM

Feverstone Horses + Pet AI. Works solid so far but the horse wont react to the "Stay" command whatsoever. It just keeps wandering off. Is this tied to the home area you put a gear into?

💬 Kall, May 11th 2023 at 11:35 PM

Awesome stuff, can't wait to see what you add next!

💬 GersteAuthor, May 11th 2023 at 8:16 PM

I added a new command to the pet whistle to stop your pets from going rampage on each other. I also upgraded the set target command so you can actually change your pets current target with this. Kall

💬 Kall, May 11th 2023 at 7:44 AM

Been having my pets try to kill each other when I accidentally hit one of them, I can set them all to passive but it takes a while before I can put them back on protective or they will just keep fighting each other. Fall damage can be a pain at times too when travelling around, they tend to launch themselves off the sides of cliffs haha

💬 Poogans, May 2nd 2023 at 9:56 PM

@Apehjerne agreed, this literally just happened with my newly tamed wolf pup 😣

💬 xXx_Ape_xXx, May 1st 2023 at 12:21 AM

Pet's should have a natural fear of anything on fire, especialy pit kilns and fire pits. I had a tame cat just casualy walk up to a pit kiln and lay down in the middle of it, and then die... Makes no sense 😒

💬 AzuliBluespots, Apr 19th 2023 at 2:17 PM

I've been trying to tame a young alpaca, but I couldn't find out what I can give it. Or it wasn't accepting anything. 
Latest petAI plus the unofficial creatures and critters release - the map at least loads and animals can be found, but I'm not sure if everything is working fine.

Actually, I wonder if pack animals is working at all with 1.18

💬 peppicatred, Mar 18th 2023 at 8:43 AM

Doesnt work, says cant solve mod dependensies or something

💬 Sona, Mar 9th 2023 at 7:07 AM

So what do the specific behaviors do?

💬 GersteAuthor, Feb 6th 2023 at 6:38 PM

Strange, PetAI itself does not even introduce any new Textures. Are there no other mods being installed? Jin_Cat

💬 Jin_Cat, Feb 6th 2023 at 6:15 AM

In combination with the mod Primitive Survival v3.1.1 breaks block textures(((( PetAI 1.5.5

image.png (721×272) (discordapp.com)

image.png (409×373) (discordapp.com)

version server 1.17.10 

💬 Escafil, Jan 3rd 2023 at 6:04 AM

I also lost an animal. Bought a dog pup from a trader and tamed it 60%. Locked it in the house, and it teleported out to me outside. I went to bed close by and he's gone. Is there a command or is there some way to highlight entities so I can find him?

💬 Xarl, Dec 28th 2022 at 11:49 AM

What are respawn commands for pets?
I lost a horse a good while back and now recently one wolf vanished and never respawned/reappeared albite he has a designated pet spot.

💬 GersteAuthor, Dec 13th 2022 at 5:44 PM

The pet beds are called pet cushions ingame. I will rework this in the future to avoid confusion MilkTheCow

💬 GersteAuthor, Dec 4th 2022 at 2:48 PM

The pet bed no longer has a UI. Pets will seek it by themselves once tired. LadyBlakeHammer

💬 LadyBlakeHammer, Dec 3rd 2022 at 2:56 AM

How do you open the UI for the pet bed?

💬 gndrneutralnoun, Oct 12th 2022 at 9:26 PM

Okay, cool. Problem: My wolf died, and I'm trying to heal it, but using poultices (specifically horsetail linen) with right click just heals me. Edit: Using a clean bandage worked, but you might want to make the action ctrl-right click or something so that others don't run into the same problem.

💬 GersteAuthor, Oct 12th 2022 at 9:22 PM

I completely removed the auto respawning of pets and most of the related stuff because it was not working properly. Pets should now sometimes seek their nests without the need of bein assigned to them. gndrneutralnoun

💬 gndrneutralnoun, Oct 12th 2022 at 5:36 PM

I seem to remember that in previous versions you had to enable pets reviving via config. Do they automatically revive now? Do I have to use a resurrector item on their body, on their nest, or what? Also, I can't seem to assign pets to a bed anymore. Was that feature removed or am I missing something?

💬 GersteAuthor, Oct 1st 2022 at 6:23 PM

Thats a new one, can you dm me the details on discord? Yiasafrai

💬 Yiasafrai, Oct 1st 2022 at 11:04 AM

i have no option to rename my pets whilst my friends on the same server do. I've tried resinstalling the mod. not sure what to do.

💬 GersteAuthor, Aug 14th 2022 at 4:31 PM

I turned down the whistle sound in the newest version. You don´t need such a config, just set the dogs aggression level to neutral or passive and this should no longer be an issue. Foolish

💬 Foolish, Aug 7th 2022 at 3:16 AM

I second that the whistle is loud as heck.

 

Can you add a server config option so that tamed animals don't attack other players. We like to mess around on my server and an option to not be attacked when we hit each other (usually with sticks) would be nice.

💬 Shion, May 5th 2022 at 11:54 PM

Can you make the whistling sound not that loud?

Would also be nice to be able to wear pet wistle as a necklage.

💬 PeterSanderson, Apr 30th 2022 at 3:03 AM

Thanks Gerste, I was able to figure out what the issue was and was able to sort it out. The pens were not lit and drifters were attacking and killing them. Error on my part sheepish grin :)

💬 GersteAuthor, Apr 29th 2022 at 5:48 PM

Is this for all commands? What command and arguments are you using?

The wolfs could despawn in darker areas in previous version as this was the default for all animals off the vanilla game too. Should not happen in the newest version though. PeterSanderson

💬 GersteAuthor, Apr 18th 2022 at 9:43 PM

You should be able to craft a whistle using a chisel too because of that tincancrab

💬 tincancrab, Apr 15th 2022 at 3:40 AM

Looks like the whistle competes with Primitive Survival, even though Cats can use fish from it, but unfortunately, when trying to make a whistle, I can only make a bone fish hook. Or am I doing it wrong?

💬 GersteAuthor, Apr 5th 2022 at 8:08 AM

Looks like there is an old version of petai in their folders.

Can you try removing the ModsByServer folder or manually checking if there is still a pre-1.4.0 petai version laying around somewhere? DEMMERS

💬 DEMMERS, Apr 5th 2022 at 12:10 AM

Using latest 1.4.1,
Mod is on the server, clients joining the server see this:
System.Exception: Don't know how to instantiate block of class 'PetNest' did you forget to register a mapping?
at Vintagestory.Common.ClassRegistry.CreateBlock(String blockClass)
at Vintagestory.Common.BlockTypeNet.ReadBlockTypePacket(_A1oClULOCEj4s2RtiXvbRAocH0N packet, IWorldAccessor world, ClassRegistry registry)
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandleServerAssetsStep1()
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _eaiE9OWXDVmX2r6n7JaWPscBEkO._LvzIyYpsQCoC78JubjSO0HCjtTg(Single )
at _lAuHsYOBOAjBMdATFXwLUtH7N00._JvY4M2412YZu1OS3Ull8wgZBu1j(Single )
at _lAuHsYOBOAjBMdATFXwLUtH7N00._KmBeEx15nyyLrVqNDW6geSArpNr(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 479
at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 454
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 375
at _TRhArnJABwZoV9Vt7Ld2l65Xzgg._mhlr8s7wtMvxaJGpVy2Ag90jUBK(_3HJA5NvAIx31LXjscc3HGjXaR6q , String[] )
at _q0zAVOrWbMX04rMA9G3HIFVuGjA._mhlr8s7wtMvxaJGpVy2Ag90jUBK(ThreadStart )

💬 DX65, Mar 15th 2022 at 4:37 PM

@Gerste Thanks I just wasn't sure so I asked I thought it would be nice alternative to having chickens that don't all run in the corner of their pens if they see the player as someone who cares for them. I mainly play in creative and thought it would be nice if there was tool to raise baby animals like chicks and goats.

💬 GersteAuthor, Mar 14th 2022 at 5:35 PM

PetAI itself does not introduce any new pets. It is just providing some nessecary tools to create pets. But these pets come from other mods. Currently there are dogs, cats, horses and pack animals.
If you wanted to make your own pets, you could look those up as examples and go from there.

Regarding your other question, I implemented a very basic system that introduces nests. It lets you define custom blocks that pets use to sleep on. DX65

💬 DX65, Mar 13th 2022 at 8:42 PM

So is it currently only pet wolves? Could I have pet chickens or goats? Can I set homes i.e. areas they live or do they have to follow me everywhere?

💬 GersteAuthor, Mar 5th 2022 at 12:43 PM

Nope, pets still use the base game pathfinder which doesn´t consider them dangerous. Messing with the pathfinding is quite a hassle so i am probably going to leave that be for now :(. Shion

💬 Shion, Mar 5th 2022 at 3:24 AM

Is pets habit of going into open fire (the clay pits) removed in this update?

💬 GersteAuthor, Feb 27th 2022 at 5:29 PM

Not yet. Lumber

I really want to implement houses for pets where they go if killed and where you can recall them to if they are lost.

Currently I am working on another side project, but once that hast its first release I plan on revisiting the petAI code and adding this feature together with fixing the breeding stuff Oke518.

💬 Lumber, Feb 27th 2022 at 4:28 PM

Is there any way to recall pets? Mine had died during a storm, and I was out wandering the world when they spawned back in a day later. They are out in unloaded chunks somewhere and I'm not sure how to find the jerks. :)

💬 Oke518, Feb 26th 2022 at 4:00 PM

on load my doges are breeding een though its toggled off.

💬 GersteAuthor, Feb 19th 2022 at 12:03 PM

There is an open issue on my github page regarding this issue where I am posting snapshot versions for serverowners to download and test. 
I could use more testers on this issue so I would be grateful if you took a look there.

It would be of great help if you could provide more information like:

  • How many pets are there on the server
  • How does the petseekentity task compare to the vanilla seekentity task (used by wolfes, hyenas, ...)
  • what aggressionlevel are the pets set to

If you are interested here is the newest snapshot version also posted on github: petai_snapshot.zip

YourCreator

💬 YourCreator, Feb 19th 2022 at 9:37 AM

PetAi mods eats perfomance on server greatly. 
55 mods active with PetAi, FeverHorses, Cats, Dogs.
If i adds CreaturesAndCritters server took tick time more than 700ms
->

19.2.2022 10:08:49 [Notification] A tick took 102,29ms
entity-ai-tasks-tick-start-execPetAI.AiTaskPetSeekEntity: 66,31ms
sleep: 27,64ms
entity-done-bh-repulseagents: 1,59ms
entity-controlledphysics-end: 1,35ms
gmleVintagestory.GameContent.EntityPartitioning: ,58ms
entity-done-bh-timeddespawn: ,58ms
entity-done-bh-harvestable: ,35ms
entity-done-bh-controlledentityphysics: ,24ms

19.2.2022 10:08:52 [Notification] A tick took 119,59ms
entity-ai-tasks-tick-start-execPetAI.AiTaskPetSeekEntity: 71,51ms
sleep: 38,68ms
entity-done-bh-emotionstates: 1,66ms
entity-done-bh-repulseagents: 1,48ms
entity-controlledphysics-end: 1,15ms
entity-done-bh-timeddespawn: ,56ms
gmleVintagestory.GameContent.EntityPartitioning: ,54ms
entity-done-bh-harvestable: ,3ms

19.2.2022 10:08:54 [Notification] A tick took 121,27ms
entity-ai-tasks-tick-start-execPetAI.AiTaskPetSeekEntity: 67,54ms
sleep: 37,99ms
gmleVintagestory.GameContent.EntityPartitioning: 7,25ms
entity-done-bh-repulseagents: 1,94ms
entity-controlledphysics-end: 1,16ms
ss-tick-Vintagestory.Server.ServerSystemCompressChunks: ,81ms
entity-done-bh-timeddespawn: ,53ms
entity-done-bh-controlledentityphysics: ,24ms

19.2.2022 10:08:57 [Notification] A tick took 105,32ms
entity-ai-tasks-tick-start-execPetAI.AiTaskPetSeekEntity: 71,52ms
sleep: 25,1ms
entity-done-bh-repulseagents: 1,67ms
entity-controlledphysics-end: 1,35ms
gmleVintagestory.GameContent.EntityPartitioning: ,62ms
entity-done-bh-timeddespawn: ,59ms
entity-done-bh-controlledentityphysics: ,25ms
entity-done-bh-floatupwhenstuck: ,23ms

💬 GersteAuthor, Feb 13th 2022 at 5:50 PM

The error ocurred in the horse mod and will probably be fixed in the next version. Aledark

Thanks for pointing that out, I will add another recipe for the whistle in the next version that maybe uses a chisel or somthing to prevent this from happening.

There is currently no bowl implemented and its currently not planned, but maybe that changes in the future. Lisabet

💬 Aledark, Feb 13th 2022 at 8:04 AM

Also posted on ferverstone github :) but those might be interlink so figured id report it to you and them.

1.16.3 stable- with pet ai(petai_v1.3.4.zip) and feverstonehorse(FeverstoneHorses-v1.2.4-1.16.x)

from server-main.txt

13.2.2022 02:36:16 [Error] System.NullReferenceException: Object reference not set to an instance of an object.
at Vintagestory.GameContent.EntityBehaviorHarvestable.SetHarvested(IPlayer byPlayer, Single dropQuantityMultiplier)
at Vintagestory.GameContent.ItemKnife.OnHeldInteractStop(Single secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel)
at Vintagestory.Server.ServerSystemInventory.HandleHandInteraction(_EWaCktsS2JyUbMhFd5RdMtCiCZOA packet, ConnectedClient client)
at Vintagestory.Server.ServerMain.ProcessNetMessage(NetIncomingMessage msg, NetServer mainSocket)

13.2.2022 02:36:21 [Error] Error thrown trying to serialize entity with code feverstonehorses:horse-male, will not save, sorry! Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at PetAI.EntityPet.getInventoryTree()
at PetAI.EntityPet.ToBytes(BinaryWriter writer, Boolean forClient)
at Vintagestory.Server.ServerChunk.BeforeSerialization()
13.2.2022 02:26:08 [Error] Error thrown trying to serialize entity with code feverstonehorses:horse-female, will not save, sorry! Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at PetAI.EntityPet.getInventoryTree()
at PetAI.EntityPet.ToBytes(BinaryWriter writer, Boolean forClient)
at Vintagestory.Server.ServerChunk.BeforeSerialization()

💬 Lisabet, Feb 13th 2022 at 1:14 AM

also, is it possible to have a pet bowl (if it doesn't exist and I don't see notes on it lol) so that once you've tamed and reached 100 obedience, the cats/dogs can eat from a pet bowl/dish?

💬 Lisabet, Feb 13th 2022 at 12:48 AM

it seems the whistle has a 'fixed' recipe (knife under bone in the window) while bone hooks have a...formless? recipe; bone and knife in window, regardless of position

my guess is primitive survival needs to have a fixed recipe as well, so that it doesn't clash with anything else that uses a bone and knife lol

 

edit since I play singleplayer, a very quick easy 'fix' is to temporarily disable primitive survival, load in and make the whistle, close the server and reenable primitive survival

edit 2 if you try that quick fix, make sure you don't have anything in hollow log containers before disabling primitive survival lol

💬 MKJwhoa95, Feb 12th 2022 at 1:28 AM

I'm having the same issue as CaveSalamander as well. Also using ver 1.3.4. with VS #v1.16.3. Perhaps Primitive Survival also needs a compatibility patch for it to be fully fixed.

💬 CaveSalamander, Feb 11th 2022 at 6:04 PM

@Gerste seems so. I'm using ver 1.3.4, and pr.surv. ver 2.8.0

💬 GersteAuthor, Feb 11th 2022 at 7:43 AM

Still? I thought I fixed this since verson 1.3.1 CaveSalamander

💬 CaveSalamander, Feb 11th 2022 at 3:03 AM

Small conflict with Primitive Survival, their bone fishing hook overrides the pet whistle recipe. Not sure which mod's author to mention this to ^-^

💬 GersteAuthor, Feb 8th 2022 at 8:00 PM

Don´t worry, you are not going crazy. There is a couple of modders who currently is implementing a horse mod using the PetAI system. I already implemented the neccessary systems in this library for riding and stuff so that everything is ready once their mod is finished :) Lash 

💬 Lash, Feb 8th 2022 at 8:22 AM

Keep seeing you mention mounts in the changelog. Is there a mount mod somewhere or am I going crazy?

💬 Evadx, Feb 5th 2022 at 5:05 PM

Man, that was fast. It works now! Thanks for the fix!

💬 GersteAuthor, Feb 5th 2022 at 4:42 PM

Should be fixed in petai_v1.3.4. Should also prevent the constant teleporting when following. Evadx

💬 Evadx, Feb 5th 2022 at 3:45 PM

alright, so I've tamed two dogs, and I tried to use a bone on one that was over a trunk and a pottery vessel, and all containers stopped being able to be opened, regardless of whether a bone was in my hand or not. I then get this error in the event log when trying to load in to the game again:

5.2.2022 10:39:50 [Fatal] System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Vintagestory.Essentials.WaypointsTraverser.get_CurrentTarget()
at Vintagestory.GameContent.AiTaskSeekEntity.ContinueExecute(Single dt)
at Vintagestory.GameContent.AiTaskManager.OnGameTick(Single dt)
at Vintagestory.GameContent.EntityBehaviorTaskAI.OnGameTick(Single deltaTime)
at Vintagestory.API.Common.Entities.Entity.OnGameTick(Single dt)
at Vintagestory.API.Common.EntityAgent.OnGameTick(Single dt)
at Vintagestory.Server.ServerSystemEntitySimulation.TickEntities(Single dt)
at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick(Single dt)
at Vintagestory.Server.ServerMain.Process()

I disabled all your pet mods, and it loaded fine. Thanks for taking a look at this.

💬 GersteAuthor, Feb 4th 2022 at 11:42 PM

Fixed in petai_v1.3.3. There is now a small button on the top-right of the command interface that lets you rename your pets. CreativeRealms

💬 CreativeRealms, Feb 3rd 2022 at 12:20 AM

Would it be possible to allow naming/renaming in the command menu after an animal has been tamed? I livestream and closed the prompt for later since my viewers can redeem a reward for renaming animals. However, it seems as though there is no longer a way for me to name it should I wish to do so in the future.

💬 iotid, Jan 28th 2022 at 7:22 AM

The purrs and hisses are good!  The meow is the one that really carries--had a cat easily 50 or 60 blocks away that was about twice the volume of everything else immediately near me.  Haven't had any issues with dog sounds, either, they're good.

💬 GersteAuthor, Jan 27th 2022 at 7:16 PM

I can try and turn the volume down for the cat sounds.

What sounds do you experience as too loud? Just the meow, or also the purring and hissing? iotid

💬 iotid, Jan 27th 2022 at 1:33 PM

Might I make a request for a config option to mute the animals using this library?  Cats in particular have been out-of-place loud on our server, even from a long distance.  :<

💬 GersteAuthor, Jan 21st 2022 at 8:48 PM

Thank you very much. I will include all your translations in my next feature update :) Cendar

💬 Cendar, Jan 19th 2022 at 4:30 AM

Hi! I made a french translation for your mod, feel free to add it if you want. 😊

fr.json - petai 1.2.1

💬 Briaireous, Jan 18th 2022 at 11:23 PM

would be very cool if you can make it so that pets would show up on the minimap

💬 GersteAuthor, Nov 24th 2021 at 12:02 PM

This mod is already designed to do this. You just need to add the Tameable and ReceiveCommand to your entities as well as the corresponding AI Tasks.
You can check this out by looking at the cat and dog entities of my other mods, but if you have any specific questions, feel free to ask: G3rste#1850

💬 WickedSchnitzel, Nov 24th 2021 at 9:31 AM

Maybe you could create a mod with some config where people would just have to place a specific entity code and then would be able to give commands to all sort of animals, even custom ones?

💬 GersteAuthor, Nov 24th 2021 at 8:39 AM

Should be fixed in v1.0.2.

💬 Verlia, Nov 23rd 2021 at 3:37 AM

Bug; Game crash/error;

Version: v1.15.9 (Stable)11/22/2021 9:32:34 PM: Critical error occurred System.NullReferenceException: Object reference not set to an instance of an object. at PetAI.EntityBehaviorTameable.disobey(Single intervall)

(edit comment delete)