Quantcast

Jump to content

» «
Photo

Easily disable Cleo scripts

5 replies to this topic
tronfan
  • tronfan

    Player Hater

  • Members
  • Joined: 23 Apr 2014
  • United-States

#1

Posted 03 August 2014 - 02:10 AM

I'd love to try some of the Cleo scripts for SA, such as the car spawner or the speedometer, but I wouldn't want it on all the time because sometimes I want to play the game as is. Is there some easy way to add or remove scripts as needed?

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 03 August 2014 - 05:02 AM

play the game as is? you mean like unmodded?

then move cleo.asi out of game dir, start game either with or without cleo, that's the easiest way

there are also other methods, like 0ABA: end_custom_thread_named or modify the cleoscripts by adding keypress checks or by adding a global var
0ABA: end_custom_thread can be easy
it requires that the cleo script have a valid thread name at script beginn

thread 'TH_NAME'

you need to open the script with sannybuilder to get the thread name and paste it to the end thread command of your "disabler script"
it works only if it is a valid name: max.7 charackters as name are valid

 

if the name is wrong, then correct it
if there isn' a thread name, then add it, then compile the script again

I would do the codes for a disabler script in this way
1. check with 0AAB: if the script exist in cleo folder: expects FILE NAME
2. check with 0AAA: if the thread is running: expects THREAD NAME
3. terminate thread with 0ABA: expects THREAD NAME

if
    0AAB:   file_exists "CLEO\RUN.cs"//  check if the script exist in cleo folder: expects FILE NAME    
then
    0AAA: 0@ = thread 'TH_NAME' pointer  //   check if the thread is running: expects THREAD NAME
    if
        not 0@ == 0    
    then
        0ABA: end_custom_thread_named 'TH_NAME' // terminate thread: expects THREAD NAME  
    end
end

tronfan
  • tronfan

    Player Hater

  • Members
  • Joined: 23 Apr 2014
  • United-States

#3

Posted 03 August 2014 - 07:16 PM

Could I just rename the Cleo.asi file when I want to play unmodded, and put it back to the the right name when I want to use mods?

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#4

Posted 03 August 2014 - 09:12 PM

why don'tyou try it by yourself


tronfan
  • tronfan

    Player Hater

  • Members
  • Joined: 23 Apr 2014
  • United-States

#5

Posted 04 August 2014 - 05:27 AM

Well, I don't want to install Cleo until I'm sure i can easily put it back to an un modded game.

DK22Pac
  • DK22Pac

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine

#6

Posted 04 August 2014 - 06:09 AM

You need to remove 'asi' extension from CLEO.asi file, so it won't be loaded with Asi Loader. Rename it to CLEO.jasi, for example.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users