ok I have had this mod for a few weeks and its been working fine.. however.. (and it took until now to work out what mod was causing the problem) the animation sometimes causes trouble with other mods.. after getting off a horse using convenient horses mod, it makes your character do a 90deg turn or the horse will do the 90deg turn.. the same problem happens when initiating sexlab animations, it causes everything to be 90deg out of alignment and impossible to correct.. once the bug starts then the only way to correct it is to remove all the mods that are bugged.. so after discovering it was this mod that was causing bugs I removed your mod and the other mods are still bugged... but they are ok if I roll back to an old save prior to putting this mod on. I would really like to keep using this mod, but not until its fixed
same problem with me, only I got milking from the dairy farm home mod. Knew about this bug already and intended not to milk anything but forgot about it while out and about. Anyway at some point I tried to loot a dead goat for it's horns and ended up milking the damn thing (yeah, milked a dead goat somehow). Now I am stuck with this bug again and it's been days since it happened so I'm pretty well f*cked.
Sorry to users having trouble with this mod. I created it based off of a set of modder resources as scripting is not my strong point. Unfortunately I wouldn't know how to address the issues people are having. I am trying to learn more about scripting in Skyrim but for now I cannot provide support for this mod.
This is easy to fix. You just need to add one line to script and recompile it. In the end of the script, you must call the Player.ClearLookAt() function. Here is the fragment of the code (the fix is marked with red color): ;-------------------------------------------------------------------------------- function fakeHarvest(objectReference akActivator)
Using the Papyrus Compiler included with to compile, I'm presented with the following output:
Starting 1 compile threads for 1 files... Compiling "zz01scrpt_hf_cowmilking"... <unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg C:\Projects\TESV\Build\Source\zz01scrpt_hf_cowmilking.psc(44,6): Unknown user flag Hidden No output generated for C:\Projects\TESV\Build\Source\zz01scrpt_hf_cowmilking.psc, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on C:\Projects\TESV\Build\Source\zz01scrpt_hf_cowmilking.psc
Is anyone familiar with this error message that cares to enlighten me on the issue?
@Kedavix It's looking for the milking script that was included with the mod. Normally, it would install to the Skyrim/Data/Scripts folder, but if you're using NMM or MO, it won't be there. Just grab the Scripts folder from the mod, copy it over to your Data folder, let it recompile, then pull the two scripts starting with zz out and put them back where they belong in the mod's folder. Overwrite, and you're done!
As of the day of this reply, the camera issue is still present, but also, the PC enters in mouse look upon done milking (running this mod without HearthFires on Skyrim 32bits under Windows 10, so not 100% sure it's a windows thing or the mod...) Other than the aforementioned, it works great if all you need is making a video... which is not my case lol
I know that you're not really active with that mod but I found bug where character milking dead cow/goat after you looting them but then character just standing and can't move instead performed milking animation.
I hope you can fix this bug, because I really like this mod, really makes thing realistic action. ofc I endorsed it.
Thank you so much! Im a farmer in skyrim, I have a cow and some goats and such and was really wanting to take better care of my farm and my animals, so this helps a lot! Now i can stock up on some milk and maybe sell some to merchants!
Just wanted to say I Love your Mod! Haven't got it to work on a goat yet (In real life thats what i drink is Goats Milk) I really hope i can get it to work lol, But other then that tyvm!!
51 comments
so after discovering it was this mod that was causing bugs I removed your mod and the other mods are still bugged... but they are ok if I roll back to an old save prior to putting this mod on.
I would really like to keep using this mod, but not until its fixed
Is the author even going to try?
Here is the fragment of the code (the fix is marked with red color):
;--------------------------------------------------------------------------------
function fakeHarvest(objectReference akActivator)
if (akActivator as actor)
Actor Player = Game.GetPlayer()
If CowIsDead == 1
Else
self.EnableAI(FALSE)
Debug.SendAnimationEvent(Self, "cowFeedStart")
MilkingBucket = Self.PlaceAtMe(Bucket)
MilkingBucket.SetScale(0.5)
MilkingBucket.MoveTo(Self, -50 * Math.Sin(Self.GetAngleZ()), -50 * Math.Cos(Self.GetAngleZ()), abMatchRotation = true)
Game.ForceThirdPerson()
Game.DisablePlayerControls(abMovement = true, abFighting = false, abCamSwitch = true, abLooking = false, abSneaking = false, abMenu = true, abActivate = false, abJournalTabs = false)
XMarkCrouch = MilkingBucket.PlaceAtMe(XMarker)
XMarkCrouch.MoveTo(Self, -45 * Math.Sin(Self.GetAngleZ()), -45 * Math.Cos(Self.GetAngleZ()), abMatchRotation = true)
Utility.Wait(0.5)
Game.SetPlayerAIDriven()
Player.SetLookAt(XMarkCrouch , true)
;float AngleZ = XMarkCrouch .GetAngleZ() + OffsetAngle
;float AngleX = XMarkCrouch .GetAngleZ() + OffsetAngle
;float OffsetX = OffsetDistance * Math.Sin(AngleX) + 50
;float OffsetY = OffsetDistance * Math.Cos(AngleZ)
Float BucketAngleZ = (XMarkCrouch.GetAngleZ() + 85)
Player.MoveTo(XMarkCrouch, -55 * Math.Sin(BucketAngleZ ), -55 * Math.Cos(BucketAngleZ ))
Player.SetLookAt(XMarkCrouch, true)
Utility.wait(1.5)
Debug.SendAnimationEvent(Player, "IdleWarmHandsCrouched")
Utility.wait(1.0)
int instanceID = MilkingSound.play(self)
Utility.wait(0.4)
Sound.StopInstance(instanceID)
Utility.wait(1.0)
int instanceID2 = MilkingSound.play(self)
Utility.wait(0.4)
Sound.StopInstance(instanceID2)
Utility.wait(1.0)
int instanceID3 = MilkingSound.play(self)
Utility.wait(0.4)
Sound.StopInstance(instanceID3)
Utility.wait(1.0)
int instanceID4 = MilkingSound.play(self)
Utility.wait(0.4)
Sound.StopInstance(instanceID4)
Utility.wait(1.0)
Player.PlayIdle(IdleStop_Loose)
Game.EnablePlayerControls()
self.EnableAI(TRUE)
Self.MoveTo(XMarkCrouch, 60 * Math.Sin(XMarkCrouch.GetAngleZ()), 60 * Math.Cos(XMarkCrouch.GetAngleZ()), abMatchRotation = true)
MilkingBucket.Delete()
XMarkCrouch.Delete()
Utility.wait(1.0)
Player.ClearLookAt() ;ADD THIS HERE
Game.ForceFirstPerson()
Game.SetPlayerAIDriven(False)
Player.AddItem(BYOHFoodMilk, HowManyMilkPer, True)
Notification(WhatYouGot)
EndIf
EndIf
EndFunction
Starting 1 compile threads for 1 files...
Compiling "zz01scrpt_hf_cowmilking"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
C:\Projects\TESV\Build\Source\zz01scrpt_hf_cowmilking.psc(44,6): Unknown user flag Hidden
No output generated for C:\Projects\TESV\Build\Source\zz01scrpt_hf_cowmilking.psc, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on C:\Projects\TESV\Build\Source\zz01scrpt_hf_cowmilking.psc
Is anyone familiar with this error message that cares to enlighten me on the issue?
Other than the aforementioned, it works great if all you need is making a video... which is not my case lol
I hope you can fix this bug, because I really like this mod, really makes thing realistic action. ofc I endorsed it.