archey Posted November 16, 2008 Share Posted November 16, 2008 (edited) 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 November 16, 2008 by archey Link to comment Share on other sites More sharing options...
_VaNkAtA_ Posted November 16, 2008 Share Posted November 16, 2008 Nobody will teach you! Link to comment Share on other sites More sharing options...
[BigDog] Posted November 16, 2008 Share Posted November 16, 2008 Boy, I wonder why the program has a help file... Link to comment Share on other sites More sharing options...
Doomed_Space_Marine Posted November 16, 2008 Share Posted November 16, 2008 Just like you do any other scm mod, but put {$CLEO} at the beginning xD Link to comment Share on other sites More sharing options...
james227uk Posted November 16, 2008 Share Posted November 16, 2008 ' 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 More sharing options...
archey Posted November 16, 2008 Author Share Posted November 16, 2008 (edited) 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 November 16, 2008 by archey Link to comment Share on other sites More sharing options...
ZAZ Posted November 16, 2008 Share Posted November 16, 2008 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Lil'Q Posted November 16, 2008 Share Posted November 16, 2008 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 ? Thanks ! Link to comment Share on other sites More sharing options...
archey Posted November 16, 2008 Author Share Posted November 16, 2008 yeah, all that isnt workin for me ZAZ.. i just need to know how to write a CLEO scirpt Link to comment Share on other sites More sharing options...
ZAZ Posted November 16, 2008 Share Posted November 16, 2008 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
archey Posted November 17, 2008 Author Share Posted November 17, 2008 i understand what your getting at in your post but for some reason its not workin for me. Link to comment Share on other sites More sharing options...
archey Posted November 18, 2008 Author Share Posted November 18, 2008 (edited) 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 November 19, 2008 by archey Link to comment Share on other sites More sharing options...
ZAZ Posted November 19, 2008 Share Posted November 19, 2008 (edited) 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 November 19, 2008 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
archey Posted November 19, 2008 Author Share Posted November 19, 2008 (edited) 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 , i'll edit this post instead of double posting if i need help. 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? 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 November 20, 2008 by archey Link to comment Share on other sites More sharing options...
ZAZ Posted November 20, 2008 Share Posted November 20, 2008 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
archey Posted November 20, 2008 Author Share Posted November 20, 2008 (edited) 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 November 22, 2008 by archey Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now