Project

General

Profile

Actions

Bug #752

open

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

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

Also available in: Atom PDF