Source Filmmaker

Source Filmmaker

267 个评价
Viewport Resolution Patch
3
2
2
3
2
   
奖励
收藏
已收藏
取消收藏
Universe: Original IP
Script
标签: SFM
文件大小
发表于
22.855 KB
2024 年 5 月 5 日 上午 12:25
1 项改动说明 ( 查看 )

订阅以下载
Viewport Resolution Patch

在 KiwifruitDev 的 2 个合集中
KiwifruitDev: SFM Scripts
9 件物品
KiwifruitDev: All Source Filmmaker Items
13 件物品
描述
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.

Credits
This script uses code from the following sources:

License
You may freely reupload this addon as I am no longer providing updates for it.
Otherwise, do not use outside of the context of the Steam Workshop and the Steam Subscriber Agreement. No further restrictions apply.

Includes:
sfm\mainmenu\kiwifruitdev\resolution_patch.py
101 条留言
KiwifruitDev  [作者] 6 月 30 日 上午 10:23 
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 6 月 30 日 上午 9:56 
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
KiwifruitDev  [作者] 6 月 30 日 上午 9:28 
it's for illustration purposes only, you must restart SFM to set it each time
WigWoo1 6 月 30 日 上午 9:17 
But how do you change the viewport shape and size in real time like the GIF in this post?
KiwifruitDev  [作者] 6 月 29 日 下午 10:05 
-sfm_width 3840 -sfm_height 2160
WigWoo1 6 月 9 日 下午 4:11 
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 6 月 9 日 下午 4:10 
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 5 月 28 日 下午 2:31 
my viewport seems so small now D:
Noreason 5 月 14 日 下午 3:36 
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
KiwifruitDev  [作者] 3 月 6 日 下午 6:47 
Use light limit patch and autoinit manager, do not use the patching guide