Jump to content
Koankuta

UI Scaling / Placement for Ultra wide monitors

6 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Firstly, you'll have to bear with me as I've only started modding SC4 for a couple days. I've played for over 20 years completely vanilla, but coming across this forum has completely refreshed the experience!

I've downloaded all the critical mods from this thread, along with NAM, realistic weather / lighting and various texture replacers. With a DX wrapper, I've successfully been able to play fullscreen on my SUW monitor at a resolution of 3840x1080 with no crashes. It's beautiful! My monitor is 5120x1440, however at that resolution the game crashes after a few minutes. But that's beside the point...

What I'd like to change is the placement of the UI. It sits right in the center of the screen, and I'd like to move it to the bottom left corner at my resolution. I've seen other mods that move the UI by X number of pixels (like this one), so if I understand correctly it should be possible. However I'm not acquainted with modifying/creating plugins. I imagine it's more involved than, say, writing an .ini and implementing an offset by x number of pixels, but I have many years' experience working IT and am happy to learn. It's more of a question of if someone who does know how to do something like this, would they like to give me a hand in making it possible. 

Or, better yet, if there's a simpler solution I'm not aware of!

I appreciate any contribution, thank you all for keeping this game alive!

**Edit
I'm embarrassed to admit that I fell for an April Fool's upload, thinking the realistic lighting mod was going to work :]

68d86ecfdf232_SimCity4.0Screenshot2025_09.27-15_55_44_65.jpg.65cbfd937fd48afc51273e7365bca69e.jpg

 

 

  • Like 1

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
Currently: Viewing Topic: Site Suggestion Box
 
1 hour ago, Koankuta said:

Firstly, you'll have to bear with me as I've only started modding SC4 for a couple days. I've played for over 20 years completely vanilla, but coming across this forum has completely refreshed the experience!

I've downloaded all the critical mods from this thread, along with NAM, realistic weather / lighting and various texture replacers. With a DX wrapper, I've successfully been able to play fullscreen on my SUW monitor at a resolution of 3840x1080 with no crashes. It's beautiful! My monitor is 5120x1440, however at that resolution the game crashes after a few minutes. But that's beside the point...

What I'd like to change is the placement of the UI. It sits right in the center of the screen, and I'd like to move it to the bottom left corner at my resolution. I've seen other mods that move the UI by X number of pixels (like this one), so if I understand correctly it should be possible. However I'm not acquainted with modifying/creating plugins. I imagine it's more involved than, say, writing an .ini and implementing an offset by x number of pixels, but I have many years' experience working IT and am happy to learn. It's more of a question of if someone who does know how to do something like this, would they like to give me a hand in making it possible. 

Or, better yet, if there's a simpler solution I'm not aware of!

I appreciate any contribution, thank you all for keeping this game alive!

**Edit
I'm embarrassed to admit that I fell for an April Fool's upload, thinking the realistic lighting mod was going to work :]

68d86ecfdf232_SimCity4.0Screenshot2025_09.27-15_55_44_65.jpg.65cbfd937fd48afc51273e7365bca69e.jpg

 

 

Unfortunately, the UI is hardcoded, so source code is required to make changes. Perhaps DLL Mods could solve the problem, but we are more in the realm of code rewriting, and that is currently impossible. 


Federal Republic of SiculiaFederal Republic of Sonora

   Ain Member  Wiki

NAM Team - Co-developer of Pedestian Revolution Mod - Railway Department (Hybrid Railway | HRW Expert) - MTA Member - BAT Creator

Ulisse Wolf YouTube Channel - Ulisse Wolf Mastodon Profile

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    47 minutes ago, Ulisse Wolf said:

    Unfortunately, the UI is hardcoded, so source code is required to make changes. Perhaps DLL Mods could solve the problem, but we are more in the realm of code rewriting, and that is currently impossible. 

    ah, too bad. I am curious, though, with that in mind how was Warrior able to make the Raise the UI mod?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
    Currently: Viewing Forums Index
     
    38 minutes ago, Koankuta said:

    how was Warrior able to make the Raise the UI mod?

    All the UIs are created with images (usually PNGs and BMPs iirc) and bounding boxes (as in defined coordinates). In general it's like the lower left corner is anchored and then everything is offset from that. So for the Raise the UI Mod, they expanded the bounding box and then offset the images and text from the origin point.

    For the game image you've shown, the starting position is somehow out of place and I believe that's what gets into the C++ coded part.

    • Like 1

    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:  
     
    4 minutes ago, CorinaMarie said:

    All the UIs are created with images (usually PNGs and BMPs iirc) and bounding boxes (as in defined coordinates). In general it's like the lower left corner is anchored and then everything is offset from that. So for the Raise the UI Mod, they expanded the bounding box and then offset the images and text from the origin point.

    For the game image you've shown, the starting position is somehow out of place and I believe that's what gets into the C++ coded part.

    I see, thank you for the insight!

    • Like 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
    Currently: Viewing Forums Index
     

    I decided to tinker a wee little bit. *:) 

    Remove the Raise the UI Mod if you are using it. Then add my test one and load a city tile. I expect it to look goofy, but what I've done is try to move the bigger frame images to the left by 500 pixels. All we are looking for atm is if anything does change on your screen. (In other words, this is a proof of concept to see if my idea is feasible, but it's not a completed mod.) If there is any difference, please post a s/s. *;) 

    Partial Move UI Left 500 Test by Cori v0.01.dat

    • Like 3

    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

    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