veeti512 / wadblender

13 stars 4 forks source link

Error messages when importing stock wad #18

Closed LoreRaider closed 3 years ago

LoreRaider commented 3 years ago

I'm getting some errors while importing a stock wad in blender using the latest released version

Repro steps: -go to File->Import->Tomb Raider 4 WAD file (.wad) -set the following options: image -select the wad and press Import WAD

Error: image

Here's the wad I'm trying to import catacombWad.zip

veeti512 commented 3 years ago

I think that you're using an old version. Can you please try downloading the addon from the green code button in the homepage then "download zip".

LoreRaider commented 3 years ago

Does it work anyway? I see that the files are differently placed than the release packages

EDIT: actually I tried and the installation worked, though it still gives errors, this time I choose to import only Lara model and this shows up: image

Here's the settings I've used: image

veeti512 commented 3 years ago

It should be fixed now! Be aware that if you do Choose Object -> LARA, Blender will load Lara as she is stored in the wad, i.e. with placeholder meshes. Uncheck LARA to have those replaced with the right meshes.

LoreRaider commented 3 years ago

Yeah it indeed works now, thanks! And good to know about the Choose Object option

Now I tried to load up a very heavy wad and it throws an error about VEHICLE_EXTRA key not found Error: image

If you want to try the wad yourself: persia.zip

veeti512 commented 3 years ago

Thanks, fixed also another issue with that wad. It was an object naming issue. Please download the addon again :) Be aware that mapping of joints is not implemented for custom Lara outfits, please see #12

LoreRaider commented 3 years ago

Yeah I've seen that, though using TR4 lara it's perfect anyway for stuff like animating for now :D Also yes my PC was frying too while loading this big wad lol

This time I've got an error related to statics using the same wad, maybe something about too many vertices? image

veeti512 commented 3 years ago

Sorry, I missed that. The error is strange because it is not able to load the lighting info for that nice plant EXTRA40. WAD tool says that the light for that object is dynamic. It must be some new staff. I think I can get a workaround real quick.

LoreRaider commented 3 years ago

Oh yes I see now, apparently they forgot to put static lighting back when importing the object into the wad And yes, statics can be set to have dynamic lighting both in WadTool and StrPix, as well as moveables being set to have static lighting

veeti512 commented 3 years ago

It should be able to load the entire wad now. Probably there will be errors when importing movables with static lights. I need to find docs to see how's it stored.

LoreRaider commented 3 years ago

Just checked and it's indeed good now, I also tested with another big wad and it loaded everything fine, thank you for this!

veeti512 commented 3 years ago

you're very welcome. Please let me know if you find other issues!