How do I add handling to an Add-On car that doesn't have a handling.meta file?
-
I have an Evo IX car mod, and it doesn't have a handling file. It just copies off the Sultan's handling.
I was wondering how I could give it its own handling.
I copied the Sultan's handling into a separate .meta file, then I placed it in the car's directory, replacing the text in the file with evo9 instead of sultan. I told the vehicles.meta file to get the handling id from the evo9 model, and then went into context.xml to tell it of the handling file.
However, spawning the vehicle crashes the game. Am I missing something?
-
Did you add the XML stuff around it?
<?xml version="1.0" encoding="UTF-8"?> <CHandlingDataMgr> <HandlingData> <Item type="CHandlingData"> <handlingName>SULTAN</handlingName> <!-- etc --> </Item> </HandlingData> </CHandlingDataMgr>
-
It SHOULD have it. I'll get back to you on that.
-
@ikt Here's what I got.
-
@mrwallace888
Post your 'handling.meta', 'vehicles.meta' & 'content.xml' here using (3 separate) codeblocks.
Thanks(it's easier to check than screenshot).
How to post a codeblock:
```xml
Copy these three lines to txt file etc, overwrite only this line with meta data, copy all & post into forum post.
```
-
Content.XML
<CDataFileMgr__ContentsOfDataFileXml> <disabledFiles /> <includedXmlFiles /> <includedDataFiles /> <dataFiles> <Item> <filename>dlc_evo9:/data/vehicles.meta</filename> <fileType>VEHICLE_METADATA_FILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="false" /> </Item> <Item> <filename>dlc_evo9:/data/carcols.meta</filename> <fileType>CARCOLS_FILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="false" /> </Item> <Item> <filename>dlc_evo9:/data/carvariations.meta</filename> <fileType>VEHICLE_VARIATION_FILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="false" /> </Item> <Item> <filename>dlc_evo9:/data/dlctext.meta</filename> <fileType>TEXTFILE_METAFILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="false" /> </Item> <Item> <filename>dlc_evo9:/data/handling.meta</filename> <fileType>HANDLING_FILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="false" /> </Item> <Item> <filename>dlc_evo9:/%PLATFORM%/vehicles.rpf</filename> <fileType>RPF_FILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="true" /> </Item> <Item> <filename>dlc_evo9:/%PLATFORM%/vehiclemods/evo9_mods.rpf</filename> <fileType>RPF_FILE</fileType> <overlay value="false" /> <disabled value="true" /> <persistent value="true" /> </Item> </dataFiles> <contentChangeSets> <Item> <changeSetName>evo9_AUTOGEN</changeSetName> <filesToDisable /> <filesToEnable> <Item>dlc_evo9:/data/vehicles.meta</Item> <Item>dlc_evo9:/data/carcols.meta</Item> <Item>dlc_evo9:/data/carvariations.meta</Item> <Item>dlc_evo9:/data/dlctext.meta</Item> <Item>dlc_evo9:/%PLATFORM%/vehicles.rpf</Item> <Item>dlc_evo9:/%PLATFORM%/vehiclemods/evo9_mods.rpf</Item> </filesToEnable> <txdToLoad /> <txdToUnload /> <residentResources /> <unregisterResources /> </Item> </contentChangeSets> <patchFiles /> </CDataFileMgr__ContentsOfDataFileXml>
Vehicles.META
<CVehicleModelInfo__InitDataList> <residentTxd>vehshare</residentTxd> <residentAnims /> <InitDatas> <Item> <modelName>evo9</modelName> <txdName>evo9</txdName> <handlingId>evo9</handlingId> <gameName>EVO9</gameName> <vehicleMakeName>MITSUBISHI</vehicleMakeName> <expressionDictName>null</expressionDictName> <expressionName>null</expressionName> <animConvRoofDictName>null</animConvRoofDictName> <animConvRoofName>null</animConvRoofName> <animConvRoofWindowsAffected /> <ptfxAssetName>null</ptfxAssetName> <audioNameHash>SULTANRS</audioNameHash> <layout>LAYOUT_STD_EXITFIXUP</layout> <coverBoundOffsets>SULTAN_COVER_OFFSET_INFO</coverBoundOffsets> <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo> <scenarioLayout /> <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName> <aimCameraName>MID_BOX_VEHICLE_AIM_CAMERA</aimCameraName> <bonnetCameraName>VEHICLE_BONNET_CAMERA_NEAR</bonnetCameraName> <povCameraName>DEFAULT_POV_CAMERA</povCameraName> <FirstPersonDriveByIKOffset x="0.000000" y="-0.060000" z="-0.060000" /> <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="-0.025000" z="0.000000" /> <FirstPersonProjectileDriveByIKOffset x="0.000000" y="0.000000" z="0.000000" /> <FirstPersonProjectileDriveByPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" /> <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.020000" z="0.000000" /> <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.020000" 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.080000" z="0.000000" /> <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="-0.080000" z="0.000000" /> <FirstPersonMobilePhoneOffset x="0.110000" y="0.215000" z="0.518000" /> <FirstPersonPassengerMobilePhoneOffset x="0.185000" y="0.125000" z="0.433000" /> <FirstPersonMobilePhoneSeatIKOffset /> <PovCameraOffset x="0.000000" y="-0.210000" z="0.600000" /> <PovCameraVerticalAdjustmentForRollCage value="-0.045000" /> <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" /> <PovRearPassengerCameraOffset x="0.000000" y="0.000000" 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.238100" /> <wheelScaleRear value="0.238100" /> <dirtLevelMin value="0.000000" /> <dirtLevelMax value="0.700000" /> <envEffScaleMin value="0.000000" /> <envEffScaleMax value="1.000000" /> <envEffScaleMin2 value="0.000000" /> <envEffScaleMax2 value="1.000000" /> <damageMapScale value="0.400000" /> <damageOffsetScale value="0.400000" /> <diffuseTint value="0x00FFFFFF" /> <steerWheelMult value="0.700000" /> <HDTextureDist value="5.000000" /> <lodDistances content="float_array"> 10.000000 60.000000 120.000000 300.000000 500.000000 500.000000 </lodDistances> <minSeatHeight value="0.832" /> <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="100" /> <swankness>SWANKNESS_2</swankness> <maxNum value="10" /> <flags>FLAG_HAS_LIVERY FLAG_SPORTS</flags> <type>VEHICLE_TYPE_CAR</type> <plateType>VPT_BACK_PLATES</plateType> <dashboardType>VDT_SULTAN</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_SULTAN_FRONT_LEFT</Item> <Item>STD_SULTAN_FRONT_RIGHT</Item> </firstPersonDrivebyData> </Item> </InitDatas> <txdRelationships> <Item> <parent>vehicles_sultan_interior</parent> <child>evo9</child> </Item> </txdRelationships> </CVehicleModelInfo__InitDataList>
Handling.META
<CHandlingDataMgr> <HandlingData> <Item type="CHandlingData"> <handlingName>evo9</handlingName> <fMass value="1250.000000" /> <fInitialDragCoeff value="9.000000" /> <fPercentSubmerged value="85.000000" /> <vecCentreOfMassOffset x="0.000000" y="0.000000" z="0.000000" /> <vecInertiaMultiplier x="1.000000" y="1.400000" z="3.000000" /> <fDriveBiasFront value="0.500000" /> <nInitialDriveGears value="6" /> <fInitialDriveForce value="0.330000" /> <fDriveInertia value="0.700000" /> <fClutchChangeRateScaleUpShift value="1.200000" /> <fClutchChangeRateScaleDownShift value="1.200000" /> <fInitialDriveMaxFlatVel value="173.000000" /> <fBrakeForce value="1.000000" /> <fBrakeBiasFront value="0.550000" /> <fHandBrakeForce value="0.700000" /> <fSteeringLock value="40.000000" /> <fTractionCurveMax value="2.00000" /> <fTractionCurveMin value="2.00000" /> <fTractionCurveLateral value="22.500000" /> <fTractionSpringDeltaMax value="0.150000" /> <fLowSpeedTractionLossMult value="1.000000" /> <fCamberStiffnesss value="0.000000" /> <fTractionBiasFront value="0.475000" /> <fTractionLossMult value="1.000000" /> <fSuspensionForce value="2.800000" /> <fSuspensionCompDamp value="1.400000" /> <fSuspensionReboundDamp value="2.200000" /> <fSuspensionUpperLimit value="0.060000" /> <fSuspensionLowerLimit value="-0.10000" /> <fSuspensionRaise value="0.000000" /> <fSuspensionBiasFront value="0.50000" /> <fAntiRollBarForce value="0.10000" /> <fAntiRollBarBiasFront value="0.50000" /> <fRollCentreHeightFront value="0.10000" /> <fRollCentreHeightRear value="0.10000" /> <fCollisionDamageMult value="0.700000" /> <fWeaponDamageMult value="1.000000" /> <fDeformationDamageMult value="0.700000" /> <fEngineDamageMult value="1.500000" /> <fPetrolTankVolume value="65.000000" /> <fOilVolume value="5.000000" /> <fSeatOffsetDistX value="0.000000" /> <fSeatOffsetDistY value="-0.275000" /> <fSeatOffsetDistZ value="0.050000" /> <nMonetaryValue value="35000" /> <strModelFlags>440010</strModelFlags> <strHandlingFlags>2</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> </HandlingData> </CHandlingDataMgr>
-
@mrwallace888
Cheers'handling.meta' & 'vehicles.meta':
Do you have:<?xml version="1.0" encoding="UTF-8"?>
at the top of both your 'handling.meta' & 'vehicles.meta'? (it's missing in what you posted)
If not, paste it at the very top, save the files & install@ikt did post that, but you might have missed it etc.
'content.xml':
Also, you're missing the 'handling.meta' line in the '<filesToEnable>' section in 'content.xml':That section should look like this:
<Item> <changeSetName>evo9_AUTOGEN</changeSetName> <filesToDisable /> <filesToEnable> <Item>dlc_evo9:/data/vehicles.meta</Item> <Item>dlc_evo9:/data/carcols.meta</Item> <Item>dlc_evo9:/data/carvariations.meta</Item> <Item>dlc_evo9:/data/dlctext.meta</Item> <Item>dlc_evo9:/data/handling.meta</Item> <!-- this line was missing --> <Item>dlc_evo9:/%PLATFORM%/vehicles.rpf</Item> <Item>dlc_evo9:/%PLATFORM%/vehiclemods/evo9_mods.rpf</Item> </filesToEnable> <txdToLoad /> <txdToUnload /> <residentResources /> <unregisterResources /> </Item>
Hopefully, that does it, but let us know if you're still having issues after fixing those
-
Did select all and copy-pasted the code so IDK why the top bit didn't show up. But it's in there. I'll test it out after putting the content.xml line in.