Register - Login
Views: 99398161
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-24-22 02:50:10 PM
Jul - General Game/ROM Hacking - SM64DS Texture Hacking New poll - New thread - New reply
Next newer thread | Next older thread
Ratchetfan19
Member
Level: 18


Posts: 43/50
EXP: 25663
For next: 4234

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.6 years

Posted on 04-30-13 01:18:50 PM (last edited by Ratchetfan19 at 04-30-13 01:21:30 PM) Link | Quote
Yes, I'm actually hacking away at this game. Been messing around with the bmd files and palettes and such, here's what I have so far. Working with castle_tree.bmd, found the palette at the end of the file. I exported from the first 15 bit BGR pixel to the end of the palette with a hex editor, determining the starting pixel with Tinke. The resulting file was too big at 544 bytes so I trimmed off the last 32 bytes to bring it down to the standard 512 byte size. Then I converted it to RIFF format using ImPalEd.

I opened the bmd file in Tile Molester alternate and imported the palette. I seem to be close, but the colors are incorrect. Using the really old clock tower map example I got that to work considering the palette was a seperate file, but am having no luck here. Are my TM settings at the bottom correct?


Arisotura
Member
Level: 49


Posts: 25/614
EXP: 880036
For next: 3847

Since: 02-24-13

From: your dreams

Since last post: 93 days
Last activity: 51 days

Posted on 04-30-13 01:28:16 PM Link | Quote
In DS models, all the textures that aren't translucent are compressed in a DS-specific format, so all you'll see in TM is garbage.

The model format SM64DS uses has already been documented here.

We also have more documentation there. And for DS-specific stuff, GBAtek will save you.


Have fun!

____________________
Ratchetfan19
Member
Level: 18


Posts: 44/50
EXP: 25663
For next: 4234

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.6 years

Posted on 04-30-13 02:06:29 PM (last edited by Ratchetfan19 at 04-30-13 02:08:10 PM) Link | Quote
Thanks for the links MM and everything you have contributed to this game! I just downloaded the latest build of SM64DSe, it's really coming along nicely even after you abandoned the project.

Considering the map tiles are uncompressed I assumed all textures were uncompressed given the fact that I can sort of make out the tree shape in TM. I'm not a programmer, script kiddie at best. I suggested the addition of a texture editor to SM64DSe but not optimistic on that ever happening. Swapping textures from bitmaps/jpegs/pngs would be ideal though. Are there currently any tools I can use to edit DS bmd textures?
Arisotura
Member
Level: 49


Posts: 26/614
EXP: 880036
For next: 3847

Since: 02-24-13

From: your dreams

Since last post: 93 days
Last activity: 51 days

Posted on 04-30-13 02:12:35 PM Link | Quote
No, but there's a solution. You can export the model whose textures you want to edit, that'll give you a Wavefront OBJ model with the textures in PNG files. You then edit those files and reimport the model.

____________________
Ratchetfan19
Member
Level: 18


Posts: 45/50
EXP: 25663
For next: 4234

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.6 years

Posted on 04-30-13 02:20:30 PM Link | Quote
Which program would I use to export it this way?
Arisotura
Member
Level: 49


Posts: 27/614
EXP: 880036
For next: 3847

Since: 02-24-13

From: your dreams

Since last post: 93 days
Last activity: 51 days

Posted on 04-30-13 02:21:24 PM Link | Quote
SM64DSe itself. I don't know the details of how that feature works, though, as most of the new stuff is being coded by Fiachra.

____________________
Ratchetfan19
Member
Level: 18


Posts: 46/50
EXP: 25663
For next: 4234

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.6 years

Posted on 04-30-13 04:06:15 PM (last edited by Ratchetfan19 at 04-30-13 04:07:26 PM) Link | Quote
The in-game model importer is still pretty broken, and when I loaded an object model back in it complained about missing collision data, etc. Then when I loaded the game the graphics were horribly broken, but the modified texture was imported successfully. Perhaps I can suggest using the existing code to just import textures and not models, if that's possible given pretty much everything is in bmd format.

I also tried GLIntercept but it only works one way, and creates duplicate dumps of everything each time the emulator is run. It's not like Rice's plugin for Project64 which both dumps and loads textures from an external directory. Wish there was something like that for DeSmuME.
Arisotura
Member
Level: 49


Posts: 28/614
EXP: 880036
For next: 3847

Since: 02-24-13

From: your dreams

Since last post: 93 days
Last activity: 51 days

Posted on 04-30-13 04:21:14 PM Link | Quote
Thanks for the input! I'm going to link Fiachra to this thread. We'll let you know when a good solution is found.

____________________
Ratchetfan19
Member
Level: 18


Posts: 47/50
EXP: 25663
For next: 4234

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.6 years

Posted on 04-30-13 05:24:00 PM Link | Quote
Thanks for mentioning it to him, the model importer seems to have been neglected lately due to its complexity but seems like the texture editor works.
Ratchetfan19
Member
Level: 18


