Forged Alliance Forever Forged Alliance Forever Forums 2020-08-09T11:51:05+02:00 /feed.php?f=2&t=9778 2020-08-09T11:51:05+02:00 2020-08-09T11:51:05+02:00 /viewtopic.php?t=9778&p=186263#p186263 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
KilroyRed wrote:
When I try to run AHK script for fullscreen I get an error "Error at line 11, Line text: CheckProc Error: This line does not contain a recognized action.
The game has split screen in monitor 1 (left) and a full screen in monitor 2 (right).
Thanks for any help.

you have to follow the guide I gave on page one pretty strictly for the optimization part.

if you don't care about optimizations just remove these two lines :

Code:
      Run, %comspec% /c process -a forgedalliance.exe 1110
      Run, %comspec% /c process -p forgedalliance.exe high

if you do want optimizations then pick the guide up from step 9 to 11.

you basically just need to download this file https://github.com/tatsujb/Process.exe/ ... rocess.exe
and place in C:\windows\system32

i highly recommend also changing this line :

Code:
      Run, %comspec% /c process -a forgedalliance.exe 1110


to have this : 1110 match your thread count. you can see how many threads you have by opening the task manager, right clicking on the cpu graph and selecting "show logical cores" and the counting how many cpu graphs you have.

Statistics: Posted by tatsu — 09 Aug 2020, 11:51


]]>
2020-08-08T18:03:49+02:00 2020-08-08T18:03:49+02:00 /viewtopic.php?t=9778&p=186251#p186251 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]> The game has split screen in monitor 1 (left) and a full screen in monitor 2 (right).
Thanks for any help.

Statistics: Posted by KilroyRed — 08 Aug 2020, 18:03


]]>
2020-07-23T20:16:22+02:00 2020-07-23T20:16:22+02:00 /viewtopic.php?t=9778&p=185880#p185880 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
tatsu wrote:
This will probably require additional modding of the UI festival mod.


Yea... I'm trying this mainly to get rid of a bug where when I run native dual screen (using FAF video settings), clicking on the part of the screen where the radar build icon is (such as when building a radar, or if something I want to click on like a unit or reclaim is in that part of the screen) often tabs me out. I've mostly overcome that by learning build keys and moving the screen if I need to click there for a non-build reason.

I hope someone does the "additional modding," but it's not worth it to me to jump through those hoops right now.

Thanks again for your help, though.

Statistics: Posted by codepants — 23 Jul 2020, 20:16


]]>
2020-07-23T19:53:16+02:00 2020-07-23T19:53:16+02:00 /viewtopic.php?t=9778&p=185879#p185879 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
codepants wrote:
- UI Festival turns off every time. I have to manually enable it every time I'm in a lobby.

that makes sense to me. Someone (you?) should add it to the FAF mod vault (it should be approved shortly) this way you can get it from there instead and that will get rid of that issue.


codepants wrote:
The lobby is centered across the entire window, meaning half the lobby is on the right side of my left screen and half of it is on the left side of my right screen.
I'm pretty sure there are modded lobby files that you can replace that fix this. since I game on a single screen nowadays, I'm not the expert on this.
codepants wrote:
My UI is on the left screen. I think I made the right screen my primary by setting "primaryRight = true," as that's the screen that zooms in at the start of the game, but the UI is still on the left and I can't seem to figure which setting changes it.

This will probably require additional modding of the UI festival mod.
codepants wrote:
- My Windows Taskbar doesn't go away. I have it up for everything else, but if FAF is to be true "fullscreen," it should go away. ....
Is it possible to both hide the taskbar and have the window be unbordered?
that is both possible and the expected default windows behavior.

that the taskbar come back on top is a windows-bug. I don't know that many people are getting this.
Something must be bringing focus to the taskbar.

what windows are you running? 10? In older windows the taskbar had tons of issues related to this. but yeah in windowed mode if you can somehow switch the focus directly to the taskbar then since it's nothing more than another window, it will show up on top. Stopping whatever's focusing the taskbar for you should be your fix there.

codepants wrote:
11111110. Correct?
correct.

codepants wrote:
Thanks again for your help.
No problem, my man!

