Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ZLIB Crash Replacing Vehicle

Featured Replies

Heya,

 

I've been dabbling with LML in an attempt to use it to replace vehicles with downloaded ones that do not have LML data. Every time I do, GTA V will consistently crash to desktop with an ERR_GEN_ZLIB_2 error. If I disable the vehicle in LML, or remove the vehicle mod entirely, then the crashing stops and the game is totally stable so I know it's related to adding vehicles and that there aren't corrupted core game files. Another resource on this error from 2017 suggests that textures cannot be larger than 1024 (except we've been using larger textures than that forever in GTA V modding) and must be a specific DDS format. I've done all that as well, but the problem persists.

 

If I add the vehicle normally through OpenIV, it loads in just fine. 

 

Exact Error message:

Quote

ERR_GEN_ZLIB_2

Failed zlib call. Please reboot, verify the game data, or reinstall the game. For more information, please visit: http://rsg.ms/verify

 

Attached are relevant files and logs.

 

Vehicle.meta for the vehicle included in the spoiler, which is copied out of the file that came with the vehicle pack:

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfo__InitDataList>
  <residentTxd>vehshare</residentTxd>
  <residentAnims />
  <InitDatas> 
 <Item>
      <modelName>sheriff2</modelName>
      <txdName>sheriff2</txdName>
      <handlingId>SANDKING</handlingId>
      <gameName>SHERIFF2</gameName>
      <vehicleMakeName />
      <expressionDictName>null</expressionDictName>
      <expressionName>null</expressionName>
      <animConvRoofDictName>null</animConvRoofDictName>
      <animConvRoofName>null</animConvRoofName>
      <animConvRoofWindowsAffected />
      <ptfxAssetName>null</ptfxAssetName>
      <audioNameHash />
      <layout>LAYOUT_RANGER_SWAT</layout>
      <coverBoundOffsets>SHERIFF2_COVER_OFFSET_INFO</coverBoundOffsets>
      <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
      <scenarioLayout />
      <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
      <aimCameraName>BOX_VEHICLE_AIM_CAMERA</aimCameraName>
      <bonnetCameraName>VEHICLE_BONNET_CAMERA_STANDARD</bonnetCameraName>
      <povCameraName>DEFAULT_POV_CAMERA_LOOKAROUND</povCameraName>
      <FirstPersonDriveByIKOffset x="0.000000" y="-0.050000" z="-0.028000" />
      <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonProjectileDriveByIKOffset x="0.028000" y="-0.040000" z="0.075000" />
	  <FirstPersonProjectileDriveByPassengerIKOffset x="0.020000" y="0.060000" z="-0.090000" />
	  <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="-0.055000" />
	  <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="-0.055000" />
	  <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="-0.040000" />
	  <FirstPersonDriveByRightPassengerIKOffset x="-0.045000" y="-0.048000" z="-0.040000" />
	  <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="-0.040000" />
	  <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonMobilePhoneOffset x="0.143000" y="0.245000" z="0.521000" />
      <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.223000" z="0.435000" />
      <PovCameraOffset x="0.000000" y="-0.125000" z="0.640000" />
      <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
      <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.030000" />
      <PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.070000" />
      <vfxInfoName>VFXVEHICLEINFO_CAR_GENERIC</vfxInfoName>
      <shouldUseCinematicViewMode value="true" />
      <shouldCameraTransitionOnClimbUpDown value="false" />
      <shouldCameraIgnoreExiting value="false" />
      <AllowPretendOccupants value="true" />
      <AllowJoyriding value="false" />
      <AllowSundayDriving value="false" />
      <AllowBodyColorMapping value="true" />
      <wheelScale value="0.268600" />
      <wheelScaleRear value="0.268600" />
      <dirtLevelMin value="0.300000" />
      <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">
        2000.000000
        3000.000000
        7000.000000 
        14000.000000  
        50000.000000  
        50000.000000
      </lodDistances>
      <minSeatHeight value="0.966" />
      <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_1</swankness>
      <maxNum value="2" />
      <flags>FLAG_HAS_LIVERY FLAG_LAW_ENFORCEMENT FLAG_DONT_SPAWN_IN_CARGEN FLAG_IS_OFFROAD_VEHICLE FLAG_HAS_INTERIOR_EXTRAS FLAG_REPORT_CRIME_IF_STANDING_ON</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
	  <dashboardType>VDT_CAVALCADE</dashboardType>
      <vehicleClass>VC_EMERGENCY</vehicleClass>
      <wheelType>VWT_SUV</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers>
        <Item>
          <driverName>S_M_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
      </drivers>
      <extraIncludes />
      <doorsWithCollisionWhenClosed />
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="false" />
      <needsRopeTexture value="false" />
      <requiredExtras />
      <rewards>
        <Item>REWARD_WEAPON_CARBINERIFLE</Item>
        <Item>REWARD_AMMO_CARBINERIFLE</Item>
        <Item>REWARD_STAT_WEAPON</Item>
      </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>RANGER_CAVALCADE_FRONT_LEFT</Item>
        <Item>RANGER_FRONT_RIGHT</Item>
        <Item>RANGER_PRANGER_REAR_LEFT</Item>
        <Item>RANGER_PRANGER_REAR_RIGHT</Item>
      </firstPersonDrivebyData>
    </Item>
    </InitDatas>
  <txdRelationships>
   <Item>
      <parent>vehshare</parent>
      <child>vehicles_cav_interior</child>
    </Item>
    <Item>
      <parent>vehicles_cav_interior</parent>
      <child>sheriff2</child>
    </Item>
  </txdRelationships>
