Source Filmmaker

Source Filmmaker

76 个评价
Autoinit Manager: Run scripts on start!
   
奖励
收藏
已收藏
取消收藏
Script
标签: SFM
文件大小
发表于
更新日期
44.321 KB
1 月 4 日 下午 12:50
1 月 16 日 下午 6:26
3 项改动说明 ( 查看 )

订阅以下载
Autoinit Manager: Run scripts on start!

在 Wizard Kiwi 的 3 个合集中
KiwifruitDev: SFM Scripts
9 件物品
KiwifruitDev: All Source Filmmaker Items
13 件物品
Autoinit Manager Compatible Scripts
13 件物品
描述
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
Licensed under the MIT License[github.com].

Includes:
sfm\autoinit\autoinit_manager.py
sfm\mainmenu\kiwifruitdev\autoinit_manager.py
sfm\sfm_init_local.py
24 条留言
dlvov4216 10 月 11 日 下午 3:17 
hello, how to smoothly make a running animation, I'm just new to sfm and I'm fond of animations, please tell me
glyph 8 月 22 日 上午 6:11 
Got this from a bootup, (the script also doesnt appear in the windows or scripts tab):

Error: must be unicode, not str
Traceback (most recent call last):
File "<string>", line 952, in _Autoinit_FirstBoot
File "<string>", line 711, in start_default
File "<string>", line 720, in setup_default
File "<string>", line 715, in load_default
File "<string>", line 775, in load_light_limit_ini
TypeError: must be unicode, not str
saz 8 月 6 日 下午 2:45 
it says error global name _autoinit is not defined
pepsi 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
Wizard Kiwi  [作者] 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 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 4 月 21 日 下午 2:20 
error when click on script in sfm
Banni 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
Wizard Kiwi  [作者] 1 月 22 日 下午 1:55 
Hmm do you have a line number associated with it? Check console?
Banni 1 月 22 日 下午 1:10 
do you know why its saying error must be unicode not str?