No sound and other issues when using hwengine

3 replies [Last post]
Wuzzy
Wuzzy's picture
User offline. Last seen 25 weeks 1 day ago. Offline
Joined: 2012-06-20
Posts: 1304

Hi!
I am using Hedgewars 0.9.21 on a GNU/Linux platform. Arch Linux, to be precise.

When I want to play a demo using the hwengine binary, the interface is in English instead of my system language, only default keybindings seem to be used and the sound is muted and I cannot turn it on.

I start hwengine from the console like that:
hwengine $PATH_TO_DEMO_FILE
I also start hwengine from Firefox so this binary starts whenever I download a “.hwd” file. Very handy. Smile

It starts, but has the same issues in both cases.

When playing a demo directly from the frontend (hedgewars binary), everything works fine.

I checked whether I have any “double installs” of Hedgewars and its binaries. I had not.

I don't know what I did wrong, if you have any idea on how to help me, please help.
In case you need more data, I gladly post it here.

Hi, I am a Hedgewars developer. Smile

nemo
nemo's picture
User offline. Last seen 19 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

So, there's an "associate" command in advanced config settings that *should* setup a mime association for .hwd and .hws - Firefox is also aware of these. This association uses your current preferences, but is not updated if you change them unless you reassociate, so you can set custom prefs just by setting 'em before associating then changing back.
If you prefer to do it manually, or associating isn't working, see below.

~/games/bin$ ./hwengine --help
Usage: hwengine [options]

where [options] can be any of the following:
--prefix [path to folder]
--user-prefix [path to folder]
--locale [name of language file]
--nick [string]
--fullscreen-width [fullscreen width in pixels]
--fullscreen-height [fullscreen height in pixels]
--width [window width in pixels]
--height [window height in pixels]
--volume [sound level]
--frame-interval [milliseconds]
--stereo [value]
--raw-quality [flags]
--low-quality
--nomusic
--nosound
--fullscreen
--showfps
--altdmg
--no-teamtag
--no-hogtag
--no-healthtag
--translucent-tags
--stats-only
--help

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Wuzzy
Wuzzy's picture
User offline. Last seen 25 weeks 1 day ago. Offline
Joined: 2012-06-20
Posts: 1304

Sorry, I don't understand what you mean with that “associate” command.

From what you have posted I guess you meant I should provide some command line arguments?

If so, then there is still a problem: I have no sound, but there is only “--nosound”, no “--yessound”. Wink Smiley

Hi, I am a Hedgewars developer. Smile

nemo
nemo's picture
User offline. Last seen 19 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

I'm suggesting you should use the Associate button in Advanced settings instead of setting it up manually.
WRT sound. --volume ?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]