[BUG] Music/Sound Options to disabled when switching between stable and exp vers

Started by IchoTolot, August 23, 2016, 05:44:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchoTolot

Every time I switch from the exp to the stable version or the other way around, I noticed I have neither sound or music. Discovered that both are disabled without my permission to do so. Is it because of the new sliders?

This could be related to Nepsters online options resetting.

Nepster

The problem is indeed that the versions save sound/music options in different ways: If you look into  NeoLemmixSettings.ini  then you will see that V1.43 uses  MusicEnabled = ? (which has essentially a boolean option) while V1.47 uses  MusicVolume = ? (which is an integer between 0 and 100). So neither version can understand the other setting options and reverts to default.

I would suggest the following: V1.47 looks first for MusicVolume, but if it isn't present, then it reads the MusicEnabled setting (with volume either 0 or 100). When writing a settings file, it writes both MusicVolume and MusicEnabled into the file, whích should be readable by V1.43 as well.

Dirty fix for now: Put both versions into separate directories. Then they won't share the NeoLemmixSettings.ini and you don't have the problem.

PS: I don't think this is related to my online options resetting issue.

namida

QuoteI would suggest the following: V1.47 looks first for MusicVolume, but if it isn't present, then it reads the MusicEnabled setting (with volume either 0 or 100). When writing a settings file, it writes both MusicVolume and MusicEnabled into the file, whích should be readable by V1.43 as well.

The first part already happens, if I'm not mistaken. The second part does not, but probably isn't a bad idea. It would still mean that any volume setting that isn't 0 or 100 is lost every time V1.43n-F is used, though.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)