Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
Joe Black
Prole
Posts: 39 Joined: Wed Jan 21, 2015 1:57 pm
Post
by Joe Black » Tue Mar 03, 2015 10:08 pm
I want to load a sound that is in a directory in the game directory :
game/main.lua
game/arrow1.ogg
game/sound/arrow2.ogg
if I do
it works
if I do
it fails :
the first sound that is at the root is loaded
the second one put a message sound/arrow.ogg doesn't exist
how can I write the path to arrow2 ?
Attachments
soundfile.love
(11.35 KiB) Downloaded 45 times
Last edited by
Joe Black on Tue Mar 03, 2015 10:27 pm, edited 1 time in total.
Kingdaro
Party member
Posts: 395 Joined: Sun Jul 18, 2010 3:08 am
Post
by Kingdaro » Tue Mar 03, 2015 10:14 pm
The file is zipped incorrectly. Try this instead:
The '-r' flag makes the zip command recurse through directories and keep the paths intact, as opposed to * which literally just takes it all and throws it in without preserving anything. The '.' of course specifies the current directory.
Joe Black
Prole
Posts: 39 Joined: Wed Jan 21, 2015 1:57 pm
Post
by Joe Black » Tue Mar 03, 2015 10:31 pm
Oh yes, very thanks for the rapidity and the accuracy of your answer. Indeed it's completly logical I must had seen my mistake. Thanks
Users browsing this forum: No registered users and 2 guests