Jump to content

Easy script switcher [PC v1 only]


Recommended Posts

My C has 31.5 gb now... free space is it alright?

That sounds like loads of free space. At least as long as your C partition is not bigger than 315 GB.

 

General rule of thumb:

Have at least 10% free disk space on any partition/drive

 

  • 6 months later...
  • 2 years later...

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:

First off all, download the V2 scripts here if you haven't done that already.

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.

  • 2 months later...

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?

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::

 

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?

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

Added Info:

 

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

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
  • 3 months later...
  • 1 year later...

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
  • 1 year later...

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
  • 2 weeks later...

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 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.