Source Filmmaker

Source Filmmaker

259 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
5 May, 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)
2
29 Jun @ 10:06pm
how do i do it
TwilightTerror
101 Comments
Kiwano  [author] 30 Jun @ 10:23am 
you can't set the width through the old launch parameters, which means you're locked to a 16:9 aspect ratio
plus arbitrary resolutions, since sfm only recognizes -sfm_resolution 1080 and -sfm_resolution 2160 as hardcoded values
WigWoo1 30 Jun @ 9:56am 
Oh.. then what is actually the point of this compared to just using the old -sfm resolution launch command? That also changes the viewport resolution
Kiwano  [author] 30 Jun @ 9:28am 
it's for illustration purposes only, you must restart SFM to set it each time
WigWoo1 30 Jun @ 9:17am 
But how do you change the viewport shape and size in real time like the GIF in this post?
Kiwano  [author] 29 Jun @ 10:05pm 
-sfm_width 3840 -sfm_height 2160
WigWoo1 9 Jun @ 4:11pm 
I patched it and used the command -sfm_3840 and -sfm_2160 but I still only have 720p as my max resolution in the movie render
WigWoo1 9 Jun @ 4:10pm 
So how can I use this to have a super low resolution viewport for better performance, but still have 4K in the render settings?
Fullcaber 28 May @ 2:31pm 
my viewport seems so small now D:
Noreason 14 May @ 3:36pm 
hello, hope you are doing well!

i'm sorry but i am having a little problem, and i wanted to know, is it possible to do the thing that's happening in your viewport resolution patch gif on your workshop file? and if so, how can i do it? i tried everything and could not find the option for it, even my screen went black and i fixed it somehow lol, please help me to find the option to size my camera, and sorry if my english is bad lol
Kiwano  [author] 6 Mar @ 6:47pm 
Use light limit patch and autoinit manager, do not use the patching guide