Tested and confirmed. If i edit DDEOnDrinkPotion as well as DDEOnEatIngredient, and wrap both funcs into an if, that checks if the actor is the PC (thus, disabling the anims for NPCs), then i no longer get the crash near bruma.
Bottom line: Don't use the current version of this mod, unless you like CTDs, or are willing to disable anims for NPCs, by editing the scripts.
Open up the DDEOnDrinkPotion script in the construction set, and right after the line that says "begin function { Drinker Potion }" copy and paste this on the next line:
if Drinker != PlayerRef return endif
Then do the exact same thing for the script called "DDEOnEatIngredient" but copy this instead:
if Eater != PlayerRef return endif
Then save the .esp. This will make sure it only plays on the player.
Ooh, nice. Works very well with the Real-Time Interactions hunger mod. One suggestion though - perhaps the drink animation should cut off after the first gulp, so it doesn't take so much time.
I can confirm the CTDs. For me, it happened reproducable near bruma. Just go to the town, then exit it and wait 20-40secs. You don't even need to move. Happens no matter which town gate i exit through. I think it's the guards. I loaded the mod into CS and did a quick check. It's not dirty. Also couldn't see anything unusual with the scripts.
I think i'll try to disable drink/eat anims for all NPCs and see if that helps.
Well quite a few people have downloaded this now, maybe I am the only one having a problem? I get CTD's, only when NPC's are eating and I have this mod active. I'm not sure if it's every time an NPC eats, but so far it happens to me every time I enter one of the Anvil guild halls during dining hours, repeatably. So must be either a mod conflict or a bug. I don't have any other mods that touch animations, but I have several that touch AI packages, so if it's a conflict that's where I'll start looking. Anyone else get this problem?
Otherwise, it's a nice mod idea and I enjoyed it when it was working. No problems from the player side. Would it be possible to select the animation object, like a mug or something? Never messed with this kind of stuff personally. Anyway, thanks!
DKZZ2, I tried commenting out the lines that flip the player into 3rd person. The animation plays and you can see your hands but they're empty. For example, drinking a potion looks like you're drinking from an invisible potion bottle. I'm sure mitzi can make it work.
BTW, in case people haven't noticed, mitzi has been uploading some of the most innovative animation mods we've seen in some time. I recommend all of them.
22 comments
Bottom line: Don't use the current version of this mod, unless you like CTDs, or are willing to disable anims for NPCs, by editing the scripts.
Any chance you could show how you did it? Post your code or whatever?
Any chance you could show how you did it? Post your code or whatever?
Any chance you could show how you did it? Post your code or whatever?
Any chance you could show how you did it? Post your code or whatever?
if Drinker != PlayerRef
return
endif
Then do the exact same thing for the script called "DDEOnEatIngredient" but copy this instead:
if Eater != PlayerRef
return
endif
Then save the .esp. This will make sure it only plays on the player.
One suggestion though - perhaps the drink animation should cut off after the first gulp, so it doesn't take so much time.
I think i'll try to disable drink/eat anims for all NPCs and see if that helps.
Any chance you could show how you did it? Post your code or whatever?
Otherwise, it's a nice mod idea and I enjoyed it when it was working. No problems from the player side. Would it be possible to select the animation object, like a mug or something? Never messed with this kind of stuff personally. Anyway, thanks!
BTW, in case people haven't noticed, mitzi has been uploading some of the most innovative animation mods we've seen in some time. I recommend all of them.
Thanks, mitzi! - Endorsed!
By the way, why not do the animation in the first person for the player ...