The International Simutrans Forum

Community => Community Discussion => Steam => Topic started by: Lebeg on May 06, 2024, 10:28:52 AM

Title: Setting custom soundfonts
Post by: Lebeg on May 06, 2024, 10:28:52 AM
I am using the steam version of simutrans which just updated to 124, which is cool, lot of fixes, but for some reason the change soundfont button is missing from the UI.
If I remember correctly there were some code changes relating to the music backend, maybe it dissapeared then.

I am trying to change it so it sounds just like this (https://youtu.be/VM6dbY_yvAc).

Changing soundfont_filename in simuconf.tab doesn't seem to be working.
Is this a bug, or am I doing something wrong?
I have a MuseScoreDefault.sf2 in my music folder and use the following line:
soundfont_filename = MuseScoreDefault.sf2
(This is not the same soundfont as in the video I linked, but is similar)
Title: Re: Setting custom soundfonts
Post by: Matthew on May 06, 2024, 04:47:20 PM
Welcome to the International Simutrans Forum, Lebeg! Bug reports like this are always helpful, so thank you.

I am also using the Steam version of Simutrans 124 (Linux, pak128) and I can get to the "Select soundfont" button like this:

(https://i.imgur.com/AtsngRM.png)

And it does work for me.

I hope that helps. If you can't see it there, maybe a screenshot of the Sound Settings window would be helpful for the devs?
Title: Re: Setting custom soundfonts
Post by: Roboron on May 06, 2024, 05:03:49 PM
Sorry about that. The "Select soundfont" button was indeed not available on Windows for Simutrans version 124. The reason is that I could not get it to build with this feature, so I gave up in order to make the release.

Today I have tried again, and this time I got it working with ad dynamically linked build. EDIT: Nevermind, it does not work when I push it to Steam. This needs more investigation.

EDIT 2: Looks like I discovered what is happening. The preloader libraries are getting mixed with Simutrans libraries, and things go wrong. Well, it was in my plans to get rid of the preloader eventually, but this will accelerate this change. I will try to get it done for the next version, and then you will be able to play your soundfonts again (meanwhile, you can also go back to version 123, or try linux ;) )
Title: Re: Setting custom soundfonts
Post by: prissi on May 07, 2024, 01:20:48 PM
In principle, windows midi should also support installable sounds ... but not via simutrans, and not for free.
Title: Re: Setting custom soundfonts
Post by: Lebeg on May 07, 2024, 05:04:48 PM
Thanks  :D

I was actually thinking about putting linux on my laptop for productivity  ;D
Got some extra motivation for it.
Title: Re: Setting custom soundfonts
Post by: Roboron on June 03, 2024, 04:54:45 PM
With the 124.1 Steam update, soundfonts should work again. Although it seems .sf3 soundfonts do not work, but .sf2 soundfonts do.