Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Claudester

little help

Recommended Posts

Claudester

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

Share this post


Link to post
Share on other sites
Claudester

 

blush.gif Anybody? I am kinda deperate

Share this post


Link to post
Share on other sites
yair1221

tried 0.1?

Share this post


Link to post
Share on other sites
Claudester

huh? I mean I am unsure how to edit it so it will change in game

Share this post


Link to post
Share on other sites
Jerry123

What do you exactly mean?

0.0 = no cars

0.5 = a half cars

1.0 = default cars

2.0 = x2 cars

Share this post


Link to post
Share on other sites
Claudester

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

Share this post


Link to post
Share on other sites
Jerry123
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

Share this post


Link to post
Share on other sites
Claudester

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

Share this post


Link to post
Share on other sites
Jerry123
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!

 

Share this post


Link to post
Share on other sites
Claudester

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

is this main?

Share this post


Link to post
Share on other sites
yair1221

you can also change that in vehicles.ide

Share this post


Link to post
Share on other sites
Jerry123

 

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!

Share this post


Link to post
Share on other sites
Claudester

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

Share this post


Link to post
Share on other sites
Jerry123
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 

 

Share this post


Link to post
Share on other sites
Claudester

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?

Share this post


Link to post
Share on other sites
Jerry123
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

Share this post


Link to post
Share on other sites
Claudester

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?

Share this post


Link to post
Share on other sites
Jerry123

 

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

Share this post


Link to post
Share on other sites
Claudester

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

Share this post


Link to post
Share on other sites
Claudester

how do i compile?

Share this post


Link to post
Share on other sites
Jerry123
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

Share this post


Link to post
Share on other sites
Jerry123
how do i compile?

Click on the Start button and then Compile alien.gif

Share this post


Link to post
Share on other sites
Claudester

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?

Share this post


Link to post
Share on other sites
Jerry123
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?

Share this post


Link to post
Share on other sites
Claudester

yes becasue I belive they said that so it wouldnt stop

 

Share this post


Link to post
Share on other sites
Jerry123
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

Share this post


Link to post
Share on other sites
Claudester

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

Share this post


Link to post
Share on other sites
Jerry123
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

Share this post


Link to post
Share on other sites
Claudester

isnt that no peds or traffic though?

Share this post


Link to post
Share on other sites
Jerry123

 

isnt that no peds or traffic though?

YES

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.