Search In
• More options...
Find results that contain...
Find results in...

• 0

# Easy script switcher [PC v1 only]

## Question

Edit: From OrionSR: MAIN-SA-V2-PC.rar

Read the notes near the end of the script switcher topic for instructions on how to adapt

Easy script switcher for GTA SA

...to swap between v1, v2, Hot Coffee and Spaceeinstein's All In One Mod

...or toggle the CLEO library off/on

Current Version: v0.7 -- released September 25 2008

Easy disabling and enabling of the CLEO library (if installed).

Start GTASA from within the script switcher: normal or nosplash (if nosplash.exe present).

Supported versions of Spaceeinstein's All In One Mod: v2.6 --> v3.0

Related topics

Purpose

While helping other players with their missions I often had to switch my v1 scripts to v2 or even the Hot Coffee mod. Since repetitive file copying got sort of tiring for me I made this little batch file to do the job for me. Support for Spaceeinstein's All In One Mod was included by request from v0.3 on and the script is written in a way that should allow more future extensions, if wished for. Drop a line here if you want something else included and I'll see what I can do.

Since CLEO scripts have become an issue in the Chain Game, a routine to easily toggle them off or on has been added.

Systems

• Written on and only tested on WinXP .
• grishb reports that it also works on Vista . Judging from what I hear about Vista you'll very likely have to manually change permissions for some folders, see "Basics" below.
• Due to the registry reading feature it might not run on Win2K . You must have Win2K Support Tools installed, but since there are syntax differences for the command 'reg.exe' in WinXP and Win2K Support Tools it may still not run on 2K.
Instructions

Basics

• This program needs write access in your GTA SA script folder (e.g. 'C:\Program Files\GTA San Andreas\data\script'). Log in as administrator and grant write access to the user account running GTA SA and the scriptchanger (or ask your system administrator to do this for you). This needs to be done only once - if at all. On a standard Win2K/XP installation you probably *won't* have to do it because all standard user accounts have full admin rights there (incl. write access everywhere). With Vista you most likely *will* have to do it.
• If you're using the Spaceeinstein Mod, you will also need write access in '..\text'.
• If you're using CLEO, you will also need write access in your game's main directory.
• GTA SA v2 has restricted modding abilities and needs to be downgraded before you can switch scripts.
• You can still use this program no matter whichever version of GTA SA you run, because all this program does is copy script files around. If your game won't run after this it could be due to your script files being incompatible with your game.
• You don't *have* to use *all* the possible options - just ignore all instructions for folders/files you are not going to use. If you pick an unexisting selection in the menu by mistake, you'll get an error message and your currently installed scripts will remain unaltered.
• The CLEO toggle is not a clean (un-)install routine; all it does is rename the file cleo.asi to cleo.asi.bup and back. This seems to do the trick for me.
• The currently installed scripts are determined via file compare with the contents of your '..\data\script\v1', 'v2', etc folders. Be careful to put the right scripts into the right folder, otherwise you'll get inaccurate information.
First Installation
• Make backup copies of all your different version script files!!!
• Make backup copies of '..\text\american.gxt' if you're using the spaceeinstein mod)!!!
• Make a backup copy of '..\cleo.asi' if you're using the CLEO library!!!
• Make sure you have write access in the folders specified above in the first 3 paragraphs of 'Basics'.
• Go to your GTA SA script folder (e.g. 'C:\Program Files\GTA San Andreas\data\script').
• In there create subfolders called 'v1', 'v2', 'hc' & 'sp' (all file & folder names without ' ' of course).
• Put the script files ('main.scm' and 'script.img') of v1 into the subfolder 'v1', those of v2 into subfolder 'v2' and those of Hot Coffee into subfolder 'hc'.
• Put all the files of the spaceeinstein mod ('main.scm', 'script.img' and 'american.gxt') into the subfolder 'sp'.
• Unzip 'sa_scriptchange.bat' to any convenient location.
Updating the Scriptchanger
• Make sure your scriptchanger is not running and simply overwrite your old 'sa_scriptchange.bat' with the new one.
• If you're updating from pre v0.6 and using the CLEO library: Make a backup copy of '..\cleo.asi' and make sure you have write access in the game's main folder.
Changing between different *supported* versions of the Spaceeinstein Mod
• Replace the contents of your '..\data\script\sp' folder.
• Switch to spaceeinstein.
• You can leave this version of the scriptchanger running while you do this.
• You'll be told which version of the Spaceeinstein mod you're running.
Using this program
• Double-click 'sa_scriptchange.bat', make your choice & press [Enter]. That's basically it.
• For multiple script swaps you can leave this program running in the background while playing, but always make sure the game itself isn't running when you change the scripts .
Disclaimer

use at own risk ...yaddayadda... comes as is ...bleh... no warranties ...blurp... etc...

...and make those backups first

Changelog

v0.7

• start GTASA from within the script switcher

• new routine to determine the installed scripts

• label file not needed anymore, old one(s) will be deleted

v0.6

• added CLEO toggle (disable/enable if installed)

• enabled changing to a script version the program thinks is already installed

v0.5

• updated Spaceeinstein routine to support multiple versions of the mod

• currently supported versions: v2.6 --> v3.0

• content of label file gives exact installed version

• reversed the formatting of the text output to pre-0.41 (liked it better after all)

v0.41

• updated Spaceeinstein support to v2.8

• very minor change in the formatting of the text output (blank line shoving, basically)

v0.4

• changed the way the game's path will be read from the registry (dropped using the GUID due to rare bug reports and Wolf68k's invaluable input)

• updated support for Spaceeinstein's All In One Mod to the current version v2.6

• overhauled instructions incl. a few comments on updating, Win2K, Vista, write access & modding of SA v2

v0.3

• added Spaceeinstein's All In One Mod (v1.7.1) as a possible selection; existing '..\text\american.gxt' will be backuped to '..\text\american.orig.gxt'

• program will run in a loop until you exit

• complete structural overhaul, hopefully makes future extensions easier to work in

• changed location of the label file (see instructions); changed extension of label file to .ini; old label files will automatically be converted

• label file is no dummy anymore but will be read to find out the currently installed game scripts

v0.2

• paths will be automatically read from the windows registry - no more manual editing of the file

• a few security checks added - e.g. your installation will not be changed if you select Hot Coffee but don't have those script files

Thanks...

• to Wolf68k for priceless help (especially with the registry stuff) and for mirroring the downloads,

• to Plaka for pinning this topic and providing a download mirror,

• to DrSnuggles for webspace,

• to hmvartak for suggesting the 'Start Game' feature

• to OrionSR for coding help and testing

• and to all those testing, using & feedbacking.

As usual: Feel free to comment & improve & expand to cover more mods etc...

Enjoy,

rubregg

Edited by lil weasel

## Recommended Posts

• 0

My C partison has total 68gb and 31.5 free.. So i guyess its alright.. i have a 250gb HDD

##### Share on other sites
• 0

Thanks for the feedback man!!!

##### Share on other sites
• 0

Might I suggest a little update to the links in the first page?

DownloadsScript Switcher v0.7:primary @ GTA Garage  --  mirrorScript files: v1 -- v2 -- Hot Coffee -- Spaceeinstein's All In One Mod

The mirror of the Script Switcher isn't working anymore, and so are the V1 & V2 script files links. Here are some re-uploads - in case some staff member will edit the first post:

• 0

Done!

##### Share on other sites
• 0

I'm having this problem. No script files were found it says on the screen of the Script Changer.

I created a new folder in my script file at GTA San Andreas folder called V! (I have V1)

I have Widows XP.

##### Share on other sites
• 0

You have V1?

They were discontinued in 2006, where did you get it?

##### Share on other sites
• 0
You have V1?

They were discontinued in 2006, where did you get it?

I have V1 and I want it to convert to V2. So I can participate in the GTA SA chain game

##### Share on other sites
• 0

Make a new folder in you main San Andreas directory called "Script V2" (I think you said that you've done that already) and keep on switching that with your V1. How you do that? Well, create also a folder called "Script V1" and copy paste the main.scm & script files (located in San Andreas directory --> data --> script) and paste them in your V1 folder. Now, you can switch them by either copy pasting each version from your V1 or V2 folders in the data --> script folder, and replace those files, or simply cut and paste.

Tell me if there's something you do not understand.

##### Share on other sites
• 0

I moved my SA folder from my primary HD C to my files HD D. Since I originally installed it on C I'm guessing the registry says it's where it should be now. As a result I can't use Script Switcher. Any simple way to let it know where the script files are?

##### Share on other sites
• 0

I had problems with this batch file when I installed a new hard disk with Windows 7 but continued to run the game off the old hard drive which is now installed as disk F:. I edited the New Method section of the batch file to avoid querying the registry and assigned the path manually. If you have experience with paths and batch files you might be able to adapt the snippet below to work on your computer (drive F: probably won't work for you).

::.................................NEW METHOD (from v0.4)...Hacked.............................::::for /f "skip=2 tokens=3*" %%G in ('reg query "HKLM\SOFTWARE\Rockstar Games\GTA San Andreas\Installation" /v Exepath') do set GAMEPATH=%%G %%H::^ original method (XP) commented out::set GAMEPATH=%GAMEPATH:\gta_sa.exe=%::^ original method commented outset GAMEPATH="F:\Program Files\Rockstar Games\GTA San Andreas"::^ manually assign the game pathset SCRIPTPATH=%GAMEPATH%\data\script::

##### Share on other sites
• 0

Have no experience so all these look alien to me. Any chance you could edit the game path (D:\Games\Rockstar Games\GTA San Andreas\data\script) for me or it has to be my system file from my computer?

##### Share on other sites
• 0

Use any text editor to find the codes below:

::.................................NEW METHOD (from v0.4)......................................::for /f "skip=2 tokens=3*" %%G in ('reg query "HKLM\SOFTWARE\Rockstar Games\GTA San Andreas\Installation" /v Exepath') do set GAMEPATH=%%G %%Hset GAMEPATH=%GAMEPATH:\gta_sa.exe=%set SCRIPTPATH=%GAMEPATH%\data\script

And change it to look like this:

::.................................NEW METHOD (from v0.4)...Hacked.............................::::for /f "skip=2 tokens=3*" %%G in ('reg query "HKLM\SOFTWARE\Rockstar Games\GTA San Andreas\Installation" /v Exepath') do set GAMEPATH=%%G %%H::set GAMEPATH=%GAMEPATH:\gta_sa.exe=%set GAMEPATH="D:\Program Files\Rockstar Games\GTA San Andreas"set SCRIPTPATH=%GAMEPATH%\data\script

My path was "D:\Program Files\Rockstar Games\GTA San Andreas". Your path will probably be different. Drive C: instead of D: is much more common, and SA ends up in Program Files (x86) if you've got a 64bit OS. I can't tell you what your path is. You'll need to figure that on your own.

Edited by OrionSR

##### Share on other sites
• 0

After passing my short brainf*ck I successfully tailored switcher to my needs. By the way if you check you'll see that I have a different path than you provided (no Program Files folder) and I had no idea where to actually put it. Just simple steps that could have make it easier for someone who's new to this. Luckily I figured it out, so thanks for code.

Edited by CCPD

##### Share on other sites
• 0

.

Edited by Shoumic

##### Share on other sites
• 0

I had a very very brief look at this a couple of days ago. I found the corresponding registry path on my win7 x64, but when I put it in, I still got an error message.

for /f "skip=2 tokens=3*" %%G in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\GameUX\S-1-5-21-2403304607-1631922368-3772349190-1000\{45E676A5-64C7-4279-946D-DC43E901081C}" /v AppExePath') do set GAMEPATH=%%G %%H
Confused, because that command yielded the proper path just fine in a separate shell. I may or may not have the time to eventually fix this.

For now, please go with what OrionSR has suggested 3 posts up, that should do it:

set GAMEPATH="D:\whatever\the\path\to\your\exe\is\typically\Rockstar Games\GTA San Andreas"
Edited by rubregg

##### Share on other sites
• 0

dude it has an error the syestem cannot find the path specified can you help me please!!!

##### Share on other sites
• 0

Yeah, we know. The script was designed in the WinXP era so it can't autodetect the path on newer operating systems. Scroll up a few posts to find my workaround that bypasses the autodetect routine and sets the path explicitly. It's an easy edit if you know the basics of file naming and paths.

Edited by OrionSR

• 0

##### Share on other sites
• 0

The primary links to GTAGarage are still valid. Don't forgot to modify you path if you've got an OS newer than XP. See notes just above. You might need to fuss with permissions if you've got SA installed in a Windows program folder or it'll look like you've copied something but the game will be using something in a virtual store, maybe - I forget how this stuff works and used to copy my script manually until I finally had enough HD space to have multiple installs. Having SA installed outside of the program folder certainly makes it a lot easier to work with.

Script links are dead, except All-In-One. Links to V2 scripts can probably be found in the Chain Game topic, maybe v1 too. Don't bother with HC, you're liable to get banned for asking and it's pointless anyway. I used that slot for testing PS2 scripts or custom mains instead.

## Create an account

Register a new account