About This File
This mod/fix modifies the aspect ratio values for VN dialogue, shoot-em-up, and DokiDoki sequences. This required searching for opcodes/functions that determine the horizontal aspect ratio (As the game has separate vertical and horizontal aspect ratio values which can cause zooming when not carefully modified), and modifying those to the desired aspect ratio.
There wasn't much time (or having experience with assembly) to figure out how the hardcoded resolutions and pillarboxing (Outside of running in 2560x1080) are being handled, so this is a rather basic aspect ratio modification. This comes at the expense of resolution and stretched UI. A GitLab repository link for the source code will be up soon (For those who are rightfully paranoid about running random code, and for those who are interested in maintaining or contributing). Once the source code is up, this page will be updated accordingly to link to it. Apologies if it's half-baked (or a hack-job) compared to other solutions. This fix may break if game updates/patches release.
- Download the "GGResturn.7z" archive, and extract it with 7Zip or WinRAR (The password used is "pcgw"), making sure to have the plugins folder and dinput8.dll in the game's directory (This is usually "C:\Program Files (x86)\Steam\steamapps\common\GalGun Returns").
- Go into the plugins folder that was extracted to the game's directory and open "config.ini" in a text editor.
- In the text editor, change "horizontalResolution" and "verticalResolution" to your desired resolution, making sure to save the file afterwards. The aspect ratio is calculated this way at the moment.
If the ImageScale related variables in the config.ini don't work, download Reshade, and during setup, select the "Legacy Standard Effects" package, make sure the "AspectRatio.fx" file is selected, run Reshade, enable the "AspectRatio.fx" effect, and play around with the scale value.
If the ImageScale doesn't fit the image onto the screen automatically, set "UseImageScale" to 1, and mess with the "ImageScale" and "ImageHorizontalScale" float values.
This mod/fix requires Visual C++ Redistributables for Visual Studio 2015-2019. Please install those from here before launching the game, and especially before reporting any errors or bugs: https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
- The character select screen upon starting a new game doesn't have a proper value that controls the horizontal aspect ratio (after hours of searching in Cheat Engine's disassembler). As a result, this screen may appear stretched.
What's New in Version 1.0.7 Update See changelog
Fixes the crashing due to Update 1.0.7.
Changed the aspect ratio option to use a Horizontal and Vertical resolution value instead (Which needs to be configured in config.ini).
Work is being made to detect the current window resolution, but there are odd crashes with that at the moment, hence why there's a Horizontal and Vertical Resolution config value now to compensate.
Make sure to replace the config.ini with this update, as the old Aspect Ratio values are no longer relevant.