[Tutorial] How to do: Add-On / Replace (Vehicles & Weapons)
-
@Willief23 I did it your way and succeeded in version 1.36.
But using the latest version 1.38 on Steam it did not work.
-
@Reyser Very good tuto thanks ! But i have a problem...
I follow all steps but my game crash at loadings screen.
I have a good gameconfig' and all scripts updated and only 22 addons car.
I don't understand what is the problem :s
Could you help me please ?
-
@Legendkiller176 Maybe you did a mistake when editing META files. Check that all open/close tags are correct and not duplicated.
-
@Reyser said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:
@Legendkiller176 Maybe you did a mistake when editing META files. Check that all open/close tags are correct and not duplicated.
-
@meimeiriver Thanks i have validated my meta files and my game don't crash but when i tried to spawn my cars no one works and don't spawn with my trainer
Other solution ?
-
@Legendkiller176 said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:
@meimeiriver Thanks i have validated my meta files and my game don't crash but when i tried to spawn my cars no one works and don't spawn with my trainer
Why, either they don't spawn, or they don't work.
Furthermore, "doesn't work" is usually considered a not all that useful description. The modkits don't work? You get an 'Invalid Model' trying to spawn the car? The modelName should match the spawn name, like:
<modelName>prototipo2</modelName>
Which should be spawned as 'prototipo2'.
EDIT: And that's assuming you named your car files that way too, of course.
-
@meimeiriver i would say don't spawn only sorry ^^ and the trainer say me "exemplecar spawned" but the car don't appear.
My cars have not modkit and spawn perfectly if i put them in patchday11ng + good meta files ( personal method )
-
@Legendkiller176 said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:
exemplecar
If the replacement method works, then obviously your meta files are at fault. So, let's examine them:
-
at the very least you'll need a vehicles.meta, starting with
<Item> <modelName>exemplecar</modelName> .... </Item>
And a txdRelationships entry (near the bottom), like:
<Item> <parent>vehicles_poltax_interior</parent> <child>exemplecar</child> </Item>
Then a carvariations.meta, with a section like:
<Item> <modelName>exemplecar</modelName> <colors> .... </colors> <kits> <Item>0_default_modkit</Item> </kits> .... <lightSettings value="1" /> <sirenSettings value="0" /> </Item>
You only need a carcols.meta if you actually defined a custom modkit and/or lightsettings. If not, just skip it.
Then you need a handling.meta, like:
<Item type="CHandlingData"> <handlingName>exemplecar</handlingName> .... </Item>
Your car must be named accordingly, like:
exemplecar.yft
exemplecar_hi.yft
exemplecar.ytdAnd your content.meta file needs to load the other pertinent meta files.
-
-
When making a replacement vehicle into an add-on, what dlc.rpf do you mean? Replacement vehicles don't come with a dlc.rpf.?
-
@ethannn_ You need to create one. Right click on a free area in OpenIV and click on "create .rpf" or something similar and call it dlc.rpf. Atleast it is something called with create .rpf, not sure what it says exactly. Sure you can find it.
-
@Reyser Hi dude. I´m converting a replace vehicle to add-on, ( for personal use) I manage to make it work but I have a problem, when spawing the car I can´t change stock rims to any other game based rims in LSC also the windows tint are not applicable.. Can you help me with this? which line should I change and in which data file? to make it work.. Thanks in advance
-
@JCM Hello. You should change the ID value from carcols.meta and carvariations.meta files to another one for the specified vehicle until you find one that works.
-
@Reyser said in [Tutorial | Vehicles/Weapons] How to do: Add-On's / Replacer's:
carcols.meta a
Gracias, voy a intentar eso, pero una pregunta, cual linea de codigo debo buscar eb carcols y carvariations?? disculpa es que es el primer add on que hago
-
@JCM En carcols.meta te aparecerá algo como lo siguiente:
<Item> <kitName>93726412978634_rcf_modkit</kitName> <id value="93726412978634" /> <kitType>MKT_SPECIAL</kitType>
Cambia los 2 valores numéricos (asegúrate que donde en el ejemplo pone RCF, en el tuyo ponga el nombre del vehículo que usará esas líneas de código) por otro.
En cavariations.meta algo como lo siguiente:
<kits> <Item>93726412978634_rcf_modkit</Item> </kits> <windowsWithExposedEdges /> <plateProbabilities>
Lo mismo de antes, pero solo con el valor numérico de la línea <Item></Item>.
-
@Reyser Muchas gracias Amigo, eres un crack me funciono perfecto--- Gracias hermano Saludos desde america latina
!!
-
how do I install this folder/mod?
-
Could someone explain to me how to add cars with vehiclelayouts.meta? I'm trying to add this Rx7 https://www.gta5-mods.com/vehicles/2002-mazda-rx-7-spirit-r-type-a-series-iii-fd3s it's so far the second car in my DLC and the only one to use vehiclelayouts, so I just copied everything from it's vehiclelayouts.
But what if I have to add another car that uses a custom vehiclelayouts? If I don't add the lines from it it crashes, but the file is set up kinda complex.
-
@DOMSlayer vehiclelayouts.meta has a potential of twenty sections but it's really no more complex than vehicles.meta, that only has the two.
All you have to do, is make sure that you keep entries from the each section in the addon, in the corresponding sections in the addon pack. So just like you would add a second entry into InitDatas or txdRelationships, you do the same thing with each section in vehiclelayouts.meta
I have a blank vehiclelayouts.meta file here https://drive.google.com/file/d/0B7LFvItVrwd0TWhLRVQtQkdId0k/view?usp=sharing
That has all the sections in order, as a pair of tags that you can insert the data between.
-
@LeeC2202 Thanks that would make it a lot easier since i can then check which sections the mod uses and add it to the right one.
-
@Reyser Saludo.
Sabes, tengo un problema y es que estoy haciendo un add-on de un Aventador Conv. SV y todo funciona bien en el gta 5, pero cuando pongo los modkit salen mal puesto en el coche. Ej: cuando hago aparecere el techo este aparece a mitad de la cabeza del conductor, le falta muy poco para qedar bien y La verdad e intentado todo y no se que codigo pongo mal en carcols ( o vehicle meta o el vehicle layout) o si hay alguna forma de que pueda hacer aparecer el tuning a la altura correcta. me ayudas por favol
-
So I already have 18 added lines in dlclist and I was just done adding another car to my mod this G class with plenty of tuning parts and my game gave me ERR_FIL_PACK_1 error, so I went into the dlclist and deleted two single add on cars that I had and the game is working.
Could adding too many cars to my own Add On be the cause for the game not to handle the other add ons? I'm already using a max gameconfig.
-
@CutHere Probablemente sea un problema del vehículo en si, ya que algunos son más bajos que los originales del GTA y si no se modifica la altura (posición) a la que se encuentra el personaje dentro de él pues la cabeza de este a veces sobresale un poco.
Prueba a cambiar el valor "offset Z" (no recuerdo exactamente como se llama) del archivo "vehicles.meta".
@DOMSlayer Yes. Depending the size of the dlc.rpf file or the amount of vehicles (with or without tunable parts) installed can be the problem.
Be sure to have all your "dlc.rpf" Add-On packs sizes below 3.5GB.
-
@Reyser Gracias.... reviso y te dejo saber : )
-
@Reyser estoy teniendo problemas con la carpeta número 4. He seguido todos los pasos y el juego carga correctamente, pero al intentar spawnear la mayoría de los coches, el juego crashea (no da ningún error, solo Grand Theft Auto V ha dejado de funcionar). Los pocos que spawnean no tienen ni luces ni tuning, a pesar de que en los archivos meta está todo correcto según tu tutorial. El dlc en total pesa 1,46GB. A ver si puedes echarme una mano. Gracias
-
@JuanjoDK7 No puede estar todo correcto en los archivos ".meta" si cuando intentas Spawnear un vehículo éste crashea tu juego, algo debes haber hecho mal en esos archivos.
Comprueba que las etiquetas de apertura/cierre de sección en dichos archivos sean correctos, es decir, que no las hayas duplicado por cada vehículo, etc. Échale un ojo también al plugin "XML Validator" que ofrece Notepad++ para comprovar que la estructura de los ficheros sea correcta.