AB0333 Posted August 29, 2009 Share Posted August 29, 2009 (edited) Hello. I made a little map and I am putting cars. But when I start the game, it crashes. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04 DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' fade 0 0 042C: set_total_missions_to 0 030D: set_max_progress 0 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 23 minutes_to 0 $7 = 0.0 $6 = 0.0 $5 = 30.0 04E4: unknown_refresh_game_renderer_at $7 $6 Camera.SetAtPos($7, $6, $5)062A: change_float_stat 165 to 999.0 062A: change_float_stat 23 to 999.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 163 to 999.0 062A: change_float_stat 160 to 999.0 062A: change_float_stat 229 to 999.0 062A: change_float_stat 223 to 999.0 062A: change_float_stat 230 to 999.0 0629: change_integer_stat 181 to 4 0629: change_integer_stat 68 to 0 $PLAYER_CHAR = Player.Create(#NULL, $7, $6, $5)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 262.0set_weather 1 Player.SetClothes($PLAYER_CHAR, "BBALLJACKRSTAR", "BBJACK", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.Build($PLAYER_CHAR)select_interior 0 Player.CanMove($PLAYER_CHAR) = True01B7: release_weather 016C: restart_if_wasted_at $7 $6 $5 angle 0.0 town_number 0 Model.Load(#CHEETAH):MAIN_383wait 0 if Model.Available(#CHEETAH)else_jump @MAIN_383 $CHEETAH = Car.Create(#CHEETAH, $7, $6, $5)036A: put_actor $PLAYER_ACTOR in_car $CHEETAH fade 1 1000 wait 100 03E6: remove_text_box create_thread @MODEL :MAIN_449wait 500 jump @MAIN_449 :MODELthread 'MODEL' 014B: $PARKED_DUMPER = init_parked_car_generator #DUMPER color -1 -1 1 alarm 0 door_lock 0 0 10000 at -30.15682 388.243 24.83039 angle 50.0 014C: set_parked_car_generator $PARKED_DUMPER cars_to_generate_to 101 Model.Load(#BFYST)038B: load_requested_models :MODEL_67if not Model.Available(#BFYST)else_jump @MODEL_93 wait 0 jump @MODEL_67 :[email protected] = Actor.Create(CivFemale, #BFYST, -9.90352, -10.48121, 25.00352)thread 'MODEL' 014B: $PARKED_NRG500 = init_parked_car_generator #NRG500 color -1 -1 1 alarm 0 door_lock 0 0 10000 at -14.78889 -12.31495 25.26038 angle 0.0 014C: set_parked_car_generator $PARKED_NRG500 cars_to_generate_to 101 thread 'MODEL' 014B: $PARKED_BUCANEE = init_parked_car_generator #BUCCANEE color -1 -1 1 alarm 0 door_lock 0 0 10000 at -14.9944 1.68695 24.6991 angle 0.0 014C: set_parked_car_generator $PARKED_BUCANEE cars_to_generate_to 101 thread 'MODEL' 014B: $PARKED_SAVANNA = init_parked_car_generator #SAVANNA color -1 -1 1 alarm 0 door_lock 0 0 10000 at -33.68917 200.9169 9.641325 angle 0.0 014C: set_parked_car_generator $PARKED_SAVANNA cars_to_generate_to 101thread 'MODEL' 014B: $PARKED_FAGGIO = init_parked_car_generator #FAGGIO color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2.594414 251.4706 8.356671 angle 0.0 014C: set_parked_car_generator $PARKED_FAGGIO cars_to_generate_to 101thread 'MODEL' 014B: $PARKED_AMBULAN = init_parked_car_generator #AMBULAN color -1 -1 1 alarm 0 door_lock 0 0 10000 at -20.65112 279.386 9.087798 angle 150.0 014C: set_parked_car_generator $PARKED_AMBULAN cars_to_generate_to 101end_thread Actually, problem occured when I put these two models behind Savanna (Faggio and Ambulan). What's wrong in this code? Edited August 29, 2009 by AB0333 Link to comment Share on other sites More sharing options...
OrionSR Posted August 30, 2009 Share Posted August 30, 2009 What are all these extra "thread 'MODEL'"'s used for? Link to comment Share on other sites More sharing options...
ZAZ Posted August 30, 2009 Share Posted August 30, 2009 Hello. I made a little map and I am putting cars. But when I start the game, it crashes. Actually, problem occured when I put these two models behind Savanna (Faggio and Ambulan). What's wrong in this code? Your main script don't crash on clean map but you should remove these thread 'MODEL' unless the first. It's the name registration for you thread script :MODEL and each thread need a name registration only at one time. Fourthermore you should change total amount of extern scripts from 0 into -1 because your script don't have any extern scripts DEFINE EXTERNAL_SCRIPTS -1 // Use -1 in order not to compile AAA script Anyway, your crash have an other reason. Maybe because of gta.dat or you placed basicmap.img, basicmap.ide, basicmap.ipl in wrong folder SteveM provided these files in his mapcleaner in folders \data\basic\basicmap.files but wrote in his gta.dat other filepaths: IMG DATA\MAPS\basic\basicmap.IMG IDE DATA\MAPS\basic\basicmap.IDE IPL DATA\MAPS\basic\basicmap.IPL CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
d0mm2k8 Posted August 30, 2009 Share Posted August 30, 2009 Your script would be better like this: // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04 DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS -1 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' fade 0 0 042C: set_total_missions_to 0 030D: set_max_progress 0 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 23 minutes_to 0 $7 = 0.0 $6 = 0.0 $5 = 30.0 04E4: unknown_refresh_game_renderer_at $7 $6 Camera.SetAtPos($7, $6, $5)062A: change_float_stat 165 to 999.0 062A: change_float_stat 23 to 999.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 163 to 999.0 062A: change_float_stat 160 to 999.0 062A: change_float_stat 229 to 999.0 062A: change_float_stat 223 to 999.0 062A: change_float_stat 230 to 999.0 0629: change_integer_stat 181 to 4 0629: change_integer_stat 68 to 0 $PLAYER_CHAR = Player.Create(#NULL, $7, $6, $5)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 262.0set_weather 1 Player.SetClothes($PLAYER_CHAR, "BBALLJACKRSTAR", "BBJACK", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.Build($PLAYER_CHAR)select_interior 0 Player.CanMove($PLAYER_CHAR) = True01B7: release_weather 016C: restart_if_wasted_at $7 $6 $5 angle 0.0 town_number 0 Model.Load(#CHEETAH):MAIN_383wait 0 if Model.Available(#CHEETAH)else_jump @MAIN_383 $CHEETAH = Car.Create(#CHEETAH, $7, $6, $5)036A: put_actor $PLAYER_ACTOR in_car $CHEETAH fade 1 1000 wait 100 03E6: remove_text_box create_thread @MODEL :MAIN_449wait 500 jump @MAIN_449 :MODELthread 'MODEL' 014B: $PARKED_DUMPER = init_parked_car_generator #DUMPER color -1 -1 1 alarm 0 door_lock 0 0 10000 at -30.15682 388.243 24.83039 angle 50.0 014C: set_parked_car_generator $PARKED_DUMPER cars_to_generate_to 101 Model.Load(#BFYST)038B: load_requested_models :MODEL_67if not Model.Available(#BFYST)else_jump @MODEL_93 wait 0 jump @MODEL_67 :[email protected] = Actor.Create(CivFemale, #BFYST, -9.90352, -10.48121, 25.00352)014B: $PARKED_NRG500 = init_parked_car_generator #NRG500 color -1 -1 1 alarm 0 door_lock 0 0 10000 at -14.78889 -12.31495 25.26038 angle 0.0 014C: set_parked_car_generator $PARKED_NRG500 cars_to_generate_to 101 014B: $PARKED_BUCANEE = init_parked_car_generator #BUCCANEE color -1 -1 1 alarm 0 door_lock 0 0 10000 at -14.9944 1.68695 24.6991 angle 0.0 014C: set_parked_car_generator $PARKED_BUCANEE cars_to_generate_to 101 014B: $PARKED_SAVANNA = init_parked_car_generator #SAVANNA color -1 -1 1 alarm 0 door_lock 0 0 10000 at -33.68917 200.9169 9.641325 angle 0.0 014C: set_parked_car_generator $PARKED_SAVANNA cars_to_generate_to 101014B: $PARKED_FAGGIO = init_parked_car_generator #FAGGIO color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2.594414 251.4706 8.356671 angle 0.0 014C: set_parked_car_generator $PARKED_FAGGIO cars_to_generate_to 101014B: $PARKED_AMBULAN = init_parked_car_generator #AMBULAN color -1 -1 1 alarm 0 door_lock 0 0 10000 at -20.65112 279.386 9.087798 angle 150.0 014C: set_parked_car_generator $PARKED_AMBULAN cars_to_generate_to 101end_thread Link to comment Share on other sites More sharing options...
AB0333 Posted August 30, 2009 Author Share Posted August 30, 2009 Hello. I made a little map and I am putting cars. But when I start the game, it crashes. Actually, problem occured when I put these two models behind Savanna (Faggio and Ambulan). What's wrong in this code? Your main script don't crash on clean map but you should remove these thread 'MODEL' unless the first. It's the name registration for you thread script :MODEL and each thread need a name registration only at one time. Fourthermore you should change total amount of extern scripts from 0 into -1 because your script don't have any extern scripts DEFINE EXTERNAL_SCRIPTS -1 // Use -1 in order not to compile AAA script Anyway, your crash have an other reason. Maybe because of gta.dat or you placed basicmap.img, basicmap.ide, basicmap.ipl in wrong folder SteveM provided these files in his mapcleaner in folders \data\basic\basicmap.files but wrote in his gta.dat other filepaths: IMG DATA\MAPS\basic\basicmap.IMG IDE DATA\MAPS\basic\basicmap.IDE IPL DATA\MAPS\basic\basicmap.IPL I made this map based on "testmap". Now I copied everything and everything, every single file. I modified it. I got tired, and I just copied folder data with all its components in some other folder and reinstalled the GTA SA. And I took it again to work on it. Everything worked till I didn't put these two models. So you want to say I need to copy gta.dat, etc. again into my modified data folder? I'm asking because I don't understand. Link to comment Share on other sites More sharing options...
AB0333 Posted August 30, 2009 Author Share Posted August 30, 2009 Your script would be better like this: // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04 DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS -1 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' fade 0 0 042C: set_total_missions_to 0 030D: set_max_progress 0 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 23 minutes_to 0 $7 = 0.0 $6 = 0.0 $5 = 30.0 04E4: unknown_refresh_game_renderer_at $7 $6 Camera.SetAtPos($7, $6, $5)062A: change_float_stat 165 to 999.0 062A: change_float_stat 23 to 999.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 163 to 999.0 062A: change_float_stat 160 to 999.0 062A: change_float_stat 229 to 999.0 062A: change_float_stat 223 to 999.0 062A: change_float_stat 230 to 999.0 0629: change_integer_stat 181 to 4 0629: change_integer_stat 68 to 0 $PLAYER_CHAR = Player.Create(#NULL, $7, $6, $5)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 262.0set_weather 1 Player.SetClothes($PLAYER_CHAR, "BBALLJACKRSTAR", "BBJACK", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.Build($PLAYER_CHAR)select_interior 0 Player.CanMove($PLAYER_CHAR) = True01B7: release_weather 016C: restart_if_wasted_at $7 $6 $5 angle 0.0 town_number 0 Model.Load(#CHEETAH):MAIN_383wait 0 if Model.Available(#CHEETAH)else_jump @MAIN_383 $CHEETAH = Car.Create(#CHEETAH, $7, $6, $5)036A: put_actor $PLAYER_ACTOR in_car $CHEETAH fade 1 1000 wait 100 03E6: remove_text_box create_thread @MODEL :MAIN_449wait 500 jump @MAIN_449 :MODELthread 'MODEL' 014B: $PARKED_DUMPER = init_parked_car_generator #DUMPER color -1 -1 1 alarm 0 door_lock 0 0 10000 at -30.15682 388.243 24.83039 angle 50.0 014C: set_parked_car_generator $PARKED_DUMPER cars_to_generate_to 101 Model.Load(#BFYST)038B: load_requested_models :MODEL_67if not Model.Available(#BFYST)else_jump @MODEL_93 wait 0 jump @MODEL_67 :[email protected] = Actor.Create(CivFemale, #BFYST, -9.90352, -10.48121, 25.00352)014B: $PARKED_NRG500 = init_parked_car_generator #NRG500 color -1 -1 1 alarm 0 door_lock 0 0 10000 at -14.78889 -12.31495 25.26038 angle 0.0 014C: set_parked_car_generator $PARKED_NRG500 cars_to_generate_to 101 014B: $PARKED_BUCANEE = init_parked_car_generator #BUCCANEE color -1 -1 1 alarm 0 door_lock 0 0 10000 at -14.9944 1.68695 24.6991 angle 0.0 014C: set_parked_car_generator $PARKED_BUCANEE cars_to_generate_to 101 014B: $PARKED_SAVANNA = init_parked_car_generator #SAVANNA color -1 -1 1 alarm 0 door_lock 0 0 10000 at -33.68917 200.9169 9.641325 angle 0.0 014C: set_parked_car_generator $PARKED_SAVANNA cars_to_generate_to 101014B: $PARKED_FAGGIO = init_parked_car_generator #FAGGIO color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2.594414 251.4706 8.356671 angle 0.0 014C: set_parked_car_generator $PARKED_FAGGIO cars_to_generate_to 101014B: $PARKED_AMBULAN = init_parked_car_generator #AMBULAN color -1 -1 1 alarm 0 door_lock 0 0 10000 at -20.65112 279.386 9.087798 angle 150.0 014C: set_parked_car_generator $PARKED_AMBULAN cars_to_generate_to 101end_thread Thanks d0mm2k8 but it doesn't work. Thanks for your wasted time. Link to comment Share on other sites More sharing options...
ZAZ Posted August 30, 2009 Share Posted August 30, 2009 So you want to say I need to copy gta.dat, etc. again into my modified data folder?I'm asking because I don't understand. After running SteveMs mapcleaner you must put the files wich comes with the mapcleaner into your game and make a first test the gta.dat into data folder the main.scm into data\script folder basicmap.IMG into DATA\MAPS\basic folder basicmap.IDE into DATA\MAPS\basic folder basicmap.IPL into DATA\MAPS\basic folder Attension, SteveM did the files in his download file into folder data\basic folder he forgot the MAPS folder but the file paths must be the same like it is written in gta.dat IMG DATA\MAPS\basic\basicmap.IMG IDE DATA\MAPS\basic\basicmap.IDE IPL DATA\MAPS\basic\basicmap.IPL It's important that you use this gta.dat because inthere is written which file should be loaded by the game SteveM has deactivted with a # the most part of the file load instruction, because the needed models are nevermore existing CLEO MODS CLEO Script Tutorial 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