[Bug?] Executables are looking for OGGs absolutely!

This forum is currently in read-only mode.
From the Asset Store
2D character animation first one of ten from the executable pack
  • Using 0.98.7.

    As in, an executable created with Construct looks for any OGG files used by the project in the absolute directory the project was created in.

    C:\Documents and Settings\Stuart\My Documents\My Code\Construct is the directory where I keep all my Construct projects and related files (PNGs, OGGs, MP3s etc etc).

    So:

    I loaded up a test project and exported it to an executable in another directory.

    Next I renamed the Construct directory under My Code to something else.

    Then I attempted to run the executable. It came up with an "Unexpected error" and terminated.

    When I renamed the Construct directory back and re-ran the executable, it worked.

    Note that as I only use OGGs for sound I have not tested this with other sound formats.

    I am aware the priority of looking for OGGs (at least) is the executable directory then the project home directory, but I guess the real bug here is that if it can not be found in either location it shouldn't crash as it does - exit gracefully or run with no sound, I guess?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Are you using resources or loading from files?

    Did you say load from file "C:\Documents and Settings\Stuart\My Documents\My Code\Construct\something.ogg" (in which case it will always look for it there no matter where you move it), or just "something.ogg" (in which case it could look anywhere), or AppPath & "something.ogg" (in which case it looks in the same directory as your app even when its moved)?

  • Just "filename.ogg" it seems. Thanks for pointing that out.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)