Log in to reply
 

Can't spawn car as car



  • Why, it's a helicopter, actually, the 'Havok' from mpsmugglers. Prior to the 1024 id's, I had removed all cars from the DLC (in mods, of course).

    So, today I decided to get 1 'car' back, the cute little Havok. I copied every bit of info for it I could find: the usual meta files, tedious layout & anim settings, ptfx stuff, the works. Plus the heli itself and its mods, naturally.

    So, the Havok spawns just fine... but not as a vehicle. More like a regular prop. Its rotors don't spin up, and you can't enter it. Has anyone ever had this happen before?!



  • @meimeiriver maybe you missed a line from one of the meta's? it happened to me yesterday with skylines LCAC



  • @Reacon said in Can't spawn car as car:

    @meimeiriver maybe you missed a line from one of the meta's? it happened to me yesterday with skylines LCAC

    Yeah. Something weird. I'm thinking maybe it's one of the weapons (like the minigun) I'm either missing or misconfigured (these helis are10x harder than adding a car, really). Very strange the that whole heli is no longer recognized as a 'car' any more then, and appears just as an object.



  • @Reacon said in Can't spawn car as car:

    @meimeiriver maybe you missed a line from one of the meta's? it happened to me yesterday with skylines LCAC

    Well, one thing I couldn't locate, for one, is:

    <povCameraName>HELI_HAVOK_POV_CAMERA</povCameraName>
    

    I have no idea where HELI_HAVOK_POV_CAMERA is actually being defined. Not inside the DLC, near as I can tell.



  • @meimeiriver not got a clue man



  • @Reacon said in Can't spawn car as car:

    @meimeiriver not got a clue man

    I found a generic addon heli, and changed the povCameraName to HELI_POV_CAMERA; alas, still doesn't spawn the heli as a VEHICLE_TYPE_HELI (even though it's defined that way).



  • So, someone tell me, what's wrong with this entry?! It really ought to span as a heli!

    <Item>
    	<modelName>havok</modelName>
    	<txdName>havok</txdName>
    	<handlingId>HAVOK</handlingId>
    	<gameName>HAVOK</gameName>
    	<vehicleMakeName>NAGASAKI</vehicleMakeName>
    	<expressionDictName>null</expressionDictName>
    	<expressionName>null</expressionName>
    	<animConvRoofDictName>null</animConvRoofDictName>
    	<animConvRoofName>null</animConvRoofName>
    	<animConvRoofWindowsAffected />
    	<ptfxAssetName>weap_sm_tula</ptfxAssetName>
    	<audioNameHash />
    	<layout>LAYOUT_HELI_HAVOK</layout>
    	<coverBoundOffsets>HAVOK_COVER_OFFSET_INFO</coverBoundOffsets>
    	<explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
    	<scenarioLayout />
    	<cameraName>FOLLOW_HELI_CAMERA</cameraName>
    	<aimCameraName>HELI_AIM_CAMERA</aimCameraName>
    	<bonnetCameraName>HELI_BONNET_CAMERA</bonnetCameraName>
    	<povCameraName>HELI_HAVOK_POV_CAMERA</povCameraName>
    	<FirstPersonDriveByIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	<FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" 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.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.000000" z="0.000000" />
    	<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.173000" y="0.315000" z="0.538000" />
    	<FirstPersonPassengerMobilePhoneOffset x="0.190000" y="0.278000" z="0.493000" />
    	<FirstPersonMobilePhoneSeatIKOffset />
    	<PovCameraOffset x="0.000000" y="-0.050000" z="0.630000" />
    	<PovCameraVerticalAdjustmentForRollCage value="0.000000" />
    	<PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
    	<PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
    	<vfxInfoName>VFXVEHICLEINFO_HELI_GENERIC</vfxInfoName>
    	<shouldUseCinematicViewMode value="true" />
    	<shouldCameraTransitionOnClimbUpDown value="false" />
    	<shouldCameraIgnoreExiting value="false" />
    	<AllowPretendOccupants value="false" />
    	<AllowJoyriding value="true" />
    	<AllowSundayDriving value="true" />
    	<AllowBodyColorMapping value="true" />
    	<wheelScale value="0.080000" />
    	<wheelScaleRear value="0.080000" />
    	<dirtLevelMin value="0.000000" />
    	<dirtLevelMax value="0.000000" />
    	<envEffScaleMin value="0.000000" />
    	<envEffScaleMax value="1.000000" />
    	<envEffScaleMin2 value="0.000000" />
    	<envEffScaleMax2 value="1.000000" />
    	<damageMapScale value="0.100000" />
    	<damageOffsetScale value="0.100000" />
    	<diffuseTint value="0x00FFFFFF" />
    	<steerWheelMult value="1.000000" />
    	<HDTextureDist value="5.000000" />
    	<lodDistances content="float_array">
            20.000000
            90.000000
            130.000000
            260.000000
            750.000000
            750.000000
          </lodDistances>
    	<identicalModelSpawnDistance value="20" />
    	<maxNumOfSameColor value="10" />
    	<defaultBodyHealth value="1000.000000" />
    	<pretendOccupantsScale value="1.000000" />
    	<visibleSpawnDistScale value="1.500000" />
    	<trackerPathWidth value="2.000000" />
    	<weaponForceMult value="1.000000" />
    	<frequency value="100" />
    	<swankness>SWANKNESS_4</swankness>
    	<maxNum value="999" />
    	<flags>FLAG_NO_BOOT FLAG_DRIVER_NO_DRIVE_BY FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_HEADLIGHTS_USE_ACTUAL_BONE_POS FLAG_DONT_SPAWN_AS_AMBIENT FLAG_DONT_TIMESLICE_WHEELS FLAG_USE_STANDARD_FLIGHT_HELMET</flags>
    	<type>VEHICLE_TYPE_HELI</type>
    	<plateType>VPT_NONE</plateType>
    	<dashboardType>VDT_MAVERICK</dashboardType>
    	<vehicleClass>VC_HELICOPTER</vehicleClass>
    	<wheelType>VWT_SPORT</wheelType>
    	<trailers />
    	<additionalTrailers />
    	<drivers />
    	<extraIncludes />
    	<doorsWithCollisionWhenClosed>
    <Item>VEH_EXT_DOOR_DSIDE_F</Item>
    	</doorsWithCollisionWhenClosed>
    	<driveableDoors>
    <Item>VEH_EXT_DOOR_DSIDE_F</Item>
    	</driveableDoors>
    	<bumpersNeedToCollideWithMap value="false" />
    	<needsRopeTexture value="true" />
    	<requiredExtras />
    	<rewards />
    	<cinematicPartCamera>
    <Item>HELI_REAR_ROTOR_CAMERA</Item>
    	</cinematicPartCamera>
    	<NmBraceOverrideSet />
    	<buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
    	<buoyancySphereSizeScale value="1.000000" />
    	<pOverrideRagdollThreshold type="NULL" />
    	<firstPersonDrivebyData>
            <Item>STD_FRONT_LEFT</Item>
    	</firstPersonDrivebyData>
    </Item>
    


  • I'm a little further. I exchanged LAYOUT_HELI_HAVOK for LAYOUT_HELI_BUZZARD, and now the heli spins up again. :) In fact, I see nothing wrong with the buzzard layout/anims (visually); so, I'm half inclined to just keep it like that, and call it the day, LOL.

    So, there must be an error in LAYOUT_HELI_HAVOK. But what?!

    	<Item type="CVehicleLayoutInfo">
    		<Name>LAYOUT_HELI_HAVOK</Name>
    		<Seats>
    			<Item>
    				<SeatInfo ref="SEAT_SINGLE_LOWROOF_FRONT" />
    				<SeatAnimInfo ref="SEAT_ANIM_HELI_HAVOK_FRONT" />
    			</Item>
    		</Seats>
    		<EntryPoints>
    			<Item>
    				<EntryPointInfo ref="ENTRY_POINT_HELI_HAVOK_FRONT_LEFT" />
    				<EntryPointAnimInfo ref="ENTRY_POINT_ANIM_HELI_HAVOK_FRONT_LEFT" />
    			</Item>
    			<Item>
    				<EntryPointInfo ref="ENTRY_POINT_HELI_HAVOK_FRONT_RIGHT" />
    				<EntryPointAnimInfo ref="ENTRY_POINT_ANIM_HELI_HAVOK_FRONT_RIGHT" />
    			</Item>
    		</EntryPoints>
    

    Looks pretty straightforward. Those are defined in:

    	<Item>
    		<filename>dlc_combi:/data/anim/clip_sets.xml</filename>
    		<fileType>CLIP_SETS_FILE</fileType>
    		<overlay value="false" />
    		<disabled value="true" />
    		<persistent value="false" />
    	</Item>
    

    And the actual animations in:

    	<Item>
    		<filename>dlc_combi:/%PLATFORM%/anim/clip_anim@.rpf</filename>
    		<fileType>RPF_FILE</fileType>
    		<overlay value="false" />
    		<disabled value="true" />
    		<persistent value="true" />
    	</Item>
    

    That whole clip_anim@.rpf only consists of 3 anims (they are all referenced to these 3, by clip_sets.xml)

    anim@veh@helicopter@havok@ds@base.ycd
    anim@veh@helicopter@havok@ds@enter_exit.ycd
    anim@veh@helicopter@havok@ps@enter_exit.ycd

    So, anim folks, what am I missing here?! Looks like the anims don't get recognized/can't be used somehow. Have I misconfigured them somehow?! I never incorporated anims in vehiclelayouts.meta before.


  • MODERATOR

    @meimeiriver I doubt I'll be helpful here, I always use the same anim folder since 2016 for any kind of vehicle (cars, helis, bikes, etc) and everything works well. Anyway, some things to take in count:
    1.- Is the "Havok" an original game vehicle? If yes, are you trying to put it on a new DLC/Add-On or on a modded one?
    2.- Is the Havok working fine on your game without removing the other cars files? If yes, probably when removing the other cars files you're deleting something important and used by the Havok. The game probably tries to find a shared information between both vehicles, but can't find it because the main one doesn't exists anymore.
    3.- Are you 100% sure that everything is correct and you didn't miss anything? I doubt it. Sometimes I'm sure that I did something correctly and I didn't. If it happens to me when I control what I do in every moment, It can happen to you too.



  • @Reyser said in Can't spawn car as car:

    @meimeiriver I doubt I'll be helpful here, I always use the same anim folder since 2016 for any kind of vehicle (cars, helis, bikes, etc) and everything works well. Anyway, some things to take in count:
    1.- Is the "Havok" an original game vehicle? If yes, are you trying to put it on a new DLC/Add-On or on a modded one?

    The Havok is normally an existing Heli (from mpsmuggler). I ditched mpsmuggler, though (along with a few xmas DLC's, in order to free some resources). So, I extracted the Havok from mpsmuggler, and tried to add it to my own 'combi' addon cars DLC.

    Mind you, it spawns just fine; and even works just fine, with the LAYOUT_HELI_BUZZARD layout (see above posts). So, there must be an error in LAYOUT_HELI_HAVOK somewhere, but none that's very obvious. And other cars still work/tune just fine. So, there's no real error in the vehiclelayouts.meta file: it's just that it can't activate/reach the animations somehow (and just aborts spawning me into/entering the heli, in this case).

    2.- Is the Havok working fine on your game without removing the other cars files? If yes, probably when removing the other cars files you're deleting something important and used by the Havok. The game probably tries to find a shared information between both vehicles, but can't find it because the main one doesn't exists anymore.

    The Havok seems to share a weapon fx with the the Tula, it seems. I accommodated for that in my vehiclelayouts.meta. But, like I said, only the vehicle entry/exit anims don't work; with just the LAYOUT_HELI_BUZZARD, it fires its main minigun just fine, so it would seem I got the weapons part right, at least.

    3.- Are you 100% sure that everything is correct and you didn't miss anything? I doubt it. Sometimes I'm sure that I did something correctly and I didn't. If it happens to me when I control what I do in every moment, It can happen to you too.

    No, LOL, not 100% sure. :) Hence, I asked. You can't really look inside anim ycd files, so I'm not sure what those packed anims really need, so I assume they're standalone.

    Thx for the reply, btw. :)


  • MODERATOR

    @meimeiriver Then try it making a single Add-On for it. Sometimes there are vehicles that are not compatible with some other vehicle mods, which makes them to stop working fine when combined in the same Add-On. I've had a problem like that with a Porsche 911R by Dyc3 long time ago.



  • @Reyser said in Can't spawn car as car:

    @meimeiriver Then try it making a single Add-On for it. Sometimes there are vehicles that are not compatible with some other vehicle mods, which makes them to stop working fine when combined in the same Add-On. I've had a problem like that with a Porsche 911R by Dyc3 long time ago.

    I could try that, yes.

    Meanwhile, do you (or any one else) have experience with adding the actual animations themselves? (like in a custom clip_anim@.rpf). Most mods I see just deal with referencing to already defined anims in game), in clip_sets.xml, but don't usually add anims to their own DLC.


  • MODERATOR

    @meimeiriver I have no idea at all. Let's see if someone else can help you with that.



  • SOLVED! :)

    After having stripped down mpsmuggler down to where it contained pretty much only the bare minimum for the Havok, and it kept working, I smelled a rat, and finally found the cause! As always, (*$%^&&$, it was a rather 'trivial' error. Turns out setup2.xml contained a most peculiar line:

    <?xml version="1.0" encoding="UTF-8"?>
    <SSetupData>
    	<deviceName>dlc_combi</deviceName>
    	<datFile>content.xml</datFile>
    	<timeStamp>00/00/0000 00:00:00</timeStamp>
    	<nameHash>combi</nameHash>
    	<contentChangeSetGroups>
    		<Item>
    		<NameHash>GROUP_STARTUP</NameHash>
    		<ContentChangeSets>
    			<Item>combi_AUTOGEN</Item>
    			<Item>combi_UNLOCKS_AUTOGEN</Item>
    			<Item>
    			<NameHash>GROUP_ON_DEMAND</NameHash>
    		<ContentChangeSets>
    		<Item>combi_ANIM_OVERLAYS</Item>
    		</ContentChangeSets>
    		</Item>
    		</ContentChangeSets>
    		</Item>
    	</contentChangeSetGroups>
    	<type>EXTRACONTENT_COMPAT_PACK</type>
    	<order value="50" />
    </SSetupData>
    

    <Item>combi_ANIM_OVERLAYS</Item> Wut?! What's that doing there!? I have no idea! I must have copied it, back when, from some sort of DLC template.

    Not sure how, but this line wreaked 'Havok' on my imported animations! (Aka, stopped them from being executed). All is well again.


Log in to reply
 

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