Log in to reply
 

How to fix tuning parts and lights not working on addons or making your own car packs



  • @Unknown-Modder The fact that they are pre-filling it makes it seem like it's a dynamic table. And that would lead me onto something I thought about last night in bed.

    If this is a dynamic LUT, does a vehicle being spawned, cause one of those FF values to get assigned with a runtime generated alternate (and valid) ID, or are all cars in the documents simply assigned an ID in that table when the table is initialised/filled and then it is simply left purely as a reference LUT?

    So like I have a pack that basically uses pretty much all values from 226 to 255 as IDs. It would be interesting to see where and how those values get integrated into that table. All of them have working tuning, which given the game's apparent capping of in-game IDs to around 235, seems impossible... there are too many IDs for the available space they can get assigned into.

    That's what makes me wonder if there is some dynamic allocation going on for non-native vehicles. It would be interesting to see a display of those values on screen as addon vehicles are spawned and deleted from the game, to see how that affects things.


  • MODERATOR

    @LeeC2202 It's not dynamic. After the data from platform:/data/carcols.ymt/meta was read and assigned in CVehicleModelInfoVarGlobal, the game basically does this

    SetModKitArrayValues(g_vehicleModelInfoVarGlobal, 0, g_vehicleModelInfoVarGlobal->modKitsCount);
    

    and that's it. No modifications, the stored items will only be read after this.



  • @Unknown-Modder Ah, that's fair enough then... I just wondered based on how I had used LUTs in the past. Sometimes you need pure reference, others you need something that is more adaptive.

    You're providing some good thought-provoking info here though... keeps my brain ticking over. :slight_smile:



  • heres a video that shows how to properly copy the sections from carcols.meta file of your addon car or addon pack that you made to carcols.ymt. Carcols.ymt takes prio rity over meta files so copying the tuning parts section and lights section to carcols.ymt will guarantee that your tuning parts and lights work. If your lights dont shine onto the ground then the lights arent working correctly.
    https://www.mediafire.com/?sg42141lxw64p40

    updating the 1st page my original topic with better information, easier instructions etc soon.

    Edit : also there is a limit of how many cars you can have with tuning parts working even with my carcols.ymt method. Its either 235 or 255 cars total with working tuning parts. Im trying to see if i can get past that number.


  • MODERATOR

    OT:

    @Unknown-Modder
    What tools do you use to reverse the game, and get pretty function names with nice param names and these classes? IDA?


  • MODERATOR

    @ikt Yes, I use IDA Pro.


  • MODERATOR

    ... still hoping all this reversing power will eventually lead to a tool/script that sets modkit_ID's to a valid one when spawning an add-on car with tuning :)



  • Help, my notepad ++ does not display text in the .ymt file as shown in the video
    0_1495893825500_upload-ae5c66a5-f6f1-48c3-9162-ef19c2e8cece



  • @Jason-SilentGamer You need to decompile the ymt first...



  • @HeySlickThatsMe how can I do that? sry 4 my bad english



  • @Jason-SilentGamer Meta tool , or there was one decompiled version i don't know where



  • @HeySlickThatsMe I don't see anything like that(



  • @Jason-SilentGamer you need a new version of openiv right click on the carcols.ymt file and hit export to meta/xml



  • I made my own DLC car collection by adding each cars from every addon made
    But these cars can't be moded in Los Santos Customs or a trainer.............As a matter of fact I have used different values for each cars in carcols and carvariation meta files......But the lights work correctly by the way..........And the modification that I cant do includes tuning as well(Engine,Suspension,etc). Does anybody know why?



  • @Willief23 I didn't get the part where copying from meta to .ymt of carcols is involved. Can you explain?



  • @Atit-Basnet which this video it shows you which lines to copy from carcols.meta to carcols.ymt. http://www.mediafire.com/file/sg42141lxw64p40/carcols_meta_copy_to_carcols_ymt.avi


  • MODERATOR

    @Atit-Basnet said in How to fix tuning parts and lights not working on addons or making your own car packs:

    I made my own DLC car collection by adding each cars from every addon made
    But these cars can't be moded in Los Santos Customs or a trainer.............As a matter of fact I have used different values for each cars in carcols and carvariation meta files......But the lights work correctly by the way..........And the modification that I cant do includes tuning as well(Engine,Suspension,etc). Does anybody know why?

    You either have a syntax error somewhere in your XML files; use this for that: XML Validator, or your car ID's are mostly invalid. The latter seem the most likely. If you just packed all addon DLC's out there, changes are you'll have but a few valid car ID's.



  • I just installed RDE, other MOD is not installed, I think it should be gameconfig.xml incompatible, so can you send your gameconfig.xml to me?



  • IS there any Video about this topic



  • @ReNNie could addon cars use the same modkit and light kit? Essentially just having one <kits> and one <lights> for all cars?



  • @CrzBonKerz Interesting question. But imagine having a car and your trainer shows 294 Spoilers, 699 Front Bumpers etc. in the tuning section.
    I have almost every modkit id used by several cars because i have too many. Yes its possible to use tuning for several cars in one modkit id but its not fun to scroll through so many tuning options. So you want to keep it low on that.^^


  • MODERATOR

    @wernhard said in How to fix tuning parts and lights not working on addons or making your own car packs:

    @CrzBonKerz Interesting question. But imagine having a car and your trainer shows 294 Spoilers, 699 Front Bumpers etc. in the tuning section.
    I have almost every modkit id used by several cars because i have too many. Yes its possible to use tuning for several cars in one modkit id but its not fun to scroll through so many tuning options. So you want to keep it low on that.^^

    A shared modkit amongst several cars?! Do tell more!

    EDIT: And I don't just mean several cars using the 0_modkit thingy, but actual tuning parts for different addon cars.



  • @meimeiriver
    Hi, at page 3 i wrote how i was able to do it. If you dont understand what it means i will try to explain it. :)
    You definitely will have to make use of the carcols.ymt.


  • MODERATOR

    @wernhard said in How to fix tuning parts and lights not working on addons or making your own car packs:

    @meimeiriver
    Hi, at page 3 i wrote how i was able to do it. If you dont understand what it means i will try to explain it. :)
    You definitely will have to make use of the carcols.ymt.

    Another quote:

    Not original cars, my own cars. I just take an own modkit from any addoncar and copy&paste the <visibleMods> and <LinkMods> stuff in there. See, i cant add a modkit anymore, it wont work. But i really wanna add "Car X" with tuning. I take another addon car with tuning kit, lets say "ferrarif50" and copy and paste the above said stuff from "Car X" carcols in the "ferrarif50" modkit. Everything is done in the "carcols.ymt", you know, with that trick every motherfucking tuning kits works like a charm and i'm talking about 255+ tuning kits. :D Hope i could bypass that limit for a while and keep on adding like a maniac till i'm finished

    Hmm, I still don't fully understand. :) You're basically copying <visibleMods> and <LinkMods> stuff into another car's modkit. That I get. Still a few questions left, though.

    1. Aren't those modkit definitions only visble within the scope of the car using that ID?!

    2. And if you share the ID between cars, the normal thing that will happen, is that you have an ID conflict (and basically only the last car using it gets the valid modkit, invalidating that of the 'old' car).

    3. And if you somehow get a shared car ID working (for both cars!), then all tuning parts for both cars would show up in like Menyoo Customs). That could get messy very fast (and will likely crash your game on auto-upgrade)

    Nonetheless very interested in how you accomplished this. I am literally out of car ID's.



  • @meimeiriver

    Ok so, you need the carcols.ymt file. Keep that in mind, you will only use this to make tuning kits work.
    We dont need to add the lines in any carcols.meta ever again.

    Transfer every tuning modkit that you have into that carcols.ymt. It will work.
    My carcols.ymt is over 8mb filesize.

    Now you downloaded that fancy new car with big ass tuning you really want to add. But you dont have any modkit id left?
    No problem. Open the carcols.meta from that car and open your carcols.ymt.
    Now you go into the carcols.ymt and search for a modkit that you wanna use. Preferably a modkit that does not have a lot of tuning in it since you would simply have 30 spoilers etc.

    You now take the <visibleMods> and <LinkMods> stuff from the addon car and put it into your carcols.ymt file modkit of choice. You really have to watch out for the < and > and </blabla> stuff since the game wont even load if there's a conflict. But you know that already if you have some experience.

    After you transferred it you save the carcols.ymt and put it where it belongs (mods->update->update.rpf->x64->data). You now proceed to install the rest of the car as usual.
    In carvariations you will, or course, use the modkit it you used to transfer your stuff into. There will be no conflict. Trust me. Its like the 0_default_modkit. Every car will use if even if there's tuning stuff in it that can't be used.

    For ingame tuning i use a trainer. Never tried the "Auto Upgrade" stuff. My game never crashed because of a tuning part no working. Sometimes, when you use a false tuning part the driver will fall through it into the earth. Just get out of the car and go in again then.

    Edit: I uploaded my carcols.ymt. Look into it how i did it. I have ~1000 Vehicles. Every tuning that should work is doing fine.
    http://www.share-online.biz/dl/PHCBZHXONUE


Log in to reply
 

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