altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Streaming vehiclelayouts.meta doesn't work

Open DamsDams opened this issue 4 years ago • 7 comments

vehiclelayouts.meta stream not working Discord contact if needed : Dams#7829

I'm a modder,

Working on a new project I have to modify a vehiclelayouts.meta, to modify the number of seats . I created a new layout from a vanilla one, I only add two lines propely. I made tests, the file is correctly created but it seams that it is not stream. Tried to test it on fivem, the file works. When I launch my local server, the vehicle can spawn, I try to go inside, I can't, no animation. When I climb on the vehicle, the game crash. According to other modders I know, it might come from way the vehiclelayouts.meta is stream (not stream).

Here is what I wrote in my stream.CFG : stream/submarinedrug/vehiclelayouts.meta: VEHICLE_LAYOUTS_FILE

Nothing on the crashdump

Expected behavior

I should be able to spawn the vehicle and go inside, that switch from the seat 1 to seat 2.

Current behavior

I can spawn the vehicle, can go in it, no animation started, and when I climp on the vehicle the game crash.

Possible solution

Maybe there is a problem with the stream, if the file wasn't good but streamed, I should have a start of animation or an instant crash a the moment I try to enter inside the vehicle.

Steps to reproduce

here are files of my project,

submarinedrug.zip

add this to your stream.cfg :

files: [

stream/submarinedrug/assets/* ] meta: { stream/submarinedrug/vehiclelayouts.meta: VEHICLE_LAYOUTS_FILE stream/submarinedrug/handling.meta: HANDLING_FILE stream/submarinedrug/vehicles.meta: VEHICLE_METADATA_FILE stream/submarinedrug/carcols.meta: CARCOLS_FILE stream/submarinedrug/carvariations.meta: VEHICLE_VARIATION_FILE }

https://streamable.com/0335n6

Context (environment)

Detailed description

Possible implementation

DamsDams avatar Jun 11 '20 19:06 DamsDams

got the same issue, spawned it in the water, tryed to go inside but ped was like stuck submarine.zip i made a ready resource to try

Kmz-rash avatar Jun 13 '20 06:06 Kmz-rash

Is there any update?

kasuganosoras avatar Aug 07 '20 15:08 kasuganosoras

I am also having issues of the game just crashing out when I attempt to enter the vehicle. Attached below is my crash dump:

MiniDump

ZackaryH8 avatar Aug 09 '20 10:08 ZackaryH8

I confirm that any right-hand drive car causes the game to crash

MiroSHGen avatar Sep 24 '20 18:09 MiroSHGen

Can confirm that issue, the problem is vehiclelayouts should be loaded before vehicles.meta. So we need to handle that in core, as a temp workaround you can put vehiclelayouts into its own resource and set it as a dependency for all your vehicles

vadzz-dev avatar Sep 21 '21 00:09 vadzz-dev

as a temp workaround you can put vehiclelayouts into its own resource and set it as a dependency for all your vehicles

It doesn't work and the game crashed.

mrgharabaghi avatar Sep 21 '21 06:09 mrgharabaghi

Is there any update on this?

vanlueckn avatar Jul 29 '22 23:07 vanlueckn

Should be fixed since dev/14.0-dev52

C0kkie avatar Mar 02 '23 16:03 C0kkie