Re: bgt, last sound won't stop after time is reached

2019-11-30 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

@6 I figured out that there was an extra entry that had default values, and that was screwing my length over by 1.@7 Ah yes. That should work, thank you. If it does not, which I think it should, I have a boolian variable to fix the problem. I will edit my post letting you know if it worked or not.Edit, it worked!Thank you both for helping me. The main issue was having an extra entry added to the length. Now that it is fixed, that and pb_indexThank you!

URL: https://forum.audiogames.net/post/481622/#p481622




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-30 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

@6 I figured out that there was an extra entry that had default values, and that was screwing over.@7 Ah yes. That should work, thank you. If it does not, which I think it should, I have a boolian variable to fix the problem. I will edit my post letting you know if it worked or not

URL: https://forum.audiogames.net/post/481622/#p481622




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-29 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

Hi there,problem is with the very first line:if(pb.is_empty()==false and track.position>=pb[pb_index].pt)if you let the index to go out of range, you'll get error here. If you won't, it will play forever because of the internal statements.The best thing you can do here is probably:if(pb.is_empty()==false and pb_index=pb[pb_index].pt)You can then omit all pb_index checks inside, as it will be in range for sure.Best regardsRastislav

URL: https://forum.audiogames.net/post/48/#p48




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-28 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

make sure you got pb length and index right. pb length is 1 based (3 items) but pb index is 0 based (items 0, 1, and 2 if you have 3 items).So, that's why you're getting a runtime error, I think.

URL: https://forum.audiogames.net/post/481098/#p481098




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-28 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

here is my codeif(pb.is_empty()==false and track.position>=pb[pb_index].pt)//if playback array is not empty, and music track is less than time for next sound{if(pb_index//pb is playback array{if(pb[pb_index].ks=="?")p.play_stationary("sounds/none.ogg",false);else if(pb[pb_index].ks=="t" and pb[pb_index].sp=="?")p.play_stationary("sounds/tab.ogg",false);else if(pb[pb_index].ks=="s" and pb[pb_index].sp=="?")p.play_stationary("sounds/space.ogg",false);else if(pb[pb_index].ks=="e" and pb[pb_index].sp=="?")p.play_stationary("sounds/enter.ogg",false);else if(pb[pb_index].ks=="b" and pb[pb_index].sp=="?")p.play_stationary("sounds/backspace.ogg",false);else if(pb[pb_index].ks=="q" and pb[pb_index].sp=="?")p.play_stationary("sounds/macro.ogg",false);else if(pb[pb_index].ks=="a" and pb[pb_index].sp=="?")p.play_stationary("newach.ogg",false);elsep.play_stationary(pb[pb_index].sp+".ogg",false);//checks the keystroke and sound path to playif(pb_indexpb_index++;//increase array after the sound plays, only if end of array has not been reached}}I either get a run time error, of course if I let it stay at array.length, but if I cut it off, the last sound will play forever.

URL: https://forum.audiogames.net/post/480965/#p480965




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-28 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

here is my codeif(pb.is_empty()==false and track.position>=pb[pb_index].pt)//if playback array is not empty, and music track is less than time for next sound{if(pb_index//pb is playback array{if(pb[pb_index].ks=="?")p.play_stationary("sounds/none.ogg",false);else if(pb[pb_index].ks=="t" and pb[pb_index].sp=="?")p.play_stationary("sounds/tab.ogg",false);else if(pb[pb_index].ks=="s" and pb[pb_index].sp=="?")p.play_stationary("sounds/space.ogg",false);else if(pb[pb_index].ks=="e" and pb[pb_index].sp=="?")p.play_stationary("sounds/enter.ogg",false);else if(pb[pb_index].ks=="b" and pb[pb_index].sp=="?")p.play_stationary("sounds/backspace.ogg",false);else if(pb[pb_index].ks=="q" and pb[pb_index].sp=="?")p.play_stationary("sounds/macro.ogg",false);else if(pb[pb_index].ks=="a" and pb[pb_index].sp=="?")p.play_stationary("newach.ogg",false);elsep.play_stationary(pb[pb_index].sp+".ogg",false);//checks the keystroke and sound path to playif(pb_indexpb_index++;//increase array after the sound plays, only if end of array has not been reached}}

URL: https://forum.audiogames.net/post/480965/#p480965




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-28 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

Hi,hmm, I have no idea of what is the program's purpose, as I never played Rhithm rage or did levels for it. But from what you're writing, I'd guess you have problems with stopping your systems.Check out which part of program is responsible for stopping the sound, and if it's called how it should be.Of course this is just very rough advice, as I neither have an idea of what you want to do or what is your source code. May be bringing some more info would make it easier to find out the mistake.Best regardsRastislav

URL: https://forum.audiogames.net/post/480815/#p480815




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-28 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

if you are using playStationary you are using soundPool are you not? that thing was part of soundPoolalso, why don't you do a check before checking the array to see if you've reached array length? That way it won't runtime error outi don't know what else to tel you, I know I should probably release the new version of rr, but I haven't finished it yet.and if I do end up building a level editor... well.

URL: https://forum.audiogames.net/post/480814/#p480814




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: bgt, last sound won't stop after time is reached

2019-11-27 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector


  


Re: bgt, last sound won't stop after time is reached

I hate to be an asshole butThis error is getting in the way of testing any modifications I make in listening mode and it's driving me crazy! I don't usually bump topics back up for help but this one is very annoying when I am trying to see if something worked or didn't.Bgt runtime and then bam!

URL: https://forum.audiogames.net/post/480772/#p480772




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector