1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>makebanner</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9<STYLE type="text/css"> 10<!-- 11.sample_source{ 12 background-color : #e8e8e8; 13} 14H3{ 15 color : teal; 16} 17.command_list{ 18 margin-bottom : 16pt; 19} 20.command_desc{ 21 } 22.command_item{ 23 margin-top : 16pt; 24 background-color : #e8e8e8; 25} 26.blockquoted_table { 27 border : 1px; 28 width : 80%; 29} 30TD,TH{ 31 border-color : #c0d8d8; 32 padding : 1pt 4pt 1pt 4pt; 33 border-width : 1px; 34 border-style : solid; 35} 36--> 37</STYLE> 38</HEAD> 39<BODY> 40<H1 align="left">makebanner <IMG src="../image/NTR.gif" align="middle"></H1> 41<H2>Description</H2> 42<P><FONT color=#ff0000>This command is for NITRO ROMs. See <CODE><A href="makebannerTWL.html">makebanner.TWL</A></CODE> for details on TWL ROMs.</FONT></P> 43<P>The <CODE>makebanner</CODE> tool is used for creating banner files. Banner files contain various information, including the image that identifies an application and is displayed in the launcher at startup of the TWL and the DS/DS Lite systems.</P> 44<P> The banner file contains image data and game title information for each language. It is created based on the description in the banner specification file (BSF). Once the banner file is created, <CODE><A href="makerom.html">makerom</A></CODE> is used to write it to the application ROM image.</P> 45<H2>Using the Tool</H2> 46<H3>Start Command</H3> 47<P><CODE>% makebanner [-d] [-N ICON_BASENAME] SPECFILE [BANNERFILE]</CODE></P> 48<P>This function links files according to the description in the banner specification file (described below), which is specified by <code>SPECFILE</code> and creates a file named <code>BANNERFILE</code>. Using <code>BANNERFILE</code> is optional and may be omitted. If you omit it, a file will be used that has the same name as those specified by <code>SPECFILE</code> with the extension <code>.bnr</code> appended.</P> 49<P> The <code>-N</code> option enables you to specify from the command line icon files of banners specified by normal banner spec files. It attaches the extensions <code>.nbfc</code> and <code>.nbfp</code> to the base names specified by <code>ICON_BASENAME</code>, turning the resultant files into an image file and image parameter file, respectively. This overwrites the values specified by <code>ImageFile:</code>and <code>PlttFile:</code>parameters in the banner <code>spec</code> file.</P> 50<P> The <code>-d</code> option is a debugging message output option for makebanner. It causes a debugging message to be generated at run time. This is usually not necessary.</P> 51<H3>Banner Specification File Format</H3> 52<P> The banner specification file is a text file that specifies an image data file and the game title in each language. It must be described and saved in Unicode (UTF-16LE with BOM). Notepad in MS Windows 2000/XP supports Unicode. Select <B>Unicode</B> from the <B>Encoding </B> drop-down box when saving the file.</P> 53<H3>Parameters</H3> 54<P> The delimiter between parameter specifications and values is a colon (<code>:</code>).</P> 55<H4>Image File Parameters</H4> 56<BLOCKQUOTE> 57<DL class="command_list"> 58<DT class="command_item"><CODE>ImageFile:</CODE></CODE><I>[Image's image file name]</I> 59<DD class="command_desc">This specifies a binary image, 32x32 x 16 colors.<br />Store character data using one-dimensional mapping.<br />The first 512 bytes are written to the banner file. 60<DT class="command_item"><CODE>PlttFile:</CODE></CODE><I>[Image's palette file name]</I> 61<DD class="command_desc">This specifies a binary image palette.<br />The first 32 bytes are written to the banner file. 62</DL> 63</BLOCKQUOTE> 64<P>Use <code>ntexconv</code> (<code>-no</code> <code>-bg</code> <code>-bgb</code> <code>-bgnc</code>) or the like to create image and palette binary data from an image file.</P> 65<P>The <code>-N</code> option allows you to specify image file parameters from the command line.</P> 66<H4>Version Parameters</H4> 67<BLOCKQUOTE> 68<DL class="command_list"> 69<DT class="command_item"><CODE>Version:</CODE><I>[banner version]</I> 70<DD class="command_desc">Specifies the banner version.<BR>This parameter is only required in applications for China or Korea.<BR>For applications destined for China, specify <CODE>'2'</CODE>; for applications destined for Korea, specify <CODE>'3'</CODE>. 71</DL> 72</BLOCKQUOTE> 73<H4>Language Parameters</H4> 74<BLOCKQUOTE> 75<DL class="command_list"> 76<DT class="command_item"><CODE>JP:</CODE></CODE><I>[Japanese game title name]</I><BR> <CODE>EN:</CODE><I>[English game title name]</I><BR> <CODE>FR:</CODE><I>[French game title name]</I><BR> <CODE>GE:</CODE><I>[German game title name]</I><BR> <CODE>IT:</CODE><I>[Italian game title name]</I><BR> <CODE>SP:</CODE><I>[Spanish Game Title Name]</I> 77<DD class="command_desc">This describes the game title name in each language. The maximum is three rows, 128 characters (including carriage returns). A string must be specified in the first line. If a line begins with a space or a tab, it will be deemed a continuation of the previous line. All content between a blank line and the next language parameter will be destroyed. If you want to leave line 1 or 2 blank, and write something in line 3, place content in the form of quotation marks (<code>""</code>) in the line you want to leave blank. Always store in the banner file in the following order: Japanese, English, French, German, Italian, and Spanish. As in the banner specification file, the save format is UTF-16LE (without BOM). <BR> 78<DT class="command_item"><CODE>JP:</CODE><I>[Chinese game title name]</I><BR> <CODE>EN:</CODE><I>[Chinese game title name]</I><BR> <CODE>FR:</CODE><I>[Chinese game title name]</I><BR> <CODE>GE:</CODE><I>[Chinese game title name]</I><BR> <CODE>IT:</CODE><I>[Chinese game title name]</I><BR> <CODE>SP:</CODE><I>[Chinese game title name]</I><BR> <CODE>CN:</CODE><I>[Chinese game title name]</I><BR> 79<DD class="command_desc">For applications destined for China, specify a Chinese banner in addition to the standard banner, as shown above.<BR>At this time, describe all Game Titles in Chinese. 80<DT class="command_item"><CODE>JP:</CODE><I>[English game title name]</I><BR> <CODE>EN:</CODE><I>[English game title name]</I><BR> <CODE>FR:</CODE><I>[English game title name]</I><BR> <CODE>GE:</CODE><I>[English game title name]</I><BR> <CODE>IT:</CODE><I>[English game title name]</I><BR> <CODE>SP:</CODE><I>[English game title name]</I><BR> <CODE>CN:</CODE><I>[English game title name]</I><BR> <CODE>HN:</CODE><I>[Korean game title name]</I> 81<DD class="command_desc">For applications destined for Korea, specify a Korean banner in addition to the application banner for China, as shown above.<BR>At this time, describe all Game Titles in English, except for those for Korean. 82</DL> 83For more about the characters and encoding that can be used for regions other than China and Korea, see the separate document <A href="bannerfont.rtf">About DS Banners</A>. However, your editor must be capable of displaying with UTF-16LE encoding. 84</BLOCKQUOTE> 85<H3>Format</H3> 86<P> Parameter specification must be made at the beginning of the name line. Lines beginning with <code>#</code> are treated as comments. With the exception of the spaces at the beginning of a line, all spaces are included in the string. If you want to include leading spaces, surround them with quotation marks (<code>"</code> <code>"</code>). Likewise, if you want to include quotation marks, surround them with quotation marks (<code>"""</code>).</P> 87<BLOCKQUOTE> 88<PRE class="sample_source"><code>#BSF --- Banner Spec File 89 90ImageFile: banner.nbfc 91PlttFile: banner.nbfp 92 93JP: ニトロ <FONT color="#ff0000" face="Arial"><EM>("Nitro" in Japanese)</EM></FONT> 94"にほんご" <FONT color="#ff0000" face="Arial"><EM>("Japanese" in Japanese)</EM></FONT> 95EN: Nitro1 96English 97FR: Nitro2 98GE: Nitro3 99IT: Nitro4 100SP: Nitro5 101</CODE></PRE> 102</BLOCKQUOTE> 103<H3>Warnings</H3> 104<P>The following warning is displayed if the specified game title cannot be displayed correctly by the launcher when starting the TWL or DS/DS Lite handheld device.</P> 105<P>The following warning is displayed if characters that cannot be displayed by the launcher have been set.</P> 106<BLOCKQUOTE> 107<PRE class="sample_source"><CODE>Warning:!!!! JP in line 1 108Warning:!!!! Game title includes undisplayable characters. 109</CODE></PRE> 110</BLOCKQUOTE> 111<P>If Japanese kanji has been set, the following warning is output. Kanji cannot be specified in the banner of Japan-bound applications.</P> 112<BLOCKQUOTE> 113<PRE class="sample_source"><CODE>Warning:!!!! JP in line 3 114Warning:!!!! Game title includes Chinese characters. 115</CODE></PRE> 116</BLOCKQUOTE> 117<P>The following warning is displayed if the game title cannot be displayed properly because the width of the game title is greater than the launcher display area.<BR>Check the displayable size of the TWL or DS/DS Lite handheld device. In the following example, the title for a TWL handheld device is 1 pixel too wide.</P> 118<BLOCKQUOTE> 119<PRE class="sample_source"><CODE>Warning:!!!! EN in line 1 120Warning:!!!! Game title exceeds TWL menu size(240 pixel) by 1 pixel. 121</CODE></PRE> 122</BLOCKQUOTE> 123<H2>Location</H2> 124<P><CODE>$TwlSDK/tools/bin/makebanner.exe</CODE></P> 125<H2>See Also</H2> 126<P><A href="about_Banner.html">Banner Overview</A><BR> <A href="makerom.html"><CODE>makerom</CODE></A></P> 127<H2>Revision History</H2> 128<P>2008/11/27 Changes game titles in examples and added a warning about the use of kanji.<BR> 2008/10/20 Added a warning about game title width.<BR> 2008/10/17 Changed the links documents about DS banners.<BR> 2008/09/12 Added links to documents about DS banner.<BR> 2007/01/12 Added to <B>Description</B> about applications for China and Korea.<BR> 2004/09/10 Added a link to a list of usable characters.<BR> 2004/08/28 Initial version.</P> 129<hr><p>CONFIDENTIAL</p></body> 130</HTML>