Source Filmmaker

Source Filmmaker

443 ratings
Light Limit Patch
4
3
7
3
2
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Universe: Original IP
Script
Tags: SFM
File Size
Posted
Updated
8.974 KB
Apr 16, 2023 @ 4:16pm
Apr 18, 2023 @ 7:33pm
4 Change Notes ( view )

Subscribe to download
Light Limit Patch

In 3 collections by Kiwano
KiwifruitDev: SFM Scripts
8 items
KiwifruitDev: All Source Filmmaker Items
13 items
Autoinit Manager Compatible Scripts
12 items
Description
This is a patch for the shadowed light limit.
It allows you to have more than 8 shadowed lights in a scene.
Workshop icon by anonymousgamer.

Installation
It is recommended to install this patch from the Steam Workshop.
This patch 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 patch must be applied each time SFM is started.
  • Launch Source Filmmaker.
  • At the top, click Scripts > KiwifruitDev > Light Limit Patch.
  • When the dialog appears, enter the desired light limit.
  • Please read the warning before clicking OK.
  • A patch will be applied and your new limit will be active.

Known Issues
Using high -sfm_shadowmapres values such as 8192 can cause SFM to crash with a high amount of lights.
This can be mitigated by using a lower value when increasing the light limit.

The patch may use an excessive amount of video memory (VRAM) depending on hardware configuration.
This may contribute to your -sfm_shadowmapres value to shadowed light limit ratio.

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

Credits
This project is derived from Directional Scale Controls by LLIoKoJIad (kumfc/umfc).
Directional Scale Controls provides the memory patching functionality that is used in this project.

If you would like to support the creator of Directional Scale Controls, you can donate to them on boosty[boosty.to].

Includes:
sfm\mainmenu\KiwifruitDev\Light_Limit_Patch.py
82 Comments
shitass Jul 4 @ 12:29am 
it kills my sfm, apart from the usual "(SFM not responding)" message it runs fine but it shits itself qhen i even set it to 50
Kenjii [SFM] Dec 26, 2024 @ 2:42pm 
tysm
RF Official Dec 22, 2024 @ 12:51pm 
https://steamcommunity.com/profiles/76561199071634266 put the file in sfm sound folder and open in sfm.but parobably dont play the sound
Jwan Nov 18, 2024 @ 6:06pm 
Could you please make a light_environment control script?
This is a script that controls the color and intensity of the light.
bedrockYT Oct 31, 2024 @ 12:45am 
it is killing my sfm
ZEARO Aug 5, 2024 @ 12:14am 
life saver
The Somewhat Fantastic Mr. Fox Jun 1, 2024 @ 6:42pm 
Ain't no feckin way.
Here, take my lemon! :melon:
Lieutenant Dopheld Mitaka May 9, 2024 @ 1:15pm 
This is such a must-have, thank you
minecraftguns24 Apr 18, 2024 @ 7:29pm 
I got the error "Too many verts for a dynamic vertex buffer (786443999>65535) Tell a programmer to up VERTEX_BUFFER_SIZE."
Informazione Feb 24, 2024 @ 5:21am 
it would be cool if all of these patches could be put in a collection