Log in to reply
 

How to merge vehiclelayout.meta files of two seperate addon cars..??



  • How do i merge vehiclelayout.meta files of two seperate addon cars if i want to combine them into one dlc.



  • @Al3x_M3rc3r
    Pick the biggest/most complicated of the two files & then work section by section inputting the '<Item type=' to '</Item>' parts from the smaller/less complicated file into the correct sections of the more complicated one.

    Note:
    These examples are just one section of two files I chose at random. You have to do the same for all sections that exist within both files.

    If the smaller/less complicated file doesn't have any info for a particular section, then just skip it & move on to a section where it does have info.

    If the smaller file has a section that the bigger one does not have, just add it in including the name of the section of info that sits above the top '<Item type=' & below the bottom '</Item>' of that section (for example, in these examples below, the named section is from '<VehicleCoverBoundOffsetInfos>' to '</VehicleCoverBoundOffsetInfos>' so you would include those lines as well if they didn't exist in the file you are pasting the info into)
    If they themselves are within a subsection of another section, make sure they go within the same section in the new file. It's all about syntax & hierarchy, grab yourself a copy of Notepad++, that way if you left click on a '<Item' or section name line it will give you a little red vertical line on the left indicating where that section starts & ends, which will help keep you right :thumbsup:

    File A 'VehicleCoverBoundOffsetInfos' Example:

      <VehicleCoverBoundOffsetInfos>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82ST_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82DUKE_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F824SLW_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82LW_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82HS_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
      </VehicleCoverBoundOffsetInfos>
    

    File B 'VehicleCoverBoundOffsetInfos' Example:

    	<VehicleCoverBoundOffsetInfos>
    		<Item type="CVehicleCoverBoundOffsetInfo">
    		  <Name>GT40_COVER_OFFSET_INFO</Name>
    		  <ExtraSideOffset value="-0.050000" />
    		  <ExtraForwardOffset value="0.050000" />
    		  <ExtraBackwardOffset value="-0.300000" />
    		  <ExtraZOffset value="-0.200000" />
    		  <CoverBoundInfos />
    		</Item>
    	</VehicleCoverBoundOffsetInfos>
    

    Combined A+B 'VehicleCoverBoundOffsetInfos' File Example:

      <VehicleCoverBoundOffsetInfos>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82ST_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82DUKE_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F824SLW_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82LW_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo">
          <Name>F82HS_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.100000" />
          <ExtraForwardOffset value="-0.150000" />
          <ExtraBackwardOffset value="-0.100000" />
          <ExtraZOffset value="0.100000" />
          <CoverBoundInfos />
        </Item>
        <Item type="CVehicleCoverBoundOffsetInfo"> <!-- File B 'CVehicleCoverBoundOffsetInfo' has been added into File A's 'VehicleCoverBoundOffsetInfos' here... -->
          <Name>GT40_COVER_OFFSET_INFO</Name>
          <ExtraSideOffset value="-0.050000" />
          <ExtraForwardOffset value="0.050000" />
          <ExtraBackwardOffset value="-0.300000" />
          <ExtraZOffset value="-0.200000" />
          <CoverBoundInfos />
        </Item> <!-- ...to here -->
      </VehicleCoverBoundOffsetInfos>
    


  • @a63nt-5m1th ok, will give it a try and see if it works for me or not. Thanks a ton for explaining it to me.



  • @Al3x_M3rc3r
    :thumbsup: Keep backups & take your time, it's easy to get lost in those vehiclelayout files.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.