</CVehicleModelInfo__InitDataList>

 

 

I'll continue to try and troubleshoot and experiment with a few different things. Let me know if you see anything weird in the install xml and vehicles meta. I tried to follow the wiki instructions and a few other threads here in building them but this is my first day messing with LML.

 

RagePluginHook.log vfs.log ModManager.log install.xml

  • Author

Addendum:

Changing the loading type to an addon and renaming everything (veh files, meta, install, etc) to a new name does not cause a crash on attempt to spawn the vehicle, but the vehicle never spawns. The game stalls for a second or so, then it resumes with nothing having been spawned. (note that I did not rename the folder "replace," as that doesn't really matter).

 

New Install.xml

Spoiler

<EasyInstall>
    <Name>SASP Ranger Silverado</Name>
    <Author>Ripple</Author>
    <Version>1.0.1</Version>
    <Link>https://www.lcpdfr.com/downloads/gta5mods/vehiclemodels/26470-els-san-andreas-state-parks-mini-pack/</Link>
    <!-- This is entirely optional and just resembles the custom tags we have just now on lcpdfr.com. Could vary per file and displayed if it exists? -->
    <Metadata>
        <VehicleType>Police</VehicleType>
        <ModelStatus>Locked</ModelStatus>
        <ELSCompatibility>ELS</ELSCompatibility>
        <CompletionState>Complete</CompletionState>
    </Metadata>
	<!-- Copy the ELS file where it needs to go -->
	<ResourceFolders>
        <GameFolder subFolder="ELS/pack_default">ELS/PRANGER2.xml</GameFolder>
    </ResourceFolders>
    <!-- Describes the addon resources which add new files rather than replacing existing ones -->
     <Addons>
        <!-- We can give an addon a name if we want to logically group them to make enabling/disabling easier -->
        <Addon name="SASP Ranger">
            <!-- Folder with all files to load in as streaming files -->
            <StreamingFile>replace/pranger2.yft</StreamingFile>
			<StreamingFile>replace/pranger2.ytd</StreamingFile>
			<StreamingFile>replace/pranger2_hi.yft</StreamingFile>
            <DataFile type="VEHICLE_METADATA_FILE">replace/vehicles.meta</DataFile>
        </Addon>
    </Addons>
    <!-- Describes the resources to replace
    <Replacements>
        <Replacement name="Handling changes and new police car">
            <FileEntryReplacement type="VEHICLE_METADATA_FILE">replace/vehicles.meta</FileEntryReplacement>
            <FileReplacement>replace/pranger2.ytd</FileReplacement>
			<FileReplacement>replace/pranger2.yft</FileReplacement>
			<FileReplacement>replace/pranger2_hi.yft</FileReplacement>
        </Replacement>
    </Replacements>
	-->
</EasyInstall>

Relevant log entries:

Spoiler

ModManager.log



2020-05-24 20:46:08.7890|TRACE|?????????????????????????????????????????|Added resource SASP Ranger/replace/vehicles.meta
<snipped out the Coastal Callouts spam>
2020-05-24 20:46:08.8340|TRACE|?????????????????????????????????????????|Added resource SASP Ranger/replace/pranger2.ytd
2020-05-24 20:46:08.8530|TRACE|?????????????????????????????????????????|Added resource SASP Ranger/replace/pranger2.yft
2020-05-24 20:46:08.8530|TRACE|?????????????????????????????????????????|Added resource SASP Ranger/replace/pranger2_hi.yft

VFS.log



2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\packfilehooks.cpp:1893: Requested to stream file addonDLC:/sasp ranger/replace/pranger2.yft
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\streamingfilesloader.cpp:277: Adding addonDLC:/sasp ranger/replace/pranger2.yft to queue
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\packfilehooks.cpp:1893: Requested to stream file addonDLC:/sasp ranger/replace/pranger2.ytd
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\streamingfilesloader.cpp:277: Adding addonDLC:/sasp ranger/replace/pranger2.ytd to queue
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\packfilehooks.cpp:1893: Requested to stream file addonDLC:/sasp ranger/replace/pranger2_hi.yft
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\streamingfilesloader.cpp:277: Adding addonDLC:/sasp ranger/replace/pranger2_hi.yft to queue
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\packfilehooks.cpp:1905: Requested to load data file addonDLC:/sasp ranger/replace/vehicles.meta of type vehicle_metadata_file
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\streamingfilesloader.cpp:259: Registered addonDLC:/sasp ranger/replace/pranger2.yft as pranger2.yft
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\streamingfilesloader.cpp:259: Registered addonDLC:/sasp ranger/replace/pranger2.ytd as pranger2.ytd
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\streamingfilesloader.cpp:259: Registered addonDLC:/sasp ranger/replace/pranger2_hi.yft as pranger2_hi.yft
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\packfilehooks.cpp:1371: LoadDataFile: Loading addonDLC:/sasp ranger/replace/vehicles.meta, type 73
2020-05-24 20:53:41 TRACE d:\gtav\vfs\vfs\vfs\packfilehooks.cpp:1397: Loaded addonDLC:/sasp ranger/replace/vehicles.meta via class CVehicleMetaDataFileMounter

RageHook log: *note that there is nothing in it at all about PRANGER2. There is no preloading line like there normally would be, and no ambient spawn line for the spawning of the vehicle.

 

 

On a related note, @LMShas told me that those crashes presumably occur due to some sort of file size limit. When loading the vehicle as an addon instead of a replacement it works for me. It doesn't crash and it spawns.

 

However I've noticed that sometimes, 30 mins or an hour into the game, it will  still crash. When checking logs I've noticed it's due to my modded police3 every single time, which had caused the crashes initially.

 

Is the vehicle that is causing those issues high poly or is its ytd file particularly large?

Logging in...

Launching game...

Error launching game: Cannot load while loading. Please log out and retry.

Logging out...

Error logging out. You are not logged in. You need to be logged in to log out. Please log in to log out.

  • Author
Quote

@LMS: Can you link me to the vehicle so I can try for myself?

Sure, see above. I was trying to replace "pranger" with the chevy silverado out of this pack. When that didn't work, I started over and tried to use the default "sheriff2" that it would normally replace.

 

As @TheUniT mentioned, I was also able to get it to work as an addon as well, after fixing a typo in the install xml and reloading it into the game, so that's good news! The only issue I'm having is with replacements, and yes, it's all around larger than GTA's typical filesize at >10MB each file. However, I can export the textures and scale them down, save as DDS and reimport to cut the filesize of the ytd down to under 10MB and the crash persists so there might be some low cutoff point.

 

 

Edited by Aryto
Clarification

  • Management Team
On 5/25/2020 at 10:13 PM, Aryto said:

As @TheUniT mentioned, I was also able to get it to work as an addon as well, after fixing a typo in the install xml and reloading it into the game, so that's good news! The only issue I'm having is with replacements, and yes, it's all around larger than GTA's typical filesize at >10MB each file. However, I can export the textures and scale them down, save as DDS and reimport to cut the filesize of the ytd down to under 10MB and the crash persists so there might be some low cutoff point.

 

I can confirm that the issue is the filesize for replacements and can be solved by using addon cars. I do not  yet have the same workaround in place for replacements, but hopefully I can add that soon. Trimming down the ytd below 16MiB did work fine for me, though (I can then use it as a replacement).

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
2 hours ago, LMS said:

 

I can confirm that the issue is the filesize for replacements and can be solved by using addon cars. I do not  yet have the same workaround in place for replacements, but hopefully I can add that soon. Trimming down the ytd below 16MiB did work fine for me, though (I can then use it as a replacement).

I had a feeling... I have just been renaming to create addon vehicles out of everything and don't have any issues at all with any of them. Once you get into the groove of what's needed, LML is a really fast way to have a lot of vehicles available and switch them up easily! I never thought OpenIV editing was all that difficult, but it meant fully replacing the mod folder copies completely with custom ones and finding that one little xml bug in a file is a lot more time consuming than troubleshooting an LML loaded asset!

 

Thanks for your work. I hope it'll become even more user friendly with more things available in the GUI like deleting mods from the list, renaming, etc. As well as some more documentation and examples of what is available to the install.xml (like how you explicitly mention you can use update: but I found that if I need to replace something in common.rpf, common: works but isn't mentioned) will be awesome. I know digging through Coastal Callouts is a good learning tool, but the wiki documentation is easier reading for starting out and could use more lists of data file types, etc. 😉

 

Now that I'm more comfortable, I can more easily see at a glance what is going on in a more complex install.xml. But really, thanks again for this! Once up the learning curve it really is much more rapid to pull something you want off the site and get it into the game. 

This is a support topic.
Only reply here to offer help or assistance to Aryto. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.