IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (4) [1] 2 3 ... Last »  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 [TUT] Gangs 9 & 10

 How to make them work
 
bmb  
Posted: Saturday, Jan 1 2011, 17:50
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



user posted image


Gangs 9 & 10 are usable you just have to set them up properly. I came across this when changing around my gang areas in the main.scm. I wanted to put the Russians in Ocean Docks and never noticed they were criminals instead of a gang. So I started looking at the other gangs and changed the Russians the same way and it worked! I will show 2 examples of this in this tutorial. One is the Russian Gang, their territory is in Ocean Docks. the other is a Motorcycle Gang, their territory covers all of Terra Robada.

BEFORE BEGINNING BACK UP YOUR FILES!!!

Open your peds.ide file with notepad located in C:\Program Files\Rockstar Games\GTA San Andreas\data\

Find these 6 lines
CODE
111, MAFFA, MAFFA, CRIMINAL, STAT_CRIMINAL, man, 110F,1, null,2,2,PED_TYPE_GEN,VOICE_GEN_MAFFA ,VOICE_GEN_MAFFA
112, MAFFB, MAFFB, CRIMINAL, STAT_CRIMINAL, man, 110F,1, null,2,2,PED_TYPE_GEN,VOICE_GEN_MAFFB ,VOICE_GEN_MAFFB
113, MAFBOSS, MAFBOSS, CRIMINAL, STAT_CRIMINAL, man, 110F,1, null,2,2,PED_TYPE_GANG,VOICE_GNG_MAFBOSS ,VOICE_GNG_MAFBOSS

100, WMYCR, WMYCR, CRIMINAL, STAT_CRIMINAL, man, 110F,1, man,2,6,PED_TYPE_GEN,VOICE_GEN_WMYCR ,VOICE_GEN_WMYCR
247, BIKERA, BIKERA , CIVMALE, STAT_TOUGH_GUY, man, 0,1, null,5,2,PED_TYPE_GEN,VOICE_GEN_BIKERA ,VOICE_GEN_BIKERA
248, BIKERB, BIKERB , CIVMALE, STAT_TOUGH_GUY, man, 0,1, null,2,5,PED_TYPE_GEN,VOICE_GEN_BIKERB ,VOICE_GEN_BIKERB

And change them to this
CODE
111, MAFFA, MAFFA, GANG9, STAT_GANG9, man, 110F,1, null,2,2,PED_TYPE_GEN,VOICE_GEN_MAFFA ,VOICE_GEN_MAFFA
112, MAFFB, MAFFB, GANG9, STAT_GANG9, man, 110F,1, null,2,2,PED_TYPE_GEN,VOICE_GEN_MAFFB ,VOICE_GEN_MAFFB
113, MAFBOSS, MAFBOSS, GANG9, STAT_GANG9, man, 110F,1, null,2,2,PED_TYPE_GANG,VOICE_GNG_MAFBOSS ,VOICE_GNG_MAFBOSS

100, WMYCR, WMYCR, GANG10, STAT_GANG10, man, 100,1, man,2,6,PED_TYPE_GEN,VOICE_GEN_WMYCR ,VOICE_GEN_WMYCR
247, BIKERA, BIKERA , GANG10, STAT_GANG10, man, 0,1, null,5,2,PED_TYPE_GEN,VOICE_GEN_BIKERA ,VOICE_GEN_BIKERA
248, BIKERB, BIKERB , GANG10, STAT_GANG10, man, 0,1, null,2,5,PED_TYPE_GEN,VOICE_GEN_BIKERB ,VOICE_GEN_BIKERB

SAVE & CLOSE

Next open the pedgrp.dat located in the same folder

Scroll down till you find these 2 lines
CODE
VLA1, VLA2, VLA3          # Gang 9  (UNUSED)

VLA1, VLA2, VLA3         # Gang 10  (UNUSED)

And change them to this
CODE
MAFFA, MAFFB, MAFBOSS         # Gang 9  (RUSSIANS)

WMYCR, BIKERA, BIKERB          # Gang 10  (BIKERS)

Also while you’re here find criminals and remove WMYCR or he will spawn around Los Santos and be attacked by other gangs. tounge.gif

SAVE & CLOSE

Now open up the cargrp.dat located in the same folder

Scroll down and find these 2 lines
CODE
sentinel                                                             # Gang 9 (UNUSED)

