SexScripts : Reload sound files in runtime? - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=979 Page 1 of 1

Reload sound files in runtime?

MissEshock2002 [ Wed Jul 15, 2020 3:15 pm ]

Is it possible to reload changed wave files in runtime?

I ask because a nice man helped me write a sound generator for SS.
But you make a sound file once and if it's overwriten SS plays the old from memory.

Re: Reload sound files in runtime?

arthurb [ Wed Jul 15, 2020 5:50 pm ]

I use playBackgroundSound(null) to stop my current sound and then you can start a new one.
You can also play sounds on top of each other, and the playBackgroundSound(null) will stop them all.

Re: Reload sound files in runtime?

Zap [ Thu Jul 16, 2020 4:22 am ]

"I use playBackgroundSound(null) to stop my current sound and then you can start a new one.
You can also play sounds on top of each other, and the playBackgroundSound(null) will stop them all."

This doesn't answer the question. If the file is changed but the filename remains the same and you try to play the updated wav or mp3 audio file, it plays the old version of the file because SexScripts doesn't load the file each time it plays it. I've run into this with the script I'm trying to make too and have needed to restart my script from the start when I wanted to test small audio changes for a volume leveling. As a workaround since it's for dev, I've created a debug mode to jump where I was so I could make the comparison.

..so I'm curious about this too, although MissEshock2002 has a real reason for the functionality when for me it's just for minor development ease.

Re: Reload sound files in runtime?

MissEshock2002 [ Thu Jul 16, 2020 3:27 pm ]

That's not what I want, arthurb. But thank you for your help. :)

Thank you, Zap! <3
Code:
return "other_script"
works with saving vars first.
The "other_script" look like this:
Code:
return "first_script"


I'll make that with load the other script. Later I upload the tool I made.

Re: Reload sound files in runtime?

doti [ Wed Aug 12, 2020 8:57 pm ]

Perhaps SexScripts can be updated with a check on the file's timestamp.
For now, you should change the name of the file.

Re: Reload sound files in runtime?

MissEshock2002 [ Thu Aug 13, 2020 3:49 pm ]

I'll try the rename. Thanks!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011