Project

General

Profile

Bug #752

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

Added by Brian Flanagan about 1 month ago. Updated 30 days ago.

Status:
New
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.

#1

Updated by Brian Flanagan about 1 month 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
#2

Updated by Brian Flanagan about 1 month ago

  • Priority changed from Normal to High
#3

Updated by Brian Flanagan 30 days ago

  • Target version deleted (1.0.0 (B8))
  • Estimated time set to 1.00 h
  • Affected version set to 1.0.0 (B8)

Also available in: Atom PDF