sentinel                                                             # Gang 10 (UNUSED)

And change them to whatever you want, mine look like this
CODE
washing, admiral, esperant                                           # Gang 9 (RUSSIANS)

freeway                                                                      # Gang 10 (BIKERS)

SAVE & CLOSE

ped.dat & pedstats.dat were already completed by Rockstar so you don’t need to edit them. (That’s how I figured it would work)

Almost done, you need to set up there weapons and territory. You can make a small cleo script like I did below or edit your main.scm

This is the cleo script I made.
I forgot a very important part in my script. BnB pointed this out later in the discussion, so here is his script.
CODE
{$CLEO .cs}

//-------------MAIN---------------
thread "GW"

:GW_11
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @GW_11

:GW_34
0237: set_gang 8 weapons_to 23 30 28
0237: set_gang 9 weapons_to 1 24 25
076C: set_zone 'LDOC1A' gang 8 density_to 60
076C: set_zone 'LDOC1B' gang 8 density_to 60
076C: set_zone 'LDOC2' gang 8 density_to 60
076C: set_zone 'LDOC3A' gang 8 density_to 60
076C: set_zone 'LDOC3B' gang 8 density_to 60
076C: set_zone 'LDOC3C' gang 8 density_to 60
076C: set_zone 'LDOC4' gang 8 density_to 60
076C: set_zone 'ROBAD' gang 9 density_to 90  // Tierra Robada
076C: set_zone 'ROBAD1' gang 9 density_to 90
076C: set_zone 'SUNNN' gang 9 density_to 90  // Bayside
076C: set_zone 'SUNMA' gang 9 density_to 90  // Bayside Marina
076C: set_zone 'ELQUE' gang 9 density_to 90  // El Quebrados
076C: set_zone 'BYTUN' gang 9 density_to 90  // Bayside Tunnel
076C: set_zone 'ALDEA' gang 9 density_to 90  // Aldea Malvada
076C: set_zone 'BARRA' gang 9 density_to 90  // Las Barrancas
076C: set_zone 'ROBINT' gang 9 density_to 90  // Robada Intersection
0A93: end_custom_thread


Terra Robada is a very large territory so the density is set to 90.

That’s all there is to it. You can make your gangs as you see fit. Just remember when you change peds to gang 9 or 10 you want to remove them from the ped groups (pedgrp.dat) there already in. If not your game will sort of end up like the cheat “gangs everywhere” when they are in other gang areas.

Final notes:
1- If you want to change any area already occupied by the Ballas, Grove, etc. you have to edit the main.scm or both gangs will spawn in the same area.
2. Gangs 9 & 10 are the only ones allowed, you cannot add gang 11 or the game will crash. I tried it.
3. The game uses BIKERA & BIKERB the same way it uses MALE01. They are random peds that get put in by the game. The game will substitute both BIKERA & BIKERB with the white construction workers which looks kinda funny in country areas.
4. After further testing using BIKERA & BIKERB can cause other changes in the game. Ocean Docks had a lot more cops walking around, probably because the construction workers were moved to the country areas. You might want to extract the .dff & .txd for the bikers from your gta3.img file and rename them replace other peds to make a biker gang.

user posted image user posted image


If you want a good map (like I used in the pictures above) of GTA SA areas to help you set up your gangs you can download it from www.myepsilon.org link


Have Fun & Happy New Year!!!

This post has been edited by bmb on Sunday, Feb 13 2011, 04:18
PM
  Top
 

 
Deji  
Posted: Tuesday, Jan 18 2011, 23:35
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Very useful!

I'd always considered memory access to be the only way to do this tounge2.gif
Users WebsitePM
  Top
 

 
bmb  
Posted: Saturday, Jan 22 2011, 18:11
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



Glad you liked it.
PM
  Top
 

 
BnB  
Posted: Saturday, Jan 22 2011, 18:43
Quote Post


sh*t Happens
Group Icon
Group: Members
Joined: Jun 28, 2010

gc.gif

Member Award




Very very useful!
Great TUT. icon14.gif
I made SBF a gang long time ago.

This post has been edited by BnB on Wednesday, Jan 26 2011, 19:53
PM
  Top
 

 
bmb  
Posted: Saturday, Jan 22 2011, 19:38
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE (BnB @ Jan 22 2011, 14:43)
Very very useful!
Great TUT. icon14.gif
I had made SBF a gang long time ago.

