ufna / VaQuoleUI

[DEPRECATED] Web UI framework plugin for Unreal Engine 4 - feel the power of HTML5!
MIT License
122 stars 57 forks source link

Fails to load local path in packaged builds #12

Closed nistic closed 10 years ago

nistic commented 10 years ago

Loading local paths using "vaquole://stuff/example.html" works in the editor but does not work in packaged builds (pak or non-pak versions)

ufna commented 10 years ago

Because files from stuff folder are not imported as "ue4 content", you should put this folder into packaged build manually. It's not a bug at all, because library works outside the UE4 and should have direct access to files.

I'll make make tests tomorrow, but I think that right place will be packaged YourProject root folder.

ufna commented 10 years ago

Somewhy in packaged game FPaths::GameDir(); returns relative path instead of absolute. I'll take a look how to fix it.

nistic commented 10 years ago

You're the man!

nistic commented 10 years ago

Changing that line to:

FString GameDir = FPaths::ConvertRelativePathToFull(FPaths::GameDir());

Fixed it for me on a 4.2 packaged project with the "Shipping" configuration (non-pak) and it works in the editor. I'll test some other configurations and get back to you.

nistic commented 10 years ago

Works on a 4.2 packaged project with the "Development" configuration (pak version) too, looks like that worked :)

ufna commented 10 years ago

Thanks @nistic , I've commited the fix into develop branch :)