scurest / apicula

Convert Nintendo DS .nsbmd models
BSD Zero Clause License
160 stars 19 forks source link

Files from Sonic Rush, Rush Adventure, and Sonic Colors not properly working. #4

Closed ShilzE01 closed 4 years ago

ShilzE01 commented 7 years ago

image Folders will be created, but they are empty.

scurest commented 7 years ago

Thanks for the bug report!

This is because the special texture transform modes are unimplemented. I pushed a change that should let you open the files but the texture coordinates on the models will probably be wrong. If you can upload one of the problematic NSBMD files for me to look at, I'll try to get this working.

ShilzE01 commented 7 years ago

Okay, then. I haven't checked out the other games yet, but this should be good enough. sb_joh.zip

scurest commented 7 years ago

That model uses some render commands apicula doesn't recognize. After stubbing them in, the model seems to work. According to EveryFileExplorer, the missing command has something to do with environment mapping I guess?

See how it works with the new version.

wild

ShilzE01 commented 7 years ago

Worked like a charm! Thank you! Keep up the great work! ... One last error: image boss7_body_lz7.zip

scurest commented 7 years ago

That's not an NSBMD file :) It's been compressed with LZ77. You're extremely lucky though: the extract command has rudimentary support for decompressing the DS's LZ77 files, which is enough for this case.

$ ls
boss7_body_lz7.nsbmd  boss7.nsbca
$ apicula extract boss7_body_lz7.nsbmd -o tmp
Found 1 BMD.
Found 0 BTXs.
Found 0 BCAs.
$ mv tmp/* .
$ rmdir tmp
$ apicula convert boss7_body_00.nsbmd boss7.nsbca -o export
ShilzE01 commented 7 years ago

Ah. That makes sense. Anyways, that should be about it for now.

Yarcaz commented 7 years ago

Scurest, Hi & Hello. I am someone who Knows ShilzE01 and I am someone who has ripped from Sonic Adventure Rush before, in fact I have ripped every single model possible with MKDS, besides the ones that have errors. Shilz I see was able to chat with you to find a solution to some things but there are still some models from that game that I cannot seem to get and only recieve an error. I know that no matter what tools I have been using, whether it be NSMB editor, NSBMD Tools, Console Tools, MKDS Editor, Dirbaio, Tinke, or your program Apicula I have not been able to find a solution to getting the models from the specific few .nsbmd files from Sonic Rush adventure or Sonic Colors.

If you are ok with me asking... Can I post 2 links that lead to a download of the models that I could not rip from those games (Sonic Rush Adventure and Sonic Colors [DS]) here and see if you can find out why these certain models will not be ripped? (Sorry if this seems out of the blue.)

I will remove the links if that is not ok with you. Sonic Rush Adventure Models With Errors https://sta.sh/017927s6718k Sonic Colors Models With Errors https://sta.sh/0qandr1j1v9

[The text files labeled "SonicAdventureModelsWithErrors_V1" & "SonicColorsModelsWithErrors_V1" list all the files that I have been having difficulty with, I included some related models [By that I mean I have what I already ripped there for showing what I have already done, and any leftover .nsbmd files contain at least 1 model that is giving me difficulty] that didn't have any errors just in case for comparison, but with-in the folders of each file if you see text files labaled "README" or "WARNING" then you know you are on the right path/found the right file, and in each of these many "README" and "WARNING" Text Files is a copy and past of the error messages that I got when I tried to obtain/rip the models. I hope this helps explain/show/narrow down to what I need/am asking help with/for.]

Sorry for the wall of Text

scurest commented 7 years ago

Hi Yarcaz.

The ones in the README text file based errors/root/mod directories (that you got SHADOW errors for?) look okay. The models with the error might be missing textures.

Sonic Rush Adventure Models With Errors/WARNING text file based errors/root/mod/bossF* doesn't work because the object section is missing, or is placed somewhere unusual. I can't find it in a hex editor. One thing you can try here is to play the game in Desmume until this model is onscreen, pause the game, take a memory dump, and then try running the memory dump through the extract command and see if you get anything out.

I don't have anything to extract NARC files right now, so I didn't check those.