Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with linked models from the wmb asset library in wd map files #32

Open
AhriCutii opened this issue Dec 17, 2023 · 0 comments
Open

Comments

@AhriCutii
Copy link

AhriCutii commented Dec 17, 2023

I ran into a few issues when trying to import a few map files(wd1)

After importing the file everything seemed to work fine. But after I save the blend file and open it again, two issues occur.

First is that the file cannot find the collections linked from the files in the wmb asset library. I get an error that says something like
"Cannot find collection "bg008e_linked" in "bg008e.blend" and the linked files disappear from the blend file
So basically the file now looks for a collections named "(filename)_linked" in the linked blend files from the asset library, which none of them have.
I fixed this by changing this line of code:
(lay_importer.py line 172) linkedCollName = f"{modelName}_linked"
to this
linkedCollName = modelName
I dont know if there was a reason for adding "_linked", but so far I havent had issues related to this?(ofc I havent messed around very much to say for sure)

The second issue is that all the linked files will be rotated 90 degrees on the X axis, and I would have to rotate them back manually to get them back to how they are supposed to be, which is mildly annoying at best.
I noticed that the files in the asset library are also rotated 90 degrees on the X axis by default, and rotating those manually back to 0 degrees seems to fix this issue, but it feels like I shouldn't have to do that
A strange thing I noticed is that if I import the dtt map file, the linked assets will be rotated correctly until I save and reload the blend file, while if I import the .lay file directly the assets will be rotated wrong from the start.

P.S. I am using an older version of blender(2.92), so maybe that is the reason for these, but I would appreciate if you could take a look yourself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant