Image (PNG) Missing on Export App

Hi there!

Newbie here :)

I did a quick patch with an image following the mouse cursor, just to see if I was able to export an “app“. When exporting and running, all looks good and seems to compile without any errors, but the image comes in white, so it is missing the file I was usign in the patch, so I guess it may have something to do with something wrong on the path…

Is there a way to organized files while developing to make sure the images are exported with the app, on is “content“ folder, or do they need to be added later on? I have look around but didnt find anything about it. Thanks in advanced!

for asset handling on export there are two modes, see: Exporting Applications | vvvv gamma documentation

but yes, for final export you’ll have to copy assets manually.

Ok, I read that document and copied the files into the folder, but how do I guarantee that the executable knows where to find such images and do a proper loading?

Do I need updating the patch with the right path before exporting? I’m confused, as exporting creates a new folder with all the code needed for the app, if I’m not mistaken, so I’m not sure how to direct to a content that doesn’t exist…

Or shall I open the code and edit to redirect?

No.

No.

The only thing you have to do is copy the files over to the exported directory if you choose the " Relative to output" option as the “Asset Behavior” export option.

Example: If you you have file a structure like this during development:

  • c:\myproject\myapp.vl
  • c:\myproject\assets\foo.jpg

…then after exporting just copy your assets folder accordingly:

  • c:\myexportfolder\myapp.exe
  • c:\myexportfolder\assets\foo.jpg

How does this work? Path IOBoxes always store relative paths, relative to the document they are used in! In an exported apps those relative paths are being resolved according to the “Asset Behavior” export option you have chosen.

1 Like

It worked perfect following your instructions :)
I think it was an issue with the path.
Thanks a bunch Joreg!