Page 1 of 1

The game crashes during loading mode

PostPosted: Mon Aug 04, 2014 16:12
by PeterKabin
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.sound_play("d", {to_player = "singleplayer"})
What i am doing wrong?

Re: The game crashes during loading mode

PostPosted: Mon Aug 04, 2014 17:13
by Krock
PeterKabin wrote:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.sound_play("d", {to_player = "singleplayer"})
What i am doing wrong?

Is there a "d.ogg" file in the sounds folder of the current mod?

Re: The game crashes during loading mode

PostPosted: Mon Aug 04, 2014 17:34
by rubenwardy
Players connect after all mods are loaded. You can't play a sound while it is loading, instead you need to play a sound in a callback, such as minetest.register_on_joinplayer()

Re: The game crashes during loading mode

PostPosted: Mon Aug 04, 2014 17:41
by PeterKabin
rubenwardy wrote:Players connect after all mods are loaded. You can't play a sound while it is loading, instead you need to play a sound in a callback, such as minetest.register_on_joinplayer()

thanks