Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

little help


Claudester
 Share

Recommended Posts

so I have Sanny Builder and the only edit at all I want in the game (GTA3) are to simply change the amount of Cars and Peds on screen in the game, I looked in the OPCodes search and found these:

01EB: set_car_density_to 0.0 and

03DE: set_pedestrians_density_multiplier_to 0.0

 

0.0 means none, 1.0 means default and 2.0 means alot and so on and so forth, my question is how do I edit these numbers correctly and change them so that the numbers of cars and peds will change? I looked at coding guides but most pertain to San Andreas and dont mention this aspect. This change I want is for Grand Theft Auto 3 to clarify, I dont want to make an entire mission just this one little change I thank anyone kindly for helping me out it means alot! smile.gif

 

edit: I also heard in order to have it non-stop it needs a loop how do I go about doing this?

Edited by Claudester
Link to comment
Share on other sites

What do you exactly mean?

0.0 = no cars

0.5 = a half cars

1.0 = default cars

2.0 = x2 cars

Link to comment
Share on other sites

sorry if I was confusing I mean I know how the numbers work, but where is that piece of code in the GTA 3 main file I opened it up on Sanny Builder and used the OPCodes function and found those two sets of code, so now where are they in the main file? And what do I have to do to make it work correctly, do I have too insert a loop? How do I do that? I am sorry if I ask too many questions, its just this is quite important

Link to comment
Share on other sites

sorry if I was confusing I mean I know how the numbers work, but where is that piece of code in the GTA 3 main file I opened it up on Sanny Builder and used the OPCodes function and found those two sets of code, so now where are they in the main file? And what do I have to do to make it work correctly, do I have too insert a loop? How do I do that? I am sorry if I ask too many questions, its just this is quite important

You dont need a loop

just paste the code on some lines in the MAIN Thread and everything is fine. biggrin.gif

The Code is maybe not used in this Version of the Game

Link to comment
Share on other sites

well those codes are used in GTA 3 it turned up on the opcode search in the GTA 3 mode, so where is the main thread? Is it in the main file? Thanks for takign the time to help me with this it means alot colgate.gif

 

edit: Keep in mind I want to do it so it there will be lots of peds and traffic at all times this isnt for a mission or anything just a simple edit

Link to comment
Share on other sites

well those codes are used in GTA 3 it turned up on the opcode search in the GTA 3 mode, so where is the main thread? Is it in the main file? Thanks for takign the time to help me with this it means alot colgate.gif

 

edit: Keep in mind I want to do it so it there will be lots of peds and traffic at all times this isnt for a mission or anything just a simple edit

I dont know where it is on GTA 3 but on SA it's the first Thread in the SCM and after the HEADER.

DEFINE MISSIONS 0//DEFINE MISSION {ID} 0 AT {LABEL} @DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA script//DEFINE SCRIPT {NAME}  AT {LABEL} @DEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0//Here comes the Main THREAD!//after the "name thread"//past the Code!

 

Link to comment
Share on other sites

 

I secarced opcodes and found this 03A4: name_thread 'MAIN'

is this main?

Yes cool.gif

EDIT: I don't tested this code with more as 1.0! So watch out it could crash you'r Game!

Link to comment
Share on other sites

so now what where do I go on the main.file? Where is it specifically? Becasue its a very long file

 

 

edit: nevermind found it so I just paste 03DE: set_pedestrians_density_multiplier_to 0.0 and

01EB: set_car_density_to 0.0 in at the begginging of the main thread?

 

Edited by Claudester
Link to comment
Share on other sites

so now what where do I go on the main.file? Where is it specifically? Becasue its a very long file

On the second line

 

{ use macro (Ctrl+J) "headsa" to insert a file header      }{$VERSION 3.0.0000}var$PLAYER_CHAR: Player$CSPLAY: Playerend // var 03A4: name_thread 'MAIN'01EB: set_traffic_density_multiplier_to 0.0//whatever you want  01F0: set_max_wanted_level_to 6 0111: toggle_wasted_busted_check 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 01F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 

 

Link to comment
Share on other sites

kay i found it thank you, know where do I paste the two density codes on it? at the beggining of it or the end?

Link to comment
Share on other sites

kay i found it thank you, know where do I paste the two density codes on it? at the beggining of it or the end?

You should at the begin because on SA there are in the last entries of the MAIN Arcade Games Starters! happy.gif

Link to comment
Share on other sites

I pasted both density settings into the beggining of the main file just as you instructed, so now I have to do is change the number and save is that it?

Link to comment
Share on other sites

 

I pasted both density settings into the beggining of the main file just as you instructed, so now I have to do is change the number and save is that it?

You got it my Friend smile.gif

Dont forget to compile! biggrin.gif

Link to comment
Share on other sites

okay one more question so for example how many cars would there be if I set it too 10.0?

So many that i would crash because the Game can only handle 50 Actors and Cars at the same time angry.gif

Link to comment
Share on other sites

okay got it thanks, so are yo sure I don t need a loop because someone said you do, how do I do that if i need too?

Link to comment
Share on other sites

okay got it thanks, so are yo sure I don t need a loop because someone said you do, how do I do that if i need too?

You mean a loop that repeats the code?

Link to comment
Share on other sites

yes becasue I belive they said that so it wouldnt stop

That may crash the Game. I could make a script but I have no condition Code that check if Traffic Density is equal to some value

Link to comment
Share on other sites

you could try I guess, the traffic does not seem to change even when I change it 2.0 or 10.0 suicidal.gif

Link to comment
Share on other sites

you could try I guess, the traffic does not seem to change even when I change it 2.0 or 10.0 suicidal.gif

Setting it to 0.0 works perfectly

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.