Support SFMLab on Patreon

Skybox Helper script


Description

This is a simple script used to change the skybox on any map based on the skyboxes it finds from your search paths.

extract here:
"SourceFilmmaker\game\workshop\scripts\sfm\mainmenu\"

This script also shows you a preview of the skybox if the image exists here

How to set up reading the image from the vtf file itself

  1. download VTFLib v1.3.2 Binary Archive --> http://nemesis.thewavelength.net/index.php?c=177#p177

  2. extract all the files in the bin\x64 or bin/x86 to a new folder called "vtfedit"

  3. add a new folder in "vtfedit" called "skybox previews"

  4. when done move the "vtfedit" folder to "SourceFilmmaker\game\workshop\scripts\sfm\mainmenu\" and thats it. the script should now show you a preview image if it doesnt exist here: https://developer.valvesoftware.com/wiki/Sky_List

Note: some of the skyboxes it finds may not work, you need to check the console for errors to see what the problem is.

The save skybox gets saved to here "SourceFilmmaker\game\usermod\cfg\mapname.cfg"

if you want to try to do it manually follow this guide

known issues

  1. The script doesnt show up.
    your gameinfo.txt might not be formatted right or has errors in it, it should look like this https://www.dropbox.com/s/2fuduxao1w2en7m/gameinfo.txt?dl=0, replace yours with this one temporary to confirm.

feel free to modify the script for your own use
if you find any bugs or have suggestions message me in the comments below.



Comments

Minitiv

You're awesome guy! Thank you so much!

Minitiv posted 2 years, 11 months ago

w3ndy

ever since the update the script no longer works for me. i keep receiving [errno 10060]. please help. thanks!

w3ndy posted 2 years, 11 months ago

msu355

@w3ndy, is there more to that error msg? does the script not show up? or is it the previews imgs?

msu355 posted 2 years, 11 months ago

w3ndy

@msu355 it's working again, thanks so much! btw that error message on the previous build, I only saw that error on the console window and the script doesn't pop up. But seems you fixed it, so thanks!

w3ndy posted 2 years, 11 months ago

MGSVBigBoss

@msu355 great moves msu, keep it up, proud of ya.

MGSVBigBoss posted 2 years, 11 months ago

NikusuSFM

This might be the reason I try animating again. Thanks.

NikusuSFM posted 2 years, 11 months ago

xboxer214

Sorry, don't really understand the explanation , is there a tutorial on youtube that I can watch?

xboxer214 posted 2 years, 7 months ago


Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon