The script thread?

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

  • acctest.rar
    1.1 KB · Views: 167
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
 
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?
 
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.
 
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 !?!
 
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
 
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

  • scripts.rar
    8.3 KB · Views: 147

Latest News

How long have you been simracing

  • < 1 year

    Votes: 313 15.5%
  • < 2 years

    Votes: 213 10.6%
  • < 3 years

    Votes: 209 10.4%
  • < 4 years

    Votes: 157 7.8%
  • < 5 years

    Votes: 271 13.4%
  • < 10 years

    Votes: 234 11.6%
  • < 15 years

    Votes: 150 7.4%
  • < 20 years

    Votes: 118 5.9%
  • < 25 years

    Votes: 89 4.4%
  • Ok, I am a dinosaur

    Votes: 261 13.0%
Back
Top