You are not logged in.
Pickups, entrance markers, objects and vehicle parkings are wrote into game save.
this pickup was a cleo script, it spawns in every new game instance (loaded game or new game)
Last edited by kzman (28-10-2010 03:25)
Offline
nothing happens, i deleted the save games, then i start a new game ,but thr pickup is still there, i also tried deleting the main.scm file, but the same thing happens, where and what is the file that keep the pickup there?
Offline
and if you go to "CLEO/CLEO_SAVE" folder you didnt see a savegame?
Offline
this folder doesnt exist, and i uninstalled gtasa, deleting the C:\Program Files\Rockstar Games\GTA San Andreas directory, and My Documents\GTA San Andreas User Files folder too, and the pickup is still there, may be it is a registry problem, I also uninstall and delete sanny builder completely, but it doesnt help.
but there are something funny: i downloaded from the internet(http://www.gtasavegames.com/savegames/San_Andreas) a savegame, then i loaded this game and voila, the gun is not there (:D), but when i start a new game, the gun is there. after i loaded the savegame, i save that game, and i think it solve the problem but in a new game, the pickup is there again
Last edited by kzman (29-10-2010 00:11)
Offline
Hello, I am thinking on fetching a few good mods with Cleo. Can anyone suggest me a few good? One thing I wish to get is a female main character, for I got bored of playing males when not being one.
Thank you forwardly.
Offline
{$CLEO} model.Load(12) repeat wait 0 if and Player.Defined($PLAYER_CHAR) model.Available(12) then break end until false 09C7: change_player $PLAYER_CHAR model_to 12 model.Destroy(12) 0A93:
12 - ID number of actor model (look file peds.ide)
Offline
Thank you for the answer! Is there any way to make the main characters sound to go off?
Another qestion: I wish to make this midway the main storyline... Not a clever idea, I guess...?
Crossquestion, to put it on the top: is there any CLEO mod suggested? And do CLEO works with total conversions? Just asking...
Offline
@Letrune - check this
http://sannybuilder.com/forums/viewtopic.php?id=1164
in russian though
Offline
Hello again... Is there a way to make the main character silent? This masculine voice ruins my feminine play.
Offline
Add command
0489: set_actor $PLAYER_ACTOR muted 1before 0A93:
Um, and how I should do this for the game, please...? I am unable to do it as much as I tried... Maybe I do badly. I did a sammybuilder script with this, but I hardly could do that, too.
Offline
I didn't understand - what is the problem. There is source code:
{$CLEO} model.Load(12) repeat wait 0 if and Player.Defined($PLAYER_CHAR) model.Available(12) then break end until false 09C7: change_player $PLAYER_CHAR model_to 12 model.Destroy(12) 0489: set_actor $PLAYER_ACTOR muted 1 0A93:
Offline
Uhm, hello everybody, i've been trying to make a loop code that continuously and indefinitely stores the player's positions to DIFFERENT variables, i've come up with a simple loop like this:
:OTHERYOU_02
wait 10000
00A0: store_actor $PLAYER_ACTOR position_to $550 $651 $652
if
80DF: not actor $PLAYER_ACTOR driving
jf @DRIVING_02
jump @OTHERYOU_02
The question is: is there a way to and how do i change the variables names during a loop? the variables would be $550 $651 $652 in this case, i want to change their names upon each loop iteration, so the new player position will be stored into different variables, each 10 seconds, this way, i can duplicate the player's actions, any light to be shed here?
Offline
Why do you need to? Eventually you'll run out of variables and the game will crash from overflow...
while true wait 10000 00A0: store_actor $PLAYER_ACTOR position_to 1@(0@,1f) 2@(0@,1f) 3@(0@,1f) 000A: 0@ += 3 80DF: not actor $PLAYER_ACTOR driving jf continue end
In this example, if the loop runs for long enough, mission variables will be overwritten - which is safe as long as there is no mission running. But eventually, you'll pass the variable limit and start overwriting more important data.
Offline
This is a very odd problem. This code for VC CLEO
[c]{$CLEO .cs}
0247: request_model #RCBARON
:load
wait 0
if
0248: model #RCBARON available
jf @load
046E: put_player $PLAYER_CHAR in_RC_mode_at 0.0 0.0 150.0 angle 182.29 RC_model #RCBARON
:loop
wait 10
jump @loop[/c]
works perfectly fine in the main script file but crashes while in the CLEO file. It crashes at 046E on address 0x59E6D3, why?
EDIT: I just made a workaround for this problem
[c]05DF: write_memory 0x4458E3 size 4 val #RCBARON virtual_protect 1 // work around 046E
010C: change_player_into_rc_buggy $PLAYER_CHAR at 0.0 0.0 150.0 182.29[/c]
so it's not a problem for me anymore but I still wonder why opcode 046E would crash CLEO...
Last edited by Planepics (23-04-2011 20:34)
Offline
Check the player exists
[c]Player.Defined(0)[/c]
Offline
Wow, I can't reproduce the problem again. I don't know what happened but somehow the game doesn't crash anymore. Thanks anyway.
Offline
:clap:Nice touch with the comments field here.:^ I never thought that formatting comments much easier would be possible.Kudos to you!:P
Offline
hi....im a new user at this forum n i have a cleo problem....It is when i played gtasa in the middle with the installed cleo , gtasa will be suddenly crashed , even gtasa compact.exe is useless
WHAT should i do to prevent this kind of problem...? im sick with it
Offline
Hey, nice post. I really like it and already bookmark it to read. Thanks yaar
Vacation rental West Vancouver
Last edited by William Brown (12-06-2011 18:25)
Offline
hi. im trying to create property buying pickups, but i need to know how to continue. so far it is:
{$VERSION 3.1.0027}
{$CLEO .cs}
//-------------MAIN---------------
thread "PARKMONSTER"
wait 1000
0A95: enable_thread_saving
032B: Create_property_pickup 1273 group 15 property 435.625 2522.09 20.1797 price 130000
if
key_pressed 36
032B: Create_savegame_pickup 1277 group 101 save 409.252 2526.93 16.57030A93: end_custom_thread
first of all, will that key pressing command work? also how can i edit the needed parameters amount?
i found a property creating command but im not sure how to use it correctly:
0518: $BUY_ASSET_PICKUPS[0] = create_available_asset_pickup 'PROP_1' at $X_PROPERTY_TO_BUY[0] $Y_PROPERTY_TO_BUY[0] $Z_PROPERTY_TO_BUY[0] price $120000 // Press ~k~~PED_ANSWER_PHONE~ to buy this property.
maby i replace the _property_to_buy with coords? testing now....
also im pretty sure this wouldn't work as what it is now in any way...
and also apologies to bump this old thread, didn't think of finding similar....
Last edited by jani201 (27-11-2011 23:32)
Offline
Key pressing comand won't work, cuz u checking key press once. Use that:
while 8AB0: not key_pressed 36 wait 100 end
Last edited by ~AquaZ~ (28-11-2011 13:49)
Offline
Alright, I need some help with this:
I have this cleo script here:
//-------------MAIN--------------- 0000: NOP :NONAME_2 wait 0 if 0AB0: key_pressed 90 else_jump @NONAME_36 Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0) :NONAME_36 if 0AB0: key_pressed 88 else_jump @NONAME_66 Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0) :NONAME_66 jump @NONAME_2
Now what I want to add is basically a timer, I press the key and the godmod actives for like 10 seconds then goes off and then goes on again, till I press the key to disable it.
Second what I want to add is one key to toggle it on and off. I hope someone can do this for me, because I'm newb when it comes to cleo scripting.
Much love, Testa
Offline
how do i change the command for a cleo script?
example: you type portal to get the portal gun how do you change it?
Offline