Source SDK

Source SDK

Mod crashes due to custom 2D background
I wanted to change the default 2D background for my mod to a custom one, but everytime I try to launch it it crashes due to the custom 2D background. I used VTFEdit Reloaded to convert the .tga file to VTF and I only disabled normal map and mipmap in the import settings. The image is 1920 x 1080 (the resolution of my computer). Am I missing something?

Here's an image of the error message: https://steamcommunity.com/sharedfiles/filedetails/?id=3410715979
< >
Showing 1-5 of 5 comments
Apparently, this isn't a universal rule, but VTF image dimensions usually have to be powers of two. I'd try resizing the image to match this requirement and seeing if that helps.
Originally posted by Infinite_Data:
Apparently, this isn't a universal rule, but VTF image dimensions usually have to be powers of two. I'd try resizing the image to match this requirement and seeing if that helps.
Doesn't VTFEdit Reloaded let you resize the image to a power of 2 in the import settings?
Last edited by TRexIndominus; Jan 19 @ 10:29am
Originally posted by TRexIndominus:
Doesn't VTFEdit Reloaded let you resize the image to a power of 2 in the import settings?
I wouldn't know, I haven't used it. If it does, you can give it a try. It doesn't matter how you resize it, but you most likely do need to do it. The docs say that in some cases, you just need multiples of 4, but if you're getting a message specifically calling out the image as incompatible, I'm inclined to believe that powers of 2 are the requirement here.
Originally posted by Infinite_Data:
Originally posted by TRexIndominus:
Doesn't VTFEdit Reloaded let you resize the image to a power of 2 in the import settings?
I wouldn't know, I haven't used it. If it does, you can give it a try. It doesn't matter how you resize it, but you most likely do need to do it. The docs say that in some cases, you just need multiples of 4, but if you're getting a message specifically calling out the image as incompatible, I'm inclined to believe that powers of 2 are the requirement here.
The problem is that I did exactly that, but my mod still refused to launch. I know it did rescale to the nearest power 2 because VTFEdit Reloaded prevents you from saving textures that are not, so maybe that's not what is causing the problem.
OK, I've never made a custom background and I might be completely off here, but shouldn't the background be a VMT (material)? The error message points directly to a VTF.
< >
Showing 1-5 of 5 comments
Per page: 1530 50