SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 19/01/2014, 04:22 PM   #1
Mauzen
Banned
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,093
Reputation: 1597
Default SA-MP One-click version switcher

So some discussions about "backward compatibility" came up, because people dont like switching their samp client manually.

And heres the probably most simple solution to this:
A very basic batch script that copies all files of the desired version and so "installs" another version with 1 click.
Versions that should be available need to be extracted from the client setup, and put in a separate folder so you can add any version you like (e.g. 7-Zip can extract the files from the setup, you dont need the folders starting with a $). The script should be put in a subdirectory in your GTA directory. The version directories then need to go in that subfolder.

Anyways, samp needs to be installed correctly at least once, to create all needed registry entries and userfiles. Due to the changed management of userfiles it probably wont work correctly with very old versions (unless they were correctly installed once). Anyways, switching 0.3x and 0.3z wont be a problem.

I noticed that this can also be used as mod manager very well. Just create a version directory that e.g. only contains a modified/unmodified objects file, and you can easily load your custom objects with one click.

Usage:
loadversion.bat
Shows the currently active version, and a list of all available versions.

loadversion.bat <foldername>
(Or included quick install scripts)
Installs the files in the given folder.
Note that modified samp files wont be safed. E.g. if you got custom objects the file will be overwritten, so you should back it up. You could also put the modified object file in a separate version directory to "install" the custom objects with the script.


Download
Script only, Version 1
<removed>
Version 1 complete folder, without samp versions

I guarantee that all samp versions I offer here are 100% unmodified originals. You shouldnt download versions from untrusted sources as you cant be sure if something was added or changed, rather extract the clients yourself instead then.

Open for feedback and suggestions!

Last edited by Y_Less; 29/01/2014 at 04:22 PM.
Mauzen is offline   Reply With Quote
Old 19/01/2014, 04:24 PM   #2
iZN
High-roller
 
Join Date: Jun 2010
Posts: 2,448
Reputation: 569
Default Re: SA-MP One-click version switcher

Ah, awesome Mauzen, I was keep switching to 0.3x R2 and 0.3z RC2 everytime, now this would get handy!
__________________
iZN is offline   Reply With Quote
Old 19/01/2014, 04:47 PM   #3
FailerZ
Huge Clucker
 
FailerZ's Avatar
 
Join Date: Oct 2013
Location: Damascus, Syria
Posts: 258
Reputation: 42
Default Re: SA-MP One-click version switcher

Oh thanks this will help me
I am lazy :[
__________________
My old work:
[FilterScript]Digital Health & Armour [DHA]
[FilterScript]Labels Creator [LC]
[FilterScript]Debug Mode [D-Mode]
[FilterScript]Advance Fish System [AFS]
FailerZ is offline   Reply With Quote
Old 19/01/2014, 05:30 PM   #4
Voxel
Gangsta
 
Voxel's Avatar
 
Join Date: Sep 2013
Location: The Netherlands
Posts: 588
Reputation: 68
Default Re: SA-MP One-click version switcher

Glad you got this idea from me thank you so much!!
__________________
My Work:
[GameMode]The Nether Survival
[Filterscript]SQLite Database Start
[Tutorial]SQLite Commands
[Tutorial]Loot/ Inventory System
[Tutorial]Simple Hunger/Thirst System
[Tutorial]Converting Binary
[Map]Tropical Island + Pier
[Map]San Fierro Apocalypse
Voxel is offline   Reply With Quote
Old 20/01/2014, 10:03 AM   #5
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,183
Reputation: 169
Default Re: SA-MP One-click version switcher

Haha I knew you would do this after that post. Good job as usual. Thanks Mauz!
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 20/01/2014, 10:09 AM   #6
boomerboom
Banned
 
Join Date: Sep 2013
Posts: 446
Reputation: 33
Default Re: SA-MP One-click version switcher

+REP!
boomerboom is offline   Reply With Quote
Old 20/01/2014, 11:06 AM   #7
Mauzen
Banned
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,093
Reputation: 1597
Default Re: SA-MP One-click version switcher

Hehe thanks, yep I just had to create this. Such a simple script to save a lot of reinstalling work.
Mauzen is offline   Reply With Quote
Old 21/01/2014, 03:51 PM   #8
Swedky
Banned
 
Join Date: Jun 2013
Location: Argentina.
Posts: 2,076
Reputation: 827
Default Respuesta: SA-MP One-click version switcher

My antivirus detects the file as maliciously.
Swedky is offline   Reply With Quote
Old 21/01/2014, 03:54 PM   #9
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 4,074
Reputation: 378
Default Re: SA-MP One-click version switcher

Fucking brilliant! Will come in handy a lot for me as i'm testing / coding with 0.3z and most of the server's I play are still on 0.3x!
Luis- is offline   Reply With Quote
Old 21/01/2014, 08:58 PM   #10
TheOnlyRealFuzzy
Little Clucker
 
Join Date: Feb 2013
Posts: 24
Reputation: 0
Default Re: Respuesta: SA-MP One-click version switcher

Quote:
Originally Posted by EnzoMetlc View Post
My antivirus detects the file as maliciously.
Your anti virus is shit then.
TheOnlyRealFuzzy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM] - [RnD] Street Racers `N Drifters (New Version - latest version) Johny_Rocker Gamemode Scripts 23 10/12/2015 09:53 AM
[FilterScript] Rim Switcher Dzines4SAMP Filterscripts 4 25/03/2013 09:00 AM
[FilterScript] [FS] Simple Gamemode Switcher ![UPDATED-v1.0]! ded Filterscripts 28 25/02/2011 12:22 PM
bot switcher [HKS]dlegend Help Archive 0 21/11/2009 10:17 PM
[Tool/Web/Other] [APP] Easy switcher of sa-mp version CN!RY Filterscripts 10 15/02/2009 12:31 AM


All times are GMT. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.