Area :: Header
3ds Max 2015 Extension 1 is here

With new tools to power your pipeline
Discussion Groups

Scaleform/Unity Development

Reply
Employee
am964
Posts: 79
Registered: ‎03-19-2012

dll not found exception

1246 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

Please use plain text.
New Member
PaulForest
Posts: 1
Registered: ‎08-15-2012

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!
Please use plain text.
Valued Contributor
castor76_1
Posts: 69
Registered: ‎10-11-2006

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?
Please use plain text.
Active Member
spolglase
Posts: 10
Registered: ‎08-29-2012

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

Please use plain text.
Valued Contributor
castor76_1
Posts: 69
Registered: ‎10-11-2006

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.
Please use plain text.
Valued Contributor
castor76_1
Posts: 69
Registered: ‎10-11-2006

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.
Please use plain text.
Valued Contributor
castor76_1
Posts: 69
Registered: ‎10-11-2006

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?
Please use plain text.
Employee
MatthewDoyleArt
Posts: 720
Registered: ‎03-22-2011

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: www.twitch.tv/matthewdoyle - 1 PM to 3 PM CST (18:00 - 20:00 GMT)
...for live 3D and 2D art for games - Mudbox, Maya LT, 3ds Max, MotionBuilder, Sketchbook and more.
Please use plain text.
Valued Contributor
castor76_1
Posts: 69
Registered: ‎10-11-2006

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. :smileyvery-happy: 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.
Please use plain text.
Employee
MatthewDoyleArt
Posts: 720
Registered: ‎03-22-2011

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: www.twitch.tv/matthewdoyle - 1 PM to 3 PM CST (18:00 - 20:00 GMT)
...for live 3D and 2D art for games - Mudbox, Maya LT, 3ds Max, MotionBuilder, Sketchbook and more.
Please use plain text.