Source Filmmaker

Source Filmmaker

250 ratings
Viewport Resolution Patch
3
2
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Universe: Original IP
Script
Tags: SFM
File Size
Posted
22.855 KB
May 5, 2024 @ 12:25am
1 Change Note ( view )

Subscribe to download
Viewport Resolution Patch

In 2 collections by Kiwano
KiwifruitDev: SFM Scripts
8 items
KiwifruitDev: All Source Filmmaker Items
13 items
Description
Patch SFM to use custom viewport resolutions.

Installation
It is recommended to install this script from the Steam Workshop.
This script may be updated occasionally.

For advanced (-nosteam) users only, choose an alternate installation method:
  • Clone the GitHub repository[github.com] into your SourceFilmmaker/game/ directory and add the folder to your gameinfo.txt file.
  • Download the script[github.com] as a raw *.py file and place it into SourceFilmmaker/game/usermod/scripts/sfm/mainmenu/kiwifruitdev/ (create the folders if they don't exist).

Usage
This script will patch ifm.dll to allow custom resolutions and does not require running each time you launch SFM.
  • Launch Source Filmmaker.
  • At the top, click Scripts > kiwifruitdev > resolution patch.
  • Please read the warning before clicking OK.
  • Click OK, it will ask you to save your session first.
  • SFM will be patched and restarted.
  • After restarting, check Help > About Source Filmmaker [Beta]
  • If "KiwifruitDev RPatch" appears in the dialog, the patch was successful.
  • Close SFM and set -sfm_width and -sfm_height launch options through Steam.
  • Launch SFM and enjoy your custom viewport resolution.
Once patched, -sfm_resolution will no longer work. Use -sfm_width and -sfm_height instead.

Known Issues
Windows must be installed in C:\Windows for the script to be able to restart SFM.
It is very rare for this to be an issue, but if it is, you can manually restart SFM.

Testing is very limited, so if you encounter any issues, please report them on the issues page[github.com].

Notes
This script saves a backup of the original ifm.dll in the same directory as the script.
If you encounter any issues, you can restore the original ifm.dll by renaming the backup to ifm.dll.
It is located in SourceFilmmaker/game/bin/tools and has a timestamp in the filename.
Also, this script writes files in order to apply the patch. After the patch is applied, these files are deleted.

Support Me
https://ko-fi.com/kiwifruitdev

Credits
This script uses code from the following sources:

License
This project is licensed under the MIT License.

Includes:
sfm\mainmenu\kiwifruitdev\resolution_patch.py
Popular Discussions View All (1)
1
Nov 13, 2024 @ 7:21am
how do i do it
TwilightTerror
92 Comments
Kiwano  [author] Mar 6 @ 6:47pm 
Use light limit patch and autoinit manager, do not use the patching guide
Harlequin Mar 6 @ 2:35pm 
Hi Kiwi, have you had any time to make a guide for those of us who patched our ifm.dll for the light limit yet?
ThatLemkyGuy Mar 5 @ 1:58pm 
Really wish there was a better way than entering my width and height, oops its wrong, closes sfm, rewrites my width and height, opens sfm, still not the right resolution. :/
dicksalot Jan 7 @ 11:21am 
you made it worse
gdgtjnky69 Jan 5 @ 2:07am 
i got the mod to work but what is your best Resolution suggestion
Marie Dec 7, 2024 @ 10:49am 
I don t get it how can ı move black bars when ı take the render proporties to 4k black bars get more space :c
gvz_7 Nov 30, 2024 @ 10:32am 
Yes, there are no stripes appearing there, but rather shadows from them, and these shadows are areas of rendering in parts
Kiwano  [author] Nov 30, 2024 @ 8:33am 
hmm are you using image sequence render?
gvz_7 Nov 30, 2024 @ 6:20am 
When rendering at a high resolution, I get stripes from the borders of parts that are rendered in parts, and to avoid this, I need to render at a low resolution
gdgtjnky69 Nov 30, 2024 @ 1:22am 
and gives me a error