Skip to content

Dedup skyboxes and BG YMLs with symlinks - #7075

Open
louist103 wants to merge 16 commits into
HarbourMasters:developfrom
louist103:dedup1
Open

Dedup skyboxes and BG YMLs with symlinks#7075
louist103 wants to merge 16 commits into
HarbourMasters:developfrom
louist103:dedup1

Conversation

@louist103

@louist103 louist103 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Other than the offsets the YMLs for skyboxes and BGs are the same across all versions. I decided to use symlinks to make torch think YMLs exist for every version when in reality they were all moved into a common directory.
I had to add a few things to Torch for this.
1.common_path node in the rom config. This tells torch where to look for YMLs common to all versions. ${VER} tag for paths. This tells torch to use the path attribute in the version config file to find external files.
2. tlut_symbol. This already existed in Torch but ship didn't use it. Its not required for this PR but I will need it for something else and it helped me make sure all the paths were setup correctly.
3. HarbourMasters/Torch#255 The PR making this possible and blocking merging this one.
The last thing that needs to be done on the Ship side is to finish creating the filelists for the debug roms.
Something I want to add later but is out of scope here is checking if the skybox files exist. Right now if they don't random garbage data is drawn instead of the skybox or a crash.
I plan on doing the rest of the assets but I think it should be done in groups instead of all at once.

I also need to figure out what to do with #7036 since it also touches the skyboxes. I think the best plan is to just revert the skybox stuff it touches and merge the rest.

Build Artifacts

@serprex
serprex requested a review from briaguya0 August 15, 2026 11:30
@serprex

serprex commented Aug 15, 2026

Copy link
Copy Markdown
Member

@Pepe20129 we should be able to use something like -isystem to silence warnings on Windows for dependencies

@serprex

serprex commented Aug 15, 2026

Copy link
Copy Markdown
Member

louist103/pull/4

@serprex serprex added the do not merge Not ready or not valid changes label Aug 16, 2026
@louist103 louist103 added do not merge Not ready or not valid changes and removed do not merge Not ready or not valid changes labels Aug 23, 2026
@louist103

Copy link
Copy Markdown
Contributor Author

The filelists should all be good. I need to revert the changes from #7036 then it should be good.

Comment thread soh/assets/yml/sym.sh Outdated
@louist103 louist103 removed the do not merge Not ready or not valid changes label Aug 23, 2026
@louist103 louist103 added the do not merge Not ready or not valid changes label Aug 23, 2026
@louist103

Copy link
Copy Markdown
Contributor Author

Turns out Windows doesn't really support symlinks outside of developer mode. We will probably need to discuss this further.

@louist103

Copy link
Copy Markdown
Contributor Author

Symlinks have been removed. HarbourMasters/Torch#257 is open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Not ready or not valid changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants