Difference between revisions of "Installing template character"
From XStoryPlayer Wiki
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
(If you already have downloaded the '[[Beta patch]]', delete it first in order to re-download it)</li> | (If you already have downloaded the '[[Beta patch]]', delete it first in order to re-download it)</li> | ||
<li>Download the latest version of the '[[Tutorial resource pack]]'.<br> | <li>Download the latest version of the '[[Tutorial resource pack]]'.<br> | ||
− | In the <code>'3. Advanced Modding / 1. Creating character'</code> directory you will see the following files: | + | In the <code>'3. Advanced Modding / 1. Creating character / 1.Installing template character'</code> directory you will see the following files: |
* <code>pack_character</code>: This directory contains the '[[Template character]]'. | * <code>pack_character</code>: This directory contains the '[[Template character]]'. | ||
* <code>testini</code>: This directory contains the files that you can use for the [[Test mode]].</li> | * <code>testini</code>: This directory contains the files that you can use for the [[Test mode]].</li> | ||
Line 56: | Line 56: | ||
Also see [[Creating_cloth]] point 5. on how to do this. | Also see [[Creating_cloth]] point 5. on how to do this. | ||
</li> | </li> | ||
− | <li>Because we use <code>#define TEST_RUN "run_char.ini"</code> the script <code>'./testini/run_char.ini'</code> is used when running in [[test mode]].</li> | + | <li>Because we use <code>#define TEST_RUN "run_char.ini"</code> the script <code>'./testini/run_char.ini'</code> is used when running in [[test mode]].<br/> |
+ | If <code>'run_char.ini'</code> is not used when running in test mode, check the content of <code>'testini/run.ini'</code> is <u>only</u><br/> | ||
+ | <syntaxhighlight lang="cpp">#include "testini/[TEST_RUN]"</syntaxhighlight></li> | ||
<li>Take a look at the <code>./testini/run_char.ini</code> file. It uses <code>mode = CHAR</code> so we can test the character.<br> | <li>Take a look at the <code>./testini/run_char.ini</code> file. It uses <code>mode = CHAR</code> so we can test the character.<br> | ||
When we used it for cloth state creation, it was set to <code>CLOTH</code>.<br> | When we used it for cloth state creation, it was set to <code>CLOTH</code>.<br> |
Latest revision as of 10:17, 5 January 2016
In this tutorial you will learn how to load and create the 'Template character'.
Steps
- Re-download the 'Beta patch' using the Account manager and re-install it. Do this even if the version is the same.
(If you already have downloaded the 'Beta patch', delete it first in order to re-download it) - Download the latest version of the 'Tutorial resource pack'.
In the'3. Advanced Modding / 1. Creating character / 1.Installing template character'
directory you will see the following files:-
pack_character
: This directory contains the 'Template character'. -
testini
: This directory contains the files that you can use for the Test mode.
-
- Copy the
pack_character
directory to your./pack
directory.
Copy thetestini
files to your./testini
directory. - Use the Filemaker to convert the 'Template character' to the game .obj files. Use e.g. this
start.ini
sample script:#define SOURCES "../pack/pack_character/sources/" #define RUNTIME "../pack/pack_character/" maya_auto_copy = COPY_DIR; maya_auto_compress = COLOR; Maya scene { src_path = "[SOURCES]"; run_path = "[RUNTIME]"; in_file = "[SOURCES]scenes/char_template/body.ma"; } Compgen compress0 {compress = true;}
- If the conversion went well you should see the a
characterShape.obj
in the./pack/pack_character/scenes/char_template
directory.
Also the textures should be compressed and added to the./pack/pack_character/scenes/textures
directory. - To test the converted 'Template character' use the following settings in the
settings.ini
file.runtime { start_mode = TEST; debug_sys = BASIC; debug_render = NONE; debug_phys = NONE; debug_brain = ENABLED; // Use this directory as second pack directory // (The pack_test.bin is used as primary pack) pack2 = "pack/pack_character"; save_key = ""; } // Run this file in test mode #define TEST_RUN "run_char.ini"
Best is to create a new
'settings_char.ini'
and create a newXStoryPlayer64.exe
shortcut with-settings "settings_char.ini"
as startup parameter.
Also see Creating_cloth point 5. on how to do this. - Because we use
#define TEST_RUN "run_char.ini"
the script'./testini/run_char.ini'
is used when running in test mode.
If'run_char.ini'
is not used when running in test mode, check the content of'testini/run.ini'
is only
#include "testini/[TEST_RUN]"
- Take a look at the
./testini/run_char.ini
file. It usesmode = CHAR
so we can test the character.
When we used it for cloth state creation, it was set toCLOTH
.
As you will see in later tutorials it can also be set toBVH
, in order to create/convert animations files. - Now start XStoryPlayer using your shortcut to run in test mode. You should see the template character.
You can pull the arms to move it. It uses basic behavior for movements (not a brain).
- Start Maya and set your project to the
./pack/pack_character/sources
directory. This will ensure your texture paths are correct. - Now open the
./pack/pack_character/sources/scenes/char_template/body.ma
in Maya. It contains the rigged template character model.
Also checkout thebody.ini
file to take a look at the settings used for the character. There are a lot of settings, and we will cover most of them in the following tutorials.
- It maybe seemed like a quite lot of work, installing and testing the template character. But now that all files are in place, the work-flow for editing and testing is very easy.
Because we will be deriving a new model from the template character in the next tutorials, we will be slowly changing parts of the template character, until we have completed the new character.
In order to test every step along the way it is important that you have a good comprehension of this tutorial.
Your workflow for the next tutorial will be:- Change and save
body.ma
file in Maya. - Run filemaker to convert
body.ma
to game format. - Test character in test mode.
- Continue with first step.
When the new character is completely finished we can use it in the dungeon or in a new story.
- Change and save