Pille
Prefab Creator and Great Galactic Imperator
Ok let's have a look at an (typical) entry from the blocksA16PrefabConversion.xml:
<block id="117" name="glassBulletproofMaster">
<property name="Group" value="Building"/>
<property name="Material" value="Mstone"/>
<property name="Shape" value="New"/>
<property name="LightOpacity" value="2"/>
<property name="Model" value="cube_glass"/>
<property name="Mesh" value="transparent"/>
<property name="Texture" value="333"/>
<property name="EconomicValue" value="300"/>
</block>
That means that we assign the block id 117 (stored in the tts files) to the block name "glassBulletproofMaster", right? So if we use the command 'prefabupdater createmapping prefab_name', the game will create a file prefab_name.blocks.nim. The nim-file is a table containing the assignments for all blocks used in the selected prefab (prefab_name):
block id 1 -> "block name 1"
block id 2 -> "block name 2"
block id 3 -> "block name 3"
and so on...
My question is: Why do we have to know the LightOpacity, Mesh, EconomicValue and other stuff to convert the blocks?
I don't understand why we have this kind of information in the blocksA16PrefabConversion.xml.
<block id="117" name="glassBulletproofMaster">
<property name="Group" value="Building"/>
<property name="Material" value="Mstone"/>
<property name="Shape" value="New"/>
<property name="LightOpacity" value="2"/>
<property name="Model" value="cube_glass"/>
<property name="Mesh" value="transparent"/>
<property name="Texture" value="333"/>
<property name="EconomicValue" value="300"/>
</block>
That means that we assign the block id 117 (stored in the tts files) to the block name "glassBulletproofMaster", right? So if we use the command 'prefabupdater createmapping prefab_name', the game will create a file prefab_name.blocks.nim. The nim-file is a table containing the assignments for all blocks used in the selected prefab (prefab_name):
block id 1 -> "block name 1"
block id 2 -> "block name 2"
block id 3 -> "block name 3"
and so on...
My question is: Why do we have to know the LightOpacity, Mesh, EconomicValue and other stuff to convert the blocks?
I don't understand why we have this kind of information in the blocksA16PrefabConversion.xml.
Last edited by a moderator: