Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,692 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

ThirteenAG

CLEO 2.0

Recommended Posts

ThirteenAG

CLEO v2.0 for GTA III and Vice City

Visit CLEO Website

CLEO is a hugely popular extensible library plugin which brings new possibilities in scripting for the games Grand Theft Auto 3 and Vice City by Rockstar Games, allowing the use of hundreds of unique mods which change or expand the gameplay. You may find more information about CLEO in the Sanny Builder help and on the website http://cleo.li

CLEO 2 was made from scratch by @DK22Pac for GTA 3, I made an adaptation for VC and added a bunch of new opcodes, including cleo 4 ones.

CLEO 2 supports all original opcodes that were presented in CLEO v1.1. Old cleo scripts are fully compatible with the new version.
New opcodes added to CLEO 2:



Sanny Builder data(for both games):
SCM.INI
OPCODES.TXT
If you want to create an opcode check out CLEO SDK and sources of demo plugins.
I created a small script to test some of the new opcodes, you can find it here.

Supported executables:
GTA 3 and VC: v1.0, v1.1, Steam. Note that some(and probably most) scripts aren't compatible with all versions of exe and they'll likely work only on v1.0.

Download | Source code and SDK

If you discovered a bug or an incompatibility with some script or any cleo related issue, report it here.

Improved versions of Manual Aiming, Vehicle Camera Movement, IV pickups and other my scripts are here: http://13.sannybuilder.com/cleo-scripts.

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
goodidea82

Awesome!

Share this post


Link to post
Share on other sites
KELASHI

SDK wow!!!

Share this post


Link to post
Share on other sites
Shagg_E

I waited this really long time, THANKS!

Share this post


Link to post
Share on other sites
Jinx.

Holy sh*t, just noticed this. Great job guys, I need to plug it in my GTA 3 and VC ASAP :D

Edited by Jinx.

Share this post


Link to post
Share on other sites
Frank.s

Goes without saying: very usefull mod/tool. :^:

 

ThirteenAG was kind enough to fix AK-73's GTA-MA .asi script so it works with CLEO: https://www.sendspace.com/file/cldrjd

 

All Credit goes to ThirteenAG and AK-73. :)

Edited by PingPang

Share this post


Link to post
Share on other sites
ThirteenAG

Yep, CLEO updated to v2.0.0.1, added one old/new opcode:

0673: play_animation on actor $PLAYER_ACTOR animgroup 61 anim 512 blendfactor 30.0

It works with default animation ids and with added via GTA: MA mod.

Share this post


Link to post
Share on other sites
ThirteenAG

I promised to throw in some scripts, but the progress is a bit slow. Anyway, let's start somewhere:

 

III.IVPickups.cs VC.IVPickups.cs SA.IVPickups.cs

 

3/VC versions support v1.0, v1.1 and steam exe. GTA SA version(as a bonus) is for 1.0 only. Original script was made by DK.

 

DMqpiAh.jpg FPA6Qcd.jpg

 

I'm providing temporary sendspace links for now, but all scripts will be reuploaded eventually to updated gtagarage if it ever happens, or github.

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
xNCx

I don't know why, but after starting GTA VC, while in main menu, it says that I have 0 scripts and 3 plugins but I have scripts inside CLEO folder. I thought that I am a complete noob by that time who doesn't know how to install scripts and mods :blink: but after starting the game it launched my scripts and change to "5 scripts, 3 plugins". But why did it said 0? This is misleading.

Share this post


Link to post
Share on other sites
TJGM

I'm pretty sure it has always been like that. CLEO scripts load once you load a save/start a new game.

Share this post


Link to post
Share on other sites
xNCx

Right, just checked it with old cleo version. The old version displays just CLEO + version number in main menu. And I think the same should be for CLEO 2, because as I said "0 scripts" is misleading.

Edited by xNCx

Share this post


Link to post
Share on other sites
TJGM

Right, just checked it with old cleo version. The old version displays just CLEO + version number in main menu. And I think the same should be for CLEO 2, because as I said "0 scripts" is misleading.

But it's not misleading, it's how many scripts are currently loaded. ASI plugins load on game launch, CLEO scripts load on new game/save. It works as intended, what's the problem? And if the VC version wasn't like that previously, then it's the SA version that does it like that.

Edited by TJGM

Share this post


Link to post
Share on other sites
ThirteenAG

The number just indicates how many things are loaded(and running) at the current moment. Plugins are loaded as soon as cleo is loaded, so in this case the number is three. Scripts aren't loaded until the actual game is loaded, so the number is 0. And if in game you have 5 scripts, but one of them ends with the end_custom_thread opcode, you'll have 4 shown in the menu.

Share this post


Link to post
Share on other sites
Seemann

 

Right, just checked it with old cleo version. The old version displays just CLEO + version number in main menu. And I think the same should be for CLEO 2, because as I said "0 scripts" is misleading.

But it's not misleading, it's how many scripts are currently loaded. ASI plugins load on game launch, CLEO scripts load on new game/save. It works as intended, what's the problem? And if the VC version wasn't like that previously, then it's the SA version that does it like that.

 

CLEO 3 and CLEO 4.3 display the version information only upon the initial loading. Information about scripts and plugins loaded appears only when the game is started (and in case of CLEO 3 -- only if there's at least one script loaded).

 

Personally I would hide that "0 scripts" line, or make it to display the number of loaded and found scripts, i.e "0 of 5 scripts loaded".

Edited by Seemann

Share this post


Link to post
Share on other sites
xNCx

Guys, of course I realize how CLEO scripts work :). Try to think like a person who just discovered CLEO (or like me - returning to modding after a long break). You download CLEO and a few scripts. Then you start the game and see in the bottom "0 scripts, 3 plugins". As I said, my first thought was that I missed something - maybe I have to put cleo scripts in a different folder? I spent 10 minutes on trying everything... And then I launched the game "oh, it works".

 

Seeman's idea is quite good.

Edited by xNCx

Share this post


Link to post
Share on other sites
ThirteenAG

Okay, the number of scripts is now hidden in the initial menu and in case there are no scripts. Updated version with a few minor fixes released.

Share this post


Link to post
Share on other sites
Markuza

Opcode 0AD3 doesn't work for me in 3 and VC but it works fine in SA. Any idea why?

Share this post


Link to post
Share on other sites
ThirteenAG

Opcode 0AD3 doesn't work for me in 3 and VC but it works fine in SA. Any idea why?

Show the code.

Share this post


Link to post
Share on other sites
Markuza
{$CLEO .cs}0006: [email protected] = 00AD3: [email protected] = format "%d" [email protected]:Looprepeatwait 0until 0AB0: key_pressed 101 // Num 500A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected] // SA// 0054: store_player $PLAYER_CHAR position_to [email protected] [email protected] [email protected] // VC0AF3: write_float [email protected] to_ini_file "cleo\coords.ini" section [email protected] key "X"0AF3: write_float [email protected] to_ini_file "cleo\coords.ini" section [email protected] key "Y"0AF3: write_float [email protected] to_ini_file "cleo\coords.ini" section [email protected] key "Z"000A: [email protected] += 10AD3: [email protected] = format "%d" [email protected] 100jump @Loop

First I had some problems but I fixed them by doing this.

 

This works fine in SA

[0]X=2268.71Y=-1258.77Z=23.6362[1]X=2268.42Y=-1362.31Z=23.55[2]X=2283.12Y=-1386.25Z=23.8546

but VC always crashes during the loading.

Problem signature:  Problem Event Name:	APPCRASH  Application Name:	gta-vc.exe  Application Version:	0.0.0.0  Application Timestamp:	00000000  Fault Module Name:	VC.CLEO.asi  Fault Module Version:	0.0.0.0  Fault Module Timestamp:	55bf6443  Exception Code:	c0000005  Exception Offset:	00005742  OS Version:	6.1.7601.2.1.0.256.1  Locale ID:	1050  Additional Information 1:	0a9e  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789  Additional Information 3:	0a9e  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789Read our privacy statement online:  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409If the online privacy statement is not available, please read our privacy statement offline:  C:\Windows\system32\en-US\erofflps.txt
Edited by Markuza97

Share this post


Link to post
Share on other sites
ThirteenAG

Basically you can't use string variables in 3/VC. To replace them you have to allocate a block of memory to store a string manually. For example like this:

{$CLEO .cs}0000:0AC8: [email protected] = allocate_memory_size 20:Looprepeatwait 0until 0AB0: key_pressed 101 // Num 500A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected] // SA0AD3: [email protected] = format "%d" [email protected]: write_float [email protected] to_ini_file "cleo\coords.ini" section [email protected] key "X"0AF3: write_float [email protected] to_ini_file "cleo\coords.ini" section [email protected] key "Y"0AF3: write_float [email protected] to_ini_file "cleo\coords.ini" section [email protected] key "Z"000A: [email protected] += 1wait 100jump @Loop

Share this post


