Author Topic: Replay logging  (Read 7529 times)

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3621
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #30 on: February 07, 2013, 09:50:16 PM »
It's your Z138 winning vette replay
There's a General Custer for every urban tribe

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #31 on: February 07, 2013, 10:05:37 PM »
It's your Z138 winning vette replay

Yeah, it would fit in length and car. But the track is not enough p.s. ;D

(and I reached powergear a bit later)
« Last Edit: February 07, 2013, 10:10:28 PM by CTG »

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #32 on: February 07, 2013, 10:33:26 PM »
Shipwreck? (tricky turns by Gutix, that's a legendary replay - was it really 6 years ago?!?)

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #33 on: February 07, 2013, 10:53:29 PM »
Shipwreck? (tricky turns by Gutix, that's a legendary replay - was it really 6 years ago?!?)

Yes, it is. :D

dstien

  • Moderator
  • Stunts Master
  • *****
  • Posts: 160
    • View Profile
    • Stunts Tools
Re: Replay logging
« Reply #34 on: February 08, 2013, 02:12:16 AM »
Teaser.
Nice-o-rama! But please don't tell me you extracted that data set manually...?

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #35 on: February 08, 2013, 11:45:21 AM »
But there are some more clues ;)

What kind of clues? Except the big one: how could you... ;D

Duplode

  • Moderator
  • Considering trying out spam
  • *****
  • Posts: 3425
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: Replay logging
« Reply #36 on: February 08, 2013, 09:01:41 PM »
Shipwreck? (tricky turns by Gutix, that's a legendary replay - was it really 6 years ago?!?)

Now you can check it  :) Be sure to watch in fullscreen, you won't see much otherwise.

http://www.youtube.com/watch?v=Dwnej8PUsjg&hd=1

Nice-o-rama! But please don't tell me you extracted that data set manually...?

Well, I said the logging process sucks, but it doesn't suck that much  :D Later I will post technical notes to satisfy your curiosity and CTG's.

Friker

  • Otto's Student
  • **
  • Posts: 385
    • View Profile
Re: Replay logging
« Reply #37 on: February 08, 2013, 09:05:34 PM »
Shipwreck? (tricky turns by Gutix, that's a legendary replay - was it really 6 years ago?!?)

Now you can check it  :) Be sure to watch in fullscreen, you won't see much otherwise.

http://www.youtube.com/watch?v=Dwnej8PUsjg&hd=1

WHAT THE ...! hmm.. next age of stunts is coming? :)

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20046
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #38 on: February 08, 2013, 09:38:57 PM »
WHAT THE ...!

Exactly the same feeling here...

alanrotoi

  • Having only spam addict friends
  • ********
  • Posts: 3982
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: Replay logging
« Reply #39 on: February 08, 2013, 09:54:45 PM »
stallin nice!  ;D

BonzaiJoe

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 5081
    • View Profile
    • Purple
Re: Replay logging
« Reply #40 on: February 08, 2013, 10:02:22 PM »
Finally I understand this replay which is, in my opinion, one of the best there is, and definitely the best power gear replay ever.
Very impressed by the bird's eye animation!
But we can't be quite sure.


dreadnaut

  • Helen`s Lover
  • **
  • Posts: 615
    • View Profile
    • chezDreadnaut
Re: Replay logging
« Reply #41 on: February 08, 2013, 11:30:31 PM »
Well, I said the logging process sucks, but it doesn't suck that much  :D Later I will post technical notes to satisfy your curiosity and CTG's.

You should hurry, 'cause my curiosity left a bit ago with a serious look on its face, saying it was going to get some important information in Brasil :D

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3621
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #42 on: February 08, 2013, 11:45:53 PM »
This is amazing, Dup!! I guess increasing car size and putting some kind of trail shouldn't be that hard now, right?

You rock!
There's a General Custer for every urban tribe

Duplode

  • Moderator
  • Considering trying out spam
  • *****
  • Posts: 3425
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: Replay logging
« Reply #43 on: February 09, 2013, 06:22:00 AM »
As promised, the technical notes (with an answer to Chulk's question included).

1. GETTING HOLD OF THE COORDINATES

The zip file attached to this post contains instructions on how to extract the coordinates for those who wish to try it at home, as well as samples of what the program for processing the raw scanmem dump and the required special-purpose dosbox.conf might look like. The procedure is somewhat arcane, Linux-centric (for one, you'd have to find something to replace scanmem in Windows) and has a number of obvious shortcomings - e.g., it requires us to play the lap in-game in real time; it makes it hard to get the corresponding height values; it misses frames if the car stops completely during the replay, and so forth. I will welcome any suggestions of improvements and/or better tools.

2. DRAWING MAPS AND PATHS

A few words should be added on the other half of the demo; that is, the rendering of the animation. The idea of tracing lap paths only came as an afterthought in the context of my attempt to write a track viewer using the Diagrams EDSL. That viewer isn't meant for convenient embedding in Stunts sites like those by dreadnaut and Oscar; rather, I envisage a tool for preparing annotated track maps with minimal fuss. Anyway, Diagrams has, among other things, basic support for animations; i.e., given the proper instructions it can produce PNG frames, which in turn can be made into a video through something like ffmpeg. The rest follows naturally.

The comments above segue nicely into...

I guess increasing car size and putting some kind of trail shouldn't be that hard now, right?

Indeed, that is entirely trivial by now. In fact, I actually reduced the car size for the video on purpose, to give a better sense of scale and speed. Here you have a single-frame render implementing both of your suggestions (the cars are separated by 100 frames = 5s). Note that the link points to a SVG file. The map is fully vectorial, which makes it much easier to customize - arbitrary resizing of the output, scaling adjustments to the track pieces, palette changes, and so forth.

The tools described above likely won't be convenient to use for a while. The vectorial track viewer is still very crude, and needs a lot of things to become a convenient application (as of now it doesn't even have a command line interface, let alone graphical). I will probably upload the code somewhere once it is a little more fleshed out. As for the replay logging procedure, it requires fooling around with debugging tools, and I guess there will be no way around that until there is an independent reimplementation of the game engine. In any case, if any of you finds an use to replay traces and annotated maps in the vein of these demos I will be glad to prepare them on demand  :)
« Last Edit: February 09, 2013, 05:04:37 PM by Duplode »

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3621
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #44 on: February 09, 2013, 07:53:14 AM »
It would be so cool to see the podium replays and compare lines!! This tool is great (though I haven't got the faintest idea on how to use it)!!
There's a General Custer for every urban tribe