Menu

Move Gamewindow into the Middle

Kataah
2018-03-30
2018-04-01
  • Kataah

    Kataah - 2018-03-30

    Yeah, as the topic title already says, i´m trying to move a window into the middle.
    I see that DxWnd is indeed capable of this, but still i haven´t had any luck with it yet.
    Already tried the "Position/Desktop Center".
    Is this the way to do it or do i miss something here?
    Thank you very much for your help.

     
  • gho

    gho - 2018-03-30

    "Position / Desktop center" is the right move, but some games may rfuse to obey to this direction and keep trying to place themselves in a different way (usually the upper-left screen corner).
    You can try, in addition, to check the "Video / Window size & position / Locked" flag, check if DxWnd has administrative privileges (seldom, but all sort of things can happen otherwise) or, as a last resort, tell me the game name & version and let me try to fix the problem.

     
  • Kataah

    Kataah - 2018-03-30

    Okay. So i tried it with your suggestions. But so far no luck. The window stays in the top left corner, but i know that the game is hooked from DxWnd. Also Administrator Rights did nothing.
    The 2 Games i tried:
    - Star Wars: Shadows of the Empire
    - Bet On Soldier - Blood Sport

     
    • gho

      gho - 2018-03-30

      "Star Wars Shadow of the Empire" is ok here (the exported configuration just needs to add "Flip emulation" flag, but it is unrelated with window positioning).
      I immagine there could be something odd in your pc, but I can hardly think about what. Maybe you could try posting here some dxwnd logs.

       
  • Kataah

    Kataah - 2018-03-31

    Ah, damn. I didn´t mean "Star Wars Shadow of the Empire" .
    I mean "Star Wars - Episode I - The Phantom Menace - The Video Game".
    Sorry about that.

     

    Last edit: Kataah 2018-03-31
  • gho

    gho - 2018-03-31

    These are two games I never tested so I can't be sure about this, but if other games work well there's a possibility that they are OpenGL games. Yu can try to set the "OpenGL / Hook OpenGL" flag.

    Update: SW Ep1 Phantom menace was tested and works ok here with default settings, no need to hook opengl. The only advice, you have to hook and run directly the file WMAIN.exe because TPM.exe is only a launcher.

     

    Last edit: gho 2018-03-31
  • Kataah

    Kataah - 2018-03-31

    The OpenGl Fix did nothing. But another game "Soldier of Fortune 2: Multiplayer" did worked correctly if just using "Destop Center" and "Window Size" 1920x1080. When i use my real resolution here (2580x1080), the window gets stretched. But with the other one it centers it correctly. Doesn´t know still why the other ones make this trouble.
    Also i did already hooked the WMAIN.exe. I let my exported File here.

     
  • gho

    gho - 2018-04-01

    There are several things that seems no good in your exported file:
    First, the game is not a d3d9 game, it seems to work better with DirectX selecor set to "default".
    Then, the game tends to stretch itself bigger than configured: you should set the Video size & position selector to "Fixed size".
    I'm having some trouble to make some testing on my portable pc, so maybe these hints are not all the needed ones, but try and let me know if it improved.

     
  • Kataah

    Kataah - 2018-04-01

    Well, actually i have dgvodoo in the game folder, and that´s the reason why DxWnd is configured to Directx9. Other ones just gave me an error. But i already think that dgvodoo has a problem with DxWnd and that´s it why it´s not centering the way i want. Was a problem in another game before i think too.
    Still, i can´t use this game without dgvodoo in the first place. This files are in the folder:

    D3D8.dll, D3DImm.dll, DDraw.dll, dgVoodoo.conf, dgVoodooCpl.exe, Glide.dll,
    Glide2x.dll, Glide3x.dll

    These are the files from dgvodoo. When i delete these files from the game folder, the error pops up (Screenshot 2). So i don´t know, maybe you have a different file in the game folder. But for me without these dgvodoo files it seems that it won´t even start in the first place.

    Edit:
    I´m feeling so stupid now. I just deleted these files i mentioned above. And also i put DirectX in DxWnd to "Automatic". Now this game starts like it should and also puts the Window in the Center.
    Sorry about stressing this with you. I always trying with my "Trial&Error" Method until it works. But here somehow i missed a step. Oh well, at least it´s working now. :)

    Edit 2:
    Oh no. It seems that it´s not yet finished.
    Now whenever i launch the game, it looks like in picture 3 and 4.
    I can hear all sounds, navigating the menu, moving the mouse, but can´t see the mouse nor the text. And when i´m ingame, the loading screens seems to hanging, but the level is actually loaded, because i can hear the sounds and i can go around when i press some buttons on my keyboard.
    When i put the dgvodoo files back, i can see all clearly again, but then again there is this center problem.
    One thing. DgVodoo has also a middle Center Function which worked alright, but then the Mouse will be moved to the left side and stays there. This means you could use it when you playing the game, but in the menus it´s stuck at the left side. With this i did a combination with DxWnd Input Things and DgVodoo together, but no luck so far.

     

    Last edit: Kataah 2018-04-01

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.