rubregg

@NiSsAn_BoY and other Vista users:The script switcher *should* work on Vista but permissions for the scripts' folders have to be set properly. AFAIK a normal user account on Vista does not have write/delete access in programs' installation folders. The accounts for users running the script switcher must have write access in [gtasa.installation.folder]\data\script. I think on Vista this write access has to be granted manually.

Any Vista users running the script switcher? Does it work? Feedback is still highly appreciated.

@James_Bond:When you run the script switcher for the first time it cannot find a label file. As long as you followed the instructions (i.e. created the subfolders and put the scripts you want to switch in there) it shouldn't matter that the script switcher can't tell you which version you're currently running. You should still be able to switch scripts. After the first successful switch the label file will have been created and the script switcher will tell you which script version you're currently running.

@Deuce Deuce:

QUOTE (Deuce Deuce @ Chain Game Lounge)

(...) when I run sa_scriptchange I get the error, "The system was unable to find the specified registry key or value." Could it be because my installation lies in C:\Program Files\GTA San Andreas rather than C:\Program Files\Rockstar Games\GTA San Andreas?

In which case, should I just go ahead and create a 'Rockstar Games' folder and move the 'GTA San Andreas' folder in there?

EDIT: Moving the directory to C:\Program Files\Rockstar Games\GTA San Andreas didn't seem to resolve the issue...

Normaly it does not matter at all where the game was installed , because the game's installation path is read from the windows registry:

"HKLM\SOFTWARE\Rockstar Games\GTA San Andreas\Installation" is a registry key from which the value for 'Exepath' is read (first line). This returns the full path to the gta_sa.exe *file*, but we only want the installation *folder*, so "\gta_sa.exe" is subtracted in the second line.

Maybe Deuce's russian version creates a different registry key, or none at all.

