inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
12 stars 1 forks source link

Music doesn't play when sound volume was set to 0 #88

Open Croydon opened 9 years ago

Croydon commented 9 years ago

Steps to reproduce:

or:

According to @Calinou the last behaviour is intended for faster loading speed, but this behaviour is nothing what players are expecting.

In the second situation the music should getting loaded when the sound is getting turned on. Likely there is also a way to speed it up in the first scenario.

Calinou commented 9 years ago

The music could always be loaded to fix this, but then you're loading files for nothing when you disable music and keep it disabled.

aschaeffer commented 9 years ago

I think this wouldn't be much work:

-> load music

lonnieg1214 commented 7 years ago

Hello guys,

I am new to contributing to Git hub and I would like to try out this bug. Do we get assigned these bugs or does everyone just try to fix them? I also think that the volume should always be loaded since music is essentially apart of the game anyway. That way, once someone feels they want music they just turn it up and it is already there for them to hear and they get a consistent loading experience. Let me know what you think though but I would like to take this on.

Fohlen commented 7 years ago

Hello there @lonnieg1214 You can pull a bug you favor, and start working on it. Usually, during the process you upload your changes to a branch or directly file a pull-request and we will give you feedback on things to improve, how they fit best in the game, or what we like about it ofc! @Croydon should we note this somewhere in the wiki, if we didn't do so already?

a-teammate commented 7 years ago

Hey there @lonnieg1214! nice to see you interested :)

Well the problem with this issue is that currently the sound was disabled in master :hankey:

We did this since we plan to switch the sound playback framework (see #337). But since the last release we introduced a new way of handling dependencies (conan.io).

This particular dependency of the old way of playing sounds (SDL_mixer) was not covered by that package manager yet though, so we would have needed to create an own package. We skipped that (since the packages for the new sound playback openAL and ALMixer are already there) and just disabled sound playback for now..

So i think there are 2 solutions:

1) either you use an older release (e.g. 0.8.0) to build inexor but I don't know how easy that is, since our wiki already contains the new commands. the wiki has a history though. 2) fix that bug in sauerbraten (the game we forked) since the sound code didn't really change much. So we can just transfer it afterwards and know it works :)

I would choose 2)

(or you try another issue ofc if you dislike either)

lonnieg1214 commented 7 years ago

Sorry about being new to all of this. But I have connected visual studio to my branch but what kind of solution would I open for this? I'm sure a win 32 console application would not work as I would like to test and replicate the issue and test once I have made changes. Thank you in advance.

a-teammate commented 7 years ago

I guess you are currently trying to build Inexor, so I'd say you should try to follow https://github.com/inexorgame/code/wiki/Build and in case something is unclear please tell us in Riot (see here where that is).

Joining there would be of help anyway :)

lonnieg1214 commented 7 years ago

I'll grab sauerbraten now I did read that it is easier to fix the issue in that.

Sent from my iPhone

On Jun 15, 2017, at 10:15 AM, Malte H notifications@github.com<mailto:notifications@github.com> wrote:

I guess you are currently try to build Inexor, so I'd say you should try to follow https://github.com/inexorgame/code/wiki/Build and in case something is unclear please tell us in Riot (see here where that ishttps://github.com/inexorgame/code/wiki/Contact).

Joining there would be of help anyway :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/inexorgame/code/issues/88#issuecomment-308746535, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJRgYZnKP08r028qKPLRfTUmsMJLrl52ks5sETx3gaJpZM4DZHpl.

lonnieg1214 commented 7 years ago

Hey everybody, last question. How do I test once I have made changes? I have tried to simply run debug but it says that It could not find core textures and will not compile.

Croydon commented 7 years ago

@lonnieg1214 Did you start Sauerbraten with the sauerbraten.bat (on Windows) or sauerbraten_unix file (on Linux and MacOS)?

lonnieg1214 commented 7 years ago

No, I have not tried that Croydon. I will give that a go. I'm using windows so I'll use the bat file. Thanks for the quick reply too.

Sent from my iPhone

On Jun 17, 2017, at 9:15 PM, Croydon notifications@github.com<mailto:notifications@github.com> wrote:

@lonnieg1214https://github.com/lonnieg1214 Did you start Sauerbraten with the sauerbraten.bat (on Windows) or sauerbraten_unix file (on Linux and MacOS)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/inexorgame/inexor-core/issues/88#issuecomment-309250201, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJRgYTmxUIBLLQbpm_Tpa6uiXogBdj6qks5sFHoegaJpZM4DZHpl.

Croydon commented 7 years ago

@lonnieg1214 Your welcome. Starting it with the .bat file should solve the "Could not find core texture" problem.

However, you mentioned that you have also problems to compile. Where do you stuck there?

lonnieg1214 commented 7 years ago

That actually was the only message that seemed to stop the compilation process. I'll give the bat file a try and see if something else comes up.

Sent from my iPhone

On Jun 17, 2017, at 9:20 PM, Croydon notifications@github.com<mailto:notifications@github.com> wrote:

@lonnieg1214https://github.com/lonnieg1214 Your welcome. Starting it with the .bat file should solve the "Could not find core texture" problem.

However, you mentioned that you have also problems to compile. Where do you stuck there?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/inexorgame/inexor-core/issues/88#issuecomment-309250373, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJRgYdZIeGk-0meJx7YalFrKffI9Otghks5sFHtNgaJpZM4DZHpl.

Croydon commented 7 years ago

The .bat file is only there for starting Sauerbraten, The compilation process is finished before you can start Sauerbraten.

What compiler do you use?

lonnieg1214 commented 7 years ago

I'm only using visual studio. Sorry, but I'm not actually compiling it I'm just trying to debug it. Do I have to compile it to debug?

Croydon commented 7 years ago

@a-teammate Could you please help out here? I don't do debugging in Visual Studio so I'm not the best person the ask here.

General speaking, you need to compile it first in order to be able to debug it, but it is likely, that Visual Studio is first compiling it anyway, when you click on debugging.

@lonnieg1214 Where do you stuck right now?

lonnieg1214 commented 7 years ago

Well I have been making changes and committing away and making steady changes to the sound.cpp file but for some reason it doesn't seem to affect it. I have confirmed that the file is changing but when I run the bat file and start the game it seems to still react the same way: changing the soundvol to 0 cuts the sound. When changing the soundvol above 0, you will have to then toggle the musicvol to get sound back. Again I am unsure if my changes are actually taking affect or not after running the bat file.

Sent from my iPhone

On Jun 25, 2017, at 1:53 PM, Croydon notifications@github.com<mailto:notifications@github.com> wrote:

@a-teammatehttps://github.com/a-teammate Could you please help out here? I don't do debugging in Visual Studio so I'm not the best person the ask here.

General speaking, you need to compile it first in order to be able to debug it, but it is likely, that Visual Studio is first compiling it anyway, when you click on debugging.

@lonnieg1214https://github.com/lonnieg1214 Where do you stuck right now?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/inexorgame/inexor-core/issues/88#issuecomment-310917480, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJRgYURoeF7XB-f2aL_9kCswPakMGT1pks5sHp6lgaJpZM4DZHpl.

a-teammate commented 7 years ago

lonnieg1214: I'll be happy to help you to get sauerbraten to compile and work for you to solve this. :) I think we should talk in https://riot.im/app/#/room/#inexor:matrix.org, just ping me there :)