Picks Up and Drops animation don't work

Original Discord Post by araceli_r_v | 2024-03-24 20:19:38

Hi, in my ue5 project i have implemented the picks up and drops animation following your YouTube video: https://www.youtube.com/watch?v=phAkEFa6Thc

When i run my project and I tell to my metahuman to picks up the item, it goes to the item but the animation doesn´t work and it didn’t bring me back the item, but the metahuman come back to me. I have watched a lot of time the video and i download the project that you have in drive, but for your project it works but in mine not. I hope that you could help me. Thanks a lot.

Embedded Content:
AI NPCs Take Action from Conversation | Environment and Object Awar…
Characters feel life-like if conversations have consequences involving not only verbal responses but also behaviors and actions. This may include interacting with the environment or other characters. Convai’s NPCs can navigate complex verbal instructions and convert them to natural actions in the game engine. For example, characters can perform …
Link: https://www.youtube.com/watch?v=phAkEFa6Thc

Reply by freezfast | 2024-03-25 00:52:11

Hi <@651477930832166944>, there’s also a sample project in the video description that has the animation for picking up and dropping, make sure to check it out and compare

Reply by freezfast | 2024-03-25 00:52:26

It might help you to debug what the issue could be

Reply by araceli_r_v | 2024-03-25 01:45:28

I have already done that and i still without seeing the issue

Reply by araceli_r_v | 2024-03-25 11:45:36

I have copied exactly your ue5 folder animations and the bp of your metahuman. but my metahuman still not doing the animations and doesn´t bring me back the items. I don´t know what more i need to change :smiling_face_with_tear:

Reply by araceli_r_v | 2024-03-25 12:04:39

In fact i copied your metahuman too, and in my project these actions don’t work :smiling_face_with_tear: , i don’t know what to do or where i must look to fix the error.

Reply by araceli_r_v | 2024-03-25 12:04:54

Picks Up and Drops animation don’t work

Reply by freezfast | 2024-03-25 12:48:44

Make sure to add the actions to the character action list in the scene and check your logs if the actions are appearing or not

Reply by freezfast | 2024-03-25 12:49:26

Do a thorough comparison between your project and the sample project

Reply by araceli_r_v | 2024-03-25 22:24:32

I have added all the actions (Picks Up and Drops) in the actions panel from my metahuman with the same name that i implemented these actions in my metahuman’s blueprint, moreover i have created the group slot, and change the convai_base_character for the edited one. I follow all the steps of the video and check out with the project example that you already have in drive. And i swear that i have all exactly as the project example and i don´t know where the error could be. If you want i can make you screenshots from the things i implemented in the project. Thanks so much and sorry for all the problems :sweat_smile:

Reply by freezfast | 2024-03-25 23:39:12

Thank you for the explanation, first let’s test if the action is being activated, instead of having the event play an animation make it print a string instead then handle action execution with true

Reply by freezfast | 2024-03-25 23:39:52

also could you share the output logs, I can check if it is indeed being called

Reply by araceli_r_v | 2024-03-26 10:28:45

I’m going to share you the output logs in dm and some screenshots of my metahuman’s blueprints. I have put some prints in my metahuman’s blueprints and when i play the project the prints don´t appear in the screen

Reply by araceli_r_v | 2024-03-26 10:32:15

I think that when a say to the metahuman to bring me the item the event Picks Up isn’t called

Reply by freezfast | 2024-03-26 14:10:49

Just checked the logs, seems like everything is in order, could you double check if you enabled the actions system under Project Settings then select Convai from the left

Reply by araceli_r_v | 2024-03-26 16:16:06

I just checked the project Settings in the Convai section and i had disabled that option, now i enable that and the animations works!! :blush: , but I have another question, when i choose as object a blueprints item (this only have a static mesh actor and a box collision), when i run the animation it works, but when i stopped the running, the output log, show me this:

“Blueprint Runtime Error: “Attempted to access BP_Puzzle_Item_C_1 via property Pickup Item, but BP_Puzzle_Item_C_1 is not valid (pending kill or garbage)”. Node: Detach From Actor Graph: EventGraph Function: Execute Ubergraph BP CJ Blueprint: BP_CJ”
And also this:
“Blueprint Runtime Error: “Attempted to access BP_Puzzle_Item_C_1 via property Pickup Item, but BP_Puzzle_Item_C_1 is not valid (pending kill or garbage)”. Node: Set Actor Location Graph: EventGraph Function: Execute Ubergraph BP CJ Blueprint: BP_CJ”

I have found the issue and it is a problem from the Detach from actor function, set actor location and set actor rotation. I belive that this is because my variable PickUp item is of type actor and i am using a bp_item and no an static mesh actor. I try to change my variable to a bp_item type but the BreakConvaiObject Rentry only have the actor type, so it doesn’t work.

Reply by araceli_r_v | 2024-03-26 16:17:13

Thanks so mucha for all

This conversation happened on the Convai Discord Server, so this post will be closed.