Bad.boy! Posted May 6, 2011 Share Posted May 6, 2011 The game screen remains black when I start the game with this car spawn script: AAVP7A1 = I added this vehicle {$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' :SPAWN_11wait 0 if Player.Defined($PLAYER_CHAR)else_jump @SPAWN_11 wait 0 Model.Load(#AAVP7A1)038B: load_requested_models :SPAWN_42if Model.Available(#AAVP7A1)else_jump @SPAWN_42 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 1.0 3.0 1.0 [email protected] = Car.Create(#AAVP7A1, [email protected], [email protected], [email protected])wait 0 Car.RemoveReferences([email protected])jump @SPAWN_11 Link to comment Share on other sites More sharing options...
fastman92 Posted May 6, 2011 Share Posted May 6, 2011 wait 0 // WTF, why do you put wait, no need, to let GTA SA do some other actions instead of scripts...Car.RemoveReferences([email protected])// Where is needed Model.Destroy(#AAVP7A1) ?{THere is an array in GTA SA with IDs of objects which must be kept in memory, no need to keep a car model in memory after spawning it, right?}jump @SPAWN_11 // What is it? Spawn car, spawn car, spawn car and spawn car? Instead of Player.Defined($PLAYER_CHAR) condition add condition to spawn a car - pressing key. 0AB0: key_pressed 48 // 0 to press Find an opcodes on http://gtag.gtagaming.com Find "Virtual key codes in google".... Link to comment Share on other sites More sharing options...
metacortex Posted May 6, 2011 Share Posted May 6, 2011 :SPAWN_42wait 0 //------------------- you missed a wait here in the loopif Model.Available(#AAVP7A1)else_jump @SPAWN_42 No reason for a harsh rush, Mister fastman Link to comment Share on other sites More sharing options...
Bad.boy! Posted May 6, 2011 Author Share Posted May 6, 2011 this script doesn't work either I hit 2 and the game freezes (is it the car?) {$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' :SPAWN_11wait 0 if Player.Defined($PLAYER_CHAR)else_jump @SPAWN_11 :SPAWN_31wait 0 if 0AB0: key_pressed 50 else_jump @SPAWN_31 Model.Load(#AAVP7A1)038B: load_requested_models :SPAWN_57wait 0 if Model.Available(#AAVP7A1)else_jump @SPAWN_57 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 1.0 3.0 1.0 [email protected] = Car.Create(#AAVP7A1, [email protected], [email protected], [email protected])wait 0 Car.RemoveReferences([email protected])Model.Destroy(#AAVP7A1)jump @SPAWN_11 Carcols.dat caraavp7a1, 43,0 Handling.cfg AAVP7A1 25000.0 250000.0 5.0 0.0 0.0 0.0 90 2.50 0.8 0.5 4 80.0 40.0 150.0 4 D 5.0 0.50 0 35.0 0.4 0.02 0.0 0.35 -0.10 0.5 0.0 0.22 0.09 110000 40008008 308840 0 1 24 Vehicles.ide 18631, aavp7a1, aavp7a1, car, AAVP7A1, AAVP7A1, tank, ignore, 10, 0, 0, -1, 1.3, 1.3, -1 Handlingadder.ini [MAIN]Count=1[CAR_IDs]18631[18631]index=11fmass=25000,0fTurnMass=250000,0fDragMult=5,0x=0,0y=0,0z=0,0nPercentSubmerged=90fTractionMultiplier=2,50fTractionLoss=0,8fTractionBias=0,5nNumberOfGears=4fMaxVelocity=0,4133299fEngineAcceleration=0,0032fEngineInertia=150,0nDriveType=4nEngineType=DfBrakeDeceleration=0,002fBrakeBias=0,50bABS=0fSteeringLock=35,0fSuspensionForceLevel=0,4fSuspensionDampingLevel=0,02fSuspensionHighSpdComDamp=0,0fSuspensionUpperLimit=0,35fSuspensionLowerLimit=-0,10fSuspensionBiasBetweenFrontAndRear=0,5fSuspensionAntiDiveMultiplier=0,0fSeatOffsetDistance=0,22fCollisionDamageMultiplier=0,12nMonetaryValue=110000modelFlags=1073774600handlingFlags=3180608frontLight=0rearLight=1animGroup=24 salimits #Vehicle Models=18631 Link to comment Share on other sites More sharing options...
ZAZ Posted May 6, 2011 Share Posted May 6, 2011 this script doesn't work either I hit 2 and the game freezes (is it the car?) insert an original vehicle name in the script to see if it's the script or the vehicle installation CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Bad.boy! Posted May 6, 2011 Author Share Posted May 6, 2011 It's the car that makes the problems, the car spawns correct, but it's locked so I made this script: {$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' :SPAWN_11wait 0 if Player.Defined($PLAYER_CHAR)else_jump @SPAWN_11 :SPAWN_31wait 0 if 0AB0: key_pressed 50 else_jump @SPAWN_31 Model.Load(#FBITRUCK)038B: load_requested_models :SPAWN_57wait 0 if Model.Available(#FBITRUCK)else_jump @SPAWN_57 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 1.0 3.0 1.0 [email protected] = Car.Create(#FBITRUCK, [email protected], [email protected], [email protected])Car.LockInCurrentPosition([email protected]) = False:SPAWN_130wait 0 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0 0 0 if 00EC: actor $PLAYER_ACTOR 0 near_point [email protected] [email protected] radius 80.0 80.0 else_jump @SPAWN_195 jump @SPAWN_130 :SPAWN_195wait 0 Car.Destroy([email protected])Car.RemoveReferences([email protected])Model.Destroy(#FBITRUCK)jump @SPAWN_11 Does anyone know what mistake I made in the added vehicle? Carcols.dat caraavp7a1, 43,0 Handling.cfg AAVP7A1 25000.0 250000.0 5.0 0.0 0.0 0.0 90 2.50 0.8 0.5 4 80.0 40.0 150.0 4 D 5.0 0.50 0 35.0 0.4 0.02 0.0 0.35 -0.10 0.5 0.0 0.22 0.09 110000 40008008 308840 0 1 24 Vehicles.ide 18631, aavp7a1, aavp7a1, car, AAVP7A1, AAVP7A1, tank, ignore, 10, 0, 0, -1, 1.3, 1.3, -1 Handlingadder.ini [MAIN]Count=1[CAR_IDs]18631[18631]index=11fmass=25000,0fTurnMass=250000,0fDragMult=5,0x=0,0y=0,0z=0,0nPercentSubmerged=90fTractionMultiplier=2,50fTractionLoss=0,8fTractionBias=0,5nNumberOfGears=4fMaxVelocity=0,4133299fEngineAcceleration=0,0032fEngineInertia=150,0nDriveType=4nEngineType=DfBrakeDeceleration=0,002fBrakeBias=0,50bABS=0fSteeringLock=35,0fSuspensionForceLevel=0,4fSuspensionDampingLevel=0,02fSuspensionHighSpdComDamp=0,0fSuspensionUpperLimit=0,35fSuspensionLowerLimit=-0,10fSuspensionBiasBetweenFrontAndRear=0,5fSuspensionAntiDiveMultiplier=0,0fSeatOffsetDistance=0,22fCollisionDamageMultiplier=0,12nMonetaryValue=110000modelFlags=1073774600handlingFlags=3180608frontLight=0rearLight=1animGroup=24 salimits #Vehicle Models=18631 Link to comment Share on other sites More sharing options...
aStiffSausage Posted May 6, 2011 Share Posted May 6, 2011 Try without HandlingAdder, you can do it by this: Add handling-line after ";End" in handling.cfg Go in-game (Make backups first) Link to comment Share on other sites More sharing options...
ZAZ Posted May 6, 2011 Share Posted May 6, 2011 (edited) salimits #Vehicle Models=18631 salimits is wrong insert the amount of vehicles and not the id number without added cars it's #Vehicle Models=212 add one car then type #Vehicle Models=213 It seems that is your first attempt. If so, then install a normal car as first test and not a tank Edited May 6, 2011 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Bad.boy! Posted May 6, 2011 Author Share Posted May 6, 2011 It's not my first attempt, but I had to format my hdd* (this is my 9th attempt) and that doesn't matter, because my old one was 18636 and everything worked *my laptop ran out of battery whilest updating 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