Scaleform Forum
Scaleform enables developers to leverage the power of the Adobe® Flash® tool set to create powerful user interface environments for video games.

Scaleform Forum

Reply
Post 1 of 20

dll not found exception

1657 Views, 19 Replies
04-12-2012 07:18 PM
Hello:
Some of you might get a “dllnotfound” exception while running the HelloWorldDemo.

We have identified that this exception is caused due to a missing dll that is on the dependency list of libgfxunity.dll. You can use the following tool:
http://www.ntcore.com/exsuite.php

to view the dependency tree of our dll.


If you get the “dll not found” exception, it is likely that d3dx9_43.dll is missing on the target computer, which is causing the main integration dll to not load.
You should be able to rectify this problem by just downloading the latest DirectX runtime. We will soon supply the complete integration package which will allow you to rebuild the dll on your machine. In this case, the generated libgfxunity3d.dll will automatically have the correct dependency.
Thanks and please let us know if you encounter any other problems with using the integration.
-Ankur

Post 2 of 20

Re: dll not found exception

08-15-2012 06:47 AM in reply to: am964
When redistributing on Windows, installing DirectX does seem to solve the problem of getting Scaleform to run in built Unity apps for most users.

But we do have one user for whom this technique does not work, and we can't seem to piece together what the issue is.

The actual problem is that the Flash content does not get shown or appear to be running on this one computer. Same build, same DirectX runtime, same OS. The rest of the Unity app runs just fine.

Any advice?

OS: Windows 7 64 bit
Unity build: Windows 32-bit, not development build
App: Hello World example

We're even getting this in the output_log.txt on the problematic machine, from Scaleform if I'm not mistaken:
ASVersion:
AS3


