Log in to reply
 

[Tutorial] How to do: Add-On / Replace (Vehicles & Weapons)



  • I checked everything many times.

    carvariations.meta:

          <modelName>odyvia</modelName>
           <colors>
            <Item>
              <indices content="char_array">
                12
                12
                12
                12
              </indices>
              <liveries>
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
              </liveries>
            </Item>
          </colors>
          <kits>
            <Item>0_default_modkit</Item>
          </kits>
          <windowsWithExposedEdges />
          <plateProbabilities>
            <Probabilities>
              <Item>
                <Name>Yellow Plate</Name>
                <Value value="15" />
              </Item>
            </Probabilities>
          </plateProbabilities>
          <lightSettings value="0" />
          <sirenSettings value="0" />
        </Item>     
    

    handling.meta:

    <Item type="CHandlingData">
          <handlingName>ODYVIA</handlingName>
          <fMass value="1050.000000" />
          <fInitialDragCoeff value="8.500000" />
          <fPercentSubmerged value="85.000000" />
          <vecCentreOfMassOffset x="0.000000" y="0.000000" z="0.000000" />
          <vecInertiaMultiplier x="1.000000" y="1.575000" z="1.760000" />
          <fDriveBiasFront value="0.001000" />
          <nInitialDriveGears value="2" />
          <fInitialDriveForce value="5.430000" />
          <fDriveInertia value="1.000000" />
          <fClutchChangeRateScaleUpShift value="100.000000" />
          <fClutchChangeRateScaleDownShift value="100.000000" />
          <fInitialDriveMaxFlatVel value="225.000000" />
          <fBrakeForce value="1.500000" />
          <fBrakeBiasFront value="0.425000" />
          <fHandBrakeForce value="0.655000" />
          <fSteeringLock value="58.000000" />
          <fTractionCurveMax value="0.700000" />
          <fTractionCurveMin value="1.675000" />
          <fTractionCurveLateral value="23.250000" />
          <fTractionSpringDeltaMax value="0.150000" />
          <fLowSpeedTractionLossMult value="-0.100000" />
          <fCamberStiffnesss value="-0.500000" />
          <fTractionBiasFront value="0.487000" />
          <fTractionLossMult value="1.000000" />
          <fSuspensionForce value="2.800000" />
          <fSuspensionCompDamp value="1.200000" />
          <fSuspensionReboundDamp value="1.800000" />
          <fSuspensionUpperLimit value="0.090000" />
          <fSuspensionLowerLimit value="-0.090000" />
          <fSuspensionRaise value="0.000000" />
          <fSuspensionBiasFront value="0.500000" />
          <fAntiRollBarForce value="0.800000" />
          <fAntiRollBarBiasFront value="0.600000" />
          <fRollCentreHeightFront value="0.340000" />
          <fRollCentreHeightRear value="0.350000" />
          <fCollisionDamageMult value="0.700000"/>
          <fWeaponDamageMult value="1.000000"/>
          <fDeformationDamageMult value="0.700000"/>
          <fEngineDamageMult value="1.500000"/>
          <fPetrolTankVolume value="60.000000"/>
          <fOilVolume value="4.500000"/>
          <fSeatOffsetDistX value="0"/>
          <fSeatOffsetDistY value="-0.100000"/>
          <fSeatOffsetDistZ value="0.100000"/>
          <nMonetaryValue value="150000"/>
          <strModelFlags>420010</strModelFlags>
          <strHandlingFlags>0</strHandlingFlags>
          <strDamageFlags>0</strDamageFlags>
          <AIHandling>AVERAGE</AIHandling>
          <SubHandlingData>
            <Item type="CCarHandlingData">
              <fBackEndPopUpCarImpulseMult value="0.100000"/>
              <fBackEndPopUpBuildingImpulseMult value="0.030000"/>
              <fBackEndPopUpMaxDeltaSpeed value="0.600000"/>
            </Item>
            <Item type="NULL"/>
            <Item type="NULL"/>
          </SubHandlingData>
        </Item>
    

    vehicles.meta:

    <Item>
          <modelName>odyvia</modelName>
          <txdName>odyvia</txdName>
          <handlingId>ODYVIA</handlingId>
          <gameName>ODYVIA</gameName>
          <vehicleMakeName>Nissan</vehicleMakeName>
          <expressionDictName>null</expressionDictName>
          <expressionName>null</expressionName>
          <animConvRoofDictName>null</animConvRoofDictName>
          <animConvRoofName>null</animConvRoofName>
          <animConvRoofWindowsAffected />
          <ptfxAssetName>null</ptfxAssetName>
          <audioNameHash>ninef2</audioNameHash>
          <layout>LAYOUT_STANDARD</layout>
          <coverBoundOffsets>ASEA_COVER_OFFSET_INFO</coverBoundOffsets>
          <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
          <scenarioLayout />
          <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
          <aimCameraName>DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA</aimCameraName>
          <bonnetCameraName>VEHICLE_BONNET_CAMERA_LOW</bonnetCameraName>
          <povCameraName>DEFAULT_POV_CAMERA</povCameraName>
          <FirstPersonDriveByIKOffset x="0.000000" y="-0.060000" z="-0.060000" />
          <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="-0.058000" z="-0.015000" />
    	  <FirstPersonProjectileDriveByIKOffset x="0.000000" y="-0.040000" z="-0.050000" />
    	  <FirstPersonProjectileDriveByPassengerIKOffset x="0.000000" y="-0.040000" z="-0.050000" />
    	  <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="-0.000000" />
    	  <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="-0.060000" z="-0.060000" />
    	  <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonMobilePhoneOffset x="0.140000" y="0.285000" z="0.495000" />
          <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.186000" z="0.415000" />
    	  <FirstPersonMobilePhoneSeatIKOffset>
    		<Item>
    			<Offset x="0.136000" y="0.136000" z="0.415000" />
    			<SeatIndex value="2" />
    		</Item>
    		<Item>
    			<Offset x="0.136000" y="0.136000" z="0.415000" />
    			<SeatIndex value="3" />
    		</Item>
    	  </FirstPersonMobilePhoneSeatIKOffset> 
          <PovCameraOffset x="0.000000" y="-0.175000" z="0.628000" />
          <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
          <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
          <PovRearPassengerCameraOffset x="0.000000" y="-0.125000" z="0.000000" />
          <vfxInfoName>VFXVEHICLEINFO_CAR_GENERIC</vfxInfoName>
          <shouldUseCinematicViewMode value="true" />
          <shouldCameraTransitionOnClimbUpDown value="false" />
          <shouldCameraIgnoreExiting value="false" />
          <AllowPretendOccupants value="true" />
          <AllowJoyriding value="true" />
          <AllowSundayDriving value="true" />
          <AllowBodyColorMapping value="true" />
          <wheelScale value="0.217600" />
          <wheelScaleRear value="0.217600" />
          <dirtLevelMin value="0.000000" />
          <dirtLevelMax value="0.850000" />
          <envEffScaleMin value="0.000000" />
          <envEffScaleMax value="1.000000" />
          <envEffScaleMin2 value="0.000000" />
          <envEffScaleMax2 value="1.000000" />
          <damageMapScale value="0.600000" />
          <damageOffsetScale value="1.000000" />
          <diffuseTint value="0x00FFFFFF" />
          <steerWheelMult value="1.000000" />
          <HDTextureDist value="5.000000" />
          <lodDistances content="float_array">
            15.000000
            30.000000
            60.000000	
            120.000000	
            500.000000	
            500.000000
          </lodDistances>
          <minSeatHeight value="0.823" />
          <identicalModelSpawnDistance value="20" />
          <maxNumOfSameColor value="10" />
          <defaultBodyHealth value="1000.000000" />
          <pretendOccupantsScale value="1.000000" />
          <visibleSpawnDistScale value="1.000000" />
          <trackerPathWidth value="2.000000" />
          <weaponForceMult value="1.000000" />
          <frequency value="70" />
          <swankness>SWANKNESS_1</swankness>
          <maxNum value="999" />
          <flags>FLAG_SPAWN_ON_TRAILER FLAG_AVERAGE_CAR FLAG_POOR_CAR FLAG_RECESSED_TAILLIGHT_CORONAS FLAG_HAS_INTERIOR_EXTRAS FLAG_HAS_LIVERY</flags>
          <type>VEHICLE_TYPE_CAR</type>
          <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
    	  <dashboardType>VDT_TAILGATER</dashboardType>
          <vehicleClass>VC_SPORT</vehicleClass>
          <wheelType>VWT_SPORT</wheelType>
          <trailers />
          <additionalTrailers />
          <drivers />
          <extraIncludes />
          <doorsWithCollisionWhenClosed />
          <driveableDoors />
          <bumpersNeedToCollideWithMap value="false" />
          <needsRopeTexture value="false" />
          <requiredExtras />
          <rewards />
          <cinematicPartCamera>
            <Item>WHEEL_FRONT_RIGHT_CAMERA</Item>
            <Item>WHEEL_FRONT_LEFT_CAMERA</Item>
            <Item>WHEEL_REAR_RIGHT_CAMERA</Item>
            <Item>WHEEL_REAR_LEFT_CAMERA</Item>
          </cinematicPartCamera>
          <NmBraceOverrideSet />
          <buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
          <buoyancySphereSizeScale value="1.000000" />
          <pOverrideRagdollThreshold type="NULL" />
    	  <firstPersonDrivebyData>
            <Item>STD_ASEA_FRONT_LEFT</Item>
            <Item>STD_ISSI_FRONT_RIGHT</Item>
    		<Item>STD_ASEA_REAR_LEFT</Item>
    		<Item>STD_ASEA_REAR_RIGHT</Item>
          </firstPersonDrivebyData>
        </Item>
    
       <Item>
          <parent>vehicles_tailgater_interior</parent>
          <child>odyvia</child>
       </Item>
    

  • MODERATOR

    @DOMSlayer I've edited your comment to make it look as code. All seems to be correct. Maybe the problem is in the car itself. Try to make a separated Add-On just for it, sometimes some vehicles can't be added to packs for any reason. Also, check that the vehicle files are not corrupted and your Add-On dlc.rpf file size is not higher than 3.5GB


  • MODERATOR

    Probably soon I'll update this tutorial with a much easier and faster way to install Add-Ons thanks to a community member :P



  • Hi I was attempting to put 2 cars in one add-on dlc for my game and after I followed all the steps everything loads... But when I try to spawn the car by typing in the model it tells me "invalid model" is there any way you can help?


  • MODERATOR

    @Marc30499 Probably you did a typo mistake somewhere on .meta files. Check that your handling.meta and vehicles.meta files data is correct, with open/close tags being correct and without any kind of mistake.



  • @Reyser I ended up getting it to work.... It turns out the two cars just wouldn't go together I was trying to make a 2 car add on... A 458 Italia Liberty Walk and a Huracan Liberty Walk but they just can't coexist in the same dlc sadly.... Though I was able to get a Ferrari F12 TDF and the Huracan Liberty Walk in one dlc add on.. So I'm making progress I will be making another add on pack tommorow to see if I can get it to work consistently without crashing at loading screen or telling me "invalid models"



  • I need some help, I don't have that many DLCs in my game but the game keeps giving me ERR_FILL_PACK_1

    If I remove one dlclist line it works fine, I used to have way more dlclist lines and work fine. I've defragmented my archives and they are correct size/ not corrupted. Added lines are bolded and italics.

    <Item>platform:\dlcPacks\mpBeach</Item>
    <Item>platform:\dlcPacks\mpBusiness</Item>
    <Item>platform:\dlcPacks\mpChristmas</Item>
    <Item>platform:\dlcPacks\mpValentines</Item>
    <Item>platform:\dlcPacks\mpBusiness2</Item>
    <Item>platform:\dlcPacks\mpHipster</Item>
    <Item>platform:\dlcPacks\mpIndependence</Item>
    <Item>platform:\dlcPacks\mpPilot</Item>
    <Item>platform:\dlcPacks\spUpgrade</Item>
    <Item>platform:\dlcPacks\mpLTS</Item>
    <Item>dlcpacks:\libertycity</Item>
    <Item>dlcpacks:\mpheist</Item>
    <Item>dlcpacks:\mppatchesng</Item>
    <Item>dlcpacks:\patchday1ng</Item>
    <Item>dlcpacks:\patchday2ng</Item>
    <Item>dlcpacks:\mpchristmas2</Item>
    <Item>dlcpacks:\patchday2bng</Item>
    <Item>dlcpacks:\patchday3ng</Item>
    <Item>dlcpacks:\patchday4ng</Item>
    <Item>dlcpacks:\mpluxe</Item>
    <Item>dlcpacks:\patchday5ng</Item>
    <Item>dlcpacks:\mpluxe2</Item>
    <Item>dlcpacks:\patchday6ng</Item>
    <Item>dlcpacks:\mpreplay</Item>
    <Item>dlcpacks:\patchday7ng</Item>
    <Item>dlcpacks:\mplowrider</Item>
    <Item>dlcpacks:\mphalloween</Item>
    <Item>dlcpacks:\patchday8ng</Item>
    <Item>dlcpacks:\mpapartment</Item>
    <item>dlcpacks:\mpxmas_604490</item>
    <Item>dlcpacks:\mplowrider2</Item>
    <Item>dlcpacks:\mpjanuary2016</Item>
    <Item>dlcpacks:\mpvalentines2</Item>
    <Item>dlcpacks:\patchday9ng</Item>
    <Item>dlcpacks:\mpexecutive</Item>
    <Item>dlcpacks:\patchday10ng</Item>
    <Item>dlcpacks:\mpstunt</Item>
    <Item>dlcpacks:\patchday11ng</Item>
    <Item>dlcpacks:\mpbiker</Item>
    <Item>dlcpacks:\mpimportexport</Item>
    <Item>dlcpacks:\patchday12ng</Item>
    <Item>dlcpacks:\patchday13ng</Item>
    <Item>dlcpacks:\allbrimspack</Item>
    <Item>dlcpacks:\vanillawheels</Item>
    <Item>dlcpacks:\pres</Item>
    <Item>dlcpacks:\FOLDERNAME</Item>
    <Item>dlcpacks:\mercs</Item>
    <Item>dlcpacks:\bmw</Item>


  • MODERATOR

    @DOMSlayer Are you using a good gameconfig.xml?


  • MODERATOR

    @DOMSlayer said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    <Item>dlcpacks:\FOLDERNAME</Item>

    ^^ Remove that line, for starters.



  • @meimeiriver that line is fine, that's my first custom dlc but I was too lazy to rename it lol.

    It doesn't matter which line I delete from dlclists. Any line I delete works but if I don't I get the ERR_FIL_PACK_1

    @Reyser I think I am. Can you recomment a good one for GTA V 1.36?


  • MODERATOR

    @DOMSlayer I can't recommend any because modders doesn't support pirated versions of the game, but try with the F7YO one.


  • MODERATOR

    It's been a year and 20 days since I've posted this tutorial. It was been improved with the time, correcting sentences, adding more information/screenshots and even formatting the text structure to make it easy to read for everyone (I'll update the tutorial even more soon).

    Now it has reached 125.8k views (at the time of writing this comment) and that's just amazing! Never tought it was going to be one of the most visited topics here (the 2nd to be exact), I'm just amazed :D .

    Thanks to all ;)



  • @Reyser Hi I'm new to modding and need some help. I've read your tutorial and its great but it didn't answer my question.
    I have a replace car Ferrari F50 which replaces with infernus but i've already replaced infernus with another car so I want to replace it with bullet. So i renamed infernus.yft, hi.yft and ytd in Ferrari F50 folder to bullet.yft, hi.yft and ytd and replaced orignal bullet files with them which worked. Ferrari F50 folder also has tunning parts for infernus so I again renamed them to bullet tunning parts and put them in bullet_mods.rpf but the tunning parts don't work. So how do i change infernus tunning parts to bullet tunning parts and make them work?


  • MODERATOR

    @savoz Your problem will be probably the common ID's problem. You should look at the ID the tuning parts of the vehicle are using (a value located inside the carcols.meta and carvariations.meta files) and change it to another one below 256 (256 is the max number that can be assigned to any car tuning).

    You'll be always facing this problem if you use Add-Ons too as we do, until someone creates a fix for this problem. There's nothing better to do than trying to find an available/unused value between 0 and 256 yet.



  • @Reyser

    1. There is no carcols.met and carvariations.meta file to see the ids of tunning parts in Ferrari F50 folder. Only infernus.yft, hi.yft and ytd files and tunning files such as inf_wing_1.yft etc.

    2. I don't think its id problem because when i open any tunning part which i renamed to e.g bullet_wing_1.yft it still says inf_wing_1.yft inside the Open IV model viewer.

    3. I checked it with another car fusilade, changed all names accordingly and replaced them. Vehicle model worked but again tunning parts didn't work. Then i downloaded a replace car which replaces with fusilade, Corvette C7 2014 replaced the tunning files and the tunning parts worked. Then i opened the tunning parts given in Corvette folder in model viewer it showed fusilade_wing_1.yft both inside and outside of model viewer. So I think game doesn't recognize that tunning part because it says inf_wing_1.yft inside model viewer and think of it as infernus part? How can i change the name inside the model viewer?

    4. Maybe i'm wrong & i'm confused please help!


  • MODERATOR

    @savoz
    1.- You need to find them on your game files, not on the downloaded file.
    2.- I usually rename the tuning parts of the mods I use and all of them work, so the OpenIV model viewer does nothing here. No one had such problem before.
    3.- I have no idea on how to change the parts name, maybe it's made through an application like Zmodeler for car modders.
    4.- I'm already providing help lol.



  • @Reyser
    Where can i find them on my game files? Exact location?


  • MODERATOR

    @savoz Well, being the Bullet the desired car, you'll probably find the data information on the carcols.ymt and carvariations.ymt files. Just find them using Ctrl + F3 with OpenIV.



  • @Reyser how to edit .ymt files? they show only symbols in notepad.


  • MODERATOR

    @savoz The carcols.ymt can be downloaded from this website. The carvariations.ymt you'll be able to find it in Google, I don't remember where exactly.


  • MODERATOR

    @Vlad That's it, thanks for pointing out to the download link ;)



  • Hi all!

    I am facing the ERR_FIL_PACK 1error and game crashing everytime I install mega add-on cars pack mods like this one:

    I have tried many gameconfigs but neither of them had solved the issue!

    Please help me!
    Thanks to all in advance!
    Best regards!


  • MODERATOR

    @player32 said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    nstall mega add-on cars pack mods

    I'd say the solution is simple: don't add those 'mega add-on cars pack mods.' :) Personally, I'm very picky about which cars I want added (like 75 now total or so). Aka, be selective. Besides, you don't have enough valid car ID's for thousands of addon cars; in fact, you only have 255 max.



  • @meimeiriver said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    @player32 said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    nstall mega add-on cars pack mods

    I'd say the solution is simple: don't add those 'mega add-on cars pack mods.' :) Personally, I'm very picky about which cars I want added (like 75 now total or so). Aka, be selective. Besides, you don't have enough valid car ID's for thousands of addon cars; in fact, you only have 255 max.

    Dear meimeiriver,thank you very much for replying to me!
    You know my wish is to install those mega add-on cars pack mods;and please tell me why they don't work for me,when the modder guarantees that they work?
    Is there something that I could do to make them work?
    Please help me!


  • MODERATOR

    @player32 said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    @meimeiriver said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    @player32 said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:

    nstall mega add-on cars pack mods

    I'd say the solution is simple: don't add those 'mega add-on cars pack mods.' :) Personally, I'm very picky about which cars I want added (like 75 now total or so). Aka, be selective. Besides, you don't have enough valid car ID's for thousands of addon cars; in fact, you only have 255 max.

    Dear meimeiriver,thank you very much for replying to me!
    You know my wish is to install those mega add-on cars pack mods;and please tell me why they don't work for me,when the modder guarantees that they work?
    Is there something that I could do to make them work?
    Please help me!

    I'm not sure who the modder is, or whether those cars are even supposed to all have valid Car ID's, but the Car ID variable, in game, is hardcoded as an 8-bit value: so, ranging from 0-255. And that's it; doesn't matter whether you see a car ID of 18,7654 or something: those simply 'wrap' to byte-value (masked with 0xFF, so to speak), and will internally just be seen as an 8-bit value. Always. Hence, you can't install a pack with thousands, or even hundreds of cars, that are all supposed to have a valid car ID (when it's invalid, btw, then you can't tune your car).

    So, no matter what a modder guaranteed you, there's only one modder that counts here, Unknown Modder is his name, and he discovered, and demonstrated quite convincingly, from the source code, that car ID is an 8-bit value -- no matter what others tell you.


Log in to reply
 

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