Thanks
PM
  Top
 

 
Cortador  
Posted: Monday, Jan 31 2011, 14:16
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 25, 2011

XXXXX



Just one question for me to understand how it works. In pedgrp you set gangs 9 and 10, but in the script you use gangs 8 and 9. How is that? Is something like the first gang being "gang 0" when scripting, or something like that?
PM
  Top
 

 
bmb  
Posted: Monday, Jan 31 2011, 15:20
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE (Cortador @ Jan 31 2011, 10:16)
Just one question for me to understand how it works. In pedgrp you set gangs 9 and 10, but in the script you use gangs 8 and 9. How is that? Is something like the first gang being "gang 0" when scripting, or something like that?


Yes, you're on the right track. If you look in the Sanny Builder help section under SCM Documentation/Gang IDs, The Ballas start at 0.

Gang0 Ballas
Gang1 Grove Street Families
Gang2 Los Santos Vagos
Gang3 San Fierro Rifa
Gang4 Da Nang Boys
Gang5 Mafia
Gang6 Mountain Cloud Triad
Gang7 Varrio Los Aztecas
Gang8 (unused)
Gang9 (unused)

In the pedgrp.dat the Ballas starts with 1.
PM
  Top
 

 
Cortador  
Posted: Tuesday, Feb 1 2011, 10:15
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 25, 2011

XXXXX



OK, thanks. Now I understand some certain strange things that happened in previous attempts to mess with the gangs.
PM
  Top
 

 
WhiteRoss  
Posted: Friday, Feb 11 2011, 00:07
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Aug 3, 2009

us.gif

XXXXX



First let me say thank you for making this tutorial I did most of the steps added the Russians and the bikers into the text file and all of that and the bikers do pop up in-game towards like Glen Park I don't have cleo installed and I really don't intend on using cleo, but if you could explain a way to make the Russians and the Bikers spawn without the use of using a cleo script or even how I could alter the main.scm whatever its called I would really appreciate it 'fam. Bless.
PM
  Top
 

 
Mr. Kingpin  
Posted: Friday, Feb 11 2011, 05:13
Quote Post


Chain so heavy dat my neck starts hurtin'!
Group Icon
Group: Members
Joined: Aug 22, 2010

XXXXX



Thanks for the tutorial bro...really needed something like this.
Users WebsitePM
  Top
 

 
methodunderg  
Posted: Friday, Feb 11 2011, 09:17
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



Excellent timing ! Just last night I found these guys : Al-Qaeda ... And the new PO2010 has a cave in it just outside of LS biggrin.gif Might be time to learn how to make missions smile.gif

Where can I find a list of all zones, preferably with a map smile.gif ?
And how can I make it so that the bikers just cruise around all the highways in San Andreas in packs of 6-15ish ?
I know there are a couple of cleo mods out there for biker meetups. A few more of those would be awesome as well.
Just need to hunt down some good biker ped mods smile.gif

This post has been edited by methodunderg on Friday, Feb 11 2011, 09:31
PM
  Top
 

 
bmb  
Posted: Friday, Feb 11 2011, 16:51
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE (WhiteRoss @ Feb 10 2011, 20:07)
First let me say thank you for making this tutorial I did most of the steps added the Russians and the bikers into the text file and all of that and the bikers do pop up in-game towards like Glen Park I don't have cleo installed and I really don't intend on using cleo, but if you could explain a way to make the Russians and the Bikers spawn without the use of using a cleo script or even how I could alter the main.scm whatever its called I would really appreciate it 'fam. Bless.

If you change your main.scm you have to start a new game. Your save files will make the game crash

To edit the main.scm you need to use either BW's GTA SA mission Builder or Sanny Builder.

BEFORE BEGINNING BACK UP YOUR FILES!!!

Start the program, under the file menu click open. Change the file type to All files (*.*) and navigate to C:\Program Files\Rockstar Games\GTA San Andreas\data\script\.

When using BW's GTA SA mission Builder it will ask for a save directory you can just use the default or navigate to your desktop and create a new folder so its easier to find.

BW's GTA SA mission Builder will take a little while to load so be patient.

Under edit menu select find and type in
CODE
Market Station

