Toktx - Discord Import

Hello, im getting this error on the console in Unity.
After i try to do Build & Deploy this error appears, any ideas?
image.png

Original Post on Discord

by user 339623288567234562

Hello @Chewie Johnix can you check that you have toktx properly installed ? You can run toktx --version in your terminal/commandline. Please paste the output here

It appears i haven’t installed it at all, how can i install it? @marwie1 :cactus:
image.png

by user 339623288567234562

See the links here please: Needle Engine Documentation

Anything i can do about this? @marwie1 :cactus:
thanks for the previews link :smile:
image.png

by user 339623288567234562

Yes, you can add it manually in the system environments PATH variable (it needs the path to the bin folder where toktx is installed to).

You can also first try to restart your pc and do a production build again after that - if you installed to the default location. It may also work without the path being set correctly

That path should be C:\Program Files\KTX-Software\bin If you installed it on a Windows 64 bit device! (and on your C drive ofcourse :P)

by user 210929219750854656

Never know when someone looks for this and this is what they needed! To find system environments just typing enviro in your searchbar of start will likely show it, then click on the last button on the left menu. Press “New” to add a new variable.

by user 210929219750854656

Heyo this seems wrong.
what worked for me and didn’t need a reboot (might need unity hub restart) is to add C:\Program Files\KTX-Software\bin into the system Path directories entries

by user 540540751424258048

That should be it then, my apologies and thanks for clearing it up! :raised_hands:t2:

by user 210929219750854656

Thanks for the info here! We should clarify this in the docs.

That would really help!

by user 210929219750854656

I think the compression pipeline already automatically finds the default toktx installation and adds it to the path but just the Unity package doesnt know that yet / check that path.

Would be great to get rid of this requirement (on windows at least) completely with the broken toktx installer

I’ve had the exact same error before with 7zip

by user 210929219750854656

With 7zip?

Yeah, so I added 7z and 7zip as Variables on the .exe and apparently 7z on the .dll too :joy:

by user 210929219750854656

“Better work now” after that, as stackoverflow gave all these solutions. Yeah having it documented is gonna relief some frustration

by user 210929219750854656

Over the years having been in all these early startups with new innovative tech in the browser, the quality of the documentation is what mattered in the end. It’s interesting to see it from a UX perspective where and how quick people can give up on something (really good). Great to see it being the case with needle atleast (although early on… ;p) with such few people!

by user 210929219750854656

Added some information here now :slightly_smiling_face: Questions and Answers (FAQ) 💡 | Needle Engine Documentation