Fullscreen++ (new version 4)

Zeus81 said:
It’s weird that the antivirus flags the EXE but doesn’t care about the DLL, even though they share 99% of the same code. I’ll see if I can fix that.

Who said that? O_O?
The exe does make references to many methods present in the DLL, but most of the code is present in the DLL itself.
It’s weird that the antivirus flags the EXE but doesn’t care about the DLL, even though they share 99% of the same code. I’ll see if I can fix that.
At least the fact that the VX version works gives me a hint about where the difference lies.
Here's 3 new test versions : https://www.dropbox.com/scl/fi/fkav...reen.zip?rlkey=wccfzf8hrmgce58chhhazqnqu&dl=1
unfortunatly neither of these seem to work
1 and 3 are just a black screen like before
2 does show the game, but it's not upscaled and there's black bars jittering all over the screen
1766508285159.png
(I can't really capture the jitter in a screenshot)

I should note that I don't intend to use the shaders (they don't really look nice with my art style), so just deleting the Fullscreen.dll works as a fix for me.
Hi, i dont know if there is a way to fix this but when i play a video with the fullscreen it turns very small, is there a way to fix this or a resolution to make the video so i can fill the entire screen?
1 is supposed to show a message box. You don’t have anything?
And 3 should create a second window instead of modifying the game's existing one, you should test in windowed mode.

