This site requires JavaScript, please enable it in your browser!
Greenfoot back
Forj4K
Forj4K wrote ...

2018/2/27

StackTrace when no sound available

Forj4K Forj4K

2018/2/27

#
Hey there, we've installed Greenfoot on multiple linux systems which haven't any audio installed (PulseAudio isn't available). This results into the following error message and StackTrace: https://imgur.com/a/WVUxV I started the "LunarLander" example scenario. When the rocket crashes it shows the first error message. After clicking on "Reset" it shows me the stacktrace. That's very annoying when this message pops up everytime you Reset the game. Is there a way to disable sound globally in Greenfoot so this messages will be suppressed? I don't want to modify the source code of the example scenarios and delete the audio part. Maybe you have an idea how to solve this? Thanks in advance
danpost danpost

2018/2/27

#
You can comment out all lines in the Explosion class that deal with the sound. That way you are not deleting them and the sound files (whether you delete the lines or not) remain in the 'sounds' folder of the scenario directory.
You need to login to post a reply.