If you are using the original main.scm it should take you to here and Market Station will be highlighted.
CODE
08CA: (unknown)
0767: set_zone 'MARKST' popcycle_group_for_peds_to  14  ; Market Station
0767: set_zone 'UNITY' popcycle_group_for_peds_to  5  ; Unity Station

On the line above left click with your mouse after (unknown) and press enter to make a new line.

it should look like this
CODE
08CA: (unknown)

0767: set_zone 'MARKST' popcycle_group_for_peds_to  14  ; Market Station


Copy and paste this in the space you just created
CODE
0237: set_gang 8 weapons_to 23 30 28
0237: set_gang 9 weapons_to 1 24 25
076C: set_zone 'LDOC1A' gang 8 density_to 60
076C: set_zone 'LDOC1B' gang 8 density_to 60
076C: set_zone 'LDOC2' gang 8 density_to 60
076C: set_zone 'LDOC3A' gang 8 density_to 60
076C: set_zone 'LDOC3B' gang 8 density_to 60
076C: set_zone 'LDOC3C' gang 8 density_to 60
076C: set_zone 'LDOC4' gang 8 density_to 60
076C: set_zone 'ROBAD' gang 9 density_to 90  // Tierra Robada
076C: set_zone 'ROBAD1' gang 9 density_to 90
076C: set_zone 'SUNNN' gang 9 density_to 90  // Bayside
076C: set_zone 'SUNMA' gang 9 density_to 90  // Bayside Marina
076C: set_zone 'ELQUE' gang 9 density_to 90  // El Quebrados
076C: set_zone 'BYTUN' gang 9 density_to 90  // Bayside Tunnel
076C: set_zone 'ALDEA' gang 9 density_to 90  // Aldea Malvada
076C: set_zone 'BARRA' gang 9 density_to 90  // Las Barrancas
076C: set_zone 'ROBINT' gang 9 density_to 90  // Robada Intersection


so it looks like this
CODE
08CA: (unknown)
0237: set_gang 8 weapons_to 23 30 28
0237: set_gang 9 weapons_to 1 24 25
076C: set_zone 'LDOC1A' gang 8 density_to 60
076C: set_zone 'LDOC1B' gang 8 density_to 60
076C: set_zone 'LDOC2' gang 8 density_to 60
076C: set_zone 'LDOC3A' gang 8 density_to 60
076C: set_zone 'LDOC3B' gang 8 density_to 60
076C: set_zone 'LDOC3C' gang 8 density_to 60
076C: set_zone 'LDOC4' gang 8 density_to 60
076C: set_zone 'ROBAD' gang 9 density_to 90  // Tierra Robada
076C: set_zone 'ROBAD1' gang 9 density_to 90
076C: set_zone 'SUNNN' gang 9 density_to 90  // Bayside
076C: set_zone 'SUNMA' gang 9 density_to 90  // Bayside Marina
076C: set_zone 'ELQUE' gang 9 density_to 90  // El Quebrados
076C: set_zone 'BYTUN' gang 9 density_to 90  // Bayside Tunnel
076C: set_zone 'ALDEA' gang 9 density_to 90  // Aldea Malvada
076C: set_zone 'BARRA' gang 9 density_to 90  // Las Barrancas
076C: set_zone 'ROBINT' gang 9 density_to 90  // Robada Intersection
0767: set_zone 'MARKST' popcycle_group_for_peds_to  14  ; Market Station


If your using BW's GTA SA mission Builder press F7 to compile and go to your save folder and copy the main.scm & script.img and navigate to C:\Program Files\Rockstar Games\GTA San Andreas\data\script\ and paste them there.

If your using Sanny Builder press F6 to compile and it will over-right the original.

If you did something wrong replace the files with your backups and start over.
PM
  Top
 

 
bmb  
Posted: Friday, Feb 11 2011, 16:54
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE (Mr. Kingpin @ Feb 11 2011, 01:13)
Thanks for the tutorial bro...really needed something like this.

Your welcome
PM
  Top
 

 
bmb  
Posted: Friday, Feb 11 2011, 17:20
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE
Where can I find a list of all zones, preferably with a map?

You can find the zones in Sanny Builder. Press F12 for the help menu navigate to SCM Documentation\GTA SA\Zones for a complete list. I don't know of any map that shows all the zones but the map link in my first post should give you a good idea. Its just trial and error after that.

QUOTE
And how can I make it so that the bikers just cruise around all the highways in San Andreas in packs of 6-15ish ?

