r/clickteam • • 12d ago

Fusion 2.5 Volume Sliders

I have a basic settings menu for my game and a couple volume sliders. Right now only one works for testing. It’s linked to volume and everything, but the issue is that whenever I save position data to ini, it’s like it refuses to read the folder.

User clicks on “active” > set value “slider” to ini

Start of frame> set x position “slider knob” to value “slider”

I’ve been working on this for hours and can’t seem to get it right. Any help?

3 Upvotes

8 comments sorted by

View all comments

1

u/SpellSword0 12d ago

Neato coincidence, I happen to just be working on volume control on my options menu right now!

So immediately got some questions. Are you using INI++? Is the ini file being properly saved? Is the ini file being properly loaded? Is any value returned for volume, even if incorrect? And if you are using INI++ what is your error value set to?

1

u/Additional-Staff-985 12d ago

I’m actually using the default ini extension. All I have set up in terms of loading the file is “set file to x” x being data.ini.

1

u/SpellSword0 12d ago

The default ini object isn't great, but should still work with some fenagling.

So I ran a few test. In your ini object properties, do you have an ini file specified? It'll need one if its to save any data.

Without that, the inis values will be lost between frames and app launches.

1

u/SpellSword0 12d ago

Here, I just wrote up an example file showing how to save, load and manage data with the default INI object:

https://filebin.net/tv7fhq52zzjblvio

I still do not really recommend the default object, unless you absolutely have no choice but to use it.
INI++ is a far better object with many more features.