Register - Login
Views: 99380636
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-23-22 11:33:52 PM
Jul - General Game/ROM Hacking - nsbmd/nsbtx/nsbca format documentation? New poll - New thread - New reply
Next newer thread | Next older thread
origamiguy
User
Level: 11


Posts: 18/18
EXP: 5150
For next: 835

Since: 11-08-09


Since last post: 11.4 years
Last activity: 52 days

Posted on 12-12-10 06:15:31 PM (last edited by origamiguy at 12-12-10 04:59 PM) Link | Quote
Okay, so I've been working recently on an NDS hacking library called LibNitrous. You can get the current version of it at the GitHub repository. So far it can read NCLR, NCGR, and NSCR files. In future I intend for it to be able to write files, support many more formats, and (hopefully, eventually) be able to package a playable ROM back together.

I know Treeki's NitroExplorer is open-source, and I would like to use of that code in this library, as long as Treeki is okay with that.
I don't know if his NARCExplorer is also open-source; but if it is, I'd like to use code from that also.

I've been looking around for documentation on the three NDS 3D object formats:
.nsbmd, .nsbtx and .nsbca.
I know that .nsbmd is the model, .nsbtx is texture data, and .nsbca is animation information, but I haven't been able to find any documentation of the actual file formats.

Is anyone able to point me in the direction of some good documentation?

____________________
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN


Posts: 995/-1288
EXP: NaN
For next: 0

Since: 07-28-09

From: Spain

Since last post: 10.8 years
Last activity: 9.9 years

Posted on 12-13-10 03:20:50 PM (last edited by dirbaio at 12-13-10 12:25 PM) Link | Quote
NSMB Editor 5 has limited support for NSBTX files. Right now it should be able to import/export textures.

http://code.google.com/p/nsmb-editor/source/browse/trunk/NSMBe4/NSBMD/NSBTX.cs?r=133

Keep in mind that NSMBe5 is GPL'd so if you use it you have to give credit and all that stuff

also, an incomplete spec of NSBMD: kiwi.ds.googlepages.com/nsbmd.html

EDIT: Also, I recall seeing a tool named NSBMD Viewer which managed to display some NSBMD models, complete, and with textures. It was at the tahaxan forum, but I can't find it. The tahaxan forums (and website) seem to have vanished. It was open sourced, but the code was *very* messy. I used it to figure out most of the texture stuff.
Vinnyboiler
Catgirl
Level: 66


Posts: 605/1044
EXP: 2439781
For next: 22070

Since: 12-27-07

From: London, England

Since last post: 7 days
Last activity: 3 days

Posted on 12-19-10 07:26:32 AM Link | Quote
Originally posted by dirbaio
NSMB Editor 5 has limited support for NSBTX files. Right now it should be able to import/export textures.

http://code.google.com/p/nsmb-editor/source/browse/trunk/NSMBe4/NSBMD/NSBTX.cs?r=133

Keep in mind that NSMBe5 is GPL'd so if you use it you have to give credit and all that stuff

also, an incomplete spec of NSBMD: kiwi.ds.googlepages.com/nsbmd.html

EDIT: Also, I recall seeing a tool named NSBMD Viewer which managed to display some NSBMD models, complete, and with textures. It was at the tahaxan forum, but I can't find it. The tahaxan forums (and website) seem to have vanished. It was open sourced, but the code was *very* messy. I used it to figure out most of the texture stuff.

Do you mean this file

____________________
Follow my SM64 hack here Alternate Reality Mario 64 because I say so
:Also click here for easy to understand SM64 tutorials, For those who wants to learn:
Ninji

Birdo
Why did my user title say I'm a toaster anyway
Level: 88


Posts: 1818/2014
EXP: 6632842
For next: 17822

Since: 07-26-07

Pronouns: he/him or they/them
From: Glasgow, Scotland

Since last post: 104 days
Last activity: 17 days

Posted on 12-19-10 09:28:11 AM Link | Quote
You can use my code from NE if you want, although it's kinda crappy (I wrote the original version in VB6 when I was 12, and then converted it to C# later)

As Dirbaio mentioned, there's lots of stuff in the NSMB Editor which works on any DS game (mostly written by him -- the original editor was mine, but he has done a ton of refactoring and improvement on it over the past year) so feel free to use that.

I'll PM you something that you may find useful, as well.

____________________
Jul · The Left Mouse Button · RVLution.net
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN


Posts: 1001/-1288
EXP: NaN
For next: 0

Since: 07-28-09

From: Spain

Since last post: 10.8 years
Last activity: 9.9 years

Posted on 12-19-10 09:54:51 AM Link | Quote
Originally posted by YB

Do you mean this file


Oh, yeah. That one.
Thanks a lot
Next newer thread | Next older thread
Jul - General Game/ROM Hacking - nsbmd/nsbtx/nsbca format documentation? New poll - New thread - New reply


Rusted Logic

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

28 database queries.
Query execution time:  0.259192 seconds
Script execution time:  0.026557 seconds
Total render time:  0.285749 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 212 - 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 179 column 330 - Warning: missing </b> before <div>
line 188 column 1436 - Warning: inserting implicit <b>
line 179 column 74 - Warning: missing </div>
line 191 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 193 column 9 - Warning: missing <tr>
line 211 column 13 - Warning: missing <tr>
line 212 column 102 - Warning: unescaped & or unknown entity "&postid"
line 225 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 227 column 9 - Warning: missing <tr>
line 245 column 13 - Warning: missing <tr>
line 246 column 102 - Warning: unescaped & or unknown entity "&postid"
line 257 column 1138 - Warning: unescaped & or unknown entity "&st"
line 257 column 1144 - Warning: unescaped & or unknown entity "&#"
line 261 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 263 column 9 - Warning: missing <tr>
line 281 column 13 - Warning: missing <tr>
line 282 column 102 - Warning: unescaped & or unknown entity "&postid"
line 284 column 74 - Warning: <link> isn't allowed in <td> elements
line 284 column 9 - Info: <td> previously mentioned
line 291 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 293 column 9 - Warning: missing <tr>
line 311 column 13 - Warning: missing <tr>
line 312 column 102 - Warning: unescaped & or unknown entity "&postid"
line 321 column 17 - Warning: missing <tr>
line 321 column 17 - Warning: discarding unexpected <table>
line 324 column 35 - Warning: missing <tr>
line 324 column 50 - Warning: missing </font> before </td>
line 324 column 91 - Warning: missing </font> before </table>
line 326 column 35 - Warning: missing <tr>
line 326 column 50 - Warning: missing </font> before </td>
line 327 column 37 - Warning: unescaped & or unknown entity "&id"
line 326 column 212 - Warning: missing </font> before </table>
line 328 column 17 - Warning: discarding unexpected </textarea>
line 328 column 28 - Warning: discarding unexpected </form>
line 328 column 35 - Warning: discarding unexpected </embed>
line 328 column 43 - Warning: discarding unexpected </noembed>
line 328 column 53 - Warning: discarding unexpected </noscript>
line 328 column 64 - Warning: discarding unexpected </noembed>
line 328 column 74 - Warning: discarding unexpected </embed>
line 328 column 82 - Warning: discarding unexpected </table>
line 328 column 90 - Warning: discarding unexpected </table>
line 330 column 9 - Warning: missing </font> before <table>
line 342 column 25 - Warning: discarding unexpected </font>
line 351 column 37 - Warning: discarding unexpected </font>
line 329 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 188 column 1471 - Warning: <img> lacks "alt" attribute
line 196 column 23 - Warning: <img> lacks "alt" attribute
line 196 column 64 - Warning: <img> lacks "alt" attribute
line 207 column 15 - Warning: <img> lacks "alt" attribute
line 218 column 373 - Warning: <img> proprietary attribute value "absmiddle"
line 218 column 373 - Warning: <img> lacks "alt" attribute
line 230 column 22 - Warning: <img> lacks "alt" attribute
line 230 column 63 - Warning: <img> lacks "alt" attribute
line 230 column 112 - Warning: <img> lacks "alt" attribute
line 230 column 162 - Warning: <img> lacks "alt" attribute
line 231 column 11 - Warning: <img> lacks "alt" attribute
line 241 column 15 - Warning: <img> lacks "alt" attribute
line 252 column 449 - Warning: <img> proprietary attribute value "absmiddle"
line 252 column 449 - Warning: <img> lacks "alt" attribute
line 257 column 1199 - Warning: <img> proprietary attribute value "absmiddle"
line 257 column 1199 - Warning: <img> lacks "alt" attribute
line 265 column 11 - Warning: <img> lacks "alt" attribute
line 266 column 22 - Warning: <img> lacks "alt" attribute
line 266 column 63 - Warning: <img> lacks "alt" attribute
line 266 column 112 - Warning: <img> lacks "alt" attribute
line 266 column 161 - Warning: <img> lacks "alt" attribute
line 267 column 11 - Warning: <img> lacks "alt" attribute
line 277 column 15 - Warning: <img> lacks "alt" attribute
line 284 column 326 - Warning: <img> proprietary attribute value "absmiddle"
line 284 column 326 - Warning: <img> lacks "alt" attribute
line 288 column 1010 - Warning: <img> lacks "alt" attribute
line 296 column 23 - Warning: <img> lacks "alt" attribute
line 296 column 64 - Warning: <img> lacks "alt" attribute
line 307 column 15 - Warning: <img> lacks "alt" attribute
line 318 column 280 - Warning: <img> proprietary attribute value "absmiddle"
line 318 column 280 - Warning: <img> lacks "alt" attribute
line 327 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 327 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 327 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 336 column 25 - Warning: <img> lacks "alt" attribute
line 341 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 321 column 17 - Warning: trimming empty <tr>
line 324 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 212 column 27 - Warning: <nobr> is not approved by W3C
line 246 column 27 - Warning: <nobr> is not approved by W3C
line 282 column 27 - Warning: <nobr> is not approved by W3C
line 312 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 122 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