You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is a python script that automatically changes all of the lights in a VMF file to a clustered mode. It can be accessed here!
Features:
Single File Mode
Change all of the light entities in a map to Static, Specular, Static Bounce, or Dynamic
Convert light entities to light_rt and light_rt_spot
Automatically backup a VMF file (in case of damage or corruption to file, only semi-rare)
Batch Mode
Recursively change all of the light entities in every map to Static, Specular, Static Bounce, or Dynamic
Convert all light entities in every file to light_rt and light_rt_spot
Ignores any VMF files that don't contain lights (*cough cough instances*)
Automatically backup all VMF files (that contain lights), and compress to a ZIP file
How it works:
First, the script searches for any line containing _lightmode in the selected VMF file.
These are all removed to avoid conflicts.
Next, it searches for lines containing _lightHDR.
It then appends a new _lightmode entry containing the selected light mode from the dropdown.
Lastly, it saves the file and shows a message box.
Screenshots
Note
I haven't fully looked into the structure of a VMF file, so I don't entirely know if there are other entities that use the _lightHDR key. If there are, this tool can break an entity (but probably won't, it just might have an error key). It may, in semi-rare cases (Probably never will unless the user manually tinkered with their VMF file in a text editor), mess up the formatting of a VMF file, hence the backup tool added.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Clusterifier - v1.3.0
is a python script that automatically changes all of the lights in a
VMF
file to a clustered mode. It can be accessed here!Features:
Single File Mode
Static
,Specular
,Static Bounce
, orDynamic
light_rt
andlight_rt_spot
VMF
file (in case of damage or corruption to file, only semi-rare)Batch Mode
Static
,Specular
,Static Bounce
, orDynamic
light_rt
andlight_rt_spot
VMF
files that don't contain lights (*cough cough instances*)VMF
files (that contain lights), and compress to aZIP
fileHow it works:
_lightmode
in the selectedVMF
file._lightHDR
._lightmode
entry containing the selected light mode from the dropdown.Screenshots
Note
I haven't fully looked into the structure of a
VMF
file, so I don't entirely know if there are other entities that use the_lightHDR
key. If there are, this tool can break an entity (but probably won't, it just might have an error key). It may, in semi-rare cases (Probably never will unless the user manually tinkered with theirVMF
file in a text editor), mess up the formatting of aVMF
file, hence the backup tool added.Beta Was this translation helpful? Give feedback.
All reactions