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)
 
(10 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"
 
| width="10px" | '''1'''
 
| width="10px" | '''1'''
 
| width="500px" | [[File:Simple_mod_create_def_world.jpg]]
 
| width="500px" | [[File:Simple_mod_create_def_world.jpg]]
|
+
| 1. Create folder called '''def''' in '''01_simple_cube/base''' folder.
# Create folder called '''def''' in '''01_simple_cube/base''' folder.
+
 
# Inside folder '''def''' create folder called '''world'''.
+
2. Inside folder '''def''' create folder called '''world'''.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''2'''
 
| '''2'''
| IMG
+
| [[File:Simple_cube_create_model_sii.jpg]]
| NICE DESC
+
| Inside '''world''' folder ('''1''') create file '''model.tutorials.sii''' ('''2''').
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''3'''
 
| '''3'''
| IMG
+
| [[File:Simple_cube_simple_definition_paste.jpg]]
| NICE DESC
+
| Open the '''model.tutorials.sii''' file with your text editor and add this basic definition.
 +
 
 +
<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'''
| IMG
+
| [[File:Simple_cube_change_unit_name.jpg]]
| NICE DESC
+
| 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.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''5'''
 
| '''5'''
| IMG
+
| [[File:Simple_cube_change_model_desc.jpg]]
| NICE DESC
+
| 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.
|- style="vertical-align: top"
+
 
| '''6'''
+
 
| IMG
+
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.
| 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]

Latest revision as of 14:04, 2 March 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 Simple cube create model sii.jpg Inside world folder (1) create file model.tutorials.sii (2).
3 Simple cube simple definition paste.jpg Open the model.tutorials.sii file with your text editor and add this basic definition.
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"
}
}
4 Simple cube change unit name.jpg 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.
5 Simple cube change model desc.jpg 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.


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.

See also