The script thread?

gtpdzbiz

100RPM
Racer is now supporting RSX script which is a pretty nice little tool~expands the possibility of custom content creation.

So....I'll start with a simple script for testing 0-100km acceleration time.

Just put the files into yourtrackfolder/scripts/paint, press spacebar if you want to reset the timer.

Hope it helps~:)
 

Attachments

Stereo

3000RPM
You write an ascii source code (script.rsx), then compile it through the Racer console:
compile <filename>
Which produces the .rcx file.
 

Mr Whippy

3000RPM
Any chance of a timer for different intervals, and braking time/distances etc too?

Hmmmm, nice :D


Also, general observation, I noticed the default 'graphs' seem to have gone now... ie, "run glong" in the console doesn't show the longitudinal G graph any more... have they been removed?!

Dave
 

gtpdzbiz

100RPM
Any chance of a timer for different intervals, and braking time/distances etc too?

Hmmmm, nice :D


Also, general observation, I noticed the default 'graphs' seem to have gone now... ie, "run glong" in the console doesn't show the longitudinal G graph any more... have they been removed?!

Dave

I think it's fairly easy to make a script combining with trigger gate for testing braking time/distance, and many other testing features like quarter mile acc test/top speed recording/even drifting score.

The "graphs" function still works, the "glong" script is probably deleted so you can't execute it via console. Try "graph step -20 20 gforce_lon" in the console for the lon-G graph instead.

Edited: It looks like racer is having some trouble running multiple rcx scripts. Perhaps they all running on a single thread?
 

QuadCoreMax

500RPM
Is there any chance of getting the simulated/outputted values from the debug functions & reuse/execute them somehow in our custom scripts/functions as input values ?
 

QuadCoreMax

500RPM
What about putting an event to your script which detects whenever the car reaches for example 200 km/h & then dynamically changes your paint script on-screen/in-game ?

So, we would have something like that :

If car is below 100 km/h, it renders the acceleration for 0-100
If car is equal or greater than 100 km/h & below 200km/h, it renders the acceleration for 100-200
etc...
to 300-400 km/h

A TV shows about Veyrons Top Speed, demonstrating how slowly a Veyron needs to reach 400 from 350 km/h, it was something like 30s to more than 1 min if I recall correctly, I should check Googling...:)

Lots of ideas really, I'll re-dive myself in C++ programming...

P.S: We shall have more car/track events.
 

QuadCoreMax

500RPM
I just thought about your script more deeply...It reminds me a bit those GPS PPC applications I've used in the past, which does basically the same but typically or originally, I had in mind something that works correctly.

IMO, there should be another condition checking the nb. of seconds needed to reach actually the speed of 100km/h. So, the simulated/outputted values should be less than a nb. of seconds you defining. It could be programmed as a constant something like less than 10 secs, if car hasn't reached it in this range, don't output anything...

Just an idea !?!
 

Mr Whippy

3000RPM
I just thought about your script more deeply...It reminds me a bit those GPS PPC applications I've used in the past, which does basically the same but typically or originally, I had in mind something that works correctly.

IMO, there should be another condition checking the nb. of seconds needed to reach actually the speed of 100km/h. So, the simulated/outputted values should be less than a nb. of seconds you defining. It could be programmed as a constant something like less than 10 secs, if car hasn't reached it in this range, don't output anything...

Just an idea !?!
Possibly better to look at the throttle state, if it stops being a wide open for longer than say 3s, then you are essentially stop timing as the run isn't valid?

10s limit would rule out lots of slower cars and trucks etc :D

Dave
 

gtpdzbiz

100RPM
OK, now the brake test script is finished~

This one works with Carlswood, so now the straight strip is a brake test area. It measures your brake time and distance. You can also easily port it to other track by using trigger lines.

Installation:
!This only works with latest version(0.8.16)!

Remove/backup all your track script and copy all the files into carlswood_nt/scripts, replace the special.ini with the new one. That's it.

How to use:
Teleport to the start line by pressing Shift+p, drive straight through the drag lane and follow the on screen instruction, have fun and take good safety measures~:cool:
 

Attachments

Top Bottom