Posts: 48/50
EXP: 25663
For next: 4234

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.6 years

Posted on 05-02-13 05:22:05 PM (last edited by Ratchetfan19 at 05-02-13 11:21:10 PM) Link | Quote
By the way, changing the models assigned to an object would be helpful too if you want to screw around. I've been doing this by simply replacing bmd files. I wonder what would happen if I swapped the bca files as well...
Next newer thread | Next older thread
Jul - General Game/ROM Hacking - SM64DS Texture Hacking New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

27 database queries, 8 query cache hits.
Query execution time:  0.078929 seconds
Script execution time:  0.013416 seconds
Total render time:  0.092345 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 195 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 91 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 177 column 102 - Warning: unescaped & or unknown entity "&postid"
line 187 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 189 column 9 - Warning: missing <tr>
line 207 column 13 - Warning: missing <tr>
line 208 column 102 - Warning: unescaped & or unknown entity "&postid"
line 210 column 74 - Warning: <style> isn't allowed in <td> elements
line 210 column 9 - Info: <td> previously mentioned
line 214 column 788 - Warning: unescaped & or unknown entity "&id"
line 220 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 222 column 9 - Warning: missing <tr>
line 240 column 13 - Warning: missing <tr>
line 241 column 102 - Warning: unescaped & or unknown entity "&postid"
line 248 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 250 column 9 - Warning: missing <tr>
line 268 column 13 - Warning: missing <tr>
line 269 column 102 - Warning: unescaped & or unknown entity "&postid"
line 271 column 74 - Warning: <style> isn't allowed in <td> elements
line 271 column 9 - Info: <td> previously mentioned
line 274 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 276 column 9 - Warning: missing <tr>
line 294 column 13 - Warning: missing <tr>
line 295 column 102 - Warning: unescaped & or unknown entity "&postid"
line 300 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 302 column 9 - Warning: missing <tr>
line 320 column 13 - Warning: missing <tr>
line 321 column 102 - Warning: unescaped & or unknown entity "&postid"
line 323 column 74 - Warning: <style> isn't allowed in <td> elements
line 323 column 9 - Info: <td> previously mentioned
line 326 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 328 column 9 - Warning: missing <tr>
line 346 column 13 - Warning: missing <tr>
line 347 column 102 - Warning: unescaped & or unknown entity "&postid"
line 354 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 356 column 9 - Warning: missing <tr>
line 374 column 13 - Warning: missing <tr>
line 375 column 102 - Warning: unescaped & or unknown entity "&postid"
line 377 column 74 - Warning: <style> isn't allowed in <td> elements
line 377 column 9 - Info: <td> previously mentioned
line 380 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 382 column 9 - Warning: missing <tr>
line 400 column 13 - Warning: missing <tr>
line 401 column 102 - Warning: unescaped & or unknown entity "&postid"
line 406 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 408 column 9 - Warning: missing <tr>
line 426 column 13 - Warning: missing <tr>
line 427 column 102 - Warning: unescaped & or unknown entity "&postid"
line 432 column 17 - Warning: missing <tr>
line 432 column 17 - Warning: discarding unexpected <table>
line 435 column 35 - Warning: missing <tr>
line 435 column 50 - Warning: missing </font> before </td>
line 435 column 91 - Warning: missing </font> before </table>
line 437 column 35 - Warning: missing <tr>
line 437 column 50 - Warning: missing </font> before </td>
line 438 column 37 - Warning: unescaped & or unknown entity "&id"
line 437 column 195 - Warning: missing </font> before </table>
line 439 column 17 - Warning: discarding unexpected </textarea>
line 439 column 28 - Warning: discarding unexpected </form>
line 439 column 35 - Warning: discarding unexpected </embed>
line 439 column 43 - Warning: discarding unexpected </noembed>
line 439 column 53 - Warning: discarding unexpected </noscript>
line 439 column 64 - Warning: discarding unexpected </noembed>
line 439 column 74 - Warning: discarding unexpected </embed>
line 439 column 82 - Warning: discarding unexpected </table>
line 439 column 90 - Warning: discarding unexpected </table>
line 441 column 9 - Warning: missing </font> before <table>
line 453 column 25 - Warning: discarding unexpected </font>
line 462 column 57 - Warning: discarding unexpected </font>
line 440 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 161 column 22 - Warning: <img> lacks "alt" attribute
line 161 column 63 - Warning: <img> lacks "alt" attribute
line 161 column 112 - Warning: <img> lacks "alt" attribute
line 161 column 162 - Warning: <img> lacks "alt" attribute
line 162 column 11 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 176 column 91 - Warning: <font> attribute "color" had invalid value "7C60B0" and has been replaced
line 183 column 906 - Warning: <img> lacks "alt" attribute
line 192 column 22 - Warning: <img> lacks "alt" attribute
line 192 column 63 - Warning: <img> lacks "alt" attribute
line 192 column 112 - Warning: <img> lacks "alt" attribute
line 192 column 161 - Warning: <img> lacks "alt" attribute
line 193 column 11 - Warning: <img> lacks "alt" attribute
line 203 column 15 - Warning: <img> lacks "alt" attribute
line 217 column 928 - Warning: <img> proprietary attribute value "absmiddle"
line 217 column 928 - Warning: <img> lacks "alt" attribute
line 225 column 22 - Warning: <img> lacks "alt" attribute
line 225 column 63 - Warning: <img> lacks "alt" attribute
line 225 column 112 - Warning: <img> lacks "alt" attribute
line 225 column 162 - Warning: <img> lacks "alt" attribute
line 226 column 11 - Warning: <img> lacks "alt" attribute
line 236 column 15 - Warning: <img> lacks "alt" attribute
line 240 column 91 - Warning: <font> attribute "color" had invalid value "7C60B0" and has been replaced
line 253 column 22 - Warning: <img> lacks "alt" attribute
line 253 column 63 - Warning: <img> lacks "alt" attribute
line 253 column 112 - Warning: <img> lacks "alt" attribute
line 253 column 161 - Warning: <img> lacks "alt" attribute
line 254 column 11 - Warning: <img> lacks "alt" attribute
line 264 column 15 - Warning: <img> lacks "alt" attribute
line 279 column 22 - Warning: <img> lacks "alt" attribute
line 279 column 63 - Warning: <img> lacks "alt" attribute
line 279 column 112 - Warning: <img> lacks "alt" attribute
line 279 column 162 - Warning: <img> lacks "alt" attribute
line 280 column 11 - Warning: <img> lacks "alt" attribute
line 290 column 15 - Warning: <img> lacks "alt" attribute
line 305 column 22 - Warning: <img> lacks "alt" attribute
line 305 column 63 - Warning: <img> lacks "alt" attribute
line 305 column 112 - Warning: <img> lacks "alt" attribute
line 305 column 161 - Warning: <img> lacks "alt" attribute
line 306 column 11 - Warning: <img> lacks "alt" attribute
line 316 column 15 - Warning: <img> lacks "alt" attribute
line 331 column 22 - Warning: <img> lacks "alt" attribute
line 331 column 63 - Warning: <img> lacks "alt" attribute
line 331 column 112 - Warning: <img> lacks "alt" attribute
line 331 column 162 - Warning: <img> lacks "alt" attribute
line 332 column 11 - Warning: <img> lacks "alt" attribute
line 342 column 15 - Warning: <img> lacks "alt" attribute
line 346 column 91 - Warning: <font> attribute "color" had invalid value "7C60B0" and has been replaced
line 359 column 22 - Warning: <img> lacks "alt" attribute
line 359 column 63 - Warning: <img> lacks "alt" attribute
line 359 column 112 - Warning: <img> lacks "alt" attribute
line 359 column 161 - Warning: <img> lacks "alt" attribute
line 360 column 11 - Warning: <img> lacks "alt" attribute
line 370 column 15 - Warning: <img> lacks "alt" attribute
line 385 column 22 - Warning: <img> lacks "alt" attribute
line 385 column 63 - Warning: <img> lacks "alt" attribute
line 385 column 112 - Warning: <img> lacks "alt" attribute
line 385 column 162 - Warning: <img> lacks "alt" attribute
line 386 column 11 - Warning: <img> lacks "alt" attribute
line 396 column 15 - Warning: <img> lacks "alt" attribute
line 411 column 22 - Warning: <img> lacks "alt" attribute
line 411 column 63 - Warning: <img> lacks "alt" attribute
line 411 column 112 - Warning: <img> lacks "alt" attribute
line 411 column 162 - Warning: <img> lacks "alt" attribute
line 412 column 11 - Warning: <img> lacks "alt" attribute
line 422 column 15 - Warning: <img> lacks "alt" attribute
line 426 column 91 - Warning: <font> attribute "color" had invalid value "7C60B0" and has been replaced
line 438 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 438 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 438 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 447 column 25 - Warning: <img> lacks "alt" attribute
line 452 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 432 column 17 - Warning: trimming empty <tr>
line 435 column 50 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 208 column 27 - Warning: <nobr> is not approved by W3C
line 241 column 27 - Warning: <nobr> is not approved by W3C
line 269 column 27 - Warning: <nobr> is not approved by W3C
line 295 column 27 - Warning: <nobr> is not approved by W3C
line 321 column 27 - Warning: <nobr> is not approved by W3C
line 347 column 27 - Warning: <nobr> is not approved by W3C
line 375 column 27 - Warning: <nobr> is not approved by W3C
line 401 column 27 - Warning: <nobr> is not approved by W3C
line 427 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 176 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md