Author Topic: ]ANSWERED] .BLB files won't import in Blender  (Read 963 times)

Hello, I recently installed Conservative's .BLB importer for Blender. However, I'm having a bit of a problem trying to figure this one out for myself, like usual. I want to edit the Gravestone .BLB for making some monuments, but, well, I'll let this image do the talking:



If anybody knows what the problem is here and how to solve it, please answer below as soon as possible. It would mean a lot. Thanks, in advance.
« Last Edit: December 17, 2016, 06:23:39 PM by Font »

The problem is that it's looking for the textures, but either the file(s) or the directory doesn't exist

What you probably have to do is go to the directory of 'import_blb.py' as shown in your error message, open it with Notepad, and edit the file paths to where your Blockland directory is
Code: [Select]
def AddTex(Tex): # final command
    if bpy.data.textures.find(Tex) == -1:

        if Tex == 'PRINT':
            path = os.path.expanduser('C:\\Program Files (x86)\\Steam\\steamapps\\common\\Blockland\\base\\data\\shapes\\spraycanLabel.png')
        else:
            path = os.path.expanduser('C:\\Program Files (x86)\\Steam\\steamapps\\common\\Blockland\\base\\data\\shapes\\brick'+Tex+'.png')

        image = bpy.data.images.load(path)
        text = bpy.data.textures.new(Tex, 'IMAGE')
        text.image = image
        text.image.use_fields = True

        if Tex == 'SIDE':
            text.extension = 'EXTEND'

    return

If you don't have Blockland on Steam, then change both of the file paths to
Code: [Select]
C:\\Users\\USER_ACCOUNT_NAME\\Documents\\Blockland\\base\\data\\shapes\\spraycanLabel.pngand
Code: [Select]
C:\\Users\\USER_ACCOUNT_NAME\\Documents\\Blockland\\base\\data\\shapes\\brick'+Tex+'.png
If you're using Conservative's BLB importer as well, you'll have to do the same thing

Oh, thank you. This helped a lot.
Case closed.