Forums

Full Version: This replay causes NaN in origin vector
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://clemsonlinux.org/~thelusiv/86.vdr <--- right-click, save as, put in your ~/.vdrift/replays/ directory.

The track is Spa-Francorchamps, the car is the XS. This replay should work on the 2006/10/02 version of the game, but if you don't have SVN, you need to rename it to 1.vdr or you won't be able to start it.

This replay doesn't actually have the NAN in it, but it can be reproduced very easily:
  • Start the replay by selecting it in the menu Replays menu, and clicking Start
  • Skip ahead about 1:20. I think the default control for this is "." so press that 12 times (to find out what you have bound to Replay Skip Ahead look in Options -> Controls -> Assign Controls -> Game Controls). This will put you just before the starting line going very fast. The replay will be about to end (around 95% complete).
  • Now, before the replay ends, hold your controls so that the gas is at maximum, and steer all the way to the left as far as you can go. It may make a difference that I'm using Speed Sensitive Lo setting for Touchiness Compensation option in Options -> Controls (SVN), Options -> Controls -> Joystick (10-2).
That's it. As the replay completes, the car will hit the right wall near the starting line. When this happens you should see "NaN detected in origin vector" printed on your console one time and then go to the Simulation Error menu (SVN), or in 10-2 the game will just hang and print NaN errors on the console over and over....
I'll have to try this out over the weekend.
Correction: After looking at some of the replay code tonight you'll need the SVN version of VDrift to play this replay, as that's what I made it with.