ERROR: Unable to load module 'rc_sound': LUA ERROR:
/rc_sound/rcsound.lua:48: attempt to index global 'g_sounds' (a nil value)
stack traceback:
[C]: in function '__index'
/rc_sound/rcsound.lua:48: in function 'init'
/rc_sound/rcsound.otmod:12:[@onLoad]:1: in main chunk
[C]: in function 'autoLoadModules'
/init.lua:49: in main chunk
ERROR: protected lua call failed: LUA ERROR:
/rc_sound/rcsound.lua:152: attempt to index global 'soundWindow' (a nil value)
stack traceback:
[C]: in function '__index'
/rc_sound/rcsound.lua:152: in function 'setLabel'
/rc_sound/rcsound.lua:146: in function 'stopSound'
/rc_sound/rcsound.lua:72: in function </rc_sound/rcsound.lua:71>
Amazing sound system anybody know if its possible make effect on changing location(when i walk from zone 1 with sound 1 to zone 2 with sound2) faded away sound 1 slowly from volume 100% to volume 0% in (1second for example) and after start new sound2 from 0% volume to 100% volume in 1 second also. I am not good enough in LUA for making this. Thank you
while checking the otclient sources you can set audio volume using setGain so you can do cool stuff thereJust fade the song start on audition or any software, it is still a good idea to have that fade via .lua, but honestly if you want to get a quick solution just do that
I did it, but it’s still not enough because for example you have music1 1 minute long and music2 also. When you walk from zone1 to zone2 in middle of song it will turn off music1 immediately and then start music2 with my faded effect at start. The thing is that I want fade away music1 when I walk in middle of song to zone2Just fade the song start on audition or any software, it is still a good idea to have that fade via .lua, but honestly if you want to get a quick solution just do that
Solved?how to crossfade between tracks?
SOUNDS = {
{fromPos = {x=1000, y=1000, z=7}, toPos = {x=1010, y=1000, z=7}, sound = "FF VII - Main.ogg"},
SOUNDS = {
{fromPos = {x=1000, y=1000, z=7}, toPos = {x=1010, y=1000, z=7}, sound = "FF VII - Main.ogg"},
{fromPos = {x=1000, y=1000, z=7}, toPos = {x=1000, y=1010, z=7}, sound = "FF VII - Other Song.ogg"},
SOUNDS = {
{fromPos = {x=1000, y=1000, z=7}, toPos = {x=1000, y=1010, z=7}, sound = "FF VII - Main.ogg"},
SOUNDS = {
-- Rook Cave
{fromPos = {x=879, y=803, z=8}, toPos = {x=1079, y=963, z=15}, sound = "FF VII - Main.ogg"},