Actions
Bug #752
openLoad Asset fails if a path is specified for the asset.
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.
Updated by Brian Flanagan over 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
Updated by Brian Flanagan over 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