Here is a link to the quest folder with the issue re-created
https://mega.nz/#!TCpiSabL!cXUcY3GXMEoEjLOy5F5o2crFVOkJ3y3V6DPFvw2lhJg
I've recreated the issue (bug?) in its simplest form. here are the answers to your questions
1.) 1.5.3
2.) yes, in addition i am only using the default music files in the folder "eduardo"
the song I tried to use in this example was "game_over.ogg"
3.) .ogg (default files)
4.) yes. If I attach the same song "game_over.ogg" with the map editor the song will play
the error I receive is Error: In on_key_pressed: [string "main.lua"]:48: No such music: 'game_over
https://mega.nz/#!TCpiSabL!cXUcY3GXMEoEjLOy5F5o2crFVOkJ3y3V6DPFvw2lhJg
I've recreated the issue (bug?) in its simplest form. here are the answers to your questions
1.) 1.5.3
2.) yes, in addition i am only using the default music files in the folder "eduardo"
the song I tried to use in this example was "game_over.ogg"
3.) .ogg (default files)
4.) yes. If I attach the same song "game_over.ogg" with the map editor the song will play
the error I receive is Error: In on_key_pressed: [string "main.lua"]:48: No such music: 'game_over
Code Select
function sol.main:on_key_pressed(key, modifiers)
local handled = false
if key == "f5" then
-- F5: change the video mode.
sol.video.switch_mode()
handled = true
elseif key == "f11" or
(key == "return" and (modifiers.alt or modifiers.control)) then
-- F11 or Ctrl + return or Alt + Return: switch fullscreen.
sol.video.set_fullscreen(not sol.video.is_fullscreen())
handled = true
elseif key == "f4" and modifiers.alt then
-- Alt + F4: stop the program.
sol.main.exit()
handled = true
elseif key == "escape" and sol.main.game == nil then
-- Escape in title screens: stop the program.
sol.main.exit()
handled = true
-- this is where I get an issue
elseif key == "p" then
sol.audio.play_music("game_over")
end