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

Out of range error cancelling optimisation #4

Closed
rskskr opened this issue Aug 18, 2022 · 5 comments
Closed

Out of range error cancelling optimisation #4

rskskr opened this issue Aug 18, 2022 · 5 comments

Comments

@rskskr
Copy link

rskskr commented Aug 18, 2022

When trying to optimise with only Merge Different Property Materials selected, the process is aborted with the error below. The avatar also contains 3 unparsable materials (out of a total of 11), if that's relevant?

Unity_n98yetFWqy

@rskskr
Copy link
Author

rskskr commented Aug 18, 2022

It seems this shader has an invalid 0 index for optimizedShader[i][0] on line 1115.

Unity_BZUZoHRY6z

@d4rkc0d3r
Copy link
Owner

I am unable to reproduce the error on my end with this amount of info. Unlit/Color is a unity builtin shader and should count as a unparsable material. "Unparsable materials" should get ignored entirely when optimizing so I am not sure if that one is your problem. Can you check the debug info foldout if it is indeed correctly listed as unparsable?

@rskskr
Copy link
Author

rskskr commented Aug 18, 2022

Hmm, strangely it isn't listed as unparsable on my end. Only a few liltoon materials are.

@d4rkc0d3r
Copy link
Owner

I tried counting 0 parsed lines as "unparsable material", can you dl newest version from https://github.com/d4rkc0d3r/d4rkAvatarOptimizer/archive/refs/heads/main.zip and see if that fixes it? Delete the old version first!

@rskskr
Copy link
Author

rskskr commented Aug 18, 2022

That fixed it! Thank you!

@rskskr rskskr closed this as completed Aug 18, 2022
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

2 participants