Problems with resources from OSP

Users who are viewing this thread

Lope de Rojas

Grandmaster Knight
Ehm, I need some help:

I'm using (at least I'm trying to use  ) some armours, helmets and shields from the OSP packages.
I put them in the module_items.py correctly, with the correct mesh name and compile, no problem here.

Then I call the resource from module.ini load_mod_resource = whatever (whatever = the name of the resource, eg: mod_armour).
But, when I launch the mod, an error occurs, telling me that there is a texture that is not possible to find, but without saying which texture is... the problem disappear when I quit the armours.

The OSP only include the resource I think, so where I can find the textures? or the texture is included in some way I didn't know?
 
Lope de Rojas said:
Ehm, I need some help:

I'm using (at least I'm trying to use  ) some armours, helmets and shields from the OSP packages.
I put them in the module_items.py correctly, with the correct mesh name and compile, no problem here.

Then I call the resource from module.ini load_mod_resource = whatever (whatever = the name of the resource, eg: mod_armour).
But, when I launch the mod, an error occurs, telling me that there is a texture that is not possible to find, but without saying which texture is... the problem disappear when I quit the armours.

The OSP only include the resource I think, so where I can find the textures? or the texture is included in some way I didn't know?
Just copy the textures in the OSP packs into your mod's Textures folder. By the way, I think there's a few textures missing from OSP swords, but I'm not sure.
 
Uhm, and how I copy the textures from the OSP?

They are in the bfr file, aren't they? but how can I copy them? because the option export when I'm in the texture view is disabled

(and of course, thanks for the help, Ruthven)
 
Lope de Rojas said:
Uhm, and how I copy the textures from the OSP?

They are in the bfr file, aren't they? but how can I copy them? because the option export when I'm in the texture view is disabled

(and of course, thanks for the help, Ruthven)
Nope, when you download it, it usually has two folders, one Resource and one Textures folder. The Resource folder contains the OSP's BRFs, the Textures one has all the DDS textures in it.
 
:oops: I'm feeling stupid (No more "Jesus Rojas",Ruthven?  :lol: :lol: :lol:)

Ok, that's true. There they are... I unzip the files but then I forgot to move the textures files to my module folder...

Thanks, Ruthven
 
Nope, the problem is still there.

The error is: "get_object_failed for texture:    " but it doesn't say which is the texture.

I've copied all the textures in the texture folder, and put module_scan_textures = 1
 
You need to add:
load_mod_resource = X
to module.ini.

X is the name of the brf-file without ".brf"

If you want to add  OSP_Swords.brf  then use this:

load_mod_resource = OSP_Swords
 
The problem is that either in one of the BRFs there is a mesh or material which is supposed to use a particular texture, but the texture is not defined in the BRF (even though it is sitting in the 'Textures' folder). You would need to find out which is missing and define it, or delete the mesh and material which are asking for it from the BRF.

The other thing which would cause this kind of error is if there are two meshes or materials in two different BRFs that use the same texture, and it is defined in both files. So when the game loads the first BRF, it loads this texture, then loads the second BRF and tries to load the same texture, this gives an error in loading the texture. You can delete the definition of this texture in one of the BRFs to fix this.

In your case if it does not show the name of the texture, it is more likely that the first problem is the cause.
So open the BRF file which is giving you problems (find that out by loading them one by one into module.ini) in BRFeditor, look through the meshes and materials, look at the textures they are using, find one which wants a texture which isn't defined in the BRF, make a copy of the entry of one of the textures and rename it to the missing texture filename.
 
Back
Top Bottom