As far as the number of bikers, its random decided by the game but you could try making a cleo script to accomplish this. To make them travel the highways try just using the main area names like Red County, Flint County, Whetstone etc. and see how that works.
PM
  Top
 

 
twannie1997  
Posted: Friday, Feb 11 2011, 21:46
Quote Post


Peon
Group Icon
Group: Members
Joined: Jul 2, 2010

nl.gif

XXXXX



Nice tut, i always wanted to create some gangs. Have a cookie.gif
Users WebsitePMMSNPlayStation Network
  Top
 

 
bmb  
Posted: Saturday, Feb 12 2011, 01:42
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE (twannie1997 @ Feb 11 2011, 17:46)
Nice tut, i always wanted to create some gangs. Have a cookie.gif

Appreciate the comments, thanks. wink.gif
PM
  Top
 

 
BnB  
Posted: Saturday, Feb 12 2011, 13:15
Quote Post


sh*t Happens
Group Icon
Group: Members
Joined: Jun 28, 2010

gc.gif

Member Award




Your code is mixed make one only for SB. And your cleo script doesnt work tounge2.gif Try this:
CODE
{$CLEO}

thread "GW"

:GW_11
wait 0
if
 Player.Defined($PLAYER_CHAR)
else_jump @GW_11

:GW_34
0237: set_gang 8 weapons_to 23 30 28
0237: set_gang 9 weapons_to 1 24 25
076C: set_zone 'LDOC1A' gang 8 density_to 60
076C: set_zone 'LDOC1B' gang 8 density_to 60
076C: set_zone 'LDOC2' gang 8 density_to 60
076C: set_zone 'LDOC3A' gang 8 density_to 60
076C: set_zone 'LDOC3B' gang 8 density_to 60
076C: set_zone 'LDOC3C' gang 8 density_to 60
076C: set_zone 'LDOC4' gang 8 density_to 60
076C: set_zone 'ROBAD' gang 9 density_to 90  // Tierra Robada
076C: set_zone 'ROBAD1' gang 9 density_to 90
076C: set_zone 'SUNNN' gang 9 density_to 90  // Bayside
076C: set_zone 'SUNMA' gang 9 density_to 90  // Bayside Marina
076C: set_zone 'ELQUE' gang 9 density_to 90  // El Quebrados
076C: set_zone 'BYTUN' gang 9 density_to 90  // Bayside Tunnel
076C: set_zone 'ALDEA' gang 9 density_to 90  // Aldea Malvada
076C: set_zone 'BARRA' gang 9 density_to 90  // Las Barrancas
076C: set_zone 'ROBINT' gang 9 density_to 90  // Robada Intersection
0A93: end_custom_thread


This post has been edited by BnB on Saturday, Feb 12 2011, 13:18
PM
  Top
 

 
bmb  
Posted: Saturday, Feb 12 2011, 14:35
Quote Post


"Lots of ideas trying to learn the skills"
Group Icon
Group: Members
Joined: Feb 2, 2010

us.gif

XXXXX



QUOTE (BnB @ Feb 12 2011, 09:15)
Your code is mixed make one only for SB.

Not sure what you mean, sanny builder?

QUOTE (BnB @ Feb 12 2011, 09:15)
And your cleo script doesnt work

I had no problems with it.
PM
  Top
 

 
BnB  
Posted: Saturday, Feb 12 2011, 15:10
Quote Post


sh*t Happens
Group Icon
Group: Members
Joined: Jun 28, 2010

gc.gif

Member Award




QUOTE
Not sure what you mean, sanny builder?

Yes Sanny Builder.

QUOTE
I had no problems with it.

If the player defined chack return false the game will crash because there is no wait. Use my script, it's better wink.gif icon14.gif .
PM
  Top
 

 
methodunderg  
Posted: Sunday, Feb 13 2011, 02:30
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



You haven't included a line for bikdrug smile.gif I guess that means biker-drug ?
I got the Hellz Angelz mod pack that includes 4 peds. I want those 4 peds in GANG 9, and then I'm goin' to try to create a CLEO to get them to spawn on the highways. I just don't know the line for bikdrug, is it as simple as adding 'GANG9, STAT_GANG9' to the line for bikdrug ? And how to get them to spawn in a pack, not just one here, and one there, but like 6 there, and 10 there smile.gif
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Pages: (4) [1] 2 3 ... Last »

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG