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.

Carvariation Entry Replacement (And Other Questions)

Featured Replies

Not having any luck overriding a vanilla vehicle's settings using the same format as a vehicles.meta entry replacement.

 

<FileEntryReplacement type="VEHICLE_VARIATION_FILE">replace/carvariations.meta</FileEntryReplacement>

Is this the wrong method, or is that not supported yet?

 

On a related note, would it be possible to get a list of supported file types and the correct ways to load them as addon and replacements in the wiki?

 

Also, is it possible to reload file changes while the game is running?

 

  • Management Team

That would be the correct way if file loading in V was consistent.. You are doing everything correctly, but unfortunately a few game file types have different behavior. While most (such as handling or vehicles.meta) will discard a new entry for the same name (and hence you need the single replacement) a few will overwrite an already existing entry if loaded in again. This seems to be the case of carvariations, so you will have to load it as an addon. Like this:

 

<Addons>
    <Addon name="Override Carvariation for POLICE">
        <DataFile>replace/carvariations.meta</DataFile>
    </Addon>
</Addons>

 

This is unfortunately something we have no control over and just have to learn as we go so we can document these oddities. That is also why I cannot give you a list of what works and what does not, as in theory everything works but as you have seen for yourself that is not always the case. I am working on a list to document these findings though. If you find more stuff like this, please let me know.

 

File changes can usually not be reloaded while the game is running as most data file parsers reject new entries with the same name. In this particular case it would most likely work fine though since it just overwrites what it had before. I have a small dev tool to quickly load in different versions of vehicles and compare them in-game which I hope to release soon.

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

  • Author

At least it's simple: whether you have new, replacement, or a mix of carvariations, just use an add-on file.

 

No sweat on in-depth documentation, it's barely past the first release, after all.

 

I think that covers vehicles for me, next up is testing new and replacement ped data and model files.

1 hour ago, The Loot said:

New issue found: when adding a new handling entry, attempting to change a replacement car to use it crashes on load.

 

This worked for me to replace the handling on "polmav" with "as350" handling: 

 

    <Replacements>
		<Replacement name="AS350 polmav replacement">
			<FileEntryReplacement type="VEHICLE_METADATA_FILE">data/vehicles.meta</FileEntryReplacement>
			<FileEntryReplacement type="HANDLING_FILE">data/handling.meta</FileEntryReplacement>
			<FileReplacements>stream</FileReplacements>
		</Replacement>
	</Replacements>

 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

  • Author

That doesn't need to overwrite the original entry, does it? I'd like to avoid that, so I'll try loading the custom handling like that.

 

I also assume the crash is caused by LML loading replacements first, thus it works fine with the added vehicles in the pack, but not the replacements.

 

Edit: Yep, that works.

Edited by The Loot

  • 1 month later...
  • Author

So another thing I've found out: modified vehicle interior texture settings (txdRelationships) also do not load correctly from a replacement vehicles.meta file, but do load from an addon file.

This is a support topic.
Only reply here to offer help or assistance to The Loot. 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...

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.