Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Opponent starts early in replay
03-31-2007, 11:33 PM,
#1
Opponent starts early in replay
Playing around tonight I tried recording a replay in single race mode, driving the CT against the NS on Barcelona. I sucked for 2 laps but came back in the 3rd and beat the NS. I spun out once when way ahead and ended up backwards on the road in reverse watching the NS catch up and pass me...then when I played the replay, the NS starts way before my car, is in front of my car when I spin, and wins (even though my time is lower than him), and is sorted first on the results screen. It seems to me that the opponent is getting started long before the player in replays.It could be because the opponent's recording starts after the player recording, but both are started at the same time. Anybody have any ideas why this might be? I haven't looked closely at the AI replay recording code or the replay playback code yet, will soon.
Reply
03-31-2007, 11:59 PM,
#2
 
Actually the record reply function does not record AI driver's play at all. At least this is what I know unless someone has changed the reply code. I think when you replay a record single race game, the game just create the AI driver and drive as if it's a single race game.

I'm not sure why the opponent car start earlier though. Could it be because the brake holding code at the start of the race was not effective when it's a reply?
Reply
04-03-2007, 09:09 PM,
#3
 
So, any idea how to fix this? I haven't had much chance to look at it again, I think Joe might have fixed something small related to this, but not sure.
Reply
04-03-2007, 09:35 PM,
#4
 
The best way would be to record replay data for the AI. This would be made easier if we refactored the code a bit.
Reply
04-03-2007, 10:03 PM,
#5
 
I remember that in network games the replays seemed to get all the cars recorded, can we make that work for AI too?
Reply
02-10-2010, 07:30 AM,
#6
 
This thread is a bit old, nevertheless I'm interested to replay the AI driver. If I record a "single race", only the human driver is shown in the replay and no AI driver at all.

Any suggestion, maybe to simply set a pointer to the AI car, within the "replay.StartRecording" function?

flo
Reply
02-11-2010, 11:14 AM,
#7
 
In game.cpp, adjust the calls to replay.StartRecording and replay.RecordFrame to pass the AI car's information instead of the local player's information.
Reply
02-11-2010, 07:55 PM,
#8
 
Great, that worked!
Is it possible to play "*.vdr" file out off VDrift, respectiveley burn it to DVD or is it, as I supose, just a text file, VDrift reads-out data?
Reply
02-11-2010, 10:53 PM,
#9
 
It's a binary file with data about control inputs and car state, so unfortunately no, nothing but VDrift will play it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)