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

just a friendly bump

##### Share on other sites
• 0

I'll Pin this Topic it's just too good to keep losing ...

##### Share on other sites
• 0
I'll Pin this Topic it's just too good to keep losing ...

very true...i was gonna suggest the same, as well, the next time we spoke...

anyhow, rubregg, congrats on the pin, man ...keep up the great work...

You'll Never Walk Alone

##### Share on other sites
• 0

wow - thanks for the pin, I'm glad it's being found useful

• 0

##### Share on other sites
• 0

as i want to start helping people with missions and i have version 2 San Andreas, is there anyway i can get the version 1 scripts from anywhere, because ive made those sub folders in the script folder

##### Share on other sites
• 0
as i want to start helping people with missions and i have version 2 San Andreas, is there anyway i can get the version 1 scripts from anywhere, because ive made those sub folders in the script folder

If you have version 2 then you can't preform version 1 savegames whit just the scripts. I have heard that you can downgrade your version to version 1 but because that is illegal, it can't be discussed on this forum.

##### Share on other sites
• 0

ok if i get the downgrader, and i download the sa_scriptchanger do i need to place that anywhere specific

##### Share on other sites
• 0

ok if i get the downgrader, and i download the sa_scriptchanger do i need to place that anywhere specific

From the Instructions:

• You don't *have* to use *all* the supported scripts - just ignore folders/files you are not going to use.

• (...) unzip 'sa_scriptchange.bat' to any convenient location

Hope this helps

##### Share on other sites
• 0
ok if i get the downgrader, and i download the sa_scriptchanger do i need to place that anywhere specific

From the Instructions:

You don't *have* to use *all* the supported scripts - just ignore folders/files you are not going to use.

(...) unzip 'sa_scriptchange.bat' to any convenient location

Hope this helps

yeah i read the instructions but when it said convenient location i didnt know if it was to be put into the san andreas folders for convenience

anyway thanks for the help

##### Share on other sites
• 0

hehe, don't worry mate :-)

The only thing is, 'sa_scriptchange.bat' will write a label file into the folder it is run from so you need to have writing permissions for that folder. Bearing that in mind you can put 'sa_scriptchange.bat' anywhere you like and run it from there.

For speed reasons I'd suggest you read that as "anywhere on your hard drives" although USB stick or diskette would theoretically also work.

Good luck on the 'downgrading' and thanks for the interest in the scriptchanger.

Edited by rubregg

##### Share on other sites
• 0

I am trying to help people with SnP and i have followed the instructions in this topic but still when i cahnge the version scripts it doesnt work. I can still not play on version 1 games even though i have the version 1 downgrader patch.

so i can play version 2 requests but not version 1, whats the problem still, Please help.

Edited by Seddo87

##### Share on other sites
• 0

@Seddo87

I'm not 100% sure about this, but as far as I know all that script changing only works for San Andreas v1. I can really only quote:

If you have version 2 then you can't perform version 1 savegames with just the scripts.

My scriptchanger only exchanges the script files in the /data/script folder and doesn't do anything else to the game. Since I myself have v1 I'm afraid I don't know anything about that downgrader patch or what it actually does, sorry... :-|

Edited by rubregg

##### Share on other sites
• 0

Well when i first install my game it has the little 2.00 thing at the bottom meaning my game is version 2 and when i try to play the online multiplayer games it doesnt work.

But when i installl the downgrader patch the 2.00 mark goes away meaning my game is now version 1 and also i can now play the multiplayer games online.

So my game version must be version 1 now becuase i have installed the downgrader.

##### Share on other sites
• 0

Sadly, I cant get this to work :s . The label file "current-install-xx.ini" just wont appear . Ive provided a screen capture so you can correct me if ive done something wrong ?

Edit : I realised i accidently called hot coffee HV in the screen shot instead of HC, I changed the name but it still does not work.

Edited by 0mfg0rz

##### Share on other sites
• 0

@Seddo: Sorry for missing your last posting for so long Still I'm afraid I can't help you. I don't know what this 'downgrading' actually does to your game. I can only guess that a downgraded v2 game is in essence still a v2 game (with some files exchanged?) and that's why the scripts don't work. This program really only swaps the script files in ...\data\script\ around so if that copying works but your game won't, then the provided script files are incompatible with your version of the game. Sorry.

