Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Red Dead Redemption 2

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

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    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. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. 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. 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
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Swoorup

My first VC cleo script

Recommended Posts

Swoorup

Hey guys,

I recently taught myself cleo scripting for my TC mod and I want to code for Vice city. I learnt through the video documention by dutchy3010.

The problem is that everytime I run the following cleo script vice city always crashes at the end of the loading bar.

 

 

{$CLEO .cs}thread "EXAMPLE"Model.Load(#PYTHON)Model.Available(#PYTHON)032B: [email protected] = create_weapon_pickup #python 3 ammo 1000 at -129.0619 -47.7433 27.287905DC: end_custom_thread

 

 

EDIT: I have stripped main.scm. If getting the main scm stripped will be a problem for cleo. Please tell me a solution!

And I need it fast before I go to sleep and forget all these yawn.gif

Edited by Swoorup

Share this post


Link to post
Share on other sites
DaRk_St0rM

You don't need to load the weapon model to create a weapon pickup.

It should work, if it doesn't, replace the stripped scm with the original one.

 

EDIT: When you load a model, do this to check if it was loaded (since you don't need it here):

 

0247: load_model #model038b: load_requested_models:Load_Checkwait 0 msif0248: model #model availablejf @Load_Check// Do something with the model..0249: release_model #model // Release it when you don't need anymore (doesnt' mean destroy it)

 

Also, read Mission Coding for Dummies instead of videotutorials. They are pretty brief and don't explain many things.

Edited by DaRk_St0rM

Share this post


Link to post
Share on other sites
Swoorup

I did not use load code before. But it eventually did not work before so I tried reading some of the cleo codes on GTAG and hence

I thought to give it a shot still no luck!!

 

EDIT: Does not work with original VC main scm either!!!

 

Does not work with or without loading the models!!

Edited by Swoorup

Share this post


Link to post
Share on other sites
xNCx

And where is the opcode 0000:?

Share this post


Link to post
Share on other sites
Swoorup

At which line sir?

Share this post


Link to post
Share on other sites
DaRk_St0rM

The code should work with the original scm. It's very extrange. Opcode 0000 is NOP, it performs no operation but try to put it at the beginning.

Anyway, post your actual code to see if something is wrong.

Share this post


Link to post
Share on other sites
Swoorup

Other cleo mods work perfectly, but mine always causes crashes again and again

Share this post


Link to post
Share on other sites
Swoorup

 

{$CLEO .cs}thread "EXAMPLE"032B: [email protected] = create_weapon_pickup #python 3 ammo 1000 at 239.2362 -1279.4069 11.071205DC: end_custom_thread

 

 

Its not working man!!!

Share this post


Link to post
Share on other sites
Swoorup

I am really tired of this, I cant get it working man!!

I replace [email protected] with $931, the game does not crash but the pickup wont spawn

Share this post


Link to post
Share on other sites
DaRk_St0rM

It's really extrange since global variables normally cause CLEO crash. Try to check if the player is near the location and then create the pickup. Something like this:

 

 

{$CLEO .cs}:Python_1thread 'PYTHON':Python_20001: wait 0 msif00FE:   actor $PLAYER_ACTOR sphere 1 in_sphere 239.2362 -1279.4069 11.0712 radius 1.0 1.0 1.0jf @Python_20213: [email protected] = create_pickup #desert_eagle type 15 at 241.2362 -1279.4069 11.07120A93: end_custom_thread

 

It works for me in San Andreas (though in SA it's an underworld). It should work in VC.

Share this post


Link to post
Share on other sites
Swoorup

It always crashes man. Whatever the code I put in

Share this post


Link to post
Share on other sites
DaRk_St0rM

It's really extrange. Post the code exactly like you have it now.

Share this post


Link to post
Share on other sites
Swoorup

 

 

{$CLEO .cs}thread "EXAMPLE"0247: request_model #PYTHON038B: load_requested_models:Lodchkwait 0if 0248: model #PYTHON availablejf @Lodchk 032B: [email protected] = create_weapon_pickup #PYTHON 15 ammo 9999 at 239.2362 -1279.4069 11.0712

 

Share this post


Link to post
Share on other sites
DaRk_St0rM

Like I told you, you don't need to load the model for a pickup. Also, you don't finish the tread. It should be like this:

 

 

{$CLEO .cs}thread "EXAMPLE"032B: [email protected] = create_weapon_pickup #PYTHON 15 ammo 9999 at 239.2362 -1279.4069 11.07120a93: end_custom_thread

 

Share this post


Link to post
Share on other sites
Swoorup

Man believe me I tried that already. It does not work.

And that end custom thread you just posted is of SA

VC has 05DC as end_custom_thread

 

Still a crash

Share this post


Link to post
Share on other sites
DaRk_St0rM

No idea then. That's the extrangest error I've seen. Try to reinstall CLEO. I have no other idea..

Share this post


Link to post
Share on other sites
Swoorup

Still nothing man. My first cleo mod and I got cleaned bold cryani.gif

 

Here's Sanny builder screenshot of mine

user posted image

Edited by Swoorup

Share this post


Link to post
Share on other sites
DaRk_St0rM

Mmmm. my opcode 032b looks like this:

 

032B: $811 = create_weapon_pickup #M4 group 15 ammo 60 at 2021.879 1001.467 10.3203

 

Group can be 1 (the pickup doesn't spawn), 3 (spawns once), or 15, (respawns after some time)

Share this post


Link to post
Share on other sites
Swoorup

Whatever I do it just does not work!!! I am screwed

Share this post


Link to post
Share on other sites
DaRk_St0rM

I have told you anything I know. No idea what happens.

Share this post


Link to post
Share on other sites
xNCx

catloaf_by_anuj.gifcatloaf_by_anuj.gifcatloaf_by_anuj.gifcatloaf_by_anuj.gif

 

 

{$VERSION 2.2.0000}{$CLEO .cs}//-------------MAIN---------------0000://your code

 

Share this post


Link to post
Share on other sites
Swoorup

 

{$VERSION 2.2.0000}{$CLEO .cs}//-------------MAIN---------------0000:thread "EXAMPLE"032B: [email protected] = create_weapon_pickup #PYTHON ammo 15 60 at 239.2362 -1279.4069 11.071205DC: end_custom_thread

 

 

Didnot work man

cryani.gif

Share this post


Link to post
Share on other sites
Swoorup

Sorry for DBP

But just wanted to let you all know that this is solved now.

SA cleo is very much different from VC and all thanks to you all for helping me out

AND especially Ashwin the new boy for helping me out. THANK You lots and lots

 

 

{$VERSION 2.1.1000}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'Ashwin' 032B: [email protected] = create_weapon_pickup #PYTHON ammo 15 60 at 239.2362 -1279.4069 11.0712/////////Put your code here////////////:ashwait 5000jump @ash

 

 

Share this post


Link to post
Share on other sites
xNCx

wth, a nonsense loop rofl

Share this post


Link to post
Share on other sites
Swoorup

the main part is naming the thread, dats why the game crashed!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.