Link to post
Share on other sites
gtafan2u

Thanks man, it is what I am searching for a week. Now I can fix one of my tool made for vc. I will surely add your name.

Share this post


Link to post
Share on other sites
gtafan2u

My v1.0 vice city automatically closes while starting with this Cleo. Please help...

Share this post


Link to post
Share on other sites
ThirteenAG

My v1.0 vice city automatically closes while starting with this Cleo. Please help...

What's your exe size, system and is there a cleo.log file generated?

Share this post


Link to post
Share on other sites
gtafan2u

The exe is approximately 2.5 mb. System is windows xp sp2 professional. Yes, the cleo.log file is generated with two lines in it. First line with the Cleo version and second line with GTA vc version. I had not also installed any Cleo mod. Please help. I really need it....

Share this post


Link to post
Share on other sites
The____Mostwanted

ThirtheenAg im a Fan of your mods I have all your mods and I got problems with your mods that are using an TXD format (like taxi , hit indicator.. ) with Cleo 2 when i use those two mods The TXD file appear in game white :3

 

I Really want to thank you about the down grader of gta vc :D

Share this post


Link to post
Share on other sites
The____Mostwanted

The exe is approximately 2.5 mb. System is windows xp sp2 professional. Yes, the cleo.log file is generated with two lines in it. First line with the Cleo version and second line with GTA vc version. I had not also installed any Cleo mod. Please help. I really need it....

hey dude here your probleme will be fixed download this one : https://mega.nz/#!SVVXRIIA!ne5R5FwVIhK0IOxy5gDwhrQ8tv-aoaNLvVVr_RqTDyk it 2.94 mb (3,088,896 bytes) ;) make backup if u are afraid to lose ur own gta-vc.exe

Share this post


Link to post
Share on other sites
ThirteenAG

I got problems with your mods that are using an TXD format (like taxi , hit indicator.. ) with Cleo 2 when i use those two mods The TXD file appear in game white :3

Because they rely on the plugin that disables texture releasing. These scripts need to be rewritten, I don't know if it's gonna happen any time soon.

Share this post


Link to post
Share on other sites
The____Mostwanted

 

I got problems with your mods that are using an TXD format (like taxi , hit indicator.. ) with Cleo 2 when i use those two mods The TXD file appear in game white :3

Because they rely on the plugin that disables texture releasing. These scripts need to be rewritten, I don't know if it's gonna happen any time soon.

 

I wish Thank you ;)

Share this post


Link to post
Share on other sites
gtafan2u

 

The exe is approximately 2.5 mb. System is windows xp sp2 professional. Yes, the cleo.log file is generated with two lines in it. First line with the Cleo version and second line with GTA vc version. I had not also installed any Cleo mod. Please help. I really need it....

hey dude here your probleme will be fixed download this one : https://mega.nz/#!SVVXRIIA!ne5R5FwVIhK0IOxy5gDwhrQ8tv-aoaNLvVVr_RqTDyk it 2.94 mb (3,088,896 bytes) ;) make backup if u are afraid to lose ur own gta-vc.exe

 

No man it doesnot worked I tried it before. Markuza97 suggest me this but it just didnot worked. I was also suggested by ThirteenAG to download the Microsoft Visual C++ 2012 Redistributable libraries I tried that too but still didnot worked. But thanks for trying to help me anyway. :santa:

Share this post


Link to post
Share on other sites
ThirteenAG

CLEO v2.0.0.3 for GTA3 and VC has been released. Besides some fixes and improvements, two new plugins were added, Deji's ClipboardControl and a plugin to load dlls from memory.

New opcodes for both games:

 

0B20: read_clipboard_text_to [email protected] size 640B21: write_clipboard_data_from [email protected] size 640BA2: [email protected] = memory_load_library [email protected] // IF and SET0BA4: [email protected] = memory_get_proc_address "[email protected]@[email protected]" library [email protected] // IF and SET0BA3: memory_free_library [email protected]
In GTA3 I added a bunch of original opcodes that appeared in VC:

 

04C9: player $PLAYER_CHAR driving_plane 04A8: player $PLAYER_CHAR driving_boat04aa: player $PLAYER_CHAR driving_heli047E: player $PLAYER_CHAR driving_a_motorbike 0485: return_true059a: return_false
And I think I finished rewriting most of my old scripts, so you can download them here: http://13.sannybuilder.com/cleo-scripts

Let me know if you find any bugs, or if there's another script you want to see on that list.

Share this post


Link to post
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

×

Important Information

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