Project

General

Profile

Bug #752

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

Added by Brian Flanagan almost 3 years ago. Updated over 2 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.

Also available in: Atom PDF