Simple widget to control sound level - Page 2

Simple widget to control sound level

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

100Gbps
Posts: 74
Joined: 30 Jan 2009, 13:19

Re: Simple widget to control sound level

Post by 100Gbps »

What about the missing file:

Code: Select all

[Sound] Warning: Unable to open audio file: LuaUI/Sounds/volume_osd/pop.wav
[Sound] Warning: CSound::GetSoundId: could not find sound: LuaUI/Sounds/volume_osd/pop.wav
Can I has short and clear woman having sex sound? :mrgreen:
User avatar
SanadaUjiosan
Conflict Terra Developer
Posts: 907
Joined: 21 Jan 2010, 06:21

Re: Simple widget to control sound level

Post by SanadaUjiosan »

I love it! Very very awesome!
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Simple widget to control sound level

Post by Beherith »

Me rikey, mind if I include it in BA?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Simple widget to control sound level

Post by knorke »

100Gbps wrote:What about the missing file:

Code: Select all

[Sound] Warning: Unable to open audio file: LuaUI/Sounds/volume_osd/pop.wav
[Sound] Warning: CSound::GetSoundId: could not find sound: LuaUI/Sounds/volume_osd/pop.wav
Can I has short and clear woman having sex sound? :mrgreen:
Soundfile is in the .zip, did you extract all files?
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

Yes, go ahead and use it, that's why I posted it here.

The audio file should be included. Check that the path got right when it was extracted. Or using an own audio file works too.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

For the woman having sex sound, follow this link to get it, then save it in the folder and update the path in the widget.

http://www.jfgit.com/clean/short+and+cl ... +sex+sound
100Gbps
Posts: 74
Joined: 30 Jan 2009, 13:19

Re: Simple widget to control sound level

Post by 100Gbps »

knorke wrote:Soundfile is in the .zip, did you extract all files?
Why I should do that when the obvious reason is the wrong filepath?
Directory of D:\games\Spring\LuaUI\Sounds

21.03.2012 г. 23:25 <DIR> .
21.03.2012 г. 23:25 <DIR> ..
25.02.2012 г. 05:42 15 842 bounce.wav
26.12.2011 г. 15:27 31 851 ding.ogg
25.02.2012 г. 05:42 10 416 flag_grab.wav
25.02.2012 г. 05:42 3 326 land.wav
25.02.2012 г. 05:42 40 176 message_admin.wav
25.02.2012 г. 05:42 8 876 message_private.wav
25.02.2012 г. 05:42 8 876 message_team.wav
25.02.2012 г. 05:42 14 180 pop.wav
25.02.2012 г. 05:42 214 README.txt
25.02.2012 г. 05:42 50 862 teamgrab.wav
10 File(s) 184 619 bytes
2 Dir(s) 381 393 444 864 bytes free
Path should be
LUAUI_DIRNAME .. 'Sounds/pop.wav'
Obviously I didn't make that mistake ...
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

Hmmm, the path should be:

Code: Select all

 <springdir>/LuaUi/Sounds/volume_osd/pop.wav
In version 1.1. In version 1.0 the path was as you wrote.

I changed it so that when you uninstall the widget you can just delete the folder, so that it doesn't mix with other widgets. It is packed that way in the zip file, doesn't it extract that way?

I mean, doesn't it create the "volume_osd"-directory under Sounds?
100Gbps
Posts: 74
Joined: 30 Jan 2009, 13:19

Re: Simple widget to control sound level

Post by 100Gbps »

-- file: snd_volume_osd.lua
-- brief: volume control OSD
-- version: 1.1
Never used this widget before, just chose it cause I liked the old school TV progress bar.

Yes, directory was not created. Installed through 'Lua Widget Downloader' and there it was version 1.100
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

Hmm, I cannot reproduce the error. I downloaded it from

http://widgets.springrts.de/index.php?s=d

and saved it to a temp folder. When I extract the zip-file to that folder it creates the "volume_osd" directory under Sounds.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Simple widget to control sound level

Post by Beherith »

What map is that? I like the terracing effect.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Simple widget to control sound level

Post by jamerlan »

Beherith wrote:Me rikey, mind if I include it in BA?
I just added.
http://imolarpg.dyndns.org/trac/balatest/changeset/978
I want to add loadscreen with explanation also: http://imolarpg.dyndns.org/trac/balatest/ticket/169
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

Go ahead and make a loadscreen if you know how you want to make it. I just made this widget really quicky and didn't think about those things. You mean something that displays at gamestart or before it and then disappers when you click "ok" or when the game starts?
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Simple widget to control sound level

Post by jamerlan »

vbs has better idea: just use "+" and "-" for sound, not for game speed.
BD already changed game speed hotkeys to work with Alt: https://github.com/spring/spring/commit ... 8cf4bd4f51

So.. no loadscreen is needed.

Thank you for your very nice widget!
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Simple widget to control sound level

Post by Jools »

Even better idea. You need to change volume more often than gamespeed.

I don't know about you guys, but for me, alt key gets stuck very often. Not physically, but the program thinks alt key is pressed when it isn't. I think it is a common issue (zK even has a widget that checks if alt is stuck). But I don't think it's spring related thing. A google search pointed the problem to be related with auto-hotkey program (which I know that I use or have used).

So often when you press alt-+ the game just registers +. Just for information.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Simple widget to control sound level

Post by jamerlan »

<[AG]abma> [teh]decay: imo for next release we can't cherry-pick

looks like changes for "+/-" will be not released soon
Sad, but I need to disable that widget by default or temporary remove from BA.

We will test how "+/-" and Alt works when these changes will be release. Thank you for info!
Post Reply

Return to “Lua Scripts”