Difference between revisions of "Tutorials/Beginners/Simple cube/3. How to configure cube as map asset model"

From SCS Modding Wiki
Jump to navigation Jump to search
(See also)
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TutorialNavigation|previous=2._How_to_create_%26_export_simple_cube_model|next=4._How_to_convert_%26_pack_a_mod}}
 
 
 
{| class="wikitable" width="100%"
 
{| class="wikitable" width="100%"
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
Line 10: Line 8:
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''2'''
 
| '''2'''
| [[File:Simple_cube_create_model_sii.jpg]]
+
| IMG
| Inside '''world''' folder ('''1''') create file '''model.tutorials.sii''' ('''2''').
+
| NICE DESC
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''3'''
 
| '''3'''
| [[File:Simple_cube_simple_definition_paste.jpg]]
+
| IMG
| Open the '''model.tutorials.sii''' file with your text editor and add this basic definition.
+
| NICE DESC
 
 
<pre>
 
SiiNunit
 
{
 
# For modders: Please do not modify this file if you want to add a new entry. Create in
 
# this directory a new file "<base_name>.<idofyourmod>.sii" where <base_name> is name of
 
# base file without the extension (e.g. "city" for "/def/city.sii") and <idofyourmod> is
 
# some string which is unlikely to conflict with other mod.
 
#
 
# Warning: Even if the units are specified in more than one source file, they share the
 
# same namespace so suffixes or prefixes should be used to avoid conflicts.
 
 
 
model_def : model.name {
 
model_desc: "model_path"
 
}
 
}
 
</pre>
 
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''4'''
 
| '''4'''
| [[File:Simple_cube_change_unit_name.jpg]]
+
| IMG
| Change name of the model to something unique. Let's use '''model.tutorials.0''' for this tutorial purpose however if you will put more and more models here it's must be to use different names. You can simply change the last number so next model will be called '''model.tutorials.1''', another '''model.tutorials.2''' etc, etc.
+
| NICE DESC
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''5'''
 
| '''5'''
| [[File:Simple_cube_change_model_desc.jpg]]
+
| IMG
| Change path to the model. It is the export path of the model which you set in previous tutorial - plus the file name ending with '''pmd''' extension. Notice that '''pmd''' extension - it is an model descriptor file format that is created after conversion of the mod.
+
| NICE DESC
 
+
|- style="vertical-align: top"
 
+
| '''6'''
Then save the file and the data are ready to be converted. You will learn how to do that in next part of the tutorial.
+
| IMG
 +
| NICE DESC
 +
|- style="vertical-align: top"
 +
| '''7'''
 +
| IMG
 +
| NICE DESC
 +
|- style="vertical-align: top"
 +
| '''8'''
 +
| IMG
 +
| NICE DESC
 +
|- style="vertical-align: top"
 +
| '''9'''
 +
| IMG
 +
| NICE DESC
 +
|- style="vertical-align: top"
 +
| '''10'''
 +
| IMG
 +
| NICE DESC
 +
|- style="vertical-align: top"
 +
| '''11'''
 +
| IMG
 +
| NICE DESC
 
|}
 
|}
 
{{TutorialNavigation|previous=2._How_to_create_%26_export_simple_cube_model|next=4._How_to_convert_%26_pack_a_mod}}
 
 
=See also=
 
 
*[[Tutorials/Beginners/Simple_cube#3. How to configure cube as map asset model|Tutorial overview]]
 
*[https://www.youtube.com/watch?v=VZrOZxIraUM Video version of tutorial]
 

Revision as of 16:32, 23 February 2016

1 Simple mod create def world.jpg 1. Create folder called def in 01_simple_cube/base folder.

2. Inside folder def create folder called world.

2 IMG NICE DESC
3 IMG NICE DESC
4 IMG NICE DESC
5 IMG NICE DESC
6 IMG NICE DESC
7 IMG NICE DESC
8 IMG NICE DESC
9 IMG NICE DESC
10 IMG NICE DESC
11 IMG NICE DESC