Mods / Pet AI
Author: Gerste
Side: Both
Created: Nov 20th 2021 at 8:39 PM
Last modified: Jul 6th at 6:11 PM
Downloads: 147867
Follow Unfollow 893
Latest file for Various v1.19.x:
petai_v2.2.6.zip
1-click install
Summary
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:
- Wolf Taming
- Cats
- Fox Taming
- Feverstone Horses
- Feverstone Wilds
- Rogue House Additions (only available for singleplayer worlds or on the Rogue House Server)
- Bear Taming
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)
Contribute
Translations
If you want to help translate the mod into your language, head over to the Crowdin Project to upload your community translation. I use a small script that automatically downloads the translations before every new release.
Features/ Bugfixes/ Assets/ Models
If there is a feature that you are desperately missing in this or you found a bug you want to fix yourself, feel free to hit me up on the Vintage Story Community discord with your idea and send in a Pull Request over on Github.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v2.2.6 | 17747 | Jul 6th at 6:11 PM | Show | petai_v2.2.6.zip | Install now | |
v2.2.5 | 3143 | Jun 23rd at 7:43 PM | Show | petai_v2.2.5.zip | Install now | |
v2.2.4 | 13802 | Apr 23rd at 8:33 PM | Show | petai_v2.2.4.zip | Install now | |
v2.2.3 | 16080 | Jan 23rd at 7:39 PM | Show | petai_v2.2.3.zip | Install now | |
v2.2.2 | 523 | Jan 22nd at 7:29 PM | Show | petai_v2.2.2.zip | Install now | |
v2.2.1 | 2880 | Jan 10th at 9:55 PM | Show | petai_v2.2.1.zip | Install now | |
v2.2.0 | 3054 | Dec 12th 2023 at 8:36 PM | Show | petai_v2.2.0.zip | Install now | |
v2.0.0 | 3232 | Nov 18th 2023 at 2:35 PM | Show | petai_v2.0.0.zip | Install now | |
v1.8.1 | 18570 | Sep 16th 2023 at 3:05 PM | Show | petai_v1.8.1.zip | Install now | |
v1.8.0 | 5028 | Aug 25th 2023 at 7:00 PM | Show | petai_v1.8.0.zip | Install now | |
v1.7.10 | 10242 | Jun 29th 2023 at 8:00 PM | Show | petai_v1.7.10.zip | Install now | |
v1.7.9 | 4953 | May 25th 2023 at 6:12 PM | Show | petai_v1.7.9.zip | Install now | |
v1.7.8 | 1141 | May 20th 2023 at 5:51 PM | Show | petai_v1.7.8.zip | Install now | |
v1.7.7 | 1118 | May 14th 2023 at 7:50 PM | Show | petai_v1.7.7.zip | Install now | |
v1.7.6 | 326 | May 14th 2023 at 3:22 PM | Show | petai_v1.7.6.zip | Install now | |
v1.7.5 | 194 | May 14th 2023 at 3:06 PM | Show | petai_v1.7.5.zip | Install now | |
v1.7.4 | 638 | May 12th 2023 at 8:45 PM | Show | petai_v1.7.4.zip | Install now | |
v1.7.3 | 708 | May 11th 2023 at 8:13 PM | Show | petai_v1.7.3.zip | Install now | |
v1.7.2 | 2396 | Apr 30th 2023 at 5:34 PM | Show | petai_v1.7.2.zip | Install now | |
v1.7.1 | 922 | Apr 28th 2023 at 4:57 PM | Show | petai_v1.7.1.zip | Install now | |
v1.7.0 | 3050 | Apr 18th 2023 at 8:03 PM | Show | petai_v1.7.0.zip | Install now | |
v1.6.0 | 1752 | Mar 3rd 2023 at 6:52 PM | Show | petai_v1.6.0.zip | Install now | |
v1.5.5 | 9645 | Oct 22nd 2022 at 5:05 PM | Show | petai_v1.5.5.zip | Install now | |
v1.5.4 | 3492 | Sep 2nd 2022 at 5:37 PM | Show | petai_v1.5.4.zip | Install now | |
v1.5.3 | 724 | Aug 14th 2022 at 4:30 PM | Show | petai_v1.5.3.zip | Install now | |
v1.5.2 | 496 | Jul 28th 2022 at 8:46 PM | Show | petai_v1.5.2.zip | Install now | |
v1.5.1 | 725 | Jul 1st 2022 at 9:26 PM | Show | petai_v1.5.1.zip | Install now | |
v1.5.0 | 365 | Jun 26th 2022 at 3:21 PM | Show | petai_v1.5.0.zip | Install now | |
v1.4.4 | 5602 | Apr 29th 2022 at 7:01 PM | Show | petai_v1.4.4.zip | Install now | |
v1.4.3 | 1010 | Apr 20th 2022 at 6:44 PM | Show | petai_v1.4.3.zip | Install now | |
v1.4.2 | 1503 | Apr 5th 2022 at 4:12 PM | Show | petai_v1.4.2.zip | Install now | |
v1.4.1 | 410 | Apr 4th 2022 at 6:02 PM | Show | petai_v1.4.1.zip | Install now | |
v1.4.0 | 425 | Apr 3rd 2022 at 1:30 PM | Show | petai_v1.4.0.zip | Install now | |
v1.3.7 | 1740 | Mar 10th 2022 at 8:44 PM | Show | petai_v1.3.7.zip | Install now | |
v1.3.6 | 879 | Mar 5th 2022 at 12:28 AM | Show | petai_v1.3.6.zip | Install now | |
v1.3.5 | 1534 | Feb 15th 2022 at 6:29 PM | Show | petai_v1.3.5.zip | Install now | |
v1.3.4 | 1345 | Feb 5th 2022 at 4:41 PM | Show | petai_v1.3.4.zip | Install now | |
v1.3.3 | 514 | Feb 4th 2022 at 11:29 PM | Show | petai_v1.3.3.zip | Install now | |
v1.3.2 | 722 | Feb 1st 2022 at 6:38 PM | Show | petai_v1.3.2.zip | Install now | |
v1.3.1 | 559 | Jan 31st 2022 at 10:27 PM | Show | petai_v1.3.1.zip | Install now | |
v1.3.0 | 575 | Jan 30th 2022 at 4:17 PM | Show | petai_v1.3.0.zip | Install now | |
v1.2.1 | 1438 | Jan 5th 2022 at 7:47 PM | Show | petai_v1.2.1.zip | Install now | |
v1.2.0 | 445 | Jan 2nd 2022 at 6:46 PM | Show | petai_v1.2.0.zip | Install now | |
v1.1.0 | 633 | Dec 11th 2021 at 7:03 PM | Show | petai_v1.1.0.zip | Install now | |
v1.0.2 | 624 | Nov 23rd 2021 at 10:42 PM | Show | petai_v1.0.2.zip | Install now | |
v1.0.1 | 524 | Nov 22nd 2021 at 7:58 PM | Show | petai_v1.0.1.zip | Install now | |
v1.0.0 | 439 | Nov 21st 2021 at 9:42 PM | Show | petai_v1.0.0.zip | Install now |
i got a bug i think, i transfered my pets to a new world via world edit but now none of them can be tended to, i created a bunch of carnivore pet cookies but neither my 2 cats nor my 1 dog can eat them and it doesn't matter how much time i let pass it always says they aren't ready to be tended to
Hello!
Loving this mod so far and we've been using it on our server, however, is there a way for other players to feed each other's pets? We have a group that plays a little sporadically with each other and trying to feed one another cats to make sure they don't die or have too low obedience seems impossible at the moment.
Any help would be deeply appreciated!
Hello!
Loving this mod so far and we've been using it on our server, however, is there a way for other players to feed each other's pets? We have a group that plays a little sporadically with each other and trying to feed one another cats to make sure they don't die or have too low obedience seems impossible at the moment.
Any help would be deeply appreciated!
suggestion i have after what just happend me XD
is it possible to make it so tamed pets dont attack gen 1 and up livestock? I just had one of my german shepards hop the fence (snow layers let all pets hop fences when jumping) and murder my entire pen of gen 1 pigs because one of the sows hit him through the fence. I made a chisel fence they cant reach through anymore but its still a big problem. My gaurd dogs constantly hop the fences during winter chasing down drifters and other enemies. ive had my cats do the exact same thing and wipe out all my chickens.
also maybe it is possible to make an option to not have them attack eachother when you accidently hit one of them? I know you can revive dead pets but still its annoying when i accidently slap a pet while buidling or something and then entire pack comes running from the fields to maul it death.
Crouch + Right Click to pick up a pet.
Crouch + Right Click to put down a pet.
Bot with the Backpack in your right hand slot. Yombo ArgusFowler
I am also trying to figure out how to use the pet backpack. There is no description on the backpack that gives any indication on how to use it. I've tried wearing it and in my hotbar. I've tried shit, alt, and ctr clicking while selected in the hotbar or when worn.
Could I get some info on how the pet carrying backpack is used? I do see that someone previously asked this, but all they got was a "it should be in the description." Maybe I'm missing something but I do not have any such description on the item or in the survival handbook.
Sorry if this has been adressed, but any pets of mine don't follow commands
I cannot command my pup, or my horse (feverstone's horses), any attempt gives me a message along the lines of "This animal is not tamed enough, tame percentage needed, X%" despight them being tamed 100%, I've tried this with multiple horses
I have to pen my horse in, and my pup is still in the pit I hearded it into to catch it, the pup wont run away from me, but wont follow any commands, and I've spent a LOT of time chasing down my horse before I made a pen/whenever I get off him to go exploring/prospecting
Hi, i updated the german translation.
de.json
how does the attack command from pet whistle supposed to work? my wolf doesn't seem to attack anything when i try using it, even when i punch something
Can't use clean bandages on my pet to heal it. Nothing works now. No poultice no bandage nothing.
Gerste
Hey there, getting a crash when if I try to pick up a player corpse from player coupse mod while a poultice is selected in my inventory hotbar while running PetAI Mod, here's the callstack:
System.NullReferenceException: Object reference not set to an instance of an object.
at PetAI.PoulticePatch.Prefix(Single secondsUsed, ItemSlot slot, EntityAgent byEntity, EntitySelection entitySel) in E:\Workspace\vintage_story_mods\petai\src\Systems\Patches.cs:line 65
at Vintagestory.GameContent.ItemPoultice.OnHeldInteractStop_Patch1(ItemPoultice this, Single secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel)
at Vintagestory.API.Common.CollectibleObject.OnHeldUseStop(Single secondsPassed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumHandInteract useType) in VintagestoryApi\Common\Collectible\Collectible.cs:line 1162
at Vintagestory.Client.NoObf.SystemMouseInWorldInteractions.HandleHandInteraction(Single dt) in VintagestoryLib\Client\Systems\Player\MouseInWorldInteractions.cs:line 313
at Vintagestory.Client.NoObf.SystemMouseInWorldInteractions.OnGameTick(Single dt) in VintagestoryLib\Client\Systems\Player\MouseInWorldInteractions.cs:line 160
at Vintagestory.Common.GameTickListener.OnTriggered(Int64 ellapsedMilliseconds) in VintagestoryLib\Common\Model\GameTickListener.cs:line 27
at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Common\EventManager.cs:line 81
at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt) in VintagestoryLib\Client\ClientMain.cs:line 815
at Vintagestory.Client.NoObf.ClientMain.MainGameLoop(Single deltaTime) in VintagestoryLib\Client\ClientMain.cs:line 731
at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenRunningGame.cs:line 200
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 676
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 651
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 324
at Vintagestory.Client.ClientProgram.<>c__DisplayClass9_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 128
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93
Gerste
There seems to be an issue with the default values of any of the *Multiplier*PerGen values. Because they're all greater than 1, it's causing the following as gens increase:
These should probably default to a number less than 1 but greater than 0 to see more reasonable benefits as generation increases.
Ghaelen
The multiplier values describe the base difficulty for their associated tasks (taming, obedience increase, obedience decay). Combined with their multiplier-per-gen values and generation, and animal-specific multipliers (for obedience and disobedience), you get how hard or easy it is to tame and keep obedient an animal type will be. Increasing the taming/obedience multipliers will increase those tasks' gain, while increasing disobedienceMultiplier increases the rate at which obedience decays. and the reverse applies for when those values are less than 1 but greater than 0. Setting them to be negative will probably do very, very strange things and should be avoided.
Would be cool if pets gave some audible feedback when commanded direct or whistle, like an acknowledgement sound, to let the player know command recieved.
And straw/hay cushions for early game.
Gerste
Pet Carrying backpack error
Maamessu Probably horses
I also wanted to ask: What eats the herbivore pet cookies?
Wanted to report a bug with the pet carrying backpack... It so happens that you can put more than one pet inside it, but only the last one inserted will come back out. The bag basically eats the others as tribute to the mod gods. This specifically happened with cats on a server.
Same problem as bratmoroll. Tried an entire stack of reed-horsetail poultices but nothing happened. They are listed in the config by default and I haven't changed that.
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!
Plz can you make a primative pet cushion, say out of hay, for early game.
Thank you!
Yes, its located where all modconfig files are located. /VingatestoryData/ModConfig Agentfyre
Where can the modconfig file be found? Is it a json file?
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.
@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!
Depends on the config of your server. The items that are valid resurrectors can be set via config file. Moonhunter
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.
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:
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
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
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.
Hi, what is the setting "teleport" doing. Thanks
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
Try this one Wolfzank
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.
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.
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!
Gerste
It was the recipe with the Knife. I guess i will have to make a chisel if i want a Pet Whistle then.
The whistle already has to different crafting recipes, one with a chisel and one with a knife. Hydromancerx
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!
Should be explained in the itemdescription CrusadingPriest
How do you use the Pet carrying backpack? I saw it but have no idea how it works.
Version 1.8.1 is compatible with all 1.18 versions after 1.18.8 LyingSheep
@Gerste are you planning on making the mod compatible with 1.18.15? Or only with newer versions of VS?
Oh then I can't use the mods then, I have version 1.18.15 Gerste
You need to download the version that matches your game version. Willowwolf222
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 :(
Thanks. So much better than seeing a mention of other mods and then going back and searching by mod author.
Like this? Stroam
Please add links here for your other mentioned mods.
@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. 😁
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.
@Gerste - Wildcraft bombardment for your petconfig.json healing items incoming!:
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.
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
Yeah you need to wait for the 1.19 game release or use one of the pre versions. DepressedPepe
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
You have to manually feed them Malfiros
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?
Currently not Whiteshadoh
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?
fair enough ;-)
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" :)
When holding right-click the obedience of my tamed wolf is going up, not sure which mod is the source of this issue.
Good catch. Will be fixed in the next version. Moon_Dew
Tyron changed the location of the bone texture which causes this error.
There's a minor conflict between this and Medieval Fashion Vanilla Textures. Pet whistle is missing its texture.
Anybody else keep crashing with this new update?
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"
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.
@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
The horse won't stay completely still, but will stroll the nearby surroundings whilst staying at a certain distance. Gikame
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?
Awesome stuff, can't wait to see what you add next!
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
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
@Apehjerne agreed, this literally just happened with my newly tamed wolf pup 😣
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 😒
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
Doesnt work, says cant solve mod dependensies or something
So what do the specific behaviors do?
Strange, PetAI itself does not even introduce any new Textures. Are there no other mods being installed? Jin_Cat
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
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?
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.
The pet beds are called pet cushions ingame. I will rework this in the future to avoid confusion MilkTheCow
The pet bed no longer has a UI. Pets will seek it by themselves once tired. LadyBlakeHammer
How do you open the UI for the pet bed?
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.
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
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?
Thats a new one, can you dm me the details on discord? Yiasafrai
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.
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
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.
Can you make the whistling sound not that loud?
Would also be nice to be able to wear pet wistle as a necklage.
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 :)
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
You should be able to craft a whistle using a chisel too because of that tincancrab
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?
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
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 )
@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.
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
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?
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
Is pets habit of going into open fire (the clay pits) removed in this update?
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.
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. :)
on load my doges are breeding een though its toggled off.
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:
If you are interested here is the newest snapshot version also posted on github: petai_snapshot.zip
YourCreator
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
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
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()
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?
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
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.
@Gerste seems so. I'm using ver 1.3.4, and pr.surv. ver 2.8.0
Still? I thought I fixed this since verson 1.3.1 CaveSalamander
Small conflict with Primitive Survival, their bone fishing hook overrides the pet whistle recipe. Not sure which mod's author to mention this to ^-^
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
Keep seeing you mention mounts in the changelog. Is there a mount mod somewhere or am I going crazy?
Man, that was fast. It works now! Thanks for the fix!
Should be fixed in petai_v1.3.4. Should also prevent the constant teleporting when following. Evadx
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.
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
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.
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.
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
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. :<
Thank you very much. I will include all your translations in my next feature update :) Cendar
Hi! I made a french translation for your mod, feel free to add it if you want. 😊
fr.json - petai 1.2.1
would be very cool if you can make it so that pets would show up on the minimap
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
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?
Should be fixed in v1.0.2.
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)