TheHeggy Posted June 12, 2005 Share Posted June 12, 2005 (edited) Heggy's Guide To Adding Car Spawn LocationsIn Grand Theft Auto: San Andreas Okay, this is actually very easy to do and shouldn't take you more than 30 minutes even if you're new to all of this. I'm going to try to be as specific and "step by step" as I can so that even people who've never done this before will be able to have a little fun. To begin, you'll need the following tools: San Andreas Mission Builder v0.33 San Andreas Place Manager Once you have downloaded and extracted those programs, open SASCM.ini located in whatever folder you unzipped the mission builder to. At the end of that file (below everything else), add the following text: 0A4A=2,%1h% %2h% 0A4B=0, Save it and close the file. Now you need to decide where you want your vehicle to spawn. Just for fun, I'm going to put a Hotdog van on top of that really high building in Los Santos. Boot up the game and head to wherever you want your vehicle to appear. Once you're at a spot you like, take note of what direction you want your vehicle to be facing (north, south, east, west...), then alt + tab out of the game and run San Andreas Place Manager. This program will tell us the exact coordinates of our location so we can define it in the main.scm. Click "Add Place", and a small window should pop up. Click the button that says "Click here to insert your current ingame location", and three values for the X, Y and Z coordinates will show up. Write these down or put them in a text file, as you'll need to remember them later. Close San Andreas Place Manager, and shut down the game itself. Open up your San Andreas Mission Builder program. Click "File >> Open File". Make sure the file type in the Open File window is set to "SCM File (*.SCM)", otherwise your file won't show up. Navigate to your San Andreas main.scm. For me, it's located in "C:\Program Files\Rockstar Games\GTA San Andreas\data\script". Once you have the file select, hit OK. A second window will open, hit OK in that one too. It will take a minute or two for the program to read and open the file, so be patient. When the file finally opens, hit ctrl + F to open the Find menu. Search for 014B: $2777 = init_parked_car_generator. We're going to add our spawn point above this piece of code. I'm sure there's numerous other places it would work, but this just seems to work the best for me. On a new line above the code you just found, type the following: 014B: $tower_hotdog = init_parked_car_generator 588 -1 -1 1 alarm 0 door_lock 0 0 10000 at 1555.183 -1352.873 329.4553 angle 90.0 The green text should be replaced with something descriptive of your new location, so you can find it easily if you need to change something. I've named mine tower_hotdog. The blue text is your vehicle ID. I'm going make a list of all the IDs and their associated vehicles at the end of this tutorial tonight so it's easier for you to find what you need, but everything is defined in the vehicles.ide file in the data directory. It'll be the first number before every vehicle name. The text in yellow is the coordinates the San Andreas Place Manager gave me. You'll want to enter your X, Y and Z coordinates in place of my own. The text in red is your vehicle's orientation. Since I'm putting my vehicle on top of a tower, the direction it's facing doesn't really matter. If you want yours facing a particular way, here's how it breaks down: North = 0.0 South = 180.0 East = 90.0 West = -90.0 Those other numbers aren't really important as far as the scope of this tutorial goes, but I'll probably write another tutorial about those at a later date. On a new line below the code you just typed, put the following: 014C: set_parked_car_generator $tower_hotdog cars_to_generate_to 101 Notice that I have my tower_hotdog label in there -- Whatever you replaced the green text with on the above line needs to go there as well. My code looked like this when I was done: You're done with the coding part, so go to the "Run" menu and select "Compile". Just like when you opened the file, it will take a moment or two for it to finish thinking. Once it's done, close the program and open the folder where the San Andreas Mission Builder program is located. Your new MAIN.SCM file and a new SCRIPT.IMG file should be in there. In a new window, navigate to wherever the game's original main.scm is located and rename it to something else, like "oldmain.scm", and then rename script.img to something else. You don't want to lose the originals! After renaming the file, drag the new MAIN.SCM and SCRIPT.IMG into the folder. That's it! Load up San Andreas and go check out your new car (IMPORTANT: Your current saved games will not work with your new main.scm file, so you'll need to start a new game. If you ever want to play your old saved games, you'll need to revert back to the original main.scm and script.img files) If you have any questions, I'll do my best to help. I'm no modding guru, but I'm definitely not new at this Edited April 24, 2009 by Gangsta Killa Link to comment Share on other sites More sharing options...
TheHeggy Posted June 12, 2005 Author Share Posted June 12, 2005 (edited) Vehicle IDs As Defined In Vehicles.ide = 2-Door & Compact = Name ID Name ID Alpha 602 Hustler 545 Blista Compact 496 Majestic 517 Bravura 401 Manana 410 Buccaneer 518 Picador 600 Cadrona 527 Previon 436 Club 589 Stafford 580 Esperanto 419 Stallion 439 Feltzer 533 Tampa 549 Fortune 526 Virgo 491 Hermes 474 = 4-Door & Luxery = Name ID Name ID Admiral 445 Oceanic 467 Damaged Glendale 604 Premier 426 Elegant 507 Primo 547 Emperor 585 Sentinel 405 Euros 587 Stretch 409 Glendale 466 Sunrise 550 Greenwood 492 Tahoma 566 Intruder 546 Vincent 540 Merit 551 Washington 421 Nebula 516 Willard 529 = Aircraft = Name ID Name ID Andromada 592 Nevada 553 AT-400 577 News Chopper 488 Beagle 511 Police Maverick 497 Cargobob 548 Raindance 563 Cropduster 512 Rustler 476 Dodo 593 Seasparrow 447 Hunter 425 Shamal 519 Hydra 520 Skimmer 460 Leviathan 417 Sparrow 469 Maverick 487 Stuntplane 513 = Bikes = Name ID Name ID BF-400 581 Sanchez 468 Bike 509 Wayfarer 586 BMX 481 Faggio 462 FCR-900 521 Freeway 463 Mountain Bike 510 NRG-500 522 PCJ-600 461 Pizza Boy 448 = Boats = Name ID Coastguard 472 Dinghy 473 Jetmax 493 Launch 595 Marquis 484 Predator 430 Reefer 453 Speeder 452 Squalo 446 Tropic 454 = Civil Servant & Transportation = Name ID Name ID Baggage 485 Trolly** 449 Brown Streak Engine** 538 Utility Van 552 Bus 431 Cabbie 438 Coach 437 Freight 537 Sweeper 574 Taxi 420 Towtruck 525 Trashmaster 408 = Government = Name ID Name ID Ambulance 416 Police Car (Los Santos) 596 Barracks 433 Police Car (San Fierro) 597 Enforcer 427 Police Ranger 599 FBI Rancher 490 Rhino 432 FBI Truck 528 S.W.A.T. 601 Fire Truck 407 Securicar 428 Fire Truck (Ladder) 544 HPV1000 523 Patriot 470 Police Car (Las Venturas) 598 = Heavy Trucks & Utility = Name ID Name ID Benson 499 Hotdog 588 Black Boxville 609 Linerunner 403 Boxville 498 Linerunner (From "Tanker Commando") 514 Cement Truck 524 Mr. Whoopee 423 Combine Harvester 532 Mule 414 DFT-30 578 Packer 443 Dozer 486 Roadtrain 515 Dumper 406 Tractor 531 Dune 573 Yankee 456 Flatbed 455 = Light Trucks & Vans = Name ID Name ID Berkley's RC Van 459 Sadler 543 Bobcat 422 Tug 583 Burrito 482 Walton 478 Damaged Sadler 605 Yosemite 554 Forklift 530 Moonbeam 418 Mower 572 News Van 582 Pony 413 Rumpo 440 = Lowriders = Name ID Blade 536 Broadway 575 Remington 534 Savanna 567 Slamvan 535 Tornado 576 Voodoo 412 = Muscle Cars = Name ID Buffalo 402 Clover 542 Phoenix 603 Sabre 475 = Other = Name ID RC Cam* 594 streakc** 570 = RC Vehicles = Name ID RC Bandit 441 RC Baron 464 RC Goblin 501 RC Raider 465 RC Tiger 564 = Recreational = Name ID Name ID Bandito 568 Monster 3 557 BF Injection 424 Quadbike 471 Bloodring Banger 504 Sandking 495 Caddy 457 Vortex 539 Camper 483 Journey 508 Kart 570 Mesa 500 Monster 444 Monster 2 556 = Street Racers = Name ID Name ID Banshee 429 Infernus 411 Bullet 541 Jester 559 Cheetah 415 Stratum 561 Comet 480 Sultan 560 Elegy 562 Super GT 506 Flash 565 Turismo 451 Hotknife 434 Uranus 558 Hotring Racer 494 Windsor 555 Hotring Racer 2 502 ZR-350 477 Hotring Racer 3 503 = SUVs & Wagons = Name ID Huntley 579 Landstalker 400 Perennial 404 Rancher 489 Rancher (From "Lure") 505 Regina 479 Romero 442 Solair 458 = Trailers = Name ID Name ID Baggage Trailer (covered) 606 Trailer 3 591 Baggage Trailer (Uncovered) 607 Farm Trailer 610 Freight Train Boxcar** 590 Freight Train Flatbed** 569 "Street Clean" Trailer 611 Trailer (From "Tanker Commando") 608 Trailer (Stairs) 435 Trailer 1 450 Trailer 2 591 **This vehicle doesn't show up *This vehicle shows up as a drivable flower pot Edited June 12, 2005 by TheHeggy Link to comment Share on other sites More sharing options...
kingpug Posted June 12, 2005 Share Posted June 12, 2005 Do you have any idea why this wont work using an already modified main.scm?.. I tried the 2 new ones from Craig and Opius, and when I go to compile them they both say the exact same thing, label not found. It only works using the original main.scm, so do you know whats wrong? Btw sorry if you cant ask questions here, at the top it says you cant but you said we could ask, so I am confused, delete if we cant Link to comment Share on other sites More sharing options...
TheHeggy Posted June 12, 2005 Author Share Posted June 12, 2005 Do you have any idea why this wont work using an already modified main.scm?.. I tried the 2 new ones from Craig and Opius, and when I go to compile them they both say the exact same thing, label not found. It only works using the original main.scm, so do you know whats wrong? Btw sorry if you cant ask questions here, at the top it says you cant but you said we could ask, so I am confused, delete if we cant The asking questions thing is just so people don't start a million threads in here asking how to do a bunch of stuff I ran into the same thing with the missing label error, so I think it's because the San Andreas Mission Builder changes some code when it re-compiles it. I could be wrong though but that's just my best guess. There's another mission builder someone here linked to that's on sourceforge or something so I'm going to give that one a shot today after I get the vehicle IDs posted and see if it works better. If it does, I'll update the tutorial Link to comment Share on other sites More sharing options...
kingpug Posted June 12, 2005 Share Posted June 12, 2005 Nah its ok I got it working, I tried spawning stuff at the airfield but did it wrong, I got a question: What is the name of that jet that is in the airports, its fast and small, like an executie jet. And whats the name of the small jumbo?..I spawned an at-400 and it wa shuge, obviously wrong. Link to comment Share on other sites More sharing options...
TheHeggy Posted June 12, 2005 Author Share Posted June 12, 2005 I think you're talking about the Shamal, not sure about the mini jumbo.... I'm in the process of documenting every vehicle defined in vehicles.ide so that you don't have to go hunting through all of it. I've got about 19 more "weird" vehicles to go through and then I'll post everything. One of the vehicles is a damn flower pot... LOL Oh and I figured out what the problem was with editing pre-modified scm files -- The program generates a new script.img file which you have to copy over with the main.scm. I just tried it and I can compile, de-compile and re-compile just fine now. Updating the tutorial... Link to comment Share on other sites More sharing options...
gta_matt Posted June 12, 2005 Share Posted June 12, 2005 sorry about the question but i must know. is there gonna be any future updates where we dont have to start a new game? i want to put some good cars at my garage and car lot in SF but dont want to have to start all over. Link to comment Share on other sites More sharing options...
TheHeggy Posted June 12, 2005 Author Share Posted June 12, 2005 sorry about the question but i must know. is there gonna be any future updates where we dont have to start a new game? i want to put some good cars at my garage and car lot in SF but dont want to have to start all over. Any edit to the main.scm file requires you to start a new game. The same was true for GTAIII and Vice City as well. Link to comment Share on other sites More sharing options...
gta_matt Posted June 13, 2005 Share Posted June 13, 2005 can i add more than one car spawn location by putting each code combination on top of eachother from where you mentioned? Link to comment Share on other sites More sharing options...
TheHeggy Posted June 13, 2005 Author Share Posted June 13, 2005 Yep, you should be able to add as many as you like. Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 I worked out how to do this last night with a little help from one of your other threads. I managed to spawn Andromada at Verdant Meadows easily enough anyway. Link to comment Share on other sites More sharing options...
lollieman Posted June 13, 2005 Share Posted June 13, 2005 (edited) If you don't want to use the ID for the cars and want it more simple like #hunter. Just copy and paste your Vehicles.ide to your SA mission builder folder, best to do peds.ide and default.ide aswell. Works fine Edited June 13, 2005 by lollieman Link to comment Share on other sites More sharing options...
TheHeggy Posted June 13, 2005 Author Share Posted June 13, 2005 Hey thanks for that Nice way to save a little work. Link to comment Share on other sites More sharing options...
kingpug Posted June 13, 2005 Share Posted June 13, 2005 (edited) Yep I use names like SHAMAL or SANCHEZ etc. Its great spawning vehicles, I filled up the airfield with some stuff like the hunter, stunt plane, crop-duster one and the shamal, along with a dirtbike and quad Btw you can also do the same with weapons, well it looked similar, I will be having a look at that in a few minutes. This is unreal, one minute it works then when I change some stuff and fo to compile it, it gets a label error, what the f*ck? Edited June 13, 2005 by kingpug Link to comment Share on other sites More sharing options...
ProfaNe Posted June 13, 2005 Share Posted June 13, 2005 (edited) the mision builder link is down ah i got it now but it doesnt work i can only spawm 1 bike at a time her is my code i changed the coordinates every time and the ID 2 cause i want different bike's but now i onyl have 1 bike infrond of my house (beginners house) please help whats wrong with my code ? 014B: $10949 = init_parked_car_generator 468 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.464 -1669.083 13.33595 angle 90.0 014C: set_parked_car_generator $10949 cars_to_generate_to 101 014B: $10948 = init_parked_car_generator 468 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.466 -1669.083 13.33595 angle 90.0 014C: set_parked_car_generator $10948 cars_to_generate_to 101 014B: $10947 = init_parked_car_generator 521 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.469 -1669.083 13.33595 angle 90.0 014C: set_parked_car_generator $10947 cars_to_generate_to 101 014B: $10946 = init_parked_car_generator 564 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.469 -1671.083 13.33595 angle 90.0 014C: set_parked_car_generator $10946 cars_to_generate_to 101 014B: $10949 = init_parked_car_generator 506 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2493.469 -1673.083 13.33595 angle 90.0 014C: set_parked_car_generator $10949 cars_to_generate_to 101 014B: $2777 = init_parked_car_generator 432 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2435.302 -1671.848 12.8007 angle 90.0 014C: set_parked_car_generator $2777 cars_to_generate_to 0 014B: $PARKED_HYDRA = init_parked_car_generator 520 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2527.2 -1677.1 19.2 angle 90.0 014C: set_parked_car_generator $PARKED_HYDRA cars_to_generate_to 0 Edited June 13, 2005 by ProfaNe Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 The first 3 "spawnings" are at identical locations .. get some slightly different co-ordinates for 2 of them and that should do the job Link to comment Share on other sites More sharing options...
Remix1121 Posted June 13, 2005 Share Posted June 13, 2005 (edited) Im getting a "parameter 2 not set" error anyone know what's wrong? Big n00b here sorry =) my code looks like this... 014B: $Feltzer = init_parked_car_generator 533 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2486,339 -1655,602 13,3359 angle -90.0 014C: set_parked_car_generator $Feltzer cars_to_generate_to 101 014B: $SJ_Home1 = init_parked_car_generator 536 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2491,237 -1682,849 13,33689 angle -90.0 014C: set_parked_car_generator $SJ_Home1 cars_to_generate_to 101 014B: $2777 = init_parked_car_generator 432 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2435.302 -1671.848 12.8007 angle 90.0 014C: set_parked_car_generator $2777 cars_to_generate_to 0 014B: $PARKED_HYDRA = init_parked_car_generator 520 -1 -1 1 alarm 0 door_lock 0 0 10000 at 2527.2 -1677.1 19.2 angle 90.0 014C: set_parked_car_generator $PARKED_HYDRA cars_to_generate_to 0 NM i found the problem, I had "," instead of "." between the coordinates Edited June 13, 2005 by Remix1121 Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 Youve put commas instead of dots in your co-ordinates .. I think thats the problem. Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 Sorry - double post. Link to comment Share on other sites More sharing options...
ProfaNe Posted June 13, 2005 Share Posted June 13, 2005 THNX< i have 5 cars now but i have a strange thing there is alittle tank i cant ride it it's strange.. but is there a car list of how the cars look like? and the names? cause i dont know the real fast ones the bieutifull ones Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 (edited) THNX< i have 5 cars now but i have a strange thing there is alittle tank i cant ride it it's strange.. but is there a car list of how the cars look like? and the names? cause i dont know the real fast ones the bieutifull ones I think its the RC Tiger your talking about .. a little RC tank. Heres pictures of almost all of the cars and Heggy has put the list of the numbers that correspond to these vehicles. Edited June 13, 2005 by Vanquish Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 (edited) Just had a quick skim over and it seems the only vehicle its missed is andromada .. which is just a huge huge plane. Edited June 13, 2005 by Vanquish Link to comment Share on other sites More sharing options...
TheHeggy Posted June 13, 2005 Author Share Posted June 13, 2005 Just had a quick skim over and it seems the only vehicle its missed is andromada .. which is just a huge huge plane. I listed the Andromada... First one under "Aircraft" Link to comment Share on other sites More sharing options...
Vanquish Posted June 13, 2005 Share Posted June 13, 2005 Just had a quick skim over and it seems the only vehicle its missed is andromada .. which is just a huge huge plane. I listed the Andromada... First one under "Aircraft" I meant the car picture list on that website. Dont for one second think im complaining about your listing skills Link to comment Share on other sites More sharing options...
Suction Testicle Man Posted June 14, 2005 Share Posted June 14, 2005 NO double-posting please. It is against the forum rules. If at first you don't succeed, you fail, and the test will be terminated. Link to comment Share on other sites More sharing options...
OverlordQ Posted June 14, 2005 Share Posted June 14, 2005 I dont suppose there's anyway to edit your savegame too so you dont have to start over lol Link to comment Share on other sites More sharing options...
Vicetopia Posted June 15, 2005 Share Posted June 15, 2005 Anyway to make the colors random, like normal GTA car spawns? All my vehicles are solid white. Probably has something to do with the '0 0' part. Link to comment Share on other sites More sharing options...
TheHeggy Posted June 15, 2005 Author Share Posted June 15, 2005 (edited) Anyway to make the colors random, like normal GTA car spawns?All my vehicles are solid white. Probably has something to do with the '0 0' part. Hmm... All my cars are showing up random colors. I've been spawing BF Injections and stuff and they're always a different color. I haven't really tried spawning a car that was a specific color, but the two -1 numbers (highlighted in orange) should be the ones you change... If you didn't know already, the numbers for the colors are defined in carcols.dat. I'm going to add all this to the tutorial since it's probably something a lot of people are going to want to do... 014B: $tower_hotdog = init_parked_car_generator 588 -1 -1 1 alarm 0 door_lock 0 0 10000 at 1555.183 -1352.873 329.4553 angle 90.0 Edited June 15, 2005 by TheHeggy Link to comment Share on other sites More sharing options...
zinklesmesh Posted June 18, 2005 Share Posted June 18, 2005 (edited) Great tutorial. However, I tried adding a Beagle spawn near the Prickle Pine safehouse to the Opened Up main.scm, I get the label error on compile and when I start a new game it crashes. It did the same when I tried the AT-400 instead of the Beagle. I don't want to do it on the default main.scm because then I won't even be able to get to my spawn Help me please. 014B: $personal_plane = init_parked_car_generator 511 -1 -1 1 alarm 0 door_lock 0 0 10000 at 1213.36 2512.172 15.82031 angle -90.0014C: set_parked_car_generator $personal_plane cars_to_generate_to 101 EDIT: NEVERMIND! I FIGURED IT OUT Edited June 18, 2005 by Kitteh Link to comment Share on other sites More sharing options...
TheHeggy Posted June 18, 2005 Author Share Posted June 18, 2005 LOL glad you got it working. Did you do anything other than what was in the tutorial to get it working? Please let me know so I can add it Link to comment Share on other sites More sharing options...