BEGINit Posted October 28, 2010 Share Posted October 28, 2010 Hi, I have a problem. When I try to script the main part of the scm on gta3 the game always crashes and it doesnt matter weather I make a new thread or just put one new weapon pickup or parked car... Any extra code line in the main part crashes the game. Mission part works fine, I can edit it as much as I want. I tried to fix that by incresing the defined memmory at the top of the script, but didnt help. Any ideas? Cuz I have none Link to comment Share on other sites More sharing options...
TheSiggi Posted October 28, 2010 Share Posted October 28, 2010 changing the main thread requieres to start a new game Link to comment Share on other sites More sharing options...
BEGINit Posted October 28, 2010 Author Share Posted October 28, 2010 sorry, you made me laugh I know that, I've been coding... for about 5 years or smth... Link to comment Share on other sites More sharing options...
BnB Posted October 28, 2010 Share Posted October 28, 2010 You should have said it before! Try to put a 0001: wait 0 ms somewhere in the main thread and test if crashes! Start a new game! Link to comment Share on other sites More sharing options...
TheSiggi Posted October 28, 2010 Share Posted October 28, 2010 (edited) No sh*t...I've interpreted the tile wrong then And how about posting some code? The part "When I try to script the main part of the scm on gta3 the game always crashes and it doesnt matter weather I make a new thread or just put one new weapon pickup or parked car..." can be answered like this: "You built in a mistake" We can't tell anything about fixxing your mistakes if you don't even give us an example Edited October 28, 2010 by The_Siggi Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 i beg your pardon? Link to comment Share on other sites More sharing options...
TheSiggi Posted October 28, 2010 Share Posted October 28, 2010 I've no idea what you're talking about Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 This post has been edited by The_Siggi on Oct 28 2010, 12:16 that is what the f*ck im talking about Link to comment Share on other sites More sharing options...
BEGINit Posted October 28, 2010 Author Share Posted October 28, 2010 ok, here some examples: normal part: 014B: $1EC = init_parked_car_generator #SECURICA -1 -1 0 alarm 50 door_lock 50 0 10000 at 442.6875 -1465.688 18.375 angle 180.0014C: set_parked_car_generator $1EC cars_to_generate_to 0014B: $1ED = init_parked_car_generator #TRASH -1 -1 0 alarm 0 door_lock 0 0 10000 at 1140.0 27.0 0.0 angle 0.0014C: set_parked_car_generator $1ED cars_to_generate_to 101 modified: 014B: $1EC = init_parked_car_generator #SECURICA -1 -1 0 alarm 50 door_lock 50 0 10000 at 442.6875 -1465.688 18.375 angle 180.0014C: set_parked_car_generator $1EC cars_to_generate_to 0014B: $1ED = init_parked_car_generator #TRASH -1 -1 0 alarm 0 door_lock 0 0 10000 at 1140.0 27.0 0.0 angle 0.0014C: set_parked_car_generator $1ED cars_to_generate_to 101014B: $car = init_parked_car_generator #COACH -1 -1 0 alarm 0 door_lock 30 0 10000 at 1282.880 -980.477 13.488 angle 0.0014C: set_parked_car_generator $car cars_to_generate_to 101 CRASH normal part: 032B: $205 = create_weapon_pickup #UZI 14 ammo 25 at 177.0 -360.375 16.0032B: $206 = create_weapon_pickup #COLT45 14 ammo 12 at 99.4375 -478.8125 15.5625032B: $207 = create_weapon_pickup #SHOTGUN 14 ammo 20 at 80.5625 -1436.375 26.0032B: $208 = create_weapon_pickup #AK47 14 ammo 30 at -242.9375 -181.25 12.5032B: $209 = create_weapon_pickup #FLAME 14 ammo 300 at 108.625 -1223.625 25.875 modified: 032B: $205 = create_weapon_pickup #UZI 14 ammo 25 at 177.0 -360.375 16.0032B: $206 = create_weapon_pickup #COLT45 14 ammo 12 at 99.4375 -478.8125 15.5625032B: $207 = create_weapon_pickup #SHOTGUN 14 ammo 20 at 80.5625 -1436.375 26.0032B: $208 = create_weapon_pickup #AK47 14 ammo 30 at -242.9375 -181.25 12.5032B: $209 = create_weapon_pickup #FLAME 14 ammo 300 at 108.625 -1223.625 25.875032B: $mygun = create_weapon_pickup #SHOTGUN 14 ammo 20 at 1156.0 -646.5 18.625 CRASH normal: 0001: wait 0 ms00D6: if 00256: player $PLAYER_CHAR defined004D: jump_if_false ££Label00EF380008: $184 += 1 ;; integer values01E3: text_1number_styled "CRED039" $184 6000 ms 6 ;; ~g~Radai ~1~ is 12 gipsu. 0109: player $PLAYER_CHAR money += 50000002: jump ££Label00EED4 modified: 0001: wait 0 ms00D6: if 00256: player $PLAYER_CHAR defined004D: jump_if_false ££Label00EF380008: $184 += 1 ;; integer values01E3: text_1number_styled "CRED039" $184 6000 ms 6 ;; ~g~Radai ~1~ is 12 gipsu. 0109: player $PLAYER_CHAR money += 5000 00D6: if 00038: $184 == 12 ;; integer values 004D: jump if false ££Label00EED40109: player $PLAYER_CHAR money += 100000004E: end_thread CRASH So as I was trying to explain, even basic changes in the script makes the game crash instantly. BUT, when I added wait command in a random place of script the game worked fine. Link to comment Share on other sites More sharing options...
TheSiggi Posted October 28, 2010 Share Posted October 28, 2010 So were're not allowed to edit posts anymore?? Stop spaming! Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 well, im talking about the ORIGINAL post [yair]you built a mistake[/yair] to the topic: maybe the limits are exact match for the main.scm, and when you modified it, you crossed the limits Link to comment Share on other sites More sharing options...
BEGINit Posted October 28, 2010 Author Share Posted October 28, 2010 arent the limits defined by a DEFINE MEMMORY code in the begining of the script? which I tried to increase Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 no, there are set limits: GTA III main size 131072 mission size 32768 num missions 120 Mission Cleanup List 50 model names (2nd segment) 200 running threads 128 128 96 local variables 16 + 2 timers 1024 total in missions gosub levels 4 Text_Draw 2 car generators 160 radar blips 32 pickups 336 last opcode 0481 spheres 16 car saving garagetypes 16..18 16..18 search for a limit adjuster for GTAIII i dont know if there is one Link to comment Share on other sites More sharing options...
BEGINit Posted October 28, 2010 Author Share Posted October 28, 2010 Im sure I didnt cross the limits... Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 not even one? because i dunno, maybe the limits match the main.scm Link to comment Share on other sites More sharing options...
Silent Posted October 28, 2010 Share Posted October 28, 2010 (edited) Use Sanny Builder, looks like it's MB syntax Edit: You haven't crossed any limits, I'm sure. Edited October 28, 2010 by SilentPL Link to comment Share on other sites More sharing options...
BEGINit Posted October 28, 2010 Author Share Posted October 28, 2010 I've never used sanny builder. Just downloaded. Defined missions are having all the same name. Cant compile. Do I have to rename the all the labels of missions? Lots of renaming. Dont want sanny, want BW... cant I fix the problem with BW? damn, sounds like random thougths... Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 DEFINE MISSION 0 AT @INTRO // Intro Movie DEFINE MISSION 1 AT @HEALTH // Hospital Info Scene DEFINE MISSION 2 AT @WANTED // Police Station Info Scene DEFINE MISSION 3 AT @RC1 // RC Diablo Destruction DEFINE MISSION 4 AT @RC2 // RC Mafia Massacre DEFINE MISSION 5 AT @RC3 // RC Rumpo Rampage DEFINE MISSION 6 AT @RC4 // RC Casino Calamity DEFINE MISSION 7 AT @T4X4_1 // Patriot Playground DEFINE MISSION 8 AT @T4X4_2 // A Ride In The Park DEFINE MISSION 9 AT @T4X4_3 // Gripped! DEFINE MISSION 10 AT @MAYHEM // Multistorey Mayhem DEFINE MISSION 11 AT @AMBULAN // Paramedic DEFINE MISSION 12 AT @FIRETRU // Firefighter DEFINE MISSION 13 AT @COPCAR // Vigilante DEFINE MISSION 14 AT @TAXI // Taxi Driver DEFINE MISSION 15 AT @MEAT1 // The Crook DEFINE MISSION 16 AT @MEAT2 // The Thieves DEFINE MISSION 17 AT @MEAT3 // The Wife DEFINE MISSION 18 AT @MEAT4 // Her Lover DEFINE MISSION 19 AT @EIGHT // Give Me Liberty and Luigi's Girls DEFINE MISSION 20 AT @LUIGI2 // Don't Spank My Bitch Up DEFINE MISSION 21 AT @LUIGI3 // Drive Misty For Me DEFINE MISSION 22 AT @LUIGI4 // Pump-Action Pimp DEFINE MISSION 23 AT @LUIGI5 // The Fuzz Ball DEFINE MISSION 24 AT @JOEY1 // Mike Lips Last Lunch DEFINE MISSION 25 AT @JOEY2 // Farewell 'Chunky' Lee Chong DEFINE MISSION 26 AT @JOEY3 // Van Heist DEFINE MISSION 27 AT @JOEY4 // Cipriani's Chauffeur DEFINE MISSION 28 AT @JOEY5 // Dead Skunk In The Trunk DEFINE MISSION 29 AT @JOEY6 // The Getaway DEFINE MISSION 30 AT @TONI1 // Taking Out The Laundry DEFINE MISSION 31 AT @TONI2 // The Pick-Up DEFINE MISSION 32 AT @TONI3 // Salvatore's Called A Meeting DEFINE MISSION 33 AT @TONI4 // Triads And Tribulations DEFINE MISSION 34 AT @TONI5 // Blow Fish DEFINE MISSION 35 AT @FRANK1 // Chaperone DEFINE MISSION 36 AT @FRANK2 // Cutting The Grass DEFINE MISSION 37 AT @FRANK21 // Bomb Da Base: Act I DEFINE MISSION 38 AT @FRANK3 // Bomb Da Base: Act II DEFINE MISSION 39 AT @FRANK4 // Last Requests DEFINE MISSION 40 AT @DIABLO1 // Turismo DEFINE MISSION 41 AT @DIABLO2 // I Scream, You Scream DEFINE MISSION 42 AT @DIABLO3 // Trial By Fire DEFINE MISSION 43 AT @DIABLO4 // Big'N'Veiny DEFINE MISSION 44 AT @ASUKA1 // Sayonara Salvatore DEFINE MISSION 45 AT @ASUKA2 // Under Surveillance DEFINE MISSION 46 AT @ASUKA3 // Paparazzi Purge DEFINE MISSION 47 AT @ASUKA4 // Payday For Ray DEFINE MISSION 48 AT @ASUKA5 // Two-Faced Tanner DEFINE MISSION 49 AT @KENJI1 // Kanbu Bust-Out DEFINE MISSION 50 AT @KENJI2 // Grand Theft Auto DEFINE MISSION 51 AT @KENJI3 // Deal Steal DEFINE MISSION 52 AT @KENJI4 // Shima DEFINE MISSION 53 AT @KENJI5 // Smack Down DEFINE MISSION 54 AT @RAY1 // Silence The Sneak DEFINE MISSION 55 AT @RAY2 // Arms Shortage DEFINE MISSION 56 AT @RAY3 // Evidence Dash DEFINE MISSION 57 AT @RAY4 // Gone Fishing DEFINE MISSION 58 AT @RAY5 // Plaster Blaster DEFINE MISSION 59 AT @RAY6 // Marked Man DEFINE MISSION 60 AT @LOVE1 // Liberator DEFINE MISSION 61 AT @LOVE2 // Waka-Gashira Wipeout! DEFINE MISSION 62 AT @LOVE3 // A Drop In The Ocean DEFINE MISSION 63 AT @YARD1 // Bling-Bling Scramble DEFINE MISSION 64 AT @YARD2 // Uzi Rider DEFINE MISSION 65 AT @YARD3 // Gangcar Round-Up DEFINE MISSION 66 AT @YARD4 // Kingdom Come DEFINE MISSION 67 AT @LOVE4 // Grand Theft Aero DEFINE MISSION 68 AT @LOVE5 // Escort Service DEFINE MISSION 69 AT @LOVE6 // Decoy DEFINE MISSION 70 AT @LOVE7 // Love's Disappearance DEFINE MISSION 71 AT @ASUSB1 // Bait DEFINE MISSION 72 AT @ASUSB2 // Espresso-2-Go! DEFINE MISSION 73 AT @ASUSB3 // S.A.M. DEFINE MISSION 74 AT @HOOD1 // Uzi Money DEFINE MISSION 75 AT @HOOD2 // Toyminator DEFINE MISSION 76 AT @HOOD3 // Rigged To Blow DEFINE MISSION 77 AT @HOOD4 // Bullion Run DEFINE MISSION 78 AT @HOOD5 // Rumble DEFINE MISSION 79 AT @CAT1 // The Exchange no they dont... what do you mean? are you sure it is set on GTAIII? Link to comment Share on other sites More sharing options...
Silent Posted October 28, 2010 Share Posted October 28, 2010 Use SB, MB isn't supported SB can also convert source from MB format - "Tools -> Code Converter -> MB->SB". Link to comment Share on other sites More sharing options...
Deji Posted October 28, 2010 Share Posted October 28, 2010 SB main.scm Compile Time: 4 seconds MB main.scm Compile Time: Forever Link to comment Share on other sites More sharing options...
BEGINit Posted October 28, 2010 Author Share Posted October 28, 2010 DEFINE MISSION 0 AT @INTRO // Intro MovieDEFINE MISSION 1 AT @HEALTH // Hospital Info Scene DEFINE MISSION 2 AT @WANTED // Police Station Info Scene DEFINE MISSION 3 AT @RC1 // RC Diablo Destruction DEFINE MISSION 4 AT @RC2 // RC Mafia Massacre DEFINE MISSION 5 AT @RC3 // RC Rumpo Rampage DEFINE MISSION 6 AT @RC4 // RC Casino Calamity DEFINE MISSION 7 AT @T4X4_1 // Patriot Playground DEFINE MISSION 8 AT @T4X4_2 // A Ride In The Park DEFINE MISSION 9 AT @T4X4_3 // Gripped! DEFINE MISSION 10 AT @MAYHEM // Multistorey Mayhem DEFINE MISSION 11 AT @AMBULAN // Paramedic DEFINE MISSION 12 AT @FIRETRU // Firefighter DEFINE MISSION 13 AT @COPCAR // Vigilante DEFINE MISSION 14 AT @TAXI // Taxi Driver DEFINE MISSION 15 AT @MEAT1 // The Crook DEFINE MISSION 16 AT @MEAT2 // The Thieves DEFINE MISSION 17 AT @MEAT3 // The Wife DEFINE MISSION 18 AT @MEAT4 // Her Lover DEFINE MISSION 19 AT @EIGHT // Give Me Liberty and Luigi's Girls DEFINE MISSION 20 AT @LUIGI2 // Don't Spank My Bitch Up DEFINE MISSION 21 AT @LUIGI3 // Drive Misty For Me DEFINE MISSION 22 AT @LUIGI4 // Pump-Action Pimp DEFINE MISSION 23 AT @LUIGI5 // The Fuzz Ball DEFINE MISSION 24 AT @JOEY1 // Mike Lips Last Lunch DEFINE MISSION 25 AT @JOEY2 // Farewell 'Chunky' Lee Chong DEFINE MISSION 26 AT @JOEY3 // Van Heist DEFINE MISSION 27 AT @JOEY4 // Cipriani's Chauffeur DEFINE MISSION 28 AT @JOEY5 // Dead Skunk In The Trunk DEFINE MISSION 29 AT @JOEY6 // The Getaway DEFINE MISSION 30 AT @TONI1 // Taking Out The Laundry DEFINE MISSION 31 AT @TONI2 // The Pick-Up DEFINE MISSION 32 AT @TONI3 // Salvatore's Called A Meeting DEFINE MISSION 33 AT @TONI4 // Triads And Tribulations DEFINE MISSION 34 AT @TONI5 // Blow Fish DEFINE MISSION 35 AT @FRANK1 // Chaperone DEFINE MISSION 36 AT @FRANK2 // Cutting The Grass DEFINE MISSION 37 AT @FRANK21 // Bomb Da Base: Act I DEFINE MISSION 38 AT @FRANK3 // Bomb Da Base: Act II DEFINE MISSION 39 AT @FRANK4 // Last Requests DEFINE MISSION 40 AT @DIABLO1 // Turismo DEFINE MISSION 41 AT @DIABLO2 // I Scream, You Scream DEFINE MISSION 42 AT @DIABLO3 // Trial By Fire DEFINE MISSION 43 AT @DIABLO4 // Big'N'Veiny DEFINE MISSION 44 AT @ASUKA1 // Sayonara Salvatore DEFINE MISSION 45 AT @ASUKA2 // Under Surveillance DEFINE MISSION 46 AT @ASUKA3 // Paparazzi Purge DEFINE MISSION 47 AT @ASUKA4 // Payday For Ray DEFINE MISSION 48 AT @ASUKA5 // Two-Faced Tanner DEFINE MISSION 49 AT @KENJI1 // Kanbu Bust-Out DEFINE MISSION 50 AT @KENJI2 // Grand Theft Auto DEFINE MISSION 51 AT @KENJI3 // Deal Steal DEFINE MISSION 52 AT @KENJI4 // Shima DEFINE MISSION 53 AT @KENJI5 // Smack Down DEFINE MISSION 54 AT @RAY1 // Silence The Sneak DEFINE MISSION 55 AT @RAY2 // Arms Shortage DEFINE MISSION 56 AT @RAY3 // Evidence Dash DEFINE MISSION 57 AT @RAY4 // Gone Fishing DEFINE MISSION 58 AT @RAY5 // Plaster Blaster DEFINE MISSION 59 AT @RAY6 // Marked Man DEFINE MISSION 60 AT @LOVE1 // Liberator DEFINE MISSION 61 AT @LOVE2 // Waka-Gashira Wipeout! DEFINE MISSION 62 AT @LOVE3 // A Drop In The Ocean DEFINE MISSION 63 AT @YARD1 // Bling-Bling Scramble DEFINE MISSION 64 AT @YARD2 // Uzi Rider DEFINE MISSION 65 AT @YARD3 // Gangcar Round-Up DEFINE MISSION 66 AT @YARD4 // Kingdom Come DEFINE MISSION 67 AT @LOVE4 // Grand Theft Aero DEFINE MISSION 68 AT @LOVE5 // Escort Service DEFINE MISSION 69 AT @LOVE6 // Decoy DEFINE MISSION 70 AT @LOVE7 // Love's Disappearance DEFINE MISSION 71 AT @ASUSB1 // Bait DEFINE MISSION 72 AT @ASUSB2 // Espresso-2-Go! DEFINE MISSION 73 AT @ASUSB3 // S.A.M. DEFINE MISSION 74 AT @HOOD1 // Uzi Money DEFINE MISSION 75 AT @HOOD2 // Toyminator DEFINE MISSION 76 AT @HOOD3 // Rigged To Blow DEFINE MISSION 77 AT @HOOD4 // Bullion Run DEFINE MISSION 78 AT @HOOD5 // Rumble DEFINE MISSION 79 AT @CAT1 // The Exchange no they dont... what do you mean? are you sure it is set on GTAIII? Im not using original script, there are 80 missions made by me and while in MB there were called Labelblahblah, in SB theyre all MAYHEM MAYHEM MAYHEM MAYHEM... probably because I just copied the same line lots of times and changed Label names. Link to comment Share on other sites More sharing options...
yair1221 Posted October 28, 2010 Share Posted October 28, 2010 well, change the labels 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