shanecolb / sphinx-ue4

A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project.
The Unlicense
151 stars 81 forks source link

Not Saving or Being Recognized After Save and Restart Editor #1

Closed onebattleman closed 8 years ago

onebattleman commented 8 years ago

Hello,

Awesome plugin and tutorial. It's super easy to use and works perfectly when you get it setup. But, I'm having a pretty frustrating issue.

I'm trying to implement this into our project which is about we're about a year into it. So I can't simply start from scratch or use the creature you have in the example. After setting everything up in my character Blueprint. Following the tutorial and creating my phrases. I hit play and try everything out and it works! Which is awesome!

Now, I'm going to close the project, take a break and play some Battlefront. About an hour later I open the project back and I'm welcomed with about 20 errors referring to Speech Recognition. I open up my character Blueprint and find out that all the nodes, everything referring to the Speech Recognition are in error. "Unknown Struct", "Invalid Nodes", and the Speech Recognition Variable has been reset to Object.

I then open the Plugin's sample Blueprint and it's completely fine, all the nodes are there, nothing is invalid, it looks exactly like it's supposed to look.

So, the issue is. The nodes and everything that has to do with the plugin seems to only save within the Sample Blueprint.

If I recreate all my code for the Plugin again for my character it works and the nodes stay the same for the session. I can hit "Save" and it saves without a problem, it's just opening the project that screws everything up again. Making it very difficult to work/move forward if I have to recreate the Speech Recognition code every time I reopen the project.

I'll do a video and share some screen shots. Is there something I'm missing?

Here's a link to the Youtube Video: https://youtu.be/7nhErrtf1Q8

UE4 4.9.1 Blueprint Parent: Pawn

onebattleman commented 8 years ago

Before Closing Project: 2016-01-09_21h08_04

2016-01-09_21h08_12

onebattleman commented 8 years ago

After Closing it and Reopening it: 2016-01-09_21h11_37

2016-01-09_21h11_43

shanecolb commented 8 years ago

Hi onebattleman, Very strange, I hadn't seen this issue before. Can you please create a super basic project demo, including a blueprint that suffers this issue. Then if you can zip and send me a link to the project, and I will take a look. Can you also provide the blueprint content (before the save), in text format? I am glad you are liking it. It really is the early days for the plugin. Thanks, Shane

ghost commented 8 years ago

Hi onebattleman, I once encountered this problem. This is because of the loadingPhase in the speech recognition plugin. In my case, I was able to solve it by adding the "LoadingPhase" : "PreDefault" in "SpeechRecognition.uplugin". Not sure if this helps :)

Regards, Weilip

loadingphase

shanecolb commented 8 years ago

Thanks weilip, onebattleman, let me know if this fixes the issue. Regards, Shane

onebattleman commented 8 years ago

Whoa! Thanks Man! That worked! Problem Solved! @weilip & @shanecolb