Project

General

Profile

Actions

Bug #752

open

Load Asset fails if a path is specified for the asset.

Added by Brian Flanagan about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Start date:
05/20/2021
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

For example: In Crunchman Reloaded, audio is loaded from the: "resources/audio/" folder, but AOZ changed that path to "resources/assets/resources/audio/". For example:

Load Asset "resources/audio/Crunch.wav", 1

This results in the following error:

GET file:///Users/brian/Documents/My%20AOZ%20Applications/AOZ%20Inspirations/Games/Crunchman%20Reloaded/html/resources/assets/resources/audio/Crunch.wav net::ERR_FILE_NOT_FOUND

SOLUTION: If a path is given, (not just a filename), "resources/assets" should NOT be inserted into the path.

Actions #1

Updated by Brian Flanagan about 3 years ago

Until this is corrected properly, a quick fix for Crunchman Reloaded is to rename the "audio" folder as "assets", and then remove the path portion of the Load Asset command for each of these audio assets. For example:

Load Asset "resources/audio/Crunch.wav", 1

...becomes:

Load Asset "Crunch.wav", 1
Actions #2

Updated by Brian Flanagan about 3 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Brian Flanagan about 3 years ago

  • Target version deleted (1.0.0 (B8))
  • Estimated time set to 1:00 h
  • Affected version set to 1.0.0 (B8)
Actions #4

Updated by Francois Lionet almost 3 years ago

  • Status changed from New to Resolved

Seems to be fixed.

Actions

Also available in: Atom PDF