Xeeynamo / sotn-decomp

Decompilation of Castlevania: Symphony of the Night (PSX+Saturn)
https://sotn.xee.dev/
GNU Affero General Public License v3.0
508 stars 55 forks source link

Data import tt_002 part two #1882

Closed Onenutmcgee closed 1 week ago

Onenutmcgee commented 1 week ago

Adding more of the animation data as well as some of the ranked lookup tables. I was trying to use a struct and/or unions to organize the data, but I just can't get it to match with anything other than a flat array that uses math and casts. So I've added some macros to hopefully help document the code and what's happening.

I'm unsure if this "ranked lookup table" type thing is being done elsewhere, so I only added it to faerie for now.

I do realize this sort of makes a mess of the file structure for the time being and a lot of these files can/will be merged back together once we get more of it set up. But a lot of what is left has offsets that break data that is most likely an array into a bunch of single variables, and then the remainder of the array, even though they all should be the same array. But we need to have the last few functions decomped before we can do that, so I'm going to switch back to that and will get the rest of the data put together after.

github-actions[bot] commented 1 week ago

TT_002 us

data 93.65% (+10.61%)

github-actions[bot] commented 1 week ago

TT_002 us

data 93.65% (+10.61%)

github-actions[bot] commented 1 week ago

TT_002 us

data 93.65% (+10.61%)

Onenutmcgee commented 1 week ago

I reverted the macro stuff. I'm clearly trying to reinvent the wheel here.

github-actions[bot] commented 1 week ago

TT_002 us

data 93.65% (+10.61%)