This should work, but only as long as the game is installed in C:\your\gtasa\installation\folder.(...and be careful to leave the "set SCRIPTPATH" line untouched, it's right underneath what I just quoted.)

Deuce, which windows are you running? If it's Win2K then this problem has to be expected, I think the reg query command is different there...

Deuce Deuce

@rubregg: When I reinstalled I chose the 'normal' directory C:\Program Files\Rockstar Games\GTA San Andreas. I've tried the new bit of code you provided, but it leaves me with the same problem. Do I literally keep the "C:\your\gtasa\installation\folder" or do I change it to the correct location in which the game lies? ie, C:\Program Files\Rockstar Games\GTA San Andreas

Is there a way I can check where the game has installed the registry files?

rubregg

First of all: there is *no* problem in the picture you posted. If you run the script switcher for the first time there cannot be a lable file, this will be created after your first *successful* switch. Have you actually tried switching scripts? If so, what message do you get when you try switching?

QUOTE (Deuce Deuce @ Jul 25 2008, 08:42)

Is there a way I can check where the game has installed the registry files?

Yes there is. fyi, there won't be any installed registry files, the windows registry is a beast of its own. The game writes some registry keys and puts values for variables into them. Amongst others there's the key HKLM\SOFTWARE\Rockstar Games\GTA San Andreas\Installation which has a variable Exepath (HKLM stands for HKEY_LOCAL_MACHINE).You can either manually check out the registry via start - execute - regedit but I do *not recommend* that unless you know exactly what you're doing. You can completely f*ck up your system if you fiddle around with regedit. If you only look and don't change anything you should be safe though. Use at own risk!

I *do recommend* you check out the needed registry key via console. Open a console / DOS window (either from the start menu (it's somewhere in the windows accessories) or with start - execute - cmdType this (or copy-paste - mind, in a console window you can only paste via right mouse button, ctrl-v won't work)

and press [Enter]. You'll get some output and the right bit of the bottom line should be the path to your gta_sa.exe. If this is your correct path, then the script switcher should work as is , without using the work-around I posted yesterday.

As for that work-around, I'd suggest using that as a 'last resort' only , let's try to get things working normally first. If that won't work and you use the work-around, you do *not* literally keep the "C:\your\gtasa\installation\folder". If you installed in C:\Program Files\Rockstar Games\GTA San Andreas your line will have to read

CODE

set GAMEPATH="C:\Program Files\Rockstar Games\GTA San Andreas"

(no backslash at the end, path has to be in inverted commas)

Sooo..... the next things you should do:- try out actually switching scripts- if you get an error, please report back what the program tells you- check out your registry entry via the console method I described and see if there's your correct path there

cacarla

There is one small thing i need to get cleared. Now with rubregg's easy script switcher i can install v1 and play all the v1 SnP's but when i try to switch to v2, all the v2 game loads crash. Should i need to convert the ID? because mine is v1 exe version. thats the only problem??

rubregg

Thanks for your on-going help; it's been resolved now (by changing the game path to the appropriate place). I've switched between v1, v2 and Hot Coffee successfully. Nice tool!

Good to hear you got it to work ...just a little heads-up, if by "changing the game path" you mean you used the work-around you'll have to be careful when reinstalling the game - you'll have to use the same installation path, otherwise the script switcher won't work anymore.

QUOTE (cacarla @ Jul 25 2008, 12:33)

There is one small thing i need to get cleared. Now with rubregg's easy script switcher i can install v1 and play all the v1 SnP's but when i try to switch to v2, all the v2 game loads crash. Should i need to convert the ID? because mine is v1 exe version. thats the only problem??

So when you switch back to v2, what message do you get from the script switcher? Are you sure you put the v2 script files in [gtasa]\data\script\v2 ?? Your game crashing upon loading sounds as if the wrong script files are in place. As for file ID, the v1 exe doesn't check the file ID. Do you have a downgraded v2? I don't know how a downgraded v2 behaves, maybe it checks the ID so you could as well try out converting the save's ID.

cacarla

There is one small thing i need to get cleared. Now with rubregg's easy script switcher i can install v1 and play all the v1 SnP's but when i try to switch to v2, all the v2 game loads crash. Should i need to convert the ID? because mine is v1 exe version. thats the only problem??

So when you switch back to v2, what message do you get from the script switcher? Are you sure you put the v2 script files in [gtasa]\data\script\v2 ?? Your game crashing upon loading sounds as if the wrong script files are in place. As for file ID, the v1 exe doesn't check the file ID. Do you have a downgraded v2? I don't know how a downgraded v2 behaves, maybe it checks the ID so you could as well try out converting the save's ID.

There's no error messages in Script Switcher Rubregg, it says successfully installed v2. Maybe you're right. I must have got the wrong scripts in place. v1 works perfectly.. Thanks Rubregg.

rubregg

There's no error messages in Script Switcher Rubregg, it says successfully installed v2. Maybe you're right. I must have got the wrong scripts in place. v1 works perfectly.

If it says "successfully installed v2" then the script files have been copied from[gtasa]\data\script\v2to[gtasa]\data\script

If something with the copying process goes wrong you should get an error message.

Make sure your v1 script files are in[gtasa]\data\script\v1

and your v2 script files in[gtasa]\data\script\v2

If you did have v1 scripts in your v2 folder and switched to v2, the script switcher will give you wrong information on the currently installed scripts (because it thinks it has installed the v2 scripts which were in fact v1 scripts in the wrong folder).

So make absolutely sure the right scripts are in the right subfolder and then run the script switcher. Ignore the message about the currently installed version and switch back and forth once or twice, then the label file should match the correct version. Or delete the label file and start over. The label file is called current-install-xx.ini (xx=installed version; v1, v2, hc or sp) and located in the same folder as the script switcher.

Naseem Srour

Guys I want to say something that it's very useful and make it easy to us when completing SnP's :In ANY PAGE of GTAForums the sentence " Modding questions belong in the modding forums!" is showenI just want someone from the ' MODS ' to put another sentence that says (at least put it in the Mission Help section) : " Include your Version in your topic title" .

I'm asking for this becuase there's some people that don't put what version do they have, and we have to enter the topic to know, or sometimes they don't show thier version in the whole topic.I mean If you have V2, and someone is requesting for V1, the topic starter says in the topic title that's he has V1 , so you don't have to enter the topic to see, it's very annoying. I hope you guys understand what I mean.

rubregg

In ANY PAGE of GTAForums the sentence " Modding questions belong in the modding forums!" is showen

No, that's only in the Gameplay forum. On every page in Mission Help it already tells you the exact posting format for SnPs. Some people read it and some don't. Also, the gtasnp uploader tells you which version a save file is, so I don't think it's that big a deal anymore.

But anyway, this is way off topic here... If you want a discussion on this please start a new topic.

rubregg

NEW: • Easy disabling and enabling of the CLEO library (if installed).• It's now possible to re-install a script version the program thinks is already running (makes things easier for users of SannyBuilder).

rubregg

On first run the script switcher will give a message like "currently installed version - don't know, no label file found". Nothing wrong with that. The program will create that label file during the first successful switching and from then on will read it to determine the currently installed version.

Script files are not included in the release, you'll have to manually download them from the links given in the topic. You only need the ones you want to use.

Girish

On first run the script switcher will give a message like "currently installed version - don't know, no label file found". Nothing wrong with that. The program will create that label file during the first successful switching and from then on will read it to determine the currently installed version.

Hmm, that's strange. I have uninstalled and reinstalled SA numerous times, but every single time, the switcher correctly identified the version. But before running the switcher, I always placed all the 4 types of script files into the Data\script folder. So, maybe that's why it always showed me the previous script that I had active.

rubregg

The script switcher will read what it thinks is the "currently installed version" from the label file current-install-xx.ini. If you had last switched to v1 and then uninstalled and reinstalled a v1 game, then it would have "identified" the correct scripts. Same for v2 / v2. It won't show correct scripts if you switch to v2 and then reinstall a v1 game.

I should probably implement a proper script detection routine for future versions...

Girish

The script switcher will read what it thinks is the "currently installed version" from the label file current-install-xx.ini. If you had last switched to v1 and then uninstalled and reinstalled a v1 game, then it would have "identified" the correct scripts. Same for v2 / v2. It won't show correct scripts if you switch to v2 and then reinstall a v1 game.

I have a v1 game and I'm normally running the v2 scripts for the Chain Game. I don't seem to remember what version it showed after a reinstall. But it definitely didn't show "currently installed version - don't know, no label file found". In any case, I'll have to take a rain check on that one. I'll report back if I find anything weird.

rubregg

I think we might have a misunderstanding here. "don't know - no label file found" will only appear on the first run of the script switcher (or if you run the script switcher from a changed location or if you manually deleted the label file). The label file belongs to the script switcher and won't get deleted if you uninstall SA.

Girish

Wait, I'm confused. I have a v1 game and I switch to v2 scripts using the switcher. Then I uninstall the game and reinstall it. Now, if I run the switcher again,1. Will it show the correct version (i.e. v1) even if I don't have the v2 scripts in place yet?2. Will it show the version as v2 if I put the v2 scripts in place?

rubregg

The Script Switcher will always show the last version it switched to and will never know about any manual script changes.So answer to question 1: no, in that case it will still show v2and2: if by 'putting in place' you mean 'put the v2 scripts into ..\data\script\v2' --> then it'll still tell you v2 and incorrectly so. If you manually put the v2 scripts into ..\data\script then it'll still tell you v2 and this time it's correct because you manually 'installed' v2 scripts.