Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

CLEO?


archey
 Share

Recommended Posts

Can someone tell me how to make a CLEO mod so when people use my mods i make they dont have to start a new game.

 

EDIT: i looked on the tutorial page, didn't find anything.

Edited by archey
Link to comment
Share on other sites

' date='Nov 16 2008, 08:40'] Boy, I wonder why the program has a help file...

The help file doesn't tell you step by step how to make a cleo mod. It just gives useful info. Perhaps read it before you post

Link to comment
Share on other sites

i did read the help thing.. and what do i do after i put {$CLEO} at the start(by at the start you mean line 000001?) and do i save the file as

.scm

or

.cs

?

 

Edited by archey
Link to comment
Share on other sites

 

i did read the help thing.. and what do i do after i put {$CLEO} at the start(by at the start you mean line 000001?) and do i save the file as
.scm

or

.cs

?

The script needs structur, especially an "end code" or a loop

You must save it as txt in your script folder and then compile it as .cs

 

The entry of the cleo directive:{$CLEO .cs} in your script gives the file extension by compiling

 

Open a new empty page in sannybuilder and add the script below

 

 

{$CLEO .cs}:DEMOTEXT03A4: name_thread "DEMO"wait 1000:DEMOTEXT_1wait 0if0256:   player $PLAYER_CHAR defined 004D: jump_if_false @DEMOTEXT_1if00E1:   key_pressed  0  17004D: jump_if_false @DEMOTEXT_100BA: text_styled 'FEM_OK'  1000 ms  10A93: end_custom_thread

 

 

Then save it as txt and give it a name, e.g. DEMOTEXT.txt

Then click on compile and copy to compile and and copy the script into SA\Cleo-folder

Test it ingame and press fire button to display the demo-text message "OK"

The DEMOTEXT script ends then because of the end-code:

0A93: end_custom_thread

 

Then try a script with a loop instaed of an end code

 

{$CLEO .cs}:Akt03A4: name_thread 'AKT':Akt_010001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Akt_01if0AB0:   key_pressed 8004D: jump_if_false @Akt_0108B2: toggle_thermal_vision 10001: wait 3000 ms08B2: toggle_thermal_vision 00002: jump @Akt_01

 

 

Press ingame on Backspace to toggle thermal_vision on/off

You need to understand how conditinal checks are working,

read in sannybuilder HELP>>Coding>>Conditions

And you need to know about variables

read in sannybuilder HELP>>Coding>>Variables

 

 

Or write an other easy script for beginners, a script with parked_car_generators

Important: A script with parked_car_generators needs the opcode :

 

0A95: enable_thread_saving 

 

at script beginn to prevent double items

 

{$CLEO .cs}:PaCar_103A4: name_thread 'PACR'0001: wait  1000 ms0A95: enable_thread_saving014B: [email protected] = init_parked_car_generator #BANSHEE -1 -1  1 alarm  0 door_lock  0  0  10000 at  920.1994  2020.546  11.79 angle  100.0014C: set_parked_car_generator [email protected] cars_to_generate_to  101032B: [email protected] = create_weapon_pickup #MINIGUN  15 ammo  5000 at  2113.373 1520.674  10.820A93: end_custom_thread

 

 

 

Now have a look into sannybuilder install directory and go to

Sanny Builder 3\help\tutorials and find links to the coding bible

 

Link to comment
Share on other sites

Hey ZAZ !

I have a question. I think everyone knows the mission in SF when you have to stop a car by throwing out spikes out of the trunk of your car. ZAZ, if its not hard can you make this script, or if you know which opcode answers for that then write it here ? colgate.gif

Thanks !

Link to comment
Share on other sites

 

yeah, all that isnt workin for me ZAZ.. i just need to know how to write a CLEO scirpt

how to write a CLEO scirpt, eh ?

We cant describe it in one sentence and also not in one article

a whole page is also not enough

i wrote 7 pages in german language only to explain the basics

www.zazmahall.de/ZAZGTASANATORIUM/CLEO_Script_Tut_ger.htm

 

Do you think Im a roman author?

You must use your brain and try to understand what I posted above or forget it

or wait a half year till i finished the english tut

Link to comment
Share on other sites

sorry for double post but.. BUMP ZAZ it isnt workin.. what u told me to write do i just put the script by itself or do i have to add it to something?

 

EDIT: Ok i know why it isn't working ZAZ.. i put the scirpt in my GTA San Andreas\cleo folder but it doesn't work along with other CLEO scirpts.

Yes, i did install cleo with Sanny. WHATS WRONG?

Edited by archey
Link to comment
Share on other sites

 

sorry for double post but.. BUMP ZAZ it isnt workin.. what u told me to write do i just put the script by itself or do i have to add it to something?

 

EDIT: Ok i know why it isn't working ZAZ.. i put the scirpt in my GTA San Andreas\cleo folder but it doesn't work along with other CLEO scirpts.

Yes, i did install cleo with Sanny. WHATS WRONG?

How should I know whats wrong with your working.

Cleo requires the Installation of GTA San Andreas with the Exe of the V1 version

I know people with 2.Edition who can play with Cleo.

 

Make shure that you have the newest Cleo version

and also for sannybuilder.

Look here how to install cleo:

www.zazmahall.de/ZAZGTASANATORIUM/CLEO3BASIC.htm#CLEO3BASIC_eng

 

 

Clean your Cleo folder to test cleo scripts, just keep the GxtHook.cleo

 

Manny people have problems with cleo. It can have much different reasons, e.g. wrong installation,

or heavy modded games with invalid files or conflikts caused by theme overlapping

or to much scripts in cleo folder or bad scripts, scripts with failures.

 

Much cleomods cause bugs or crashs because they use GLOBAL VARIABLES

It means a kind of storable item definitions.

 

VARIABLES are used as item definitions, its a basic part of the scripting.

Exemble:

Use a LOCAL VARIABLE represented with the @

to create and registrate a weapon pickup in the game with a variable definition

 

@ and a number give the variable name

 

@0, @1 ect., till @31, @31 is maximum

 

we musst say the game which weapon, which model file should be used and use for the model info the symbol: #

 

032B: [email protected] = create_weapon_pickup #MINIGUN  15 ammo  5000 at  2113.373 1520.674  10.82

 

 

Now we can use the LOCAL VARIABLE @2 to check if CJ have picked up the weapon_pickup @2

with building a conditional check

 

the conditional check includes 3 code lines:

 

1. IF the if variation which declare by more then one question, if it means AND or OR

2. The Question code

3. The Jump Instruction by negation

 

 

00D6: if 0214:   pickup [email protected] picked_up 004D: jump_if_false @SMOKE2

 

 

 

if and0214:   pickup [email protected] picked_up00E1:   player 0 pressed_key 14 004D: jump_if_false @SMOKE2

 

 

 

if or0214:   pickup [email protected] picked_up00E1:   player 0 pressed_key 14 004D: jump_if_false @SMOKE2

 

 

 

 

 

Its also usal to use GLOBAL VARIABLES for variable definitions

represented with the $

Exemble:

 

032B: $pick12 = create_weapon_pickup #MINIGUN  15 ammo  5000 at  2113.373 1520.674  10.82

 

But these can cause bugs and crashes in Cleo scripts, its just ok to use it in main.scm

Edited by ZAZ
Link to comment
Share on other sites

Ok, i reinstalled cleo from cleo site i deleted all the files in the c:\program files\rockstar games\gta San Andreas\cleo except GxtHook.cleo. We'll see what happens confused.gif , i'll edit this post instead of double posting if i need help. biggrin.gif

 

EDIT: Okay, i figured out why CLEO Scripts aren't working for me, the VorbisFile.dll that is for CLEO makes my game crash before it get the the load screen, so i replace the CLEO VorbisFile.dll with the original, and my game works, but CLEO doesn't. Anyone know how to fix this problem so i can use CLEO scripts? suicidal.gifsuicidal.gif

 

EDIT: I even tried

================== IMPORTANT NOTE: ==================

If CLEO 3 library does not work, you are probably using an incorrect version of GTA: SA. Only v1.0 and v1.1 versions are supported (v1.0 is a recommended one).

If you're sure that you're using a supported version, but CLEO 3 library still doesn't work, try to use an alternate ASI Loader made by JernejL (CLEO 3 is built on the listener's ASI Loader by default).

You can find the JernejL's loader in the folder \ASI Loader. Move these files to the game root directory along with the cleo.asi.

=====================================================

and all it gives me a different VorbisFile.dll than the other two, and i think it gave me a different ASI loader too. Anyone help? Edited by archey
Link to comment
Share on other sites

 

Ok, i reinstalled cleo from cleo site  and all it gives me a different VorbisFile.dll than the other two, and i think it gave me a different ASI loader too. Anyone help?

Oh man its really ugly to help you.

First you asked how to write scripts, now you say cleo dont work for you

Did you know which GTA SA-version you have ?

Did you know that there exist 2 different VorbisFile.dll for cleo ?

And did you know the support page of Cleo ?

If not, so read again the infos at:

www.zazmahall.de/ZAZGTASANATORIUM/CLEO3BASIC.htm#CLEO3BASIC_eng

Link to comment
Share on other sites

 

Ok, i reinstalled cleo from cleo site  and all it gives me a different VorbisFile.dll than the other two, and i think it gave me a different ASI loader too. Anyone help?

Oh man its really ugly to help you.

First you asked how to write scripts, now you say cleo dont work for you

Did you know which GTA SA-version you have ?

Did you know that there exist 2 different VorbisFile.dll for cleo ?

And did you know the support page of Cleo ?

If not, so read again the infos at:

www.zazmahall.de/ZAZGTASANATORIUM/CLEO3BASIC.htm#CLEO3BASIC_eng

Yes, i knew there was two VorbisFile.dll i tried both they both crashed my game

i have Version 1.00 modified with the patch

and yes i did know fo the support page, thats how i found out about the two VorbisFile.dll

and, im ust new to CLEO, and im kinda stupid, so Thanks for your cooperation and patients

 

EDIT: Thanks for the help ZAZ i got Cleo working and your Ok message script worked, im going to start on my mod that i was planning on [email protected]@ if you want to talk pm me

Edited by archey
Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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