Open main menu

Changes

See also
{{TutorialNavigation|previous=2._How_to_create_%26_export_simple_cube_model|next=4._How_to_convert_%26_pack_a_mod}}
 
{| class="wikitable" width="100%"
|- style="vertical-align: top"
|- style="vertical-align: top"
| '''3'''
| IMG[[File:Simple_cube_simple_definition_paste.jpg]]| NICE DESCOpen 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"
| '''4'''
| IMG[[File:Simple_cube_change_unit_name.jpg]]| NICE DESCChange 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"
| '''5'''
| IMG| NICE DESC|- style="vertical-align: top"| '''6'''| IMG| NICE DESC|- style="vertical-align[[File: top"| '''7'''| IMG| NICE DESC|- style="vertical-align: top"| '''8'''| IMG| NICE DESCSimple_cube_change_model_desc.jpg]]|Change path to the model. It is the export path of the model which you set in previous tutorial - style="vertical-align: top"| plus the file name ending with '''9pmd'''| IMG| NICE DESC|- style="vertical-align: top"| extension. Notice that '''10pmd'''| IMG| NICE DESC|extension - style="vertical-align: top"it is an model descriptor file format that is created after conversion of the mod.| '''11'''| IMG| NICE DESCThen save the file and the data are ready to be converted. You will learn how to do that in next part of the tutorial.
|}
 
{{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]
developer
1,626
edits