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"><!-- InstanceBegin template="/Templates/default_template.dwt" codeOutsideHTMLIsLocked="false" -->
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<!-- InstanceBeginEditable name="CSS の相対パス指定" -->
7<link href="../../../common/manual.css" rel="stylesheet" type="text/css" />
8<!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="ページのタイトル" -->
9<title>CreativeStudio Command Line Version</title>
10<!-- InstanceEndEditable -->
11</head>
12<body>
13<div>
14  <div class="body"> <!-- InstanceBeginEditable name="本文のタイトル" -->
15  <h1>CreativeStudio Command Line Version</h1>
16  <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="本文" -->
17  <p>CreativeStudio comes with a command line version.<br /> This allows you to automate data generation and binary conversion without displaying the GUI.</p>
18  <p class="hint">We cannot provide adequate support for scripting questions at this time.<br /> We apologize for any inconvenience.</p>
19  <h2>Setting up the Command Line Version of CreativeStudio</h2>
20  <p>The CreativeStudio command line version can be found in the following location.</p>
21  <p><CODE>%NW4C_ROOT%/tools/CreativeStudio/NW4C_CreativeStudioConsole.exe</CODE></p>
22  <h3>Path Settings</h3>
23  <p>Set the <CODE>PATH</CODE> environment variable to the directory where <CODE><em>NW4C_CreativeStudioConsole.exe</em></CODE> has been installed. </p>
24  <p>If the system environment variable is not configured, you need to set the current directory to the directory where <CODE>NW4C_CreativeStudioConsole.exe</CODE> has been installed.</p>
25  <h2>Outputting a Binary File Using a Script</h2>
26  <p>This section describes a script for converting multiple intermediate files into a binary file.<br /> Enter the commands below to launch the CreativeStudio command line version and automatically run the commands specified in the script.</p>
27  <p class="system"><CODE>NW4C_CreativeStudioConsole.exe -s=&lt;path to script file&gt;</CODE></p>
28  <h3>Script File</h3>
29  <p>Run the following script file using the <CODE>NW4C_CreativeStudioConsole.exe -s</CODE> command to automatically read in the <CODE>human_walk.cmdl</CODE> and <CODE>human_walk.cskla</CODE> intermediate files and output the <CODE>Binary.bcres</CODE> binary file.</p>
30  <p class="system">The script file is saved using UTF-16 BOM encoding.</p>
31  <p>Sample Script File</p>
32  <img class="manual_image" src="assets/binary_output.png" alt="Sample Script File"/>
33  <ol>
34    <li>
35      <p>Loading Files</p>
36      <p>This specifies the files for NW4C_CreativeStudioConsole to load.</p>
37      <p class="system"><CODE>CreativeStudio.Execute(&quot;FileLoad&quot;, &quot;&lt;filename to load&gt;&quot;)</CODE></p>
38      <p><CODE>FileLoad</CODE>: Use this command to load a file.</p>
39    </li>
40    <li>
41      <p>Outputting Data to a Binary File</p>
42      <p>This converts the files loaded by NW4C_CreativeStudioConsole to binary and then outputs.</p>
43      <p class="system"><CODE>CreativeStudio.Execute(&quot;FileSave&quot;, &quot;-o=&lt;filename to output&gt;&quot;, &quot;-t=nw4cBinary&quot;)</CODE></p>
44      <p><CODE>FileSave</CODE>: Use this command to save a file.<br /> <CODE>-o</CODE>: Enter the directory and filename to output.<br /> <CODE>-t</CODE>: Specify the output file type.</p>
45    </li>
46    <li>
47      <p>Initializing the Tool</p>
48      <p>This initializes the tool.</p>
49      <p class="system"><CODE>CreativeStudio.Execute(&quot;File&quot;, &quot; &quot;)</CODE></p>
50    </li>
51  </ol>
52  <p>After you initialize the tool, the script operations are done.<br /> Change the filenames used in the examples above and try converting your own intermediate files to a binary file.</p>
53  <p>For details on other scripting commands you can use, click here.</p>
54  <!-- #BeginLibraryItem "/Library/now_making.lbi" --> <!-- 作成中! --> <img class="user_guide_chart" src="../../../../Library/assets/now_making.png" alt="Under Construction"/><!-- #EndLibraryItem --> <!-- InstanceEndEditable --> </div>
55  <div class="footer" />
56</div>
57<hr><p>CONFIDENTIAL</p></body>
58<!-- InstanceEnd --></html>
59