I should note that I don't intend to use the shaders (they don't really look nice with my art style), so just deleting the Fullscreen.dll works as a fix for me.
It's also possible to use only simple shaders like Nearest, Bilinear, Bicubic, there's also CAS which isn't too fancy.
The fallback solution is either Nearest or Bilinear (depending on the available GDI features, we can't chose).
Besides shades, it also performs better, and DX11 enables support for overlays and game recording software.
And if there's a bug I would want to fix it anyway. 😀
1 is supposed to show a message box. You don’t have anything?
And 3 should create a second window instead of modifying the game's existing one, you should test in windowed mode.
Oh yeah sorry, I should have been more specific.
I do get a message box in 1 and 3 does create a second window.
But in 1 the game remains a black screen and in 3 the second window is a black screen.
And if there's a bug I would want to fix it anyway. 😀
Of course, hopefully you'll figure out what't wrong!
But if it's just my specific PC causing some freak bug, I can at least work around it.
I did ask a friend to test the original version and they got it to work without problems, so it really is just a weird thing on my end.
I do get a message box in 1
Show me the message.

Btw you may still need the dll after all, if you use transitions with a file (like in battle transitions).
Because I had to redo this function and it was too slow in ruby so I put it in the dll, without it there's a simple fade, and RMXP's fullscreen mode still uses that, not the windowed mode nor VX.
To disable the shaders you then need to edit the Fulscreen++ script line 45, add a new line with :
@d3d = false
Show me the message.
Here you go:
1766661719350.png

Btw you may still need the dll after all, if you use transitions with a file (like in battle transitions).
Because I had to redo this function and it was too slow in ruby so I put it in the dll, without it there's a simple fade, and RMXP's fullscreen mode still uses that, not the windowed mode nor VX.
To disable the shaders you then need to edit the Fulscreen++ script line 45, add a new line with :
@d3d = false
Thanks, that makes it work even with the dll!
Ok try these dlls : https://www.dropbox.com/scl/fi/1rvt...reen.zip?rlkey=vvmy42o1dyg996ldc8lizso5d&dl=1
If it none of them work try changing the line 420 of the script : Zeus:😮S.dpi_awareness = 2 to 1.
If doesn't work try 0.

If none of this works I'm out of ideas.
Ok try these dlls : https://www.dropbox.com/scl/fi/1rvt...reen.zip?rlkey=vvmy42o1dyg996ldc8lizso5d&dl=1
If it none of them work try changing the line 420 of the script : Zeus:😮S.dpi_awareness = 2 to 1.
If doesn't work try 0.

If none of this works I'm out of ideas.
Tried them all with each setting.
None of them fix it, the game remains a black screen.
Tried them all with each setting.
None of them fix it, the game remains a black screen.
Alright, that’s unfortunate, so we’ll leave it there. Thanks for your help, and Merry Christmas!
Alright, that’s unfortunate, so we’ll leave it there. Thanks for your help, and Merry Christmas!
Thanks, Merry Christmas to you too!
Hello,

Have been experimenting with the new script. Really impressed by the work done there. The graphical improvement on an average modern screen is just incredible. Before/after of the same game on a 1920x1080 resolution for reference:
nejR7go.jpeg

YMDlQpq.jpeg


Issues encountered so far:

I had to disable Steam-related features, otherwise the game would just crash on boot without an error message. This was done by replacing the line:
Code:
exit if -1 == r = Zeus::DLL.Fullscreen.exist? ? Zeus::DLL.Fullscreen.Steam_Initialize(steam_app_id) : 0
with:
Code:
r = 0
EDIT: Haven't investigated in depth but may be due to a conflict with

The game would also crash (with an error message this time) at the start of any battle due to searching for BattleStart.png in Graphics/Transitions instead of Graphics/System. Replacing the folder name in Sprite#transition fixed the issue.

Shaders make the game lag on integrated graphics (at least on my end). The FPS returned when I switched to the dedicated GPU... though that's only halfway to the solution as I have yet to find a way to inform the computer it should run the game that way by default, without the player having to manually change Nvidia config.

EDIT: One more for the road. I had to add a snippet to explicitly shutdown graphics on a SceneManager#exit, otherwise the game would freeze into a black screen when exiting the game "properly", via the appropriate menu option (it already worked fine with Alt+F4 or closing the window):
Code:
module SceneManager
  def self.exit
    @scene = nil
    Graphics.shutdown
  end
end
If none of this works I'm out of ideas.
Tried them all with each setting.
I started playing with this.
Replacing the old script with the new script files.
I had some work to do for myself. The old script used Ratio for scaling the screen size. This one does not, but does a stretch function, which I don't want.
I had to fix my yanfly system options to remove ratio and change the function calls for using fullscreen.
Added in a method similar to the old script for fullscreen?, and then had to use a preserve data script in conjunction with some additions to the save load function.
It all works and I like the default size of the screen. So I think I'm good. Should be 640x480 but I think it doubles it on start.
Oh and I removed a toggle_fullscreen part so that the F11 does nothing

But then I realized that I was not using the dll file. I put the file in my systems folder and then the game would not start. So maybe not using the dll and just have the two scripts to test.
I have not tried the exe file either.

And to give an indication of how much is used in my game, I have...
MessageIntercept.dll
Steam_api.dll (not really used yet and dated 2016)
TRGSSX.dll
system\F1AltEnterF12.dll
system\KGL2.klib
system\trgssx.dll

I play tested for 20 minutes and works. (my battles are still slow)
I have yet to find a way to inform the computer it should run the game that way by default, without the player having to manually change Nvidia config.

Regarding that, I appear to have encounter some success using nvpatch on the Game.exe file.
Yup this is hella dope. nice work!
Not the most game-breaking bug in the world but it seems that, with the new fullscreen around, when two or more sound effects should be played in quick succession (typically, several consecutive Sound.play_ok() when navigating quickly in menu or battle), only the first one is to be heard.

I've confirmed the issue is tied to this script (i.e. it works again as before without it) but failed to pinpoint the exact cause or to find a workaround that doesn't break everything.

EDIT: Forcing a Audio.se_stop before Audio.se_play solves the issue though I offer no guarantee the cure is not worst than the disease in that case.

EDIT: Yet another thing. Graphics.after_update appears to play badly with F12 reset (the RGSSReset exception ends up in the wrong place so to speak). Replacing
Code:
Graphics.after_update &Graphics.method(:update_fullscreen)
with an explicit call to Graphics.update_fullscreen at the end of the update function fixed that.
Gave up on implementing this for now.

The thing is, the shaderless version of 4.0 does not feel noticeably better than what could be achieved with the less complex 2.2 version (no DLL). And while the extra shaders look really cool, I have never managed to get over the issue of performances. Patching the Game.exe eventually turned out to be a dead-end as antivirus aren't happy with exe being tampered (and I can't blame them for that) and jumping into the rabbit hole of upgrading to mkxp-z feels like it defeats the purpose of this script (as mkxp-z already supports better scaling algorithm on its own).

A shame since the proof of concept looked so good. :hsad:
Hi! I was using Fullscreen++ (the second version) and only found out recently the new update. All the filters look really cool!

I am having a weird issue though, and is that when closing the game, it does the fade to black but it never actually closes. It does not throw an error but it softlocks and can only exit by force closing it. Did anyone find this issue and has a solution, by any chance?

I am using RPG Maker XV Ace, in case that's the reason.
I am having a weird issue though, and is that when closing the game, it does the fade to black but it never actually closes. It does not throw an error but it softlocks and can only exit by force closing it. Did anyone find this issue and has a solution, by any chance?

I am using RPG Maker XV Ace, in case that's the reason.

Try adding, at the end of the script:
Code:
module SceneManager
  def self.exit
    @scene = nil
    Graphics.shutdown
  end
end
Try adding, at the end of the script:
Code:
module SceneManager
  def self.exit
    @scene = nil
    Graphics.shutdown
  end
end
Worked perfectly, thanks! :ewink:

Original thread: https://forums.rpgmakerweb.com/threads/fullscreen-new-version-4.14081/