Normally for Unity builds, your AppName_Data/output_log.txt contains any issues with being unable to find dll files, but we're ok there. output_log.txt is identical from on the problematic machine and a non-problematic machine.
FYI there is no mention of Plugin/*.dll in this file, only Managed/*.dll files.

Thanks in advance!
Post 3 of 20

Re: dll not found exception

09-04-2012 12:27 AM in reply to: am964
I can't be 100 sure yet, but I also have the similar issue of dll not found.

But When I run it on windows platform (build setting in Unity) it works fine. When I switch to Android build platform in Unity, it throws dll not found error?

Could this be one of the reason?
Post 4 of 20

Re: dll not found exception

09-04-2012 01:36 PM in reply to: am964
I'm definitely seeing this dll not found exception issue but only on particular computers in our office. I've installed the latest DirectX runtime and restarted the computer with the issue and that didn't help. I've attached the log file for our game. You can see it either can't find the scaleform dll or one of it's dependencies while initializing the scaleform components.

output_log.zip

Post 5 of 20

Re: dll not found exception

09-04-2012 05:41 PM in reply to: am964
Spoke to one of our programmer and he thinks it might be bug in Unity scaleform script side where you still have to load dll for windows editor play back even if build setting is Android, but it fails to do so because of the bug.

Not 100% sure if it is but I think it is worth while direction for Unity team to check out.
Post 6 of 20

Re: dll not found exception

09-11-2012 02:41 AM in reply to: castor76_1
I can definitly confirm that for Android evaluation version , HelloWorldDemo causes missing dll error when you play it in the editor.
Post 7 of 20

Re: dll not found exception

09-14-2012 01:14 AM in reply to: castor76_1
Any news about missing dll issue for Android build setting and playing through Unity Editor?
Post 8 of 20

Re: dll not found exception

09-17-2012 09:04 AM in reply to: castor76_1
This issue was fixed in patch 3. You will need to change from Android build to PC build to test your content in the editor though.

However, we are investigating previewing content in editor while the platform is set to Android or iOS.
Regards,
Matthew Doyle
-----------------------------
Watch my LIVE Twitch feed: Twitch.TV/MatthewDoyle
...for live 3D and 2D art for games - Mudbox, Maya/Maya LT, 3ds Max, Stingray and more.

Check out some of my work at: MatthewDoyle.com
Post 9 of 20

Re: dll not found exception

09-17-2012 05:37 PM in reply to: am964
I have just edited SFCamera script to make it work both for editor and android build mode.

Just couple of #if statement adding && UNITY_EDITOR lines.

I think it should be very easy for Autodesk to do this since lowly artist like myself was able to do it. :D If you wish to take a look at the modified script just let me know.

I personally think this got to work and be builtin in the package. I do not wish to modify sfcamera everytime I update scaleform.

Re: dll not found exception

09-18-2012 10:39 AM in reply to: castor76_1
By all means. Please post your solution here for everyone. We intend to get to this ourselves, but understand that our resources are not unlimited, and there are alot of tasks we're working on to continue to improve the integration. We must prioritize those tasks by urgency as well. Thanks!
Regards,
Matthew Doyle
-----------------------------
Watch my LIVE Twitch feed: Twitch.TV/MatthewDoyle
...for live 3D and 2D art for games - Mudbox, Maya/Maya LT, 3ds Max, Stingray and more.

Check out some of my work at: MatthewDoyle.com
Post 11 of 20

Re: dll not found exception

09-18-2012 06:01 PM in reply to: am964
Sure, here is the modified SFcamera.cs that will make Scaleform to work both on Android build mode and playing using Unity Editor. Note I have not modified this yet to work with IOS and Mac Unity Editor. When I get around doing that, I will post updated one too.

sfcamera.zip

Post 12 of 20

Re: dll not found exception

10-01-2012 11:35 PM in reply to: am964
I have the same exact issues.
One of our game is working on two computers but generate this error on 5 others computers.
I tried to re-install direct X with no success.

Is there any official support/feedback about this case ?

Thanks ,

Peter
Post 13 of 20

Re: dll not found exception

10-03-2012 08:51 AM in reply to: am964
Guys ,

If you have this issue ( Dll missing where the DLL is here ).
This is an easy fix and it's mostly a DLL dependencie issue.

Scaleform need directX and the microsoft c++ redistruable ( both x86 and x64 to be safe ).

If you install this you will be good to go.

Peter
Post 14 of 20

Re: dll not found exception

10-03-2012 05:40 PM in reply to: pxl
There is known issue with running Scaleform in Windows Editor mode while your build setting is set at Android.
The script I have posted above kinda fixes it but I also found that I had to run game twice to get it to work. First time around I still get dll not found error... I hope Autodesk officially fix this issue for the next patch for sure.
Post 15 of 20

Re: dll not found exception

11-09-2012 08:58 PM in reply to: am964
Guys ,

If you have this issue ( Dll missing where the DLL is here ).
This is an easy fix and it's mostly a DLL dependencie issue.

Scaleform need directX and the microsoft c++ redistruable ( both x86 and x64 to be safe ).

If you install this you will be good to go.

Peter


I'm getting the error and installing both (then restarting, rebuilding the project etc) did not help. It works fine on my partner's computer. I'm running Win 7 64 bit. DX was already up to date. Previous scaleform versions worked.

Edit: I was building out to x64, it works fine if I build to x86.
Post 16 of 20

Re: dll not found exception

01-21-2013 09:48 AM in reply to: am964
I'm getting gfxunity3d not found when I run it on a Android device using the HelloWorldDemo and I am looking at the debug in logcat.

Running Windows 7 x64 with a nVidia GTX 650ti
Using Eval Version of Scaleform for Unity (Downloaded 2013-1-13)
Unity 3.5.6 Pro

Is there a way to fix this?

Post 17 of 20

Re: dll not found exception

02-01-2013 08:28 AM in reply to: matrix211v1
*Bump*

Anyone? My trial is about to run out and trying to get this resolved.
Post 18 of 20

Re: dll not found exception

02-03-2013 06:52 PM in reply to: am964
Same issue. I am not compiling for android though. Won't compile for PC. Tried installing direct x and no luck.
Post 19 of 20

Re: dll not found exception

04-05-2013 07:43 PM in reply to: am964
Please rename libgfxunity3d.dll to gfxunity3d.dll as work-around


In deploy to Android, Please rename libgfxunity3d.so to gfxunity3d.so as work-around



For the moderators,
please re-look into the lib and missing lib prefix in Unity3d. This is a known issue. :(


The problem occurs in Unity4xx and not in Unity3xx.
Post 20 of 20

Re: dll not found exception

04-25-2013 12:23 PM in reply to: am964
Is there a way to try catch this or maybe some way to detect if they don't have it installed before the required things get called?

I'd like to give the user a message box that informs them they need to install the DirectX runtime and then direct them to the page and close the game...but to do this I'll need some way to detect this problem first.

We don't have an installer or patcher created yet, we just distribute the game in a zip file (early stages).
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post