SOLVED: TouchEngine-UE - Failed to load .tox file

Hi I’m following the new Ultimate TouchDesigner & UE5 Integration course.
I’m on Chapter 08 - Send CHOP Data to TouchEngine from Blueprints.

I had no problems with the tutorial until the very end. The scene is not able to compile and run properly because it claims there is something wrong with my .tox file
image

Or sometimes it will say

Unreal engine shows no other warnings or messages. So I am wondering if this a TD issue and how I exported the .tox? How can I troubleshoot this?

For context, the .tox file was reading fine when the touchengine only had onEndFrame logic. This creates the instanced spheres.
After building out the onStartFrame logic, which is supposed to move the spheres, it started having issues reading the file. File path names are correct, they were incorrect before and I was receiving messages but they no longer occur.

My logs don’t seem to show a problem,

Blockquote
[2024.09.25-14.56.37:614][ 43]LogTouchEngine: Display: Started loading of Tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’
[2024.09.25-14.56.37:615][ 43]LogBlueprintUserMessages: [TD_C_1] Construction
[2024.09.25-14.56.37:615][ 43]LogBlueprintUserMessages: [TD_C_0] Construction
[2024.09.25-14.56.37:616][ 43]LogBlueprintUserMessages: [TD_C_1] Construction
[2024.09.25-14.56.37:617][ 43]LogBlueprintUserMessages: [TD_C_0] Construction
[2024.09.25-14.56.37:617][ 43]LogBlueprintUserMessages: [TD_C_1] Construction
[2024.09.25-14.56.37:618][ 43]LogBlueprintUserMessages: [TD_C_0] Construction
[2024.09.25-14.56.45:558][487]LogTouchEngine: Display: Successfully finished loading TouchEngine instance with tox file C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox
[2024.09.25-14.56.51:333][839]BlueprintLog: New page: Compile TD
[2024.09.25-14.56.51:353][839]LogTouchEngine: Display: Started loading of Tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’
[2024.09.25-14.56.51:364][839]LogTouchEngine: Display: Started loading of Tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’
[2024.09.25-14.56.51:367][839]LogBlueprintUserMessages: [TD_C_1] Construction
[2024.09.25-14.56.51:368][839]LogBlueprintUserMessages: [TD_C_0] Construction
[2024.09.25-14.56.51:396][839]LogTouchEngine: Warning: Loading TouchEngine instance with tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’ raised the error: ‘TouchEngine being reset.’
[2024.09.25-14.56.51:399][839]LogTouchEngine: Warning: Loading TouchEngine instance with tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’ raised the error: ‘TouchEngine being reset.’
[2024.09.25-14.56.51:404][839]LogUObjectHash: Compacting FUObjectHashTables data took 1.86ms
[2024.09.25-14.56.51:405][839]LogBlueprintUserMessages: [TD_C_1] Construction
[2024.09.25-14.56.51:407][839]LogBlueprintUserMessages: [TD_C_0] Construction
[2024.09.25-14.56.51:415][839]LogBlueprintUserMessages: [TD_C_1] Construction
[2024.09.25-14.56.51:416][839]LogBlueprintUserMessages: [TD_C_0] Construction
[2024.09.25-14.56.51:430][839]LogTouchEngine: Display: Started loading of Tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’
[2024.09.25-14.56.51:569][840]LogTouchEngine: Display: Started loading of Tox file ‘C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox’
[2024.09.25-14.56.59:569][290]LogTouchEngine: Display: Successfully finished loading TouchEngine instance with tox file C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox
[2024.09.25-14.56.59:664][295]LogTouchEngine: Display: Successfully finished loading TouchEngine instance with tox file C:/Users/Henry/Documents/Unreal Projects/TD_Template/Content/cmon.tox

it does say the .tox is successfully loaded, despite what it says on the UI, not sure what I am missing here.

Attached is also a screenshot showing the instances load and within the component settings, my in_CHOP and out_CHOP are being read, and the parameters have values. In theory they should be moving. On the UI the instanced objects appear no problem, they just don’t move, which is what the onStartFrame logic is for


Apologies if this really is an Unreal issue not TD, I just don’t have any clues as to why the file will not compile.

TDProject_tox_URlog.zip (40.3 KB)

Hi,

I’m assuming you are talking about some formation from InteractiveImmersive.io ?

It seems to load fine here, and the project I tested with was able to build a package.

  1. Can you double click the .uasset and confirm the path is right ?

  2. Can you maybe clear all the project cache ?

Delete any of those folder if matching:

  • .vs
  • Binaries
  • Build
  • DerivedDAtaCache
  • Intermediate
  • Saved

Restart your .uproject - did it help?

  1. Can you share the build log ? What you shared is the editor log.

It should say somewhere “Building … name of project …”
Similar to our sample project:

Building TouchEngineUESampEditor...
------ Building 98 action(s) started ------

It will be in something along that %appdata%/Unreal Engine/AutomationTool/Logs/D+Epic+UE_5.4

Without sharing your Unreal Project, I can’t debug much more than that.

Best,
Michel

cc @elburz

Restarting the project had no affect. However, clearing the cache did change things. I now consistently get Invalid file path - C:‘/’ (Tox file: ./cmon.uasset )
I’ve tried importing and re-importing the asset but the error persists. I realize, perhaps I should not have exported my .tox directly into Unreal project folder. I thought that was okay. I will try and save the asset outside of the project folder and then import it into Unreal and see if that makes a difference.

Log.zip (2.7 KB)

I’m not sure to follow. Can you please record a video or share your project?

Also, what version of the plugin are you using ? what version of TouchDesigner are you using ?

The log shared is for Unreal 5.3.

  • Current TouchEngine version: 2023.11760+
  • Current Plugin version: 1.4.0
  • My Unreal Engine, Version: 5.3.2-29314046+++UE5+Release-5.3
    I did not notice my Unreal is slightly outdated, perhaps this is the issue? I will update it and report back, I hope that’s the problem.

Yeaup outdated version was the issue, file worked fine after update. Thanks for pointing me in the right direction!

Yeah - try to keep everything up to date as much as possible. UE, Plugin, and TouchDesigner.

Best,
Michel