Quantcast

Jump to content

» «
Photo

[SA]Editing Vehicle Frequency

9 replies to this topic
Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#1

Posted 20 December 2013 - 10:47 AM

Been looking over the net and couldn't find how to do so,that's why I am asking here.

I want to know if its possible to edit the frequency of cars spawning on the roads,for instance I want to make Police cruisers spawn less often on the roads.

Is there such thing that defines the frequency of vehicle spawning?

 

Thanks.


Alihunter
  • Alihunter

    Never meant to be so cold...

  • Members
  • Joined: 20 Oct 2012
  • Iran

#2

Posted 20 December 2013 - 03:06 PM

yes in popcycle.dat in your data folder.

and you have to decrease the "COPS" number in each section.

like:

////////////////////////////////////////////////////////////////////////////////////////
// BUSINESS
////////////////////////////////////////////////////////////////////////////////////////
// Weekday
//
// #Peds #Cars Dealers Gang Cops Other     Workers Business Clubbers Farmers BeachFolk Parkfolk Casual_Rich Casual_Average Casual_Poor Prozzies Crimimals Golfers Servants Aircrew Entertainers oot_fact Desertfolk Aircrew_runway
    3     9     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0   // Midnight
    3     9     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0  // 2am
    3    12     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 4am
    5    12     100      100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6am
   20    18     100      70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8am
   15    14     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 10am
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // noon
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 2pm
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 4pm
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6pm
   10    12     50       100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8pm
    5    12     100      100 100  100        0       0        15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 10pm

to:

////////////////////////////////////////////////////////////////////////////////////////
// BUSINESS
////////////////////////////////////////////////////////////////////////////////////////
// Weekday
//
// #Peds #Cars Dealers Gang Cops Other     Workers Business Clubbers Farmers BeachFolk Parkfolk Casual_Rich Casual_Average Casual_Poor Prozzies Crimimals Golfers Servants Aircrew Entertainers oot_fact Desertfolk Aircrew_runway
    3     9     100      100 10  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0   // Midnight
    3     9     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0  // 2am
    3    12     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 4am
    5    12     100      100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6am
   20    18     100      70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8am
   15    14     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 10am
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // noon
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 2pm
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 4pm
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6pm
   10    12     50       100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8pm
    5    12     100      100 100  100        0       0        15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 10pm

Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#3

Posted 20 December 2013 - 03:11 PM Edited by Danikov, 20 December 2013 - 05:16 PM.

 

yes in popcycle.dat in your data folder.

and you have to decrease the "COPS" number in each section.

like:

////////////////////////////////////////////////////////////////////////////////////////
// BUSINESS
////////////////////////////////////////////////////////////////////////////////////////
// Weekday
//
// #Peds #Cars Dealers Gang Cops Other     Workers Business Clubbers Farmers BeachFolk Parkfolk Casual_Rich Casual_Average Casual_Poor Prozzies Crimimals Golfers Servants Aircrew Entertainers oot_fact Desertfolk Aircrew_runway
    3     9     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0   // Midnight
    3     9     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0  // 2am
    3    12     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 4am
    5    12     100      100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6am
   20    18     100      70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8am
   15    14     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 10am
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // noon
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 2pm
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 4pm
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6pm
   10    12     50       100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8pm
    5    12     100      100 100  100        0       0        15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 10pm

to:

////////////////////////////////////////////////////////////////////////////////////////
// BUSINESS
////////////////////////////////////////////////////////////////////////////////////////
// Weekday
//
// #Peds #Cars Dealers Gang Cops Other     Workers Business Clubbers Farmers BeachFolk Parkfolk Casual_Rich Casual_Average Casual_Poor Prozzies Crimimals Golfers Servants Aircrew Entertainers oot_fact Desertfolk Aircrew_runway
    3     9     100      100 10  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0   // Midnight
    3     9     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0  // 2am
    3    12     100      100 100  100        0        0       15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 4am
    5    12     100      100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6am
   20    18     100      70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8am
   15    14     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 10am
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // noon
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 2pm
   15    14     50       70  100  100        0       60       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 4pm
   20    18     50       70  100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 6pm
   10    12     50       100 100  100        0       80       0        0       0       0         0            20              0          0         0       0       0         0       0            0      0         0 // 8pm
    5    12     100      100 100  100        0       0        15       0       0       0         0            0               35         35        15      0       0         0       0            0      0         0 // 10pm

 

 

