|Heggy's Guide To Adding Car Spawn Locations|
In 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:|
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:
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:
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)
Edited by Gangsta Killa, 24 April 2009 - 10:49 PM.