Welcome, Please Register or Login

Forums \ Street Legal Racing \ F.A.Q / Help Section \ It won't go away.

Author Message
#1\2017-02-16 17:42

Members
2
Offline

Posts: 853


us United States

So I've finally put together a script for the first derby in 2.2.5. :D

The only problem is, it has just one error. I've fixed everything else, but it doesn't seem to want to work. Upon loading it from the activity menu it gives me this error:

!syntax error in file sl\scripts\game\src\Derby1.java at line 118

I don't see anything wrong, or any sort of error with the final lines, but if you spot one, please tell me. Here they are:

StartTime = System.simTime();


cam.command( "angle 0 0" );
player.car.queueEvent( null, GameType.EVENT_COMMAND, "start" );
start +=1;

raceBot1.car.queueEvent( null, GameType.EVENT_COMMAND, "start" );

raceBot1.followCar(player.car, 1);
}
}


And a quick question... Is it possible to make a loop script that checks if your car is drivable? (Chassis dead, or missing engine) It would be very useful for finalizing it.
Shoot me.

Say 'ello to my trash can:
https://www.youtube.com/channel/UCMCyRAPP5bdDi0gT9P6JejA


I am a proud sponsor, and Beta Tester for Fireful0's Mod Workshop. Be sure to check out his website here: http://www.operationstation.com
#2\2017-02-16 19:19

Forum Moderator
5
Offline

Posts: 1227


pt Portugal

Aren't you using jack slrr java? If yes that's what that looks like you got the answer for your 2nd question
#3\2017-02-16 20:03

Members
2
Offline

Posts: 853


us United States

No, I am using 2.2.1MWM.

And that wasn't the script for the second question. I was wondering if there was a way I could import the underivable garage code, and import it, and have a check looped, so that it will know when your car is dead.
Shoot me.

Say 'ello to my trash can:
https://www.youtube.com/channel/UCMCyRAPP5bdDi0gT9P6JejA


I am a proud sponsor, and Beta Tester for Fireful0's Mod Workshop. Be sure to check out his website here: http://www.operationstation.com
#4\2017-02-17 02:37

Forum Moderator
5
Offline

Posts: 1227


pt Portugal

I was talking about the main code script because it's almost the same thing as the Jack's script, about that loop you can "import" that code from garage java and paste it into animate section of your script
#5\2017-02-17 14:38

Members
2
Offline

Posts: 853


us United States

Okay, but I still can't figure out why the game is crashing for the Derby script. I'm not entirely sure, but if you need me to, I will send you the file.
Shoot me.

Say 'ello to my trash can:
https://www.youtube.com/channel/UCMCyRAPP5bdDi0gT9P6JejA


I am a proud sponsor, and Beta Tester for Fireful0's Mod Workshop. Be sure to check out his website here: http://www.operationstation.com
#6\2017-02-17 15:14

Forum Moderator
5
Offline

Posts: 1227


pt Portugal

Sorry but I won't see the java, I'm out of SLRR and I don't have anyway to test and see it.
#7\2017-02-17 16:53

Members
2
Offline

Posts: 853


us United States

Okay then. I'll ask around other places, see if I get any luck.
Shoot me.

Say 'ello to my trash can:
https://www.youtube.com/channel/UCMCyRAPP5bdDi0gT9P6JejA


I am a proud sponsor, and Beta Tester for Fireful0's Mod Workshop. Be sure to check out his website here: http://www.operationstation.com