Total War: EMPIRE - Definitive Edition

Total War: EMPIRE - Definitive Edition

Evaluări insuficiente
Empire on borderless window mode
De către Huey Omehatl
Have you never been annoyed by the fact that you either must play on fullscreen, and have to wait to minimize (or even bug), or play on windowed mode, which makes gameplay almost impossible?
Here is a solution that I've found to this.
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
This guide is not mine
I just copypaste from Total war forums:

In case anyone didnt know:
The people who tried to achieve this may be familiar with the autohotkey-solution:
Load the program @autohotkey.com,
right - click desktop, create new Autohotkey-script under "new".
Open it and insert:
F12::

WinSet, Style, -0xC40000, A
WinMove, A, , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%

Return


Save the script.
Run the script. Now if you have a window open (for example Empire or Shogun 2 in windowed mode),
if you press F12, it will remove the boarders and title bar around that window. So it is a borderless window.

The Problem with Shogun 2 and Empire then is that the mouse often does not work properly (e.g you have to aim the cursor below buttons to be able to click them).
To fix this, go to
"C:\Users\"yourusername"\AppData\Roaming\The Creative Assembly\Empire\scripts" for empire or
"C:\Users\"yourusername"\AppData\Roaming\The Creative Assembly\Shogun2\scripts" for Shogun 2
and open the preferences script (or open it via darthmod launcher).
Search for these lines:

fix_res true; # fix_res <bool>, Forbid window resizing #
fix_window_pos true; # fix_window_pos <bool>, Forbid window repositioning #

and change them to:

fix_res false; # fix_res <bool>, Forbid window resizing #
fix_window_pos false; # fix_window_pos <bool>, Forbid window repositioning #

Save.
Start the game, wait till youre in the menu.
Now move the window you have so it snaps to the top of the screen. Important, otherwise it wont work.
Press F12. Now you have a borderless window with the mouse working correctly.

http://www.twcenter.net/forums/showthread.php?687216-Borderless-Windowed-Mode-for-Total-War-Shogun-2-and-Total-War-Empire

Have fun!
11 comentarii
Wulf 26 sept. 2021 la 18:04 
Now the American civil war mod won't crash, thank you very much mate.
Lupercal-16; Hivebane 30 mai 2021 la 7:18 
Does this also work for Napoleon?
Fang 15 nov. 2020 la 10:12 
I follow the instructions but when I start a campaign the UI is out of bounds slightly at the bottom of the screen. Even if I "snap" the window.
XxSwagMachinexX 29 iun. 2019 la 5:30 
Works, thanks.
Dratgon 26 apr. 2019 la 10:17 
The 0,0 is horizontal and vertical starting position (for the top left corner of the window)
the %A_ScreenWidth%, %A_ScreenHeight% is (as should be understanded by their names) the width and height of the window.
Dratgon 26 apr. 2019 la 10:14 
@Arcterian Se här:
If it's offset in any direction that means that you have to fiddle with the "0,0" cords in this line:
WinMove, A, , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%

if the windows is outside on one side but not on any other side, that means that one of these (or both) %A_ScreenWidth%, %A_ScreenHeight% needs to be supplemented with a positive or negative value i.e:
WinMove, A, , 0, 0, %A_ScreenWidth% + 10, %A_ScreenHeight%
Arcterian 7 apr. 2019 la 8:27 
Used an app called borderless gaming that turned windowed mode into borderless and got the mouse bug. Took me some googlig to find out that if you get that problem then using this solution then changing resolution ingame to something else then desired will fix said problem and then its just to change it back to your own resolution of choice. This can be a bit tricky with the mouse and resolution at odds though.

Ed: Gave up on using the app in favor of this solution for the game. It worked with almost any game, but for some reason my standard 1920X1080 always ended up wrong so the UI was half a centimeter outside the screen making it very annoying and distracting.
Neutral 8 febr. 2019 la 20:10 
Thanks for sharing it on the platform here, through your re-post I'm able to enjoy my favorite title in widowed borderless !
LonsomTossa1 alias cam37 3 iul. 2018 la 15:47 
say thats fantastic !....., so .., what do i do0 ?
Huey Omehatl  [autor] 10 apr. 2018 la 14:05 
Ikr lol. I hope it helps you