x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Commandline -WinX -WinY don't work (get overridden)

I'm using 4.16.1 and making a multiplayer game that I need to test via standalone fairly often, so I have a shortcut each for server and client launch, where I attempt to place the windows using commandline e.g.:

UE4Editor.exe "" MainMenu -game -log -windowed -ResX=1280 -ResY=720 -WinX=0 -WinY=30 ConsoleX=0 ConsoleY=0

When the window initially pops up - it is correctly placed where I want it, but after it loads the startup map it centers itself on the screen.

I've tried making sure CenterStandaloneWindow=false just in case that was affecting it, but it doesn't seem to help.

The Console / Log window correctly appears where I position it and does not move.

Any workarounds for this? Messing around with window focus & positioning them manually with the mouse every launch sucks a lot of time out of the day.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 05 '17 at 10:18 PM in Bug Reports

avatar image

Spoondog
460 13 26 39

avatar image Alex-V Aug 18 '17 at 08:43 AM

Confirm that. Dug around but without any success.

avatar image solarisx Aug 24 '17 at 04:19 PM

Have the same problem with Launch Profiles or GameUserSettings.ini in UE 4.16.3. WinX, WinY or for .ini WindowPosX, WindowPosY do not work. ResX, ResY or for .ini ResolutionSizeX, ResolutionSizeY work.

avatar image ayamashev Aug 27 '17 at 05:38 PM

I have the same problem. A window appears where I want but then immediately jumps to the center of screen. This problem probably comes from void FSceneViewport::ResizeFrame(uint32 NewWindowSizeX, uint32 NewWindowSizeY, EWindowMode::Type NewWindowMode) in Source\Runtime\Engine\Private\Slate\SceneViewport.cpp

avatar image Alex-V Aug 27 '17 at 06:03 PM

Exactly. The wrong window mode comes in. But i didn't realize why. The issue occurs only in packaged game. The correct window mode, position and size correctly parses from command line but then window mode corrupts on the way. And as consequence the method thinks that new window mode has been set and does center window.

avatar image ayamashev Aug 27 '17 at 07:39 PM

I have just created 'bug report' question here: https://answers.unrealengine.com/questions/700447/cant-specify-custom-window-positions-in-windowed-m.html

I'm not sure if this question is marked as a 'bug report' so I've created new one.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The possibility to specify window location and size is extremely important to me so I had to find some workaround. I'd like to share it. Build the Engine with updated SceneViewport.cpp:

 void FSceneViewport::ResizeFrame(uint32 NewWindowSizeX, uint32 NewWindowSizeY, EWindowMode::Type NewWindowMode)
 {
     ...
     if (NewWindowMode == EWindowMode::Windowed)
     {
         // Replace this block's content with this only string
         NewWindowPos.Reset();
     }
     else
     ...
 }
 

This probably will break the windowed full-screen mode. So if you don't want to lose any other functionality you will have to prepare complete fix or some proper workaround (i.e. reshape a window via Blueprints). As for my situation, I need only windowed mode with custom location/size since I launch multiple game instances simultaneously.

more ▼

answered Aug 29 '17 at 04:46 PM

avatar image

ayamashev
11 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question