Source Filmmaker
Оцінок: 272
Skybox Helper Script
   
Нагородити
До улюбленого
В улюблених
Прибрати
Universe: Original IP
Script
Позначки: SFM
Розмір файлу
Додано
Оновлено
18.506 KB
9 лип. 2016 о 12:33
17 трав. 2020 о 6:05

Підпишіться, аби завантажити
Skybox Helper Script

Опис
This is a simple script used to change the skybox on any map based on the skyboxes it finds from your search paths.
you'll find the script under the script menu, on the menubar.


This script also shows you a preview of the skybox, if the image exists here: https://developer.valvesoftware.com/wiki/Sky_List


Optional: How to set up reading the image from the vtf file itself
1.download VTFLib v1.3.2 Archive---> https://sfmlab.com/project/file/download/19110/us/

2. 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.
if you want to try to do it manually follow this guide http://steamcommunity.com/sharedfiles/filedetails/?id=716509115#1197298


*******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.




Includes:
sfm\mainmenu\skybox helper.py
Коментарів: 89
commando ice 16 трав. о 20:08 
is it possible to make a script to replace water
antho p 11 жовт. 2024 о 9:00 
i love it :steamhappy:
gmod dude 21 берез. 2024 о 14:08 
could you make a script that can convert imported maps that were originally at night to day?
Jwan 21 груд. 2023 о 0:33 
Are the skybox preview images in the script mainmenu? It seems that the image is not loading properly.
Jwan 21 груд. 2023 о 0:32 
I tried everything, but the image does not appear.
Airborne Soldier 29 лип. 2023 о 6:09 
Oh yes, it worked!
Thankies!
OMG Theres A Bear In My Oatmeal!  [автор] 29 лип. 2023 о 5:08 
try verifying sfm files
Airborne Soldier 29 лип. 2023 о 3:01 
Dude, it doesn't work
What does this mean? : 6> Running script 'd:\steam\steamapps\common\sourcefilmmaker\game\platform\scripts\sfm\mainmenu\skybox helper.py' ...
Traceback (most recent call last):
File "d:\steam\steamapps\common\sourcefilmmaker\game\platform\scripts\sfm\mainmenu\skybox helper.py", line 10, in <module>
import urllib2,os,re,subprocess
File "d:\steam\steamapps\common\sourcefilmmaker\game\sdktools\python\2.7\win32\lib\urllib2.py", line 93, in <module>
import hashlib
File "d:\steam\steamapps\common\sourcefilmmaker\game\sdktools\python\2.7\win32\lib\hashlib.py", line 138, in <module>
_hashlib.openssl_md_meth_names)
AttributeError: 'module' object has no attribute 'openssl_md_meth_names'

I even did what you said in the description, it even worked before but now it doesn't
Any solution?
OMG Theres A Bear In My Oatmeal!  [автор] 25 квіт. 2023 о 4:55 
does any error pop up in the console, when you launch the script?
Chaosmaker243 24 квіт. 2023 о 18:56 
Hopefully I can still get help with this. With my current gameinfo.txt, the script doesn't show up. When I replace it with the temporary one provided, the script shows up. I compared the gameinfo.txts and they look to be exactly the same. Is there a reason this doesn't work? Have I done something wrong?