Forums

Full Version: Replays rewrite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Joe has rewritten the Replay system in r1964. I made a replay with it on my 64 bit Ubuntu install on my desktop machine. It's about 800 sec long, XS on Jarama without TCS/ABS. Here it is: http://clemsonlinux.org/~thelusiv/41.vdr

Put the file in your ~/.vdrift/replays directory. Rename it to "i.vdr" where i is the highest numbered replay file you have plus 1. Now you have to edit your ~/.vdrift/VDrift.config so that num_replays = i. Then start up VDrift and go to the replays menu, select the last replay, and start.

I've noticed that skip forward/back doesn't seem to work anymore, but some other problems have been fixed (I haven't tested it thoroughly yet)....
That's correct, I haven't re-implemented the seeking yet....
thelusiv Wrote:Rename it to "i.vdr" where i is the highest numbered replay file you have plus 1. Now you have to edit your ~/.vdrift/VDrift.config so that num_replays = i.

As a side note, avoiding the process above is why I was hoping you could do a quick fix for issue 38 (still using a wheel, but wheeling through all the files in the folder).
I gave your replay a shot on my 32-bit gentoo machine and it worked. The only bug I noticed is that vdrift didn't disable ABS/TCS, although it's disabled in the replay file.
I fixed the ABS/TCS replay bug in R1965. Note that I also changed how ABS/TCS works slightly... if you enable/disable in the menus, it only changes the default value for when you start a new game... if you're currently in a race, the only way to change ABS/TCS state is to use the toggle control. This is to allow the replay stuff to work properly. Hopefully I didn't screw up other abs/tcs related stuff (haven't found any problems yet tho).
One more bug: need to store in the replay whether or not the track is reversed.
Cool that my replay works for you. That means the serialization library is doing its thing correctly, and it should work equally well on PPC and other flavors.

On ABS/TCS: So basically ABS/TCS is always available, rather than unavailable when turned off in the menu. So what happens when you change the ABS/TCS menu values during a game? I would think the same thing that happens when you press the ABS/TCS controls during a game, they are disabled. Or does it not affect things until the game is restarted? Does using the ABS/TCS toggle controls then change the value in the menu?

I think that's how it should work - ABS/TCS menu entry should do the same thing as the ABS/TCS controls do, all the time. Does that make sense?

I guess I could just update my checkout and see how you set it up. Big Grin
thelusiv Wrote:On ABS/TCS: So basically ABS/TCS is always available, rather than unavailable when turned off in the menu.

I think that's how it always was.

Here's the only change:

Quote:So what happens when you change the ABS/TCS menu values during a game?

...nothing.

So, basically, changing the setting in the menu just changes how your car starts out when you start a new game.

Quote:I think that's how it should work - ABS/TCS menu entry should do the same thing as the ABS/TCS controls do, all the time. Does that make sense?

Yeah, it makes sense, sort of, but it'd require the menu item to do something different depending on whether or not a game is started... and also, it'd require the menu to trigger a control, which the menu isn't set up to do (and hasn't done before... before it would just change the value but not trigger the control, and the replay would de-sync from that point on). It sort of makes sense this new way, too, I think. I think the thing that makes it confusing is that ABS/TCS are on the options->controls screen at the moment, and they should be moved to the start game (practice/race/autox) menus instead... then all of a sudden this new way makes a lot of sense (because you can't access it from the in-game menu anyway). Does *that* make sense?
Why not just remove ABS/TCS toggle from the in-game menu? From what i remember, the main menu control settings and the in-game menu control settings are stored in 2 different configuration files.
That would work, too.
OK, what both of you suggest makes sense, I think the ABS/TCS settings need to go on the "Start Game" menus, and off both the Control Options and In Game Control Options menus.
Well I went ahead and checked in the change I described above (data r166).
Lookin' good, thanks.