Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 6 7 [8]

Author Topic: SoundCenSe, a c# port of SoundSense  (Read 80472 times)

Thundercraft

  • Bay Watcher
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #105 on: June 11, 2018, 11:44:50 pm »

To avoid getting off topic in the SoundSense thread, I'm replying to this SoundCense-related post here:

that's the problem, SoundCense doesn't work either.

Could you be more specific?

In what way does SoundCense not work? Does it not even launch? Or is it just not playing sound or music alongside DF?

Do you have all of the requirements installed?

System requirements:

Windows:

    .NET 4
    Microsoft Visual c++ runtime redistributables (https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe)
    Gtk-Sharp (http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.38.msi)

If SoundCenSe doesn't seem to start (nothing happens when you open it), check the Log.txt file, there the url's will be provided too.
After installing gtk-sharp, a reboot might be needed even the installer doesn't tell you so.

Linux: (Debian)

    mono-complete
    gtk-sharp2

Also, are you using the SoundCense that comes packaged with a starter pack (and which starter pack)? If the answer is "yes", then your problem may be related to SneakyGunz's:

Thanks for this solution. The autodetect is not working with the packaged starter pack.
Directing it to:
    C:\Users\SneakyGunz\Desktop\DwarfFortress\Dwarf Fortress 44.05\Dwarf Fortress 0.44.05\gamelog.txt
worked perfectly. Thank you, thank you.

You could try changing the directory where SoundCense looks for gamelog.txt:
...might need to change the Configuration.json file, setting gamelogPath to ""

Alternatively, you could try installing the stand-alone version as linked in the OP.
« Last Edit: June 12, 2018, 12:01:35 am by Thundercraft »
Logged

JSilva

  • Escaped Lunatic
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #106 on: July 28, 2018, 08:20:05 am »

I installed PeridexisErrant's Starter Pack 0.44.12-r02.
I cannot get SoundCenSe to run. Maybe this is not that surprising, since I have not installed GTK-Sharp. The SoundCenSe log confirms that this is the problem with the series of messages "Checking dll in registry", "GTK# is not installed" and "GTK-Sharp is not installed".

I know where to get GTK-Sharp, but I want to avoid system-wide installs of libraries, if possible. Is there a way of just placing the required files in the SoundCenSe folder and still getting it to run?

By the way: After unzipping the Starter Pack, the SoundCenSe folder already has a "gtk-sharp.dll" file in it (among several other "*-sharp.dll" files). At first I believed that this would be enough for a stand-alone SoundCenSe, but it seems I'm wrong.
Logged

urpokarhu

  • Bay Watcher
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #107 on: August 11, 2018, 05:01:15 am »

Hello,

I'm using Windows 10, 150% DPI on, 2560x1440 and Soundcense looks like this when opening it;

https://imgur.com/a/cPKsIOb

Any suggestions? It seems to work if I change my resolution to 640x480. Doesn't it support 2k resolution then?
« Last Edit: August 11, 2018, 05:05:19 am by urpokarhu »
Logged

roel1976

  • Escaped Lunatic
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #108 on: August 31, 2018, 12:24:26 am »

I can't get SoundCense to produce any sounds. This is only entry in log after I start DF:

2018-08-31 07:14:16.3657|WARN|SoundCenSeGTK.MainClass|Checking dll in registry
2018-08-31 07:14:17.0963|WARN|SoundCenSeGTK.SoundsXML|Include listing tag without valid 'filePathAndName' attribute encountered (make sure it ends in '.xml'!).

Does anyone know what it means and how I can fix this?
Logged

Lorex

  • Escaped Lunatic
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #109 on: October 20, 2018, 07:44:52 am »

The rain sound always plays even if it's clear sky, first I thought it was the SC inside LNP but it's the same using the stand-alone version. It looks like it was fixed in 1.4.1 but I have the last version and still happens. Is it only me? For now I had to disable rain sounds.
Logged

nekoexmachina

  • Bay Watcher
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #110 on: September 03, 2019, 07:24:31 am »

Crashes every so often:

Quote
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.NullReferenceException: Object reference not set to an instance of an object
  at SoundCenSeGTK.FmodChannelPool.IsSoundPlaying (System.String filename) [0x00029] in <f37300e414084686af6d233f37ba2863>:0
  at SoundCenSeGTK.fmodPlayer.PlaySound (SoundCenSeGTK.SoundSoundFile sf, System.String channel, System.Single volume, System.Boolean mute) [0x0019d] in <f37300e414084686af6d233f37ba2863>:0
  at SoundCenSeGTK.fmodPlayer.LoopSound (System.Object sender, Misc.RestartSoundLoopEventArgs restartSoundLoopEventArgs) [0x00106] in <f37300e414084686af6d233f37ba2863>:0
  at SoundCenSeGTK.fmodChannelSound.OnSoundEnded () [0x0007f] in <f37300e414084686af6d233f37ba2863>:0
  at SoundCenSeGTK.fmodChannelSound.<Callback>b__0 (System.Object param0, System.EventArgs param1) [0x00001] in <f37300e414084686af6d233f37ba2863>:0
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <e2cf54bd50544b3dbf94649395d8c893>:0
  at GLib.Timeout+TimeoutProxy.Invoke (System.IntPtr data) [0x00000] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.SourceProxy.HandlerInternal (System.IntPtr data) [0x00000] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.SourceProxy.HandlerInternal (System.IntPtr data) [0x00000] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at Gtk.Application.gtk_main () [0x00000] in <e2cf54bd50544b3dbf94649395d8c893>:0
  at Gtk.Application.Run () [0x00000] in <e2cf54bd50544b3dbf94649395d8c893>:0
  at SoundCenSeGTK.MainClass.Main (System.String[] args) [0x00000] in <f37300e414084686af6d233f37ba2863>:0
Logged
Whenever i read the "doesn't care about anything anymore" line, i instantly imagine a dwarf, sitting alone on a swing set. Just slowly rocking back and forth, somberly staring at the ground, and stopping every once in a while to sigh.
It's mildly depressing.

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #111 on: September 03, 2019, 02:25:02 pm »

crashes of SoundSense were solved for me when enhancing the cache of pulseaudio to 128MiB.
maybe it can help with SoundCense too.
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)

Salano

  • Escaped Lunatic
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #112 on: September 06, 2019, 07:41:23 pm »

Quote
Is the colored icon in the lower right hand corner of the window red or green? If it's red then soundcense didn't know where to find df. Check the settings tab and turn off the automatic detect option. Then you'll be able to set the path manually.
OP, if you're still watching this thread, could you append this line to the main topic post? I couldn't get SoundCenSe to work until I combed through this post to find this solution. I imagine a lot of people are getting this issue, not finding a solution, and simply returning to using SoundSense. Thanks
Logged

shurikt

  • Escaped Lunatic
    • View Profile
Re: SoundCenSe, a c# port of SoundSense
« Reply #113 on: February 03, 2022, 11:24:22 pm »

The download.xamarin.com link for GTK-sharp is now dead and redirects to a Microsoft page. This link works, though: https://xamarin.azureedge.net/GTKforWindows/Windows/gtk-sharp-2.12.45.msi

I found it here: https://www.mono-project.com/download/stable/
Logged
Pages: 1 ... 6 7 [8]