@0mfg0rz: Are you sure you have write access in ..\data\script\ ? Do you actually run the sa_scriptchange.bat file from the ..\data\script\ folder itself or do you have a shortcut/windows-link pointing at it that you double-click? If so, does the label-file appear in the folder that contains this link? Does the scriptchanger give you any error messages when you run it? Do scripts actually get exchanged (you can check with the filesizes)? ...just for your information, you don't have to bury the sa_scriptchange.bat into the ..\data\script\ folder, you can put that anywhere you like, for example the folder you keep all your other gta-related things in (maps, tools, id-converter, whatever...).

##### Share on other sites
• 0

OK thanks for the detailed response

1) Yes I do run the .bat from the script folder

2) Yes it does give an error

3) No the scripts do not get exchanged

Edited by 0mfg0rz

##### Share on other sites
• 0

@0mfg0rz

1) Yes I do run the .bat from the script folder
This has nothing to do with the problem, but you still might want to run it from a more convenient place...

2) Yes it does give an error  (...)

3) No the scripts do not get exchanged

The error you've posted indicates that the installation path of the game can't be read from your registry. There's a couple of possible reasons this could happen, but first here's a quick workaround. Open the sa_scriptchange.bat with a text editor, e.g. notepad.exe, and in the section 'STANDARD PATHS' (quite near the beginning) replace this

for /f "skip=2 tokens=3*" %%G in ('reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D417C96A-FCC7-4590-A1BB-FAF73F5BC98E} /v InstallLocation') do set GAMEPATH="%%G %%H"

by this

set GAMEPATH="C:\Program Files\Rockstar Games\Grand Theft Auto San Andreas"

As for why your path can't be read by the .bat file:

a) Maybe you didn't install your game properly and it's not in your registry at all.

b) Maybe your game comes with a different application code than my v1, which has

{D417C96A-FCC7-4590-A1BB-FAF73F5BC98E}

Now if you're sure you have a proper install and if you have the patience and only if you absolutely know what you're doing, could you please check out your registry and see if the game is in there? If so, would you please let me know what code it registered with and exactly what version of the game you're running? Thanks.

If, however,

c) you're running a pirated copy of the game, then I'm afraid to say all support has to end here, for this is strictly against this forum's policy.

Hope this helps

##### Share on other sites
• 0

Well the support will have to stop I guess, Purchased my copy from ebay and runs with no cd..

##### Share on other sites
• 0

@Seddo: In addition to what I said in my last post - I just did an SnP for someone who runs a 'downgraded v2' like you. To do this, I *had* to use the v2 scripts.

@0mfg0rz: I'm sorry to hear you paid money for a possibly dodgy version...

##### Share on other sites
• 0

Proudly announcing -- new version v0.4 released

A quick "what's new":

• 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

Also, I finally came round to give the instructions and the presentation a bit of an overhaul.

--> see it all in the edited top of thread

As usual - please use, comment, improve, enjoy

Edited by rubregg

##### Share on other sites
• 0

just tried it out, and it works all right

great job again! if you haven't already, you should PM Rex or Wolf about changing the topic title description to v0.4 released...

You'll Never Walk Alone

##### Share on other sites
• 0

thanks for the new version of a great tool!!

##### Share on other sites
• 0

@crazyanurag & quartet1977: Thanks for the support, mates

##### Share on other sites
• 0

I am confused, i may be dumb but i red this over 3 times, and still didnt get it. but does this let you run more than one mod at a time? or is that even possable cus im looking for a program that is easy to use and lets me run more than one mod at a time. well thanks.

##### Share on other sites
• 0

I am confused, i may be dumb but i red this over 3 times, and still didnt get it. but does this let you run more than one mod at a time? or is that even possable cus im looking for a program that is easy to use and lets me run more than one mod at a time. well thanks.

No, this program is *not* for running more than one mod at a time, and I don't know if that's possible at all or not, sorry... All this program does is copy a few files around, so that you don't have to do it manually. At the moment it only supports v1 / v2 / v1+Hot Coffee / Spaceeinstein' All In One Mod.

##### Share on other sites
• 0

Minor update v0.41 released

slightly improved screen output

--> see it all in the edited top of thread

As usual - please use, comment, improve, enjoy

Edited by rubregg

##### Share on other sites
• 0

Does it (or Can it) support v2.9 of Spaceinstein Mod?

##### Share on other sites
• 0
Does it (or Can it) support v2.9 of Spaceinstein Mod?

Sorry for the delay, I've been away for a couple of weeks.

No, spaceeinstein v2.9 is not yet supported. That'll be the next version v0.42, hope I can make that within the next couple of days.

##### Share on other sites
• 0

@rubregg: Just to let you know, Spaceeinstein Mod v3.0 is now available. So, maybe you can include that too.

## Create an account

Register a new account