Thanks!

 

and what about frequency of other vehicles in the street,for example I want to make cars like the Picador less frequent,is there any way to control that?

 

Edit : Just like the Euros,it spawns very rarely,what makes it spawn in that frequency?


Alihunter
  • Alihunter

    Never meant to be so cold...

  • Members
  • Joined: 20 Oct 2012
  • Iran

#4

Posted 20 December 2013 - 06:06 PM

i dont think that you can change the spawn value of a SPECIAL car(like euros). but you can increase its group(group name adn cars located in cargp.dat) .for example,i want more "primo"s. i increase the number of his group in popcycle.here an example line of cargp:

taxi, cabbie, bfinject, faggio, glendale, oceanic, mesa, bmx, mtbike, mrwhoop, washing, previon, pcj600, cadrona, sunrise, yosemite, bravura, primo    	# POPCYCLE_GROUP_BEACHFOLK

any other questions,tell me! :lol:


OrionSR
  • OrionSR

    Chain Game Development Team

  • Feroci
  • Joined: 23 May 2007
  • None
  • Helpfulness Award [GTA & Modding]

#5

Posted 20 December 2013 - 06:32 PM Edited by OrionSR, 20 December 2013 - 10:44 PM.

There's nothing special about the Euros. It will spawn fairly regularly if the order or number of vehicles on the appropriate cargrp lines are changed so the Euros, or Phoenix for that matter, isn't listed beyond the maximum vehicle count per group - which is 23.

 

You should be able to gain indirect control of the spawn frequency of particular vehicles by adding those vehicles to more or fewer car groups in cargrp.dat, and then balancing the spawn frequency of the ped groups that drive the vehicles in popcycle.dat.

 

The zone types identified in popcycle.dat are applied to the zones during the early missions by main.scm, The zones don't change type as the game progresses. One way to identify or alter the type of each zone is to use the zone editor tool included with the Savegame Editor v3.x.

 

GTA SA Savegame Editor v3.0 by Paul Breeuwsma: http://www.paulinternet.nl/sa

 

Added for clarification: Each of 12 lines shown in the business popcycle above controls the spawn rate for a 2 hour period. Alihunter's example would only reduce the cops that spawn from midnight until 2:00, and then only when CJ is located in a Business typed zone on a weekday.


Alihunter
  • Alihunter

    Never meant to be so cold...

  • Members
  • Joined: 20 Oct 2012
  • Iran

#6

Posted 20 December 2013 - 07:02 PM

yes,he right! :beerhat:


Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#7

Posted 22 December 2013 - 10:27 AM Edited by Danikov, 22 December 2013 - 10:29 AM.

Oh,now I get it,Thanks!

Also,instead of creating another topic,I wanted to ask if its possible to change the kind of engine sound the car uses?
,for example make the Hustler use the sound that the Hermes and Broadway use.

Alihunter
  • Alihunter

    Never meant to be so cold...

  • Members
  • Joined: 20 Oct 2012
  • Iran

#8

Posted 23 December 2013 - 02:55 PM

yes,by changing bank sounds in genrl file via a tool.

but,it has too many banks and i don't know what number of hustler sound.but if you find that(number of "hustler"sound bank),tell me to send that mod to you!

(maybe there are other ways i don't know,and maybe they are even better! if any body know other way,tell him!)


Danikov
  • Danikov

    The Fake Russian

  • Members
  • Joined: 27 Aug 2009
  • Israel

#9

Posted 23 December 2013 - 03:01 PM

yes,by changing bank sounds in genrl file via a tool.

but,it has too many banks and i don't know what number of hustler sound.but if you find that(number of "hustler"sound bank),tell me to send that mod to you!

(maybe there are other ways i don't know,and maybe they are even better! if any body know other way,tell him!)

 

Wouldn't it cause the sound bug?


aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#10

Posted 23 December 2013 - 09:08 PM

Yes it is possible with this handy little tool, Vehicle Audio Loader by fastman92.

It shouldn't take you too long to figure out how to use it. :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users