1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add your weapon to the steam workshop

Discussion in 'Guides and Tutorials' started by Henry08, Apr 20, 2017.

  1. [​IMG]
    If you made your weapon using SDK A tutorial you will probably find that it does not work after packing to workshop vpp_pc archive. So I'll try to teach you how to do it manualy and I belive that some guys from the forum will correct me.

    Note: Tutorial was made when Flow754's Weapon Clone Tool did't exist. Use it for copy weapon's settings

    Weapon system is not very flexible so you need to choose weapon that most closely resembles yours and copy its settings. For my GBE that is tini loctus, secret weapon with high damage

    All you need to pack your weapon are:

    SDK B
    Notepad++
    Minimaul's Saints Row 2, Saints Row: The Third, Saints Row IV and Gat Out Of Hell tools and patience, lot of patience

    1) First of all you need to convert your prepared weapon file with SDK but do not pack it. SDK convertor will create "output" folder where your weapon's fbx located so go there
    [​IMG]
    2) Then you need to pack your weapon files to the archives so in the "output" create two new folder your_weapon's_name and your_weapon's_name_high.
    In my case that is [​IMG]
    Copy files with _high in name to the your_weapon's_name_high folder and others to the your_weapon's_name also you can put there your weapon icon files.
    On this step you can add icon for your weapon. There is any dds image file packed to cpeg-gpeg game format placed to the your_weapon's_name folder .IDK which size of icon is right, I choose 128x64, and please naming your icon like ui_inv_ your_weapon's_name
    More simple and hacky way is rename your cpeg-gpeg files to always_loaded and put to your mod folder. Flow754 doing this

    Run ThomasJepp.SaintsRow.BuildPackfileGUI.exe and pack each folder to your mod folder. That can be any empty folder
    [​IMG]

    3) After there you need to unpack misc_tables.vpp_pc file from Saints Row IV\packfiles\pc\cache directory and find there 6 files:
    - items_3d.xtbl
    - items_inventory.xtbl
    - store_weapons.xtbl
    - weapon_costumes.xtbl
    - weapon_upgrades.xtbl
    - weapons.xtbl

    4) Create empty text files with same names in your mod folder and write this to each file
    Code (Text):

    <root>
        <Table>
        </Table>
    </root>
     
    Your weapon setting need to be placed between <Table></Table> tags for correct adding to the game
    5) Open extracted items_3d.xtbl and find <Item> tag with needed weapon setting and copy to your file. There is basic
    [​IMG][​IMG] [​IMG]
    6) Open extracted items_inventory.xtbl again find <Inventory_Item> tag with needed weapon settings and copy to your file
    [​IMG]
    7) Open extracted store_weapons.xtbl again find <Store_Weapons> tag with needed weapon settings and copy to your file don't forget copy <_Editor> section
    [​IMG]
    8) Open extracted weapons.xtbl that importan file where lies main weapon settings, find <Weapon> tag with needed weapon settings and copy to your file. There are too many settings the meaning of which I do not know so main there
    [​IMG]
    9) Open extracted weapon_upgrades.xtbl same strategy here. Weapon can have few upgrades and some Ultimate Upgrade
    [​IMG][​IMG]
    11) Open extracted weapon_costumes.xtbl There is main files where all values getting together copy needed <Costume> section
    [​IMG]

    12) Almost all we also need to create some asm files for loading our files to the game. Dont afraind you need only to prescribe what's inside your archives in the <Container> section

    your_weapon's_name_high
    in the items_containers.xml and mods_costumes.xml,
    your_weapon's_name in the items_preload_containers.xml
    Few rules:
    rigged mesh Type="Character mesh"
    rig mesh Type="Rig"
    static mes Type="Static Mesh"
    cpeg Type="Peg"
    matlib Type="Material"

    items_preload_containers.xml

    [​IMG]
    [​IMG]
    items_containers.xml - mods_costumes.xml
    [​IMG]

    Full code of asm files


    Code (Text):

    <?xml version="1.0" encoding="utf-8"?>
    <AssetAssembler Version="12">
        <AllocatorTypes>
            <AllocatorType ID="1" Name="Vehicle slots" />
            <AllocatorType ID="2" Name="Vehicle Fully Cust slots" />
            <AllocatorType ID="3" Name="Character slots" />
            <AllocatorType ID="4" Name="Character high res slots" />
            <AllocatorType ID="5" Name="CS High Res slots" />
            <AllocatorType ID="6" Name="Player slots" />
            <AllocatorType ID="7" Name="taunt animation slots" />
            <AllocatorType ID="8" Name="item preload" />
            <AllocatorType ID="9" Name="cutscene" />
            <AllocatorType ID="10" Name="zscene" />
            <AllocatorType ID="11" Name="customization streaming" />
            <AllocatorType ID="12" Name="customization logo" />
            <AllocatorType ID="13" Name="Customization compositing" />
            <AllocatorType ID="14" Name="cust shaderball slots" />
            <AllocatorType ID="15" Name="Compositing render target" />
            <AllocatorType ID="16" Name="Small smesh slots" />
            <AllocatorType ID="17" Name="Large smesh slots" />
            <AllocatorType ID="18" Name="weapon high res gpu" />
            <AllocatorType ID="19" Name="time of day" />
            <AllocatorType ID="20" Name="interface streaming" />
            <AllocatorType ID="21" Name="Interface slots" />
            <AllocatorType ID="22" Name="interface image gpu compacting" />
            <AllocatorType ID="23" Name="effect preload" />
            <AllocatorType ID="24" Name="decal mempool" />
            <AllocatorType ID="25" Name="debug_superzone" />
            <AllocatorType ID="26" Name="test_level_mip_streaming" />
            <AllocatorType ID="27" Name="zone always loaded" />
            <AllocatorType ID="29" Name="medium lod level allocator" />
            <AllocatorType ID="30" Name="high lod level allocator" />
            <AllocatorType ID="31" Name="mip_streaming" />
            <AllocatorType ID="32" Name="modal gameplay" />
            <AllocatorType ID="35" Name="Texture compression scratch" />
            <AllocatorType ID="36" Name="morph preload mempool" />
            <AllocatorType ID="37" Name="level container cache" />
            <AllocatorType ID="38" Name="vehicle_customization_cameras" />
            <AllocatorType ID="39" Name="zone header cache" />
            <AllocatorType ID="40" Name="TOD_luts" />
            <AllocatorType ID="41" Name="cutscene container cache" />
            <AllocatorType ID="42" Name="Streamable Player Weapons" />
            <AllocatorType ID="43" Name="superpower buff" />
            <AllocatorType ID="44" Name="superpower blast" />
            <AllocatorType ID="45" Name="superpower stomp" />
            <AllocatorType ID="46" Name="superpower tk" />
            <AllocatorType ID="48" Name="mods" />
            <AllocatorType ID="254" Name="GSA_DESTUB_ALLOCATOR" />
        </AllocatorTypes>
        <ContainerTypes>
            <ContainerType ID="1" Name="Vehicle" />
            <ContainerType ID="2" Name="Vehicle Fully Customizable" />
            <ContainerType ID="3" Name="Items Preload Mempool" />
            <ContainerType ID="4" Name="Items" />
            <ContainerType ID="5" Name="Items Preload" />
            <ContainerType ID="6" Name="Weapon High Res" />
            <ContainerType ID="7" Name="Character" />
            <ContainerType ID="8" Name="Character High Res" />
            <ContainerType ID="9" Name="Player" />
            <ContainerType ID="10" Name="Cust Component" />
            <ContainerType ID="11" Name="Cust Logo" />
            <ContainerType ID="12" Name="Cust Composite" />
            <ContainerType ID="13" Name="Cust Shaderball" />
            <ContainerType ID="14" Name="Small static mesh" />
            <ContainerType ID="15" Name="Large static mesh" />
            <ContainerType ID="16" Name="Environmental item" />
            <ContainerType ID="17" Name="Skybox" />
            <ContainerType ID="18" Name="Cutscene" />
            <ContainerType ID="19" Name="Zscene" />
            <ContainerType ID="21" Name="UI" />
            <ContainerType ID="22" Name="UI peg" />
            <ContainerType ID="23" Name="Effects Preload" />
            <ContainerType ID="24" Name="Effects (Vehicle)" />
            <ContainerType ID="25" Name="Environment Effects" />
            <ContainerType ID="26" Name="Effects (Superpower)" />
            <ContainerType ID="27" Name="Decal" />
            <ContainerType ID="28" Name="Level Always Loaded" />
            <ContainerType ID="29" Name="Level Always Loaded Peg" />
            <ContainerType ID="30" Name="Zone" />
            <ContainerType ID="31" Name="Zone (High LOD)" />
            <ContainerType ID="32" Name="Interior zone" />
            <ContainerType ID="33" Name="mission" />
            <ContainerType ID="34" Name="activity_type" />
            <ContainerType ID="35" Name="taunt animation" />
            <ContainerType ID="37" Name="level mesh for precache" />
            <ContainerType ID="38" Name="Mission_Skybox" />
            <ContainerType ID="39" Name="mission model data" />
            <ContainerType ID="40" Name="Vehicle customization camera" />
            <ContainerType ID="41" Name="LUT" />
            <ContainerType ID="42" Name="Streamable Weapon" />
            <ContainerType ID="254" Name="GSC_DESTUB_CONTAINER" />
        </ContainerTypes>
        <PrimitiveTypes>
            <PrimitiveType ID="1" Name="Vehicles" />
            <PrimitiveType ID="2" Name="Vehicle cvtf" />
            <PrimitiveType ID="3" Name="Vehicle PEG" />
            <PrimitiveType ID="4" Name="Vehicle VFX" />
            <PrimitiveType ID="5" Name="Character mesh" />
            <PrimitiveType ID="6" Name="Cloth Sim" />
            <PrimitiveType ID="7" Name="Character morph" />
            <PrimitiveType ID="8" Name="Character cvtf" />
            <PrimitiveType ID="9" Name="Pcust mesh" />
            <PrimitiveType ID="10" Name="Pcust peg" />
            <PrimitiveType ID="11" Name="Pcust morph" />
            <PrimitiveType ID="12" Name="Pcust creation morph" />
            <PrimitiveType ID="13" Name="Customization Rig" />
            <PrimitiveType ID="14" Name="Pcust matlib" />
            <PrimitiveType ID="15" Name="Pcust logo peg" />
            <PrimitiveType ID="16" Name="VFX" />
            <PrimitiveType ID="17" Name="Peg" />
            <PrimitiveType ID="18" Name="Low Mips" />
            <PrimitiveType ID="19" Name="AL peg" />
            <PrimitiveType ID="20" Name="Static Mesh" />
            <PrimitiveType ID="21" Name="Rig" />
            <PrimitiveType ID="22" Name="Anim File" />
            <PrimitiveType ID="23" Name="Material" />
            <PrimitiveType ID="24" Name="Cutscene File" />
            <PrimitiveType ID="25" Name="Cutscene Camera Script" />
            <PrimitiveType ID="26" Name="Lightset" />
            <PrimitiveType ID="27" Name="VINT doc" />
            <PrimitiveType ID="28" Name="Vint LUA script" />
            <PrimitiveType ID="30" Name="Zone (fast)" />
            <PrimitiveType ID="31" Name="Zone (slow)" />
            <PrimitiveType ID="32" Name="Level Mesh" />
            <PrimitiveType ID="33" Name="Mission LUA script" />
            <PrimitiveType ID="34" Name="Mission override table" />
            <PrimitiveType ID="35" Name="Activity table file" />
            <PrimitiveType ID="36" Name="Material Library" />
            <PrimitiveType ID="37" Name="Tree" />
            <PrimitiveType ID="38" Name="Foliage Mesh" />
            <PrimitiveType ID="39" Name="Light Curve" />
            <PrimitiveType ID="40" Name="Buffer" />
            <PrimitiveType ID="41" Name="Level Mesh Collision" />
            <PrimitiveType ID="42" Name="Animation file" />
            <PrimitiveType ID="43" Name="Mission Conversation" />
            <PrimitiveType ID="44" Name="Vehicle customization camera" />
            <PrimitiveType ID="45" Name="Zone header (fast)" />
            <PrimitiveType ID="46" Name="Zone header (slow)" />
            <PrimitiveType ID="47" Name="Pcust cloth sim" />
            <PrimitiveType ID="253" Name="GSP_DESTUB_PRIM_BUF" />
            <PrimitiveType ID="254" Name="GSP_DESTUB_PRIM" />
        </PrimitiveTypes>
        <Containers>
            <Container Name="gbe_high" Type="Weapon High Res" Flags="128" PackfileBaseOffset="204" CompressionType="9" StubContainerParentName="" TotalCompressedPackfileReadSize="49129">
                <Primitive Name="gbe_high.cpeg_pc" Type="Peg" Allocator="0" Flags="4" ExtensionIndex="0" CPUSize="220" GPUSize="699040" AllocationGroup="0" />
                <Primitive Name="gbe_high.matlib_pc" Type="Material" Allocator="0" Flags="0" ExtensionIndex="0" CPUSize="592" GPUSize="0" AllocationGroup="0" />
            </Container>
        </Containers>
    </AssetAssembler>
     

    Code (Text):

    <?xml version="1.0" encoding="utf-8"?>
    <AssetAssembler Version="12">
        <AllocatorTypes>
            <AllocatorType ID="1" Name="Vehicle slots" />
            <AllocatorType ID="2" Name="Vehicle Fully Cust slots" />
            <AllocatorType ID="3" Name="Character slots" />
            <AllocatorType ID="4" Name="Character high res slots" />
            <AllocatorType ID="5" Name="CS High Res slots" />
            <AllocatorType ID="6" Name="Player slots" />
            <AllocatorType ID="7" Name="taunt animation slots" />
            <AllocatorType ID="8" Name="item preload" />
            <AllocatorType ID="9" Name="cutscene" />
            <AllocatorType ID="10" Name="zscene" />
            <AllocatorType ID="11" Name="customization streaming" />
            <AllocatorType ID="12" Name="customization logo" />
            <AllocatorType ID="13" Name="Customization compositing" />
            <AllocatorType ID="14" Name="cust shaderball slots" />
            <AllocatorType ID="15" Name="Compositing render target" />
            <AllocatorType ID="16" Name="Small smesh slots" />
            <AllocatorType ID="17" Name="Large smesh slots" />
            <AllocatorType ID="18" Name="weapon high res gpu" />
            <AllocatorType ID="19" Name="time of day" />
            <AllocatorType ID="20" Name="interface streaming" />
            <AllocatorType ID="21" Name="Interface slots" />
            <AllocatorType ID="22" Name="interface image gpu compacting" />
            <AllocatorType ID="23" Name="effect preload" />
            <AllocatorType ID="24" Name="decal mempool" />
            <AllocatorType ID="25" Name="debug_superzone" />
            <AllocatorType ID="26" Name="test_level_mip_streaming" />
            <AllocatorType ID="27" Name="zone always loaded" />
            <AllocatorType ID="29" Name="medium lod level allocator" />
            <AllocatorType ID="30" Name="high lod level allocator" />
            <AllocatorType ID="31" Name="mip_streaming" />
            <AllocatorType ID="32" Name="modal gameplay" />
            <AllocatorType ID="35" Name="Texture compression scratch" />
            <AllocatorType ID="36" Name="morph preload mempool" />
            <AllocatorType ID="37" Name="level container cache" />
            <AllocatorType ID="38" Name="vehicle_customization_cameras" />
            <AllocatorType ID="39" Name="zone header cache" />
            <AllocatorType ID="40" Name="TOD_luts" />
            <AllocatorType ID="41" Name="cutscene container cache" />
            <AllocatorType ID="42" Name="Streamable Player Weapons" />
            <AllocatorType ID="43" Name="superpower buff" />
            <AllocatorType ID="44" Name="superpower blast" />
            <AllocatorType ID="45" Name="superpower stomp" />
            <AllocatorType ID="46" Name="superpower tk" />
            <AllocatorType ID="48" Name="mods" />
            <AllocatorType ID="254" Name="GSA_DESTUB_ALLOCATOR" />
        </AllocatorTypes>
        <ContainerTypes>
            <ContainerType ID="1" Name="Vehicle" />
            <ContainerType ID="2" Name="Vehicle Fully Customizable" />
            <ContainerType ID="3" Name="Items Preload Mempool" />
            <ContainerType ID="4" Name="Items" />
            <ContainerType ID="5" Name="Items Preload" />
            <ContainerType ID="6" Name="Weapon High Res" />
            <ContainerType ID="7" Name="Character" />
            <ContainerType ID="8" Name="Character High Res" />
            <ContainerType ID="9" Name="Player" />
            <ContainerType ID="10" Name="Cust Component" />
            <ContainerType ID="11" Name="Cust Logo" />
            <ContainerType ID="12" Name="Cust Composite" />
            <ContainerType ID="13" Name="Cust Shaderball" />
            <ContainerType ID="14" Name="Small static mesh" />
            <ContainerType ID="15" Name="Large static mesh" />
            <ContainerType ID="16" Name="Environmental item" />
            <ContainerType ID="17" Name="Skybox" />
            <ContainerType ID="18" Name="Cutscene" />
            <ContainerType ID="19" Name="Zscene" />
            <ContainerType ID="21" Name="UI" />
            <ContainerType ID="22" Name="UI peg" />
            <ContainerType ID="23" Name="Effects Preload" />
            <ContainerType ID="24" Name="Effects (Vehicle)" />
            <ContainerType ID="25" Name="Environment Effects" />
            <ContainerType ID="26" Name="Effects (Superpower)" />
            <ContainerType ID="27" Name="Decal" />
            <ContainerType ID="28" Name="Level Always Loaded" />
            <ContainerType ID="29" Name="Level Always Loaded Peg" />
            <ContainerType ID="30" Name="Zone" />
            <ContainerType ID="31" Name="Zone (High LOD)" />
            <ContainerType ID="32" Name="Interior zone" />
            <ContainerType ID="33" Name="mission" />
            <ContainerType ID="34" Name="activity_type" />
            <ContainerType ID="35" Name="taunt animation" />
            <ContainerType ID="37" Name="level mesh for precache" />
            <ContainerType ID="38" Name="Mission_Skybox" />
            <ContainerType ID="39" Name="mission model data" />
            <ContainerType ID="40" Name="Vehicle customization camera" />
            <ContainerType ID="41" Name="LUT" />
            <ContainerType ID="42" Name="Streamable Weapon" />
            <ContainerType ID="254" Name="GSC_DESTUB_CONTAINER" />
        </ContainerTypes>
        <PrimitiveTypes>
            <PrimitiveType ID="1" Name="Vehicles" />
            <PrimitiveType ID="2" Name="Vehicle cvtf" />
            <PrimitiveType ID="3" Name="Vehicle PEG" />
            <PrimitiveType ID="4" Name="Vehicle VFX" />
            <PrimitiveType ID="5" Name="Character mesh" />
            <PrimitiveType ID="6" Name="Cloth Sim" />
            <PrimitiveType ID="7" Name="Character morph" />
            <PrimitiveType ID="8" Name="Character cvtf" />
            <PrimitiveType ID="9" Name="Pcust mesh" />
            <PrimitiveType ID="10" Name="Pcust peg" />
            <PrimitiveType ID="11" Name="Pcust morph" />
            <PrimitiveType ID="12" Name="Pcust creation morph" />
            <PrimitiveType ID="13" Name="Customization Rig" />
            <PrimitiveType ID="14" Name="Pcust matlib" />
            <PrimitiveType ID="15" Name="Pcust logo peg" />
            <PrimitiveType ID="16" Name="VFX" />
            <PrimitiveType ID="17" Name="Peg" />
            <PrimitiveType ID="18" Name="Low Mips" />
            <PrimitiveType ID="19" Name="AL peg" />
            <PrimitiveType ID="20" Name="Static Mesh" />
            <PrimitiveType ID="21" Name="Rig" />
            <PrimitiveType ID="22" Name="Anim File" />
            <PrimitiveType ID="23" Name="Material" />
            <PrimitiveType ID="24" Name="Cutscene File" />
            <PrimitiveType ID="25" Name="Cutscene Camera Script" />
            <PrimitiveType ID="26" Name="Lightset" />
            <PrimitiveType ID="27" Name="VINT doc" />
            <PrimitiveType ID="28" Name="Vint LUA script" />
            <PrimitiveType ID="30" Name="Zone (fast)" />
            <PrimitiveType ID="31" Name="Zone (slow)" />
            <PrimitiveType ID="32" Name="Level Mesh" />
            <PrimitiveType ID="33" Name="Mission LUA script" />
            <PrimitiveType ID="34" Name="Mission override table" />
            <PrimitiveType ID="35" Name="Activity table file" />
            <PrimitiveType ID="36" Name="Material Library" />
            <PrimitiveType ID="37" Name="Tree" />
            <PrimitiveType ID="38" Name="Foliage Mesh" />
            <PrimitiveType ID="39" Name="Light Curve" />
            <PrimitiveType ID="40" Name="Buffer" />
            <PrimitiveType ID="41" Name="Level Mesh Collision" />
            <PrimitiveType ID="42" Name="Animation file" />
            <PrimitiveType ID="43" Name="Mission Conversation" />
            <PrimitiveType ID="44" Name="Vehicle customization camera" />
            <PrimitiveType ID="45" Name="Zone header (fast)" />
            <PrimitiveType ID="46" Name="Zone header (slow)" />
            <PrimitiveType ID="47" Name="Pcust cloth sim" />
            <PrimitiveType ID="253" Name="GSP_DESTUB_PRIM_BUF" />
            <PrimitiveType ID="254" Name="GSP_DESTUB_PRIM" />
        </PrimitiveTypes>
        <Containers>
            <Container Name="gbe_high" Type="Weapon High Res" Flags="128" PackfileBaseOffset="204" CompressionType="9" StubContainerParentName="" TotalCompressedPackfileReadSize="49129">
                <Primitive Name="gbe_high.cpeg_pc" Type="Peg" Allocator="0" Flags="4" ExtensionIndex="0" CPUSize="220" GPUSize="699040" AllocationGroup="0" />
                <Primitive Name="gbe_high.matlib_pc" Type="Material" Allocator="0" Flags="0" ExtensionIndex="0" CPUSize="592" GPUSize="0" AllocationGroup="0" />
            </Container>
        </Containers>
    </AssetAssembler>
     

    Code (Text):

    <?xml version="1.0" encoding="utf-8"?>
    <AssetAssembler Version="12">
        <AllocatorTypes>
            <AllocatorType ID="1" Name="Vehicle slots" />
            <AllocatorType ID="2" Name="Vehicle Fully Cust slots" />
            <AllocatorType ID="3" Name="Character slots" />
            <AllocatorType ID="4" Name="Character high res slots" />
            <AllocatorType ID="5" Name="CS High Res slots" />
            <AllocatorType ID="6" Name="Player slots" />
            <AllocatorType ID="7" Name="taunt animation slots" />
            <AllocatorType ID="8" Name="item preload" />
            <AllocatorType ID="9" Name="cutscene" />
            <AllocatorType ID="10" Name="zscene" />
            <AllocatorType ID="11" Name="customization streaming" />
            <AllocatorType ID="12" Name="customization logo" />
            <AllocatorType ID="13" Name="Customization compositing" />
            <AllocatorType ID="14" Name="cust shaderball slots" />
            <AllocatorType ID="15" Name="Compositing render target" />
            <AllocatorType ID="16" Name="Small smesh slots" />
            <AllocatorType ID="17" Name="Large smesh slots" />
            <AllocatorType ID="18" Name="weapon high res gpu" />
            <AllocatorType ID="19" Name="time of day" />
            <AllocatorType ID="20" Name="interface streaming" />
            <AllocatorType ID="21" Name="Interface slots" />
            <AllocatorType ID="22" Name="interface image gpu compacting" />
            <AllocatorType ID="23" Name="effect preload" />
            <AllocatorType ID="24" Name="decal mempool" />
            <AllocatorType ID="25" Name="debug_superzone" />
            <AllocatorType ID="26" Name="test_level_mip_streaming" />
            <AllocatorType ID="27" Name="zone always loaded" />
            <AllocatorType ID="29" Name="medium lod level allocator" />
            <AllocatorType ID="30" Name="high lod level allocator" />
            <AllocatorType ID="31" Name="mip_streaming" />
            <AllocatorType ID="32" Name="modal gameplay" />
            <AllocatorType ID="35" Name="Texture compression scratch" />
            <AllocatorType ID="36" Name="morph preload mempool" />
            <AllocatorType ID="37" Name="level container cache" />
            <AllocatorType ID="38" Name="vehicle_customization_cameras" />
            <AllocatorType ID="39" Name="zone header cache" />
            <AllocatorType ID="40" Name="TOD_luts" />
            <AllocatorType ID="41" Name="cutscene container cache" />
            <AllocatorType ID="42" Name="Streamable Player Weapons" />
            <AllocatorType ID="43" Name="superpower buff" />
            <AllocatorType ID="44" Name="superpower blast" />
            <AllocatorType ID="45" Name="superpower stomp" />
            <AllocatorType ID="46" Name="superpower tk" />
            <AllocatorType ID="48" Name="mods" />
            <AllocatorType ID="254" Name="GSA_DESTUB_ALLOCATOR" />
        </AllocatorTypes>
        <ContainerTypes>
            <ContainerType ID="1" Name="Vehicle" />
            <ContainerType ID="2" Name="Vehicle Fully Customizable" />
            <ContainerType ID="3" Name="Items Preload Mempool" />
            <ContainerType ID="4" Name="Items" />
            <ContainerType ID="5" Name="Items Preload" />
            <ContainerType ID="6" Name="Weapon High Res" />
            <ContainerType ID="7" Name="Character" />
            <ContainerType ID="8" Name="Character High Res" />
            <ContainerType ID="9" Name="Player" />
            <ContainerType ID="10" Name="Cust Component" />
            <ContainerType ID="11" Name="Cust Logo" />
            <ContainerType ID="12" Name="Cust Composite" />
            <ContainerType ID="13" Name="Cust Shaderball" />
            <ContainerType ID="14" Name="Small static mesh" />
            <ContainerType ID="15" Name="Large static mesh" />
            <ContainerType ID="16" Name="Environmental item" />
            <ContainerType ID="17" Name="Skybox" />
            <ContainerType ID="18" Name="Cutscene" />
            <ContainerType ID="19" Name="Zscene" />
            <ContainerType ID="21" Name="UI" />
            <ContainerType ID="22" Name="UI peg" />
            <ContainerType ID="23" Name="Effects Preload" />
            <ContainerType ID="24" Name="Effects (Vehicle)" />
            <ContainerType ID="25" Name="Environment Effects" />
            <ContainerType ID="26" Name="Effects (Superpower)" />
            <ContainerType ID="27" Name="Decal" />
            <ContainerType ID="28" Name="Level Always Loaded" />
            <ContainerType ID="29" Name="Level Always Loaded Peg" />
            <ContainerType ID="30" Name="Zone" />
            <ContainerType ID="31" Name="Zone (High LOD)" />
            <ContainerType ID="32" Name="Interior zone" />
            <ContainerType ID="33" Name="mission" />
            <ContainerType ID="34" Name="activity_type" />
            <ContainerType ID="35" Name="taunt animation" />
            <ContainerType ID="37" Name="level mesh for precache" />
            <ContainerType ID="38" Name="Mission_Skybox" />
            <ContainerType ID="39" Name="mission model data" />
            <ContainerType ID="40" Name="Vehicle customization camera" />
            <ContainerType ID="41" Name="LUT" />
            <ContainerType ID="42" Name="Streamable Weapon" />
            <ContainerType ID="254" Name="GSC_DESTUB_CONTAINER" />
        </ContainerTypes>
        <PrimitiveTypes>
            <PrimitiveType ID="1" Name="Vehicles" />
            <PrimitiveType ID="2" Name="Vehicle cvtf" />
            <PrimitiveType ID="3" Name="Vehicle PEG" />
            <PrimitiveType ID="4" Name="Vehicle VFX" />
            <PrimitiveType ID="5" Name="Character mesh" />
            <PrimitiveType ID="6" Name="Cloth Sim" />
            <PrimitiveType ID="7" Name="Character morph" />
            <PrimitiveType ID="8" Name="Character cvtf" />
            <PrimitiveType ID="9" Name="Pcust mesh" />
            <PrimitiveType ID="10" Name="Pcust peg" />
            <PrimitiveType ID="11" Name="Pcust morph" />
            <PrimitiveType ID="12" Name="Pcust creation morph" />
            <PrimitiveType ID="13" Name="Customization Rig" />
            <PrimitiveType ID="14" Name="Pcust matlib" />
            <PrimitiveType ID="15" Name="Pcust logo peg" />
            <PrimitiveType ID="16" Name="VFX" />
            <PrimitiveType ID="17" Name="Peg" />
            <PrimitiveType ID="18" Name="Low Mips" />
            <PrimitiveType ID="19" Name="AL peg" />
            <PrimitiveType ID="20" Name="Static Mesh" />
            <PrimitiveType ID="21" Name="Rig" />
            <PrimitiveType ID="22" Name="Anim File" />
            <PrimitiveType ID="23" Name="Material" />
            <PrimitiveType ID="24" Name="Cutscene File" />
            <PrimitiveType ID="25" Name="Cutscene Camera Script" />
            <PrimitiveType ID="26" Name="Lightset" />
            <PrimitiveType ID="27" Name="VINT doc" />
            <PrimitiveType ID="28" Name="Vint LUA script" />
            <PrimitiveType ID="30" Name="Zone (fast)" />
            <PrimitiveType ID="31" Name="Zone (slow)" />
            <PrimitiveType ID="32" Name="Level Mesh" />
            <PrimitiveType ID="33" Name="Mission LUA script" />
            <PrimitiveType ID="34" Name="Mission override table" />
            <PrimitiveType ID="35" Name="Activity table file" />
            <PrimitiveType ID="36" Name="Material Library" />
            <PrimitiveType ID="37" Name="Tree" />
            <PrimitiveType ID="38" Name="Foliage Mesh" />
            <PrimitiveType ID="39" Name="Light Curve" />
            <PrimitiveType ID="40" Name="Buffer" />
            <PrimitiveType ID="41" Name="Level Mesh Collision" />
            <PrimitiveType ID="42" Name="Animation file" />
            <PrimitiveType ID="43" Name="Mission Conversation" />
            <PrimitiveType ID="44" Name="Vehicle customization camera" />
            <PrimitiveType ID="45" Name="Zone header (fast)" />
            <PrimitiveType ID="46" Name="Zone header (slow)" />
            <PrimitiveType ID="47" Name="Pcust cloth sim" />
            <PrimitiveType ID="253" Name="GSP_DESTUB_PRIM_BUF" />
            <PrimitiveType ID="254" Name="GSP_DESTUB_PRIM" />
        </PrimitiveTypes>
        <Containers>
            <Container Name="gbe" Type="Items Preload" Flags="640" PackfileBaseOffset="348" CompressionType="9" StubContainerParentName="" TotalCompressedPackfileReadSize="62597">
                <Primitive Name="gbe.ccmesh_pc" Type="Character mesh" Allocator="item preload" Flags="4" ExtensionIndex="0" CPUSize="1200" GPUSize="280660" AllocationGroup="255" />
                <Primitive Name="gbe.rig_pc" Type="Rig" Allocator="item preload" Flags="0" ExtensionIndex="0" CPUSize="802" GPUSize="0" AllocationGroup="255" />
                <Primitive Name="ui_hud_gbe.cpeg_pc" Type="Peg" Allocator="0" Flags="4" ExtensionIndex="0" CPUSize="122" GPUSize="8192" AllocationGroup="0" />
            </Container>
        </Containers>
    </AssetAssembler>
     

    Convert xml files to asm_pc by ThomasJepp.SaintsRow.Stream2.exe and place to your mod folder. As you know that is console program for converting I'm using simple bat file
    [​IMG]
    Of course you need to use your paths

    If you dont want to create localization you can use existing "translation value"otherwise you must change it for your own(as I did) and create localization file

    That all folks! Almost... There is tricky part, you need to pack your weapon by SDK convertor. Yeah select you mod folder and press Package. If you did everything right(very doubtful) you'll can pack your weapon by Saints Row IV - Workshop upload tool
    In my case something wrong happened
    [​IMG]
    [​IMG]
    Few fixes - just right
    [​IMG]
    About mesh skins
    When adding a skin, the scheme is slightly different. You don't need weapons.xtbl, weapon_upgrades.xtbl and store_weapons.xtbl.
    In the weapon_costumes.xtbl сhange weapon entry to existed weapon [​IMG]
    In the items_inventory.xtbl сhange the index slot to the next. The original weapon has slot 0, the next skin 1 and so on. IDK I do not know whether it is necessary but in my case third skin does not working with same ID
    [​IMG]
     
    Last edited: May 11, 2017
  2. smashbro596

    smashbro596 Modding patch tester

    any time i try to convert the asm files it either crashes or stream doesn't load.
    if it helps. ihave been trying to put 2 items into the xmls.
     
  3. Please show your xml. If you adding two str2 archives you must to separate them like
    Code (Text):

    <Containers>
        <Container Name="first_archive">
        </Container>
        <Container Name="second_archive">
        </Container>
    <Containers>
     
     
    Last edited: Apr 21, 2017
  4. smashbro596

    smashbro596 Modding patch tester

    i'm using the stag weapon archive. i'm trying to get the stag weapons in sr4.
    so the archives name is
    STAG_Rifle
    STAG_Rifle_high
    STAG_Shotgun
    STAG_Shotgun_high
     

    Attached Files:

  5. Everything is ok with the xml. I renamed my weapon to STAG_Rifle convert it and packed to str2
    [​IMG] [​IMG]
    Then your xml was converted to asm_pc and game did not crush. The game can crash if there are no files in the archives that are prescribed in the asm_pc. Did you repack SR3 archive and add ui_hud_STAG_Rifle.cpeg_pc file? Did you pack all your files to vpp_pc?
     
    Last edited: Apr 21, 2017
  6. smashbro596

    smashbro596 Modding patch tester

    the issue isnt with the stag files themselves
    but rather minimauls stream tool thingy not opening
    just a black box that opens and closes. i showed my settings to mini, and hes gonna take a look.