ROM Hack Tinke 0.7.2

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
Hi!, I have learnt a lot of from this forum and now I would like to contribute showing you my last program: Tinke

It is a program to see, convert, and edit the files of NDS games, very similar to other utilities like Tahaxan and Crystal Tile 2. You can see a lot of format files like images, text, sounds, fonts and textures. Furthermore it works with plugins made in .NET Framework languages (C# and VB.NET) so it's so easy to support new formats.

The program is written in C# with .NET Framework 3.5, so you need to have installed it in order to run the program, is compatible also with Mono 2.10. All the code is Open Source and you can check it at the project web page.

Features
  • Show the ROM header with the banner and edit it.
  • Show and convert to common format a lot of files
  • Chage images from BMP files (NCLR, NCGR, NSCR, NCER), audio from WAV (SWAV, SWAR, STRM) and fonts (NFTR)
  • Hexadecimal editor
  • Change the content of files and save the new ROM
Supported formats
  • Images
    • NCLR, NCGR, NSCR, NCER, NANR
    • CHAR, CHR, PLT, NBFS, NBFP, NBFC, NBGR, NTFT, NTFP, RAW, MAP, PAL
    • PNG, JPG, TGA (with RLE compression)
  • Textures
    • BTX0 (NSBTX)
    • BMD0 (NSBMD)
  • Text
    • SADL, XSADL, SARC, SBDL, SMAP.
    • BMG
    • TXT, XML, INI, H, BAT, C, MAKEFILE, LUA, CSV, BUILDTIME
  • Sound
    • SDAT, SWAV, SWAR, STRM,
    • SADL, ADX
    • WAV
  • Font
    • NFTR
  • Compression
    • Thanks to DSDecmp library (credits to barubary)
    • Huffman (id = 0x20)
    • LZ10 (id = 0x10)
    • LZ11 (id = 0x11)
    • RLE (id = 0x30)
  • Pack
    • NARC (Pokemon files too)
    • Utility.bin
Specific support
  • 999, nine hours nine persons nine doors (BSKE)
  • Itsu Demo Doko Demo Dekiru Igo (AIIJ)
  • Blood of Bahamut (CYJJ)
  • Dragon Ball Kai Ultimate Butouden (TDBJ)
  • Ace Attorney Investigation Miles Edgeworth (C32P, C32J)
  • Gyakuten Kenji 2 (BXOJ)
  • Kirby Squeak Squad (AKWE)
  • Last Window The secrete of Cape West (YLUP)
  • El profesor Layton y la Villa Misteriosa (A5FE, A5FP)
  • El profesor Layton y la Caja de Pandora (YLTS)
  • Maple Story DS (YMPK)
  • Ninokuni Shikkoku no Madoushi (B2KJ)
  • Rune Factory 3 (BRFE, BRFJ)
  • The world end with you (AWLJ)
  • Tetris DS (YLUP)
  • Tokimeki Memorial Girl's Side 3rd Story (B3SJ)
Tinke web page


Download page

TODO list. If you don't see your request or want a new just reply to this post:
Images
  • Change OAM data (NCER)
  • Add and remove cells in NCER
  • Support NCOB (cell)
  • Support NMAR
  • Support NMCR
  • Select number of palette to use viewing images.
  • Save preferences of the control.
  • Compress images with NSCR
Sound
  • Support ADX
  • Support ADH
  • Show record GROUP
  • Change section INFO of SDAT
  • Add and remove files to the SDAT
  • Support SBNK
  • Convert SBNK to DLS
  • Support SSEQ
  • Convert SSEQ to MIDI
  • Import MIDI to SSEQ
  • Support SSAR
  • Support encoding PROCYON
  • Support SWDL
Font (NFTR)
  • Change font size
  • Convert to TTF
  • Import TTF
  • Export to image
  • Import image
  • Create PAMC section in order
  • Strange HDWC section in some fonts
Models
  • Support BTP0
  • Show BMD0 models
  • Import textures (BTX0 and BMD0)
  • Support BCA0
  • Support SPA
Games
  • Commando steel disaster graphics
  • Advance Wars Days of Ruin graphics
  • 999 (fix problems with some bg images)
  • GTA unpack file
  • Naruto Shippuden Shinobi Rumble (images)
  • Naruto Rush Cha (images)
  • Sora no Otoshimono Forte Dreamy Season (images)
  • DragonBall Ultimate Kai, pack file
  • MapleStory DS, pack file
  • Gyakuten Kenji 2, pack files
  • Inazuma 11, pack files and images
  • Kirby Super Star Ultra
Other file formats
  • Support AAR (pack)
  • Support PCX (images)
  • Support OGG (sound)
  • Support LUAQ (script)
  • Banner files *.bnr
  • Support SRL (text container)
  • Support AB and WB (pack) in Pokemon B/W
  • Pack Utility.bin
Interface and more
  • Custom table in hexadecimal editor
  • Call to plugins
  • Search files by header (first 4 bytes)
  • Custom table in TXT plugin
  • Overlay compression
  • ARM9 compression
  • Change Overlays and ARM9
  • Assembler
  • Docs... :lol:

FAQ:
  • Problem 1: "You can't run Tinke with NET 4.0 and can't install NET 3.5"
    Here is error signature of Tinke when i open it
    Code:
    EventType : clr20r3     P1 : tinke.exe     P2 : 0.8.2.0     P3 : 4eb5c215    
    P4 : tinke     P5 : 0.8.2.0     P6 : 4eb5c215     P7 : 1f2     P8 : 96
    P9 : system.io.filenotfoundexception

    If you can't install .NET 3.5 but have 4.0 installed, you can try to run it using 4.0...

    Create a file exactly with the same name like the exe, but append .config:
    tinke.exe.config

    Inside file put:

    Code:

    This will try to run the software using .NET 4.0

I wait your comment to make it better ;)
(Screenshoot in the web page)
Tinke0.7.2.PNG
 
Last edited by pleonex, , Reason: GitHub repo

rastsan

8 baller, Death Wizard,
Member
Joined
May 28, 2008
Messages
1,002
Trophies
1
Location
toronto
Website
rastsan.wordpress.com
XP
413
Country
Canada
I have been using it to help with the graphics in digimon story lost evolution. Unlike console tool it can dump the graphics it finds.

very useful for files that have no direct names but need to be chained to be viewed right. (They just have to be renamed first).

I for one am thankful.

So, thankyou.


Can this edit the sound files?
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
Thank you very much for sharing the tool.
wub.gif


I'll try it and will give you feedback later. Thank you very much.
 

andibad

Soon™
Member
Joined
Sep 14, 2009
Messages
701
Trophies
0
Location
hospital
XP
247
Country
Indonesia
I was complied this tools from source code on google code (tinke project), you new build is r68? ow is fast :v i was complied r62, now is r68 (2 hours ago ...)

anyway you tools is usefull and i think since r62 is really stable for public i think.
 

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
thank you for all yours feedbacks,

QUOTE said:
Can this edit the sound files?
By the moment, it can not edit any sound file, but it is not very difficult to implement (except for SSEQ files that aren't support now) so it could be a good feature. To create new STRM and SWAV files is very easy, but create a SDAT file is a little bit more complex and take more time.

QUOTEbut where's the changelog?
The changelog is at the download page and there is a copy in the program folder also.
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
@pleonex. The tool is very nice.

Would it be possible to make the program open a .narc file directly instead of a .nds file? There are some games that have graphic files packed in non-standard format (ex. .bin, .arc, etc.), and they're not recognized by the program. However, if I unpack them and re-pack them as a .narc file, I can edit them with CT2. If your program can also handle a .narc file, that would be great.
happy.gif
 

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
jjjewel said:
Would it be possible to make the program open a .narc file directly instead of a .nds file? There are some games that have graphic files packed in non-standard format (ex. .bin, .arc, etc.), and they're not recognized by the program. However, if I unpack them and re-pack them as a .narc file, I can edit them with CT2. If your program can also handle a .narc file, that would be great.
happy.gif

Ok, I can try to implement the possibility to open different files without pack them in a .nds file.
Can you tell me a game where these .narc files are?
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
@pleonex.

The .narc files aren't in the game. But for Love Plus game, the graphics are packed in .bin files which aren't recognized by any tools. So, I have to extract them as individual files first and then repack them as a .narc file when I need to edit the graphics.

Here's an example of some graphic files from Love Plus packed together as a .narc file.

http://www.mediafire.com/file/e62738vg1ovk...electedOri.narc

Thank you very much.
 

rastsan

8 baller, Death Wizard,
Member
Joined
May 28, 2008
Messages
1,002
Trophies
1
Location
toronto
Website
rastsan.wordpress.com
XP
413
Country
Canada
you probably are aware of it already but take a look at the file format docs kept by lowlines.
lowlines webpage

That is also where the aforementioned console tool is. They keep the docs updated.
If you already knew about it, sorry.
I want to second the .strm.

thanks again.
 

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
jjjewel said:
Would it be possible to make the program open a .narc file directly instead of a .nds file? There are some games that have graphic files packed in non-standard format (ex. .bin, .arc, etc.), and they're not recognized by the program. However, if I unpack them and re-pack them as a .narc file, I can edit them with CT2. If your program can also handle a .narc file, that would be great.
happy.gif

Already done, you can download this rev from here
Tinke rev69


QUOTE(rastsan @ Aug 2 2011, 12:25 AM) you probably are aware of it already but take a look at the file format docs kept by lowlines.
lowlines webpage
yeah, I know the program and the docs, don't worry any help is good
happy.gif
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
pleonex said:
jjjewel said:
Would it be possible to make the program open a .narc file directly instead of a .nds file? There are some games that have graphic files packed in non-standard format (ex. .bin, .arc, etc.), and they're not recognized by the program. However, if I unpack them and re-pack them as a .narc file, I can edit them with CT2. If your program can also handle a .narc file, that would be great.
happy.gif
Already done, you can download this rev from here
Tinke rev69

It worked. Thank you very much.
wub.gif
 

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
I want to improved the Text plugin by adding a button to choose a custom table for the text file opened, but in order to do it and test it I need to know a game where it happens.
Does anyone know a game with custom tables? (I haven't seen any game for NDS with this yet, but I know that in SNES game it happens...)
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
pleonex said:
I want to improved the Text plugin by adding a button to choose a custom table for the text file opened, but in order to do it and test it I need to know a game where it happens.
Does anyone know a game with custom tables? (I haven't seen any game for NDS with this yet, but I know that in SNES game it happens...)

I'm not sure how custom you need for this function but AAI2 (Ace attorney investigation/ Gyakuten Kenji 2) used custom table.
http://gbatemp.net/index.php?showtopic=289148

There's also my old thread here.
http://gbatemp.net/index.php?showtopic=233385
(But in the end, we still didn't complete the table for the games. T_T)

And some are listed here;
https://sites.google.com/site/otomegameguide/otome-database
(Check the encoding table. But the custom encoding in these games mostly have custom compressions as well.)
 

rastsan

8 baller, Death Wizard,
Member
Joined
May 28, 2008
Messages
1,002
Trophies
1
Location
toronto
Website
rastsan.wordpress.com
XP
413
Country
Canada
looks like this could use a how to write plugins.
nftr rftn support
the option to open file as narc.
dragon sentinels of the starry skies have narc files without the file ending. that are showing up as images...
 

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
Well, good news (I think
rolleyes.gif
)

Here is another revision, with the following feature:

*** Change NCLR, NCGR and NSCR with BMP files,
*** Header and banner editor
*** WAV to STRM converter
*** Save modified SDAT files
* New methods and functions in IPluginHost interface
* Added new file format in "Open As..." -> Extract FAT (files with offsets at the beggining) in alpha stage
* Added new file format in "Open As..." -> Text
* Fixed problem saving roms without arm9 overlay
* Improved french translation (by Vix33)
* Fixed problem with the priority in NCER files.
* Fixed minor problems, specially with NCER files.

Download here: rev76

To use the wav to strm function follow this step:
1- Open a SDAT file, with the View button
2- Select the STRM file to change
3- Click on the Import button and select the WAV file
4- Click on the Save SDAT button
5- Click in the main window in the Save ROM button
 

pleonex

Well-Known Member
OP
Member
Joined
Jan 16, 2009
Messages
203
Trophies
1
Location
Spain & Switzerland
Website
github.com
XP
522
Country
Switzerland
rastsan said:
does this mean it will remake the map file? (nscr)

Yes, it does: If you are viewing a map file and you click on the Import button, the program will change the content of the map file by a basic map file in order to open the new imported image.

PD: the download is also in the proyect page -> http://code.google.com/p/tinke/downloads/list
 

Site & Scene News

Popular threads in this forum

Recent Content

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Sorry for accidentally bending over