Jump to content
Han Solo

Keep music playing when SC4 loses focus?

9 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Is it possible to have SimCity 4 keep playing it's music when the game window loses focus / I switch to another application?

As I'm planning a new city, I like to switch back and forth between the game and my web browser but I also like to have the music playing through the game itself (rather than an external player). It gets pretty annoying though, when one of my favourite songs gets interrupted because I switch to my browser.

[EDIT] I use Arc-... I mean, I use Debian 12 KDE.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I've never used any of these programs and haven't tested, but a search through google and some old forum posts indicate programs like TurboTop or OnTopReplica might help you out.

  • Thanks 1

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Thank you @nos.17, I should have mentioned that I'm on Linux though. I'll edit my original post accordingly.

    To be specific, I'm running Debian 12 with the KDE desktop environment. Which has a built in "always on top" feature for application windows but sadly, it doesn't seam to have any effect on keeping the tunes flowing.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Oh damn, can't help any further then. The 'always on top' seems to be the easy part (I use Microsoft Power Toys which also has a similar feature), but keeping the focus will be the challenge.


    Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Uhm, the music is in .mp3 format. Can't you just play that with some music app and put them all on cycle or random and in the game tell it not to play them at all?


    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    17 hours ago, CorinaMarie said:

    Uhm, the music is in .mp3 format. Can't you just play that with some music app and put them all on cycle or random and in the game tell it not to play them at all?

    That's the easy way of doing things and where's the fun in that?... honestly though, the reason why I'm trying to get the music played by the game itself, is because of the way it plays only certain tracks whilst in the region view. I know it's a silly requirement but it's important to me for some reason that I can't fully explain.

    17 hours ago, nos.17 said:

    Oh damn, can't help any further then. The 'always on top' seems to be the easy part (I use Microsoft Power Toys which also has a similar feature), but keeping the focus will be the challenge.

    Rather than trying to make the window keep focus, or at least behave like it hasn't had focus taken from it, I'm looking into an alternate method that takes that variable out of the equation.

    Valve have developed a piece of software called "gamescope", which is what's called a compositor. A compositor is what handles the way windows are displayed and decorated on a Linux desktop. For example, it handles transparency effects. With gamescope, you can supposedly run an application in it's own compositor that is not effected by your desktop environment's compositor. In other words, when I run SC4 using gamescope, the music keeps playing even when I Alt+Tab to another window.

    There is one caveat though. It's only a small thing... a teeny, weeny little issue that, well, barely bothers me to be honest... I can hear the music but I'm only getting a blackscreen in the gamescope window.

    It's progress though and hopefully I'll find a work around for it as I think gamescope could offer me advantages in other ways too.

    [EDIT] I think I'm running into a bug with gamesscope + x11 + and the nvidia driver. 

     

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    It doesn't help the author of this post because I'm on Windows, but I was trying to figure this out and I succeeded! I'm using ReShade and Special K with SimCity 4 along with dgVoodoo2. Special K has options to allow for this kind of thing, such as "Continue Rendering" when the game is running in the background. Unfortunately, both Special K and ReShade crash the game when opening a city tile using the RHW/Full option of the NAM Controller. It is my hope that I can once again use the RHW when NAM 50 drops because NAM 50 will drop the requirement for the 4 GB patch.

    Edit: I think it's more logical to use the RHW/Full option of the NAM controller, and to wait until NAM 50 drops to, hopefully, be able to use ReShade and Special K again. That's now what I'm doing.


    Fun fact: Buffalo sauce contains the entire DNA sequence of buffalo, so you can clone buffalo while eating buffalo wings with buffalo sauce at Buffalo Wild Wings in Buffalo, New York. I've never tried it, though.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I'm in exactly the opposite boat. My game keeps running with music when it's in the background, but I'd prefer to fully pause the process, since running the CPU at 100% for some music is a bit pointless to me. I don't use a compositor. I'm on an X11 + XMonad setup.

    The following commands are what I use to completely pause (and resume) the entire game process to stop the music. Depending on how the process is paused by your compositor, maybe this allows you to resume it as well to let the music continue? (The process might have a different name.)

    pkill -STOP 'SimCity 4.exe'
    pkill -CONT 'SimCity 4.exe'

    Alternatively, you can try to use CTRL + ALT + F1/F2/… to switch to a different virtual console/tty and launch an independent X11 session (e.g. startx) in which you keep the game running in the foreground.

     

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections