1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/mainpage.css" type="text/css" /> 7 <base target="content" /> 8 <title>Intermediate File Notation Rules</title> 9 </head> 10 <body> 11<h1>Intermediate File Notation Rules</h1> 12<h2>XML Declaration</h2> 13<p>The intermediate files use a text-based XML format.</p> 14<p>To clearly indicate that the file is an XML document, you must put the following XML declaration in the first line of the file:</p> 15<table class="arguments"> 16<tr><td><?xml version="1.0" encoding="utf-8"?></td></tr> 17</table> 18<h2>Character Codes</h2> 19<p>The character encoding used is UTF-8.<br> UTF-8 <CODE>BOM</CODE> (0xef 0xbb 0xbf) is at the start of the intermediate file.</p> 20<h2>Version</h2> 21<p>The <CODE>Version</CODE> attribute of <CODE><GraphicsContentCtr></CODE> describes the version of the intermediate file. The version number is updated only when a change has been made to the format.<br> It has the same version as NintendoWare at the time of release.<br> The current version is 1.0.0</p> 22<h2>Element Rules</h2> 23<p><strong>Element Content</strong></p> 24<p>In some cases the content of an element will be data, while in other cases it will be child elements.<br> The intermediate file cannot contain elements with data and child elements at the same time.</p> 25<pre> 26 ○ <Element1>6 3 11</Element1><br> 27<br> 28 ○ <Element1><br> 29 <Element2>6 3 11</Element2><br> 30 <Element3>9 0 4</Element3><br> 31 </Element1><br> 32<br> 33 × <Element1><br> 34 6 3 11<br> 35 <Element2>9 0 4</Element2><br> 36 </Element1><br> 37</pre> 38<p>When the content of an element is a list of numerical values, any single-byte spaces, tabs and line breaks are treated as delimiters between values.</p> 39<p><strong>Element Closing</strong></p> 40<p>When an element does not contain content, the closing of the element is described by one single-byte space placed after the final attribute.</p> 41<pre> 42 Correct : <element attribute1="0" attribute2="30" /> 43 Incorrect : <element attribute1="0" attribute2="30"/> 44</pre> 45<p> 46<strong>Other</strong> 47<ul> 48<li>There are rules for the export order and positioning of elements.</li> 49<li>Child elements are indented by a tab.</li> 50<li>Everything in the element between the angled brackets (< >) is described in a single line with no line feed.</li> 51<li>A line feed is placed after the closing angled bracket ( ">") of the element.</li> 52</ul> 53<h2>Path Notation</h2> 54<p>References to materials, textures, shapes and the like are described as follows:</p> 55<pre> 56Array element name["<I>item name</I>"]@file:<I>file path</I> 57</pre> 58<p>or</p> 59<pre> 60Array element name[<I>item index</I>]@file:<I>file path</I> 61</pre> 62<p>The forward slash (/) is used as the delimiter for folders in the file path.<br> If the file path is not an absolute path, it is treated as a relative path from the folder of the referencing file.<br> If the referenced item is located inside the referencing file, the file path can be omitted as shown below.</p> 63<pre> 64Array element name["<I>item name</I>"] 65</pre> 66<p>For example, in the case of <CODE><TextureReference></CODE>, the texture path can be described in the following format.</p> 67<pre> 68Textures["<I>texture name</I>"]@file:<I>texture file path</I>. 69</pre> 70<h2><CODE>Name</CODE> Attribute</h2> 71<p>If only one <CODE><SkeletalModel></CODE> exists in a <CODE>CMDL</CODE> file, the <CODE>Name</CODE> attribute of <CODE><SkeletalModel></CODE> is an empty string (" "). <br> When this is the case, the name of the <CODE>CMDL</CODE> file is used as the name of the model.</p> 72<p>The same holds true for the <CODE>Name</CODE> attributes of <CODE><ImageTextureCtr></CODE> and <CODE><CubeTextureCtr></CODE> in the <CODE>CMDL</CODE> file.</p> 73<p>It is also the same for the <CODE>Name</CODE> attribute of <CODE><SkeletalAnimationData></CODE> in the <CODE>CSKLA</CODE> file.</p> 74<h2>Units</h2> 75<p>Angles are handled in units of radians.</p> 76<p>The unit for distance is not defined.<br> Values on the DCC tool are multiplied by the value specified by the <CODE>Magnify</CODE> option and output. </p> 77<p><br><br><br><br></p> 78 <hr><p>CONFIDENTIAL</p></body> 79</html> 80