Source Filmmaker

Source Filmmaker

68 평점
Autoinit Manager: Run scripts on start!
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Script
태그: SFM
파일 크기
게시일
업데이트일
44.321 KB
2025년 1월 4일 오후 12시 50분
2025년 1월 16일 오후 6시 26분
업데이트 노트 3개 (보기)

다운로드 위해 구독하기
Autoinit Manager: Run scripts on start!

KiwifruitDev님의 3 모음집
KiwifruitDev: SFM Scripts
아이템 8개
KiwifruitDev: All Source Filmmaker Items
아이템 15개
Autoinit Manager Compatible Scripts
아이템 12개
설명
This script is designed to automatically run other scripts when Source Filmmaker is started. It also provides a window to manage these scripts and their settings.
Usage
The Autoinit Manager window will normally open automatically, but it can be opened manually through Scripts > kiwifruitdev > autoinit_manager.
Additionally, you can use "-nostartwizard" as a launch option to disable the session creation popup when starting SFM.
All script windows that are opened on startup will be given a button in the "Windows" menu so you can open them at any time. By default, these windows will be hidden until shown manually so that your layouts can stay consistent.
Patches
Some scripts will be dynamically patched to work without interruptions. The following changes have been made:
  • Any script that uses "sfmApp.RegisterTabWindow"
    • A "Show" button for this script will be added to the Autoinit Manager window.
    • The window that was registered will have an option added to the "Window" menu in SFM.
  • Any script that uses "sfmApp.ShowTabWindow"
    • No windows will be shown, this is to prevent custom windows from popping up when SFM starts.
    • You can still show the window by using the "Windows" menu in SFM or through the Autoinit Manager window.
  • Quick Menu Redux by Fames (quickmenu_v3.py)
    • Disabled showing the window on run since it does not use "sfmApp.ShowTabWindow".
    • Prevented writing to "sfm_init.py" because it is no longer needed.
    • Removed existing code that runs this script from "sfm_init.py" if it exists.
  • Directional Scale Controls (Stretching) by LLIoKoJIad (directional_scale_patch.py)
    • Disabled pop-up dialogs that normally appear when the script is run.
  • Facial Flex Unlocker by LLIoKoJIad (sfm_flex_unlocker.py)
    • Disabled pop-up dialogs that normally appear when the script is run.
  • Light Limit Patch by KiwifruitDev (light_limit_patch.py)
    • Disabled pop-up dialogs that normally appear when the script is run.
    • Added enhanced options to Autoinit Manager to allow you to set the light limit on startup.
You can view which patches have been applied to a script by right clicking on its entry in the Autoinit Manager window and hovering over the "Autoinit Patches" option.
Development
If you're a developer, add your script to a "scripts/sfm/autoinit" folder. The script will be executed when the SFM is started and users can enable or disable it in the Autoinit Manager window. You can then add Autoinit Manager as a dependency to your Workshop item.
This script is also available on GitHub[github.com].
License
This script is licensed under the MIT License. See the LICENSE[github.com] file for more information.
Funding
If you would like to support my work, you can check out Nonsensical Video Generator, buy me a coffee on Ko-fi[ko-fi.com], become a sponsor through GitHub Sponsors[github.com], or simply share my scripts with others. Thank you for your support!

Includes:
sfm\autoinit\autoinit_manager.py
sfm\mainmenu\kiwifruitdev\autoinit_manager.py
sfm\sfm_init_local.py
댓글 21
pepsi 2025년 5월 22일 오전 10시 13분 
uhhh i'm having the must be unicode not str on a fresh install, the console says

Traceback (most recent call last):
File "<string>", line 954, in _Autoinit_FirstBoot
File "<string>", line 713, in start_default
File "<string>", line 722, in setup_default
File "<string>", line 715, in load_default
File "<string>", line 738, in load_skipped_ini
KiwifruitDev  [작성자] 2025년 5월 18일 오전 8시 02분 
Do you have a different sfm_init.py? I think some other workshop addons do this
If you have an error in console or the script editor window's output I'd really appreciate it ^^
Proto_Star2st 2025년 5월 17일 오후 7시 22분 
i having issues with the manager, now i can't open it though scripts and it doesn't start up when i open sfm
Roman 2025년 4월 21일 오후 2시 20분 
error when click on script in sfm
Banni 2025년 1월 22일 오후 5시 40분 
it says "line 958, in _Autoinit_FirstBoot
line 717, in start_default
line 726, in setup_default
line 721, in load_default
line 781, in load_light_limit_ini
theyre all strings
KiwifruitDev  [작성자] 2025년 1월 22일 오후 1시 55분 
Hmm do you have a line number associated with it? Check console?
Banni 2025년 1월 22일 오후 1시 10분 
do you know why its saying error must be unicode not str?
KiwifruitDev  [작성자] 2025년 1월 16일 오후 6시 27분 
Version 1.2 was just pushed, this should solve the "Error: invalid literal for int() with base 10" issue.
I misspoke earlier, it was "autoinit_light_limit_patch.txt" that was causing the issue.
spooky mann 2025년 1월 16일 오후 6시 07분 
i’m having the same problem as sybilregal even if i clear the sfm_init it still doesn’t work and i don’t have any of the extended things
KiwifruitDev  [작성자] 2025년 1월 16일 오후 5시 47분 
Do you happen to have extended_*.txt files in "SourceFilmmaker/game"?