Claudester Posted August 12, 2010 Share Posted August 12, 2010 (edited) 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! edit: I also heard in order to have it non-stop it needs a loop how do I go about doing this? Edited August 12, 2010 by Claudester Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 Anybody? I am kinda deperate Link to comment Share on other sites More sharing options...
yair1221 Posted August 12, 2010 Share Posted August 12, 2010 tried 0.1? Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 huh? I mean I am unsure how to edit it so it will change in game Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 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 More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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. The Code is maybe not used in this Version of the Game Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 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 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 More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 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 More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 I secarced opcodes and found this 03A4: name_thread 'MAIN' is this main? Link to comment Share on other sites More sharing options...
yair1221 Posted August 12, 2010 Share Posted August 12, 2010 you can also change that in vehicles.ide Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 I secarced opcodes and found this 03A4: name_thread 'MAIN' is this main? Yes 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 More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 (edited) 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 August 12, 2010 by Claudester Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 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 More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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! Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 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 More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 Dont forget to compile! Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 okay one more question so for example how many cars would there be if I set it too 10.0? Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 how do i compile? Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 how do i compile? Click on the Start button and then Compile Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 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 More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 yes becasue I belive they said that so it wouldnt stop Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 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 More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 you could try I guess, the traffic does not seem to change even when I change it 2.0 or 10.0 Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 you could try I guess, the traffic does not seem to change even when I change it 2.0 or 10.0 Setting it to 0.0 works perfectly Link to comment Share on other sites More sharing options...
Claudester Posted August 12, 2010 Author Share Posted August 12, 2010 isnt that no peds or traffic though? Link to comment Share on other sites More sharing options...
Jerry123 Posted August 12, 2010 Share Posted August 12, 2010 isnt that no peds or traffic though? YES Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now