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

Oot map importer segments are bugged (FOUND WORKAROUND) #252

Open
ariahiro64 opened this issue Sep 20, 2023 · 6 comments
Open

Oot map importer segments are bugged (FOUND WORKAROUND) #252

ariahiro64 opened this issue Sep 20, 2023 · 6 comments
Labels
bug Something isn't working oot Has to do with the Ocarina of Time 64 side

Comments

@ariahiro64
Copy link

ariahiro64 commented Sep 20, 2023

Oot map importer enables segments 8 9 and A for all materials on import causing crashes without spending 30 minutes figuring out the correct settings by hand.

@Yanis002
Copy link
Contributor

can you be more specific? I never got a crash with the importer, ideally provide the errors in the console (but it can be annoying if it's crashing), are you importing a vanilla map when the issue occurs?

@ariahiro64
Copy link
Author

ariahiro64 commented Sep 20, 2023

its when launching the map in game. fast64 doesnt error. it also is a vanilla map yes

@ariahiro64
Copy link
Author

ariahiro64 commented Sep 20, 2023

update it seems to be assuming that everything on the draw config is used on all materials

as an example in spot00 8 and 9 are used exclusively for xlu on the water and A is only used on a specific window to light it at night

any other use case crashes in spot00

@ariahiro64 ariahiro64 changed the title Oot map importer segments are bugged Oot map importer segments are bugged Jan 5, 2024
@ariahiro64 ariahiro64 changed the title Oot map importer segments are bugged Oot map importer segments are bugged (FOUND WORKAROUND) Jan 5, 2024
@ariahiro64
Copy link
Author

ariahiro64 commented Jan 5, 2024

Work around

  1. Import your map and fix cutscene related names
  2. Uncheck EVERY segment in EVERY material
  3. Apply only sensible ones based on the draw config

@Dragorn421
Copy link
Contributor

here is a python script for

  1. Uncheck EVERY segment in EVERY material
import bpy
for mat in bpy.data.materials:
    for attr in (*(f"segment{n}" for n in "89ABCD"), "customCall0", "customCall1"):
        for propGroup in (mat.ootMaterial.opaque, mat.ootMaterial.transparent):
            setattr(propGroup, attr, False)

@ariahiro64
Copy link
Author

here is a python script for

  1. Uncheck EVERY segment in EVERY material
import bpy
for mat in bpy.data.materials:
    for attr in (*(f"segment{n}" for n in "89ABCD"), "customCall0", "customCall1"):
        for propGroup in (mat.ootMaterial.opaque, mat.ootMaterial.transparent):
            setattr(propGroup, attr, False)

that works

@Dragorn421 Dragorn421 added bug Something isn't working oot Has to do with the Ocarina of Time 64 side labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working oot Has to do with the Ocarina of Time 64 side
Projects
None yet
Development

No branches or pull requests

3 participants