Statistics: Posted by tatsu — 23 Jul 2020, 19:53


]]>
2020-07-23T17:24:05+02:00 2020-07-23T17:24:05+02:00 /viewtopic.php?t=9778&p=185878#p185878 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
Still having the following problems:
- UI Festival turns off every time. I have to manually enable it every time I'm in a lobby.
- The lobby is centered across the entire window, meaning half the lobby is on the right side of my left screen and half of it is on the left side of my right screen.
- My UI is on the left screen. I think I made the right screen my primary by setting "primaryRight = true," as that's the screen that zooms in at the start of the game, but the UI is still on the left and I can't seem to figure which setting changes it.
- My Windows Taskbar doesn't go away. I have it up for everything else, but if FAF is to be true "fullscreen," it should go away. It goes away when I add:
Code:
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button
; however, that makes the window bordered again, no matter if I put it before or after WinSet, Style, %WINDOW_STYLE_UNDECORATED%. Is it possible to both hide the taskbar and have the window be unbordered?

For future reference:
- Adding WinSet, Style, %WINDOW_STYLE_UNDECORATED% made the window borderless and fixed the resolution being slightly off (I did the math correctly, but with the border there was a small gap around the entire screen).

While I've got you, I have an AMD FX-8350 8-core processor. I assume that means my magic number for prioritizing FAF not on the first thread is 11111110. Correct?

Thanks again for your help.

Statistics: Posted by codepants — 23 Jul 2020, 17:24


]]>
2020-07-21T21:31:01+02:00 2020-07-21T21:31:01+02:00 /viewtopic.php?t=9778&p=185835#p185835 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
codepants wrote:
Thanks. Wow that's a lot of work. I sure appreciate you typing it all up in detail.

did you get it working? if not PM me or someone else willing to help on FAF

Statistics: Posted by tatsu — 21 Jul 2020, 21:31


]]>
2020-07-21T18:22:18+02:00 2020-07-21T18:22:18+02:00 /viewtopic.php?t=9778&p=185829#p185829 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]> Statistics: Posted by codepants — 21 Jul 2020, 18:22


]]>
2020-07-21T01:40:19+02:00 2020-07-21T01:40:19+02:00 /viewtopic.php?t=9778&p=185820#p185820 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
codepants wrote:
Great! How do you "stretch" the game? Does it work on two different sized screens?

Yes it's possible,

first set FA to windowed,

then follow this guide here : viewtopic.php?f=2&t=9778

At the part where I have code to copy and paste into a new file, for the dual screen version it's here : viewtopic.php?f=2&t=9778&p=98315#p106977

So basically this except replace "1110" with whatever corresponds to your number of threads:
Code:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#Persistent


procName := "ForgedAlliance.exe"
SetTimer, CheckProc, 2000
Return

CheckProc:
    If (!ProcessExist(procName))
        Return
     
     
    WinGet Style, Style, % "ahk_exe " procName
    If (Style & 0xC40000)
    {
        WinSet, Style, -0xC40000, % "ahk_exe " procName ; remove the titlebar and border(s)
        WinMove, % "ahk_exe " procName , , 0, 0, 3840, 1080 ; move the window to 0,0 and resize it to fit across 2 monitors.
        WinMaximize, % "ahk_exe " procName
        WinRestore, % "ahk_exe " procName
        Run, %comspec% /c process -a forgedalliance.exe 1110
        Run, %comspec% /c process -p forgedalliance.exe high
    }
    Return

ProcessExist(exeName)
{
   Process, Exist, %exeName%
   return !!ERRORLEVEL
}
return


Then start FAF and go to "Vault" then "Mods" then search "Common" and install "Common mod tools" that comes up.

since your screens are not the same size look here: viewtopic.php?f=2&t=9778&start=40#p152680

you'll have to get this : https://github.com/b2ag/ui-festival

and put it into your mods folder.

after doing so host a game on FAF, go into "Options" then "Mods" and enable UI Festival (this should subsequently enable common mod tools as well).

Start the game and configure UI Festival to your liking.

Statistics: Posted by tatsu — 21 Jul 2020, 01:40


]]>
2020-07-21T00:24:27+02:00 2020-07-21T00:24:27+02:00 /viewtopic.php?t=9778&p=185816#p185816 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
tatsu wrote:
codepants wrote:Some of the posts in this thread indicated peopl use borderless windowed fullscreen and then "stretch" it across two screens. What does that look like? Is it just one wide window or do they act like two separate windows? Can you have one screen zoomed out to tactical view and another zoomed in?


Yes, it's literally the same thing as dual fullscreen but with lots of extra goodies and advantages.


Great! How do you "stretch" the game? Does it work on two different sized screens?

Statistics: Posted by codepants — 21 Jul 2020, 00:24


]]>
2020-07-19T17:13:28+02:00 2020-07-19T17:13:28+02:00 /viewtopic.php?t=9778&p=185772#p185772 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]>
codepants wrote:
Some of the posts in this thread indicated peopl use borderless windowed fullscreen and then "stretch" it across two screens. What does that look like? Is it just one wide window or do they act like two separate windows? Can you have one screen zoomed out to tactical view and another zoomed in?


Yes, it's literally the same thing as dual fullscreen but with lots of extra goodies and advantages.

Statistics: Posted by tatsu — 19 Jul 2020, 17:13


]]>
2020-07-08T14:00:50+02:00 2020-07-08T14:00:50+02:00 /viewtopic.php?t=9778&p=185473#p185473 <![CDATA[Re: Fullscreen script (Dual Screen & Single Screen)]]> Statistics: Posted by tatsu — 08 Jul 2020, 14:00


]]>
2020-06-02T12:58:46+02:00 2020-06-02T12:58:46+02:00 /viewtopic.php?t=9778&p=184605#p184605 <![CDATA[Re: Fullscreen script (updated)]]>
Syn4pse wrote:
Hi,

Thanks for this script, it work perfectly for one monitor.

I have two monitors (1680 * 1050 - 16/10), which parameters need the script ?
I try 3360, 1050 but not good.

Thanks in advance


Code:
WinMove, % "ahk_exe " procName , , 0, 0, 3360, 1050

should be it.

Statistics: Posted by tatsu — 02 Jun 2020, 12:58


]]>
2020-05-11T19:26:57+02:00 2020-05-11T19:26:57+02:00 /viewtopic.php?t=9778&p=184037#p184037 <![CDATA[Re: Fullscreen script (updated)]]>
Thanks for this script, it work perfectly for one monitor.

I have two monitors (1680 * 1050 - 16/10), which parameters need the script ?
I try 3360, 1050 but not good.

Thanks in advance

Statistics: Posted by Syn4pse — 11 May 2020, 19:26


]]>
2019-04-03T15:40:25+02:00 2019-04-03T15:40:25+02:00 /viewtopic.php?t=9778&p=173200#p173200 <![CDATA[Re: Fullscreen script (updated)]]> Statistics: Posted by Androish — 03 Apr 2019, 15:40


]]>
2019-04-03T18:24:22+02:00 2019-04-03T14:09:24+02:00 /viewtopic.php?t=9778&p=173198#p173198 <![CDATA[Re: Fullscreen script (updated)]]>
Little Miss Murder wrote:
Whats this System32 thing you're talking about? :p

I made a script 4 years ago for windows, it highly optimized the game and allowed better dual screen (and above dual) support.

this thread is that script's thread. in the Opening Post I gave the instructions, you can read up. "Process.exe" is a windows binary that allows "soft" control over the windows processes, in this case changing a running process's thread afinity and also priority ...all without the need for administrator priveleges. real handy. bundled with a AutoHotkey script that runs silently in the background, I made a watcher for an FA process that immediately sets FA to "fake fullscreen", high priority and removes afinity of the process to the first cpu thread.

which really works for FA on FAF given FA is constantly stopping and starting, for each game you play.

Process.exe is really old and archaic, I guess it can't be helped that the website that hosted it didn't continue to do so / broke down.

I'm too lazy for finding an alternative, I'm pretty sure the only reason this particular binary was able to do this without admin priveledges was because it was made by microsoft. and they don't pack it with windows anymore because that's a specific need and likely also because this file is a bit powerfull in the wrong hands. Or maybe I'm just imagining that last bit I don't know.

Anyways this is all for windows not linux, on linux fakefullscreening and the rest is something I haven't been able to figure out how to do. it's probably possible. and this time the hard part would be the window resizing considering it's a wine viewport we're working with.


btw I did get the joke. :P

Statistics: Posted by tatsu — 03 Apr 2019, 14:09


]]>