Log in to reply
 

Questions about the dispatch.meta



  • Hello everybody.

    I've been messing around with the dispatch.meta to mod the police response to my liking and through trial and error (a lot) I came to understand a couple of things about this file. I'm posting here 3 questions about stuff I just couldn't get about the dispatch.meta. They are:

    1º) What's the NumPedsToSpawn value actually for? Is it...
    a.) the number vehicles spawned every time you achieve the threshold for a new wanted leved?
    b.) the number of NPCs spawned every time you achieve the threshold for a new wanted leved?

    2º) Does the value of NumPedsToSpawn equal the number of vehicles/npcs that are spwaned every time you enter a new wanted level or is the number that the game needs to maintain? Ex: I have...
    <DispatchType>DT_SwatAutomobile</DispatchType>
    <NumPedsToSpawn value="4"/>

    at 3 stars. Does it mean the game will try to always maintain 4 vehicles/npcs as long as I'm at 3 stars, or does it mean that it will spawn those 4 only ONCE during my 3 stars (if I kill all 4, no more SWAT will spawn until 4 stars)?

    3º) Can I edit somewhere the number of npcs that are spawned per vehicles or is it always 2, like hardcoded?

    4º) How can I get the FIB to show up? Honestly, for the love of god, I couldn't. Here is what I did:

    • edited the FIB Buffalo entry(fbi) in the vehicles.meta to allow for the necessary tags to show up.
    • edited the ped drivers of the Buffalo in the vehicles.meta to match mine in the dispatch.meta
    • created a vehicle set in the dispatch.meta for the FIB with the matching pedmodels.
    • added the FIB at 5 stars with the dispatch type "PoliceAutomobile".

    And they won't show up...I could just get them to appear at roadblocks. Roadblocks work like a charm for all vehiclesets to be honest.

    Thank you for your patience of reading these many questions. I really appreciate any insight.



  • Hello again,

    Just posting here because I found a solution to problem number 4; maybe that might be useful for other people experiencing similar problems. :slight_smile:

    After wasting hours and hours looking into both the dispatch and vehicles.meta, I found out that the FBI Buffalo wasn't beeing dispatched because of the profile of the ped drivers. As I had said, I had already included the ped in the vehicle.meta, but I hadn't touched the peds.ytm. The solution was there. Both S_M_M_FIBOffice_01 and 02 were assigned as "civmale" and not as a law enforcment agent. So I changed that and voilá!
    Worked like a charm!

    The thing is...now it caused a different problem :disappointed:
    My 5-star response line in dispatch.meta looks like this:
    <Item>
    <DispatchType>DT_PoliceAutomobile</DispatchType>
    <NumPedsToSpawn value="4"/>
    <DispatchVehicleSets>
    <Dispatch>POLICE_FBI</Dispatch>
    </DispatchVehicleSets>
    </Item>

    Yet for some reason the game is dispatching a huge number of FBI Buffalos (at the same time), all of them with 4 FBI peds each. And aparently it doesn't stop...I have usually to quit due to the large amount of peds on-screen making my fps drop so bad. Last I could count it was at least 8 buffalos... (besides other units dispatch, helicopter, swat, etc..).

    I tried editting the FBI Buffalo entry in the vehicles.meta's, changing the MaxNum to spawn but it didn't affect the dispatch at all. I think that line only affects vehicles spawned in traffic.

    So I'm clueless at the moment. I reckon it might be something in the wantedtuning.ymt and dispatchtuning.ymt that's causing this, but so far I couldn't identify what it is.



  • @TheSith said in Questions about the dispatch.meta:

    I think that line only affects vehicles spawned in traffic.

    Yeah, afaik that's right. Only affects ambient traffic spawns (doesn't affect dispatch or cargens) :thumbsup:

    Upload your 'dispatch.meta', 'wantedtuning.ymt' & 'dispatchtuning.ymt' in a .zip/.rar/.7zip etc to somewhere like MediaFire & send me the link & I'll take a look at them. See if anything pops out at me. :thumbsup:



  • @a63nt-5m1th said in Questions about the dispatch.meta:

    @TheSith said in Questions about the dispatch.meta:

    I think that line only affects vehicles spawned in traffic.

    Yeah, afaik that's right. Only affects ambient traffic spawns (doesn't affect dispatch or cargens) :thumbsup:

    Upload your 'dispatch.meta', 'wantedtuning.ymt' & 'dispatchtuning.ymt' in a .zip/.rar/.7zip etc to somewhere like MediaFire & send me the link & I'll take a look at them. See if anything pops out at me. :thumbsup:

    Thank you so much for the offer, I really appreciate it! :metal:
    But it's no longer necessary, I found the problem. It's a bit weird but...well

    It turns out that the problem was in the peds.ymt. I had changed, as I stated in post number #2, the ped category. I had replaced the "civmale" for "swat". Apparently sending a swat ped under the <DispatchType>DT_PoliceAutomobile</DispatchType> category at 5 starts cause the game to send dozens and dozens of that ped.
    So I changed, from "swat" to "cop" and it started working perfectly!

    Except that tampering with the peds.ytm (the one I have in the mods folder) caused the special abilities of my characters not to load. The yellow bar, I mean, it was always depleted. Really weird.

    To fix it I had to extract the peds.ytm and edit out of OpenIV. Then I added it again and it worked. So far, apparently, there have been no weird bugs...almost; for some reason sometimes countryside units are dispatched when the player is on the beach. :smile:
    But that is not a bug that annoys me, so I won't even look into it.

    So I think we can consider all issues solved. Thanks everybody!



  • @TheSith
    Glad you got it sorted :slight_smile: :thumbsup: & thanks for coming back & giving us all the info on it :thumbsup:


Log in to reply
 

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