Lav 说:
thenine99 说:
I'm having a huge problem, first time mod making here.
I'm trying to create a new item, made the model, created the .brf file and the texture file, put them on the respective folders and initialized it on the module.ini, but the item is invisible in game, and every time i pick it up, or buy it from a store it says "Unable to find [itemname] mesh. What am I missing?
Most likely mesh name defined for your item doesn't match mesh name in your brf file. Check that letter casing is the same and that there are no "exotic" characters used in the mesh name (including space). Also make sure that your brf file is saved correctly - close OpenBrf and try re-opening your file from scratch.
I woke up today with this feeling, then, after I checked your message, I was sure that this was wrong. And it was.
But, even after I changed it, it still isn't working. I'll put down everything i did, maybe someone can figure out what's wrong.
- Created a .BRF file from a .OBJ with a mesh named otacosword, a material named otacosword and a texture named otacosword.
- Put the otacosword.BRF file into the Resources folder
- Put the otacosword.DDS file (texture) into the Textures folder
- On module.ini, i have this code:
scan_module_textures = 1
scan_module_sounds = 0
#edit mode should be enabled
#give_performance_warnings = 1
#You can also use load_mod_resource instead of load_resource to make sure you are reading files from module directory.
load_mod_resource = otaco_sword
-On item_kinds1, I have this code:
itm_otacosword Otaco_Sword Otaco_Swords 1 otacosword 0 4259842 9223388564182532111 163 155668 1.500000 100 0 0 0 0 27648 99 0 95 0 278 27
0
0
And ingame, the item is invisible and it gives the error "Unable to find otacosword mesh"