Jump to content

Can you create, save, and load custom UIs for different screen sizes?


Curveball

Recommended Posts

Once upon a time I was really good at this stuff, but it's been too long...

 

Here's my situation: I play mainly on two computers. One is a desktop with an ultrawide monitor. The other is a 16" laptop with a laptop monitor. Obviously, the ratios and resolutions of both environments are very different. I primarily play on my desktop, but when I log in with my laptop I have to spend some time rearranging everything to get it to fit right, and then when I log back into my desktop I have... rearrange everything to get it to fit right.

 

What I'd like to do is to get my desktop arranged just right and then run a command to the effect of "save every single UI element and font size on this screen and name that save desktopui" and then go over to my laptop and run a command to the effect of "save every single UI element and font size on this screen and name that save laptopui" and then whenever I log into either I can run something similar to "load desktopui" or "load laptopui" and -boom- the UI will shift and mold itself to the settings saved in each.

 

Is it possible to do this? I've been trying to figure it out but I sort of fuzz over mentally when I'm playing around with the settings these days, so I figure I'd just take a shortcut and ask the people who probably actually know.

  • Thanks 1
Link to comment
Share on other sites

At work so didn't have a lot of time but the only thing I found was this...

 

Command:

/uiscale + number for scale ( I think you may be able to 1.5 etc, but forgot to test )

 

/uiscale 0 ( smallest UI )

/uiscale 8 ( largest UI )

" When it's too tough for everyone else,

it's just right for me..."

( Unless it's Raining, or Cold, or Really Dirty

or there are Sappers, Man I hate those Guys...)

                                                      Marine X

Link to comment
Share on other sites

Try /wdw_save      /wdw_load  Think that makes the slot BARS and other UI things load up the same spot on all logins. Not sure how it handles the actual slotted powers and such? Anyhow Check out the wiki for /Slash commands for others too. Should find something you need.

Link to comment
Share on other sites

I'd say your best bet would be take the suggestions these guys made and put it into a macro or a persistant bind. Which one just depends on your preferences.

 

It'd take a few steps to set it all up but then you wouldn't have to do it again.

 

Whether you'd prefer a macro or a bind the first thing you'd have to do is create the window settings file, running the command in game on the corresponding computer you're using

/wdwsavefile Laptop.txt

/wdwsavefile Desktop.txt

Those commands will save everything you've placed on the screen in a file on the PC you're using. If you run the laptop one on the laptop it'll only save those screens to the laptop and vice versa you'd have to run the other command on the desktop for the desktop. Once you've saved that file any character you are playing can load that specific file.

 

To load the file you'd set up two macros that you'd have to copy to each character. If you do a bind you'd just have to save the commands to the default bind file and load the keybind to any character you already have but then any character you make in the future would have the bind to change the window settings to whichever one you needed at the time.

Personally I think the persistant bind command would be the simplest solution with less hassle in the future but I'm gunna go eat and I'll check back on this and hopefully you'll let me know which direction you'd prefer and I'll type out the commands to get what you want.

 

I personally have a different wdw save file for each of my alts. They're mostly the same but I color code the UI to each alt and some have some minor differences in the placement of certain ingame windows. There's also a few missions here and there that move windows when you load in so I stuck the load command on a bind so I can just hit a keystroke and reset those windows automatically instead of having to move them around manually.

  • Like 1

Are you looking for Ultramode style, candy coated enhancements and powers?

WELL YOU'VE COME TO THE RIGHT PLACE!!

