Skip to content

Commit

Permalink
[OoT] Refactor spec.py (#306)
Browse files Browse the repository at this point in the history
* refactored spec (minor issue with removing, entry.to_c improvement needed)

* fix remove issues + minor cleanup

* improvements & documentation (newline issues with several exports)

* fix some issues

* fixed consecutive directives newline issue and build dirname

* fixed minor issue where the build dirname wasn't updating properly in some cases

* move the global variable earlier in the function

* fixed rooms not being deleted properly

* fixed issue where it was using the wrong segment name for declaring scenes

* format
  • Loading branch information
Yanis42 committed Apr 22, 2024
1 parent 5af3b49 commit b7ad65c
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 106 deletions.
9 changes: 8 additions & 1 deletion fast64_internal/oot/oot_level_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,14 @@ def writeTextureArraysExistingScene(fModel: OOTModel, exportPath: str, sceneIncl

def writeOtherSceneProperties(scene, exportInfo, levelC):
modifySceneTable(scene, exportInfo)
editSpecFile(scene, exportInfo, levelC)
editSpecFile(
True,
exportInfo,
levelC.sceneTexturesIsUsed(),
levelC.sceneCutscenesIsUsed(),
len(scene.rooms),
len(levelC.sceneCutscenesC),
)
modifySceneFiles(scene, exportInfo)


Expand Down

0 comments on commit b7ad65c

Please sign in to comment.