Publishing problem on Mac
Posted: Thu Jun 21, 2018 3:55 pm
Hello,
I'm following the instructions for publishing my game but when I try to execute on Mac I got the following error:
I'm using this syntax for requiring files:
But seems that the problem is with these lines:
For my research I know using dot sintax for paths could resolve this problem but I can't do it with the love.audio.newSource, it's not working. Any idea?
Thanks!
I'm following the instructions for publishing my game but when I try to execute on Mac I got the following error:
Code: Select all
Error
src/defs_dependencies.lua:73: bad argument #2 to 'newSource' (string expected, got no value)
Traceback
[C]: in function 'newSource'
src/defs_dependencies.lua:73: in main chunk
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Code: Select all
somepath.somepath.somefile
Code: Select all
gSounds = {
['select'] = love.audio.newSource('assets/sound/select.wav'),
['switchOn'] = love.audio.newSource('assets/sound/swOn.wav'),
['switchOff'] = love.audio.newSource('assets/sound/swOff.wav'),
['doorCheck'] = love.audio.newSource('assets/sound/doorCheck.wav'),
['doorBlocked'] = love.audio.newSource('assets/sound/doorBlocked.wav'),
['doorOpened'] = love.audio.newSource('assets/sound/doorOpened.wav'),
['doorSwift'] = love.audio.newSource('assets/sound/doorSwift.wav'),
['wow'] = love.audio.newSource('assets/sound/wow.wav'),
['explosion01'] = love.audio.newSource('assets/sound/explosion01.wav'),
['explosion02'] = love.audio.newSource('assets/sound/explosion02.wav'),
['endBad1'] = love.audio.newSource('assets/sound/endBad1.wav'),
['endBad2'] = love.audio.newSource('assets/sound/endBad2.wav'),
['endBad3'] = love.audio.newSource('assets/sound/endBad3.wav'),
['escape'] = love.audio.newSource('assets/sound/escape.wav'),
['intro'] = love.audio.newSource('assets/sound/bso_pocketmaster_intro.ogg'),
['music'] = love.audio.newSource('assets/sound/bso_pocketmaster_ride.ogg'),
['ending'] = love.audio.newSource('assets/sound/bso_pocketmaster_win.ogg')
}
Thanks!