(they're also in the City Mod installer)

Link to comment
Share on other sites

@Curveball You hadn't commented back about whether you'd prefer macros or binds. I also wasn't sure if you used the scaling functions or not either, otherwise that could be incorporated into the binds as well. So I'll just post up the binds I use modified to what you need.

 

/bind CTRL+F11 "wdwloadfile Laptop.txt"

/bind CTRL+F12 "wdw_load_file Desktop.txt"

 

You can change it from control+F## key if you want, it just happens to be the keys I use for loading files.

You add those binds into the chat line ingame and then test it out by going to the 'system' chat view and it'll either say window file loaded or give you the error.

After you add both binds find the option for saving keybinds to default file so that for every other character you can just load the default keybind and those two binds will be there. Not to mention if you save them to the default keybind file any time you make a new character they'll already be set.

 

EDIT: There may actually be a super simple solution to this as well by adding those bind commands into the launcher command line, but I haven't tested that idea yet.

 

 

Edited by LKN-351

Are you looking for Ultramode style, candy coated enhancements and powers?

WELL YOU'VE COME TO THE RIGHT PLACE!!

(they're also in the City Mod installer)

Link to comment
Share on other sites

Gonna say, "this is a job for LKN!!!"  😛

 

  • Banjo 1

OG Server: Pinnacle  <||>  Current Primary Server: Torchbearer  ||  Also found on the others if desired  <||> Generally Inactive


Installing CoX:  Windows  ||  MacOS  ||  MacOS for M1  <||>  Migrating Data from an Older Installation


Clubs: Mid's Hero Designer  ||  PC Builders  ||  HC Wiki  ||  Jerk Hackers


Old Forums  <||>  Titan Network  <||>  Heroica! (by @Shenanigunner)

 

Link to comment
Share on other sites

  • Game Master
On 11/12/2024 at 1:46 PM, Curveball said:

Once upon a time I was really good at this stuff, but it's been too long...

 

Here's my situation: I play mainly on two computers. One is a desktop with an ultrawide monitor. The other is a 16" laptop with a laptop monitor. Obviously, the ratios and resolutions of both environments are very different. I primarily play on my desktop, but when I log in with my laptop I have to spend some time rearranging everything to get it to fit right, and then when I log back into my desktop I have... rearrange everything to get it to fit right.

 

What I'd like to do is to get my desktop arranged just right and then run a command to the effect of "save every single UI element and font size on this screen and name that save desktopui" and then go over to my laptop and run a command to the effect of "save every single UI element and font size on this screen and name that save laptopui" and then whenever I log into either I can run something similar to "load desktopui" or "load laptopui" and -boom- the UI will shift and mold itself to the settings saved in each.

 

Is it possible to do this? I've been trying to figure it out but I sort of fuzz over mentally when I'm playing around with the settings these days, so I figure I'd just take a shortcut and ask the people who probably actually know.

I have 2 macros for different screens. Or you can just type them in, they aren't complicated.

Set up your screen and size and layout how you want for the monitor.

To save it you type /wdwsavefile filename  so in my case /wdwsavefile HD and /wdwsavefile 4K

 

Then to load it type /wdwloadfile filename so in my case /wdwloadfile HD and /wdwloadfile 4K

 

Easy as Pi 🙂 

Link to comment
Share on other sites

Try https://homecoming.wiki/wiki/Uiscale_(Slash_Command)

 

I put my binds in a popmenu, and if you want you can just copy and paste the commands into a macro or keybind... or use them in a popmenu as is.

 

Option "LOAD 5120x1440 FULLSCREEN" <&fullscreen 1$$screen 5120 1440$$chat_load$$option_load_file options5120X1440.txt$$wdw_load_file wdw5120X1440.txt$$uiscale 1.36$$conprint "OPTIONS, CHAT, AND WINDOWS FOR 5120X1440 FULLSCREEN LOADED"&>
    Divider
Option "LOAD 2315x1302 WINDOWED" <&fullscreen 0$$screen 2315 1302$$uiscale 1.3$$chatload$$option_load_file options2315x1302Windowed.txt$$wdw_load_file wdw2315x1302Windowed.txt$$conprint "OPTIONS, CHAT, AND WINDOWS FOR 2315x1302 WINDOWED LOADED"&>

 

What you do is get all the windows, options, and UI as you like them in game. Then use /wdw_save_file to save the settings for the current windows, then use /wdw_load_file to load them in when you want. I also save and load in my option settings at the same time using /option_save_file (you don't really need chat settings for the UI but I load it in anyway).

 

Other than the wdw settings commands (and also Options commands), the other commands I found useful are: /screen for resolution (I.e. screen size),  /uiscale, and /fullscreen

 

The working directory or default folder for using a relative path at Homecoming is usually C:\Games\Homecoming\Settings\Live. This is where all the default settings files are. If you add the saved files you want to this folder, when you use /wdw_load_file all you have to do is type the name of the file (rather than the whole path starting with C:\...

 

BTW, are you THE @Curveball? The original author of The Incomplete and Unofficial Guide to /Bind?

Edited by BlackSpectre
Link to comment
Share on other sites

Woo.   Read directions first.   I just did /uiscale 100 while in diag mode and it froze the client.  (it's "/uiscale 1" for 100%)  Really needs a bounds range there.

 

Took 20 minutes to unfreeze into complete chaos, was able to type in /uiscale 1 which snapped it back into readable, then server disconnected and took one more login.  Wee!

 

In anycase, thanks for bringing this up Curveball and thanks everyone else for explaining stuff.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...