Author Topic: Replay logging  (Read 6995 times)

Duplode

  • Moderator
  • Getting intrested in spam
  • *****
  • Posts: 3397
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: Replay logging
« Reply #15 on: February 06, 2013, 02:07:11 AM »
Dstien and co.: how hard would be doing that today given what we already know? I believe we already have located where the coordinates are stored in the ASM, but I am too clueless about debuggers and other low-level stuff to know how far along the way that takes us.

Should just be a matter of getting the coordinates from the player matrix for each tick.

For the moment, I found a way to do that using scanmem (a memory inspector running in the host system), with our annotated ASM from 2010 as guidance. As you can imagine, the mechanics of the procedure I devised suck, so any low-hanging alternative would still please me  :)

Would be neat to overlay the resulting paths on a track map in order to compare racing lines.

Leak from the Southern Cross labs: I'm working on it as we speak  ;)

Replays loaded from Main screen -> Options are fully processed to the end before the world is rendered, so going from there with a breakpoint on file reads (DOS interrupt) would probably be sensible.

Well spotted, I had kinda forgotten that.
« Last Edit: February 06, 2013, 02:15:07 AM by Duplode »

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3620
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #16 on: February 06, 2013, 03:53:36 AM »
Would be neat to overlay the resulting paths on a track map in order to compare racing lines.
That would be so cool!
There's a General Custer for every urban tribe

dreadnaut

  • Helen`s Lover
  • **
  • Posts: 612
    • View Profile
    • chezDreadnaut
Re: Replay logging
« Reply #17 on: February 06, 2013, 02:49:48 PM »
Would be neat to overlay the resulting paths on a track map in order to compare racing lines.
That would be so cool!

And now we also need a 3d map viewer to overlay these racing lines on the track :)

(mmmh, just when I was thinking "oh, I should learn WebGL"...)

Duplode

  • Moderator
  • Getting intrested in spam
  • *****
  • Posts: 3397
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: Replay logging
« Reply #18 on: February 07, 2013, 05:00:17 AM »
Would be neat to overlay the resulting paths on a track map in order to compare racing lines.
That would be so cool!

Teaser. Can any of you guess the replay just by looking at the data?

« Last Edit: February 07, 2013, 05:02:58 AM by Duplode »

zaqrack

  • Administrator
  • Addicted to spam
  • *****
  • Posts: 4527
    • View Profile
    • ZakStunts
Re: Replay logging
« Reply #19 on: February 07, 2013, 05:46:38 AM »
I can't but am fascinated by the graphs :)

my guess is it is an Indy powergear replay - the blue line on the bottom graph seems like speed.
« Last Edit: February 07, 2013, 05:49:02 AM by zaqrack »

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3620
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #20 on: February 07, 2013, 06:30:34 AM »
I can't but am fascinated by the graphs :)

my guess is it is an Indy powergear replay - the blue line on the bottom graph seems like speed.
It says "column D" so it's probably "Speed". I also thought about a PG track... and that's as far as I can guess.
There's a General Custer for every urban tribe

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20048
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #21 on: February 07, 2013, 08:57:20 AM »
1:1x.xx long PG track, hmmmm... give some hints about the graph, please!

(the first one is a raw map of the track, am i right?)

BonzaiJoe

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 5074
    • View Profile
    • Purple
Re: Replay logging
« Reply #22 on: February 07, 2013, 09:40:02 AM »
The curve on the top of the top graph looks like a classic power gear slide turn.
But we can't be quite sure.


Friker

  • Otto's Student
  • **
  • Posts: 385
    • View Profile
Re: Replay logging
« Reply #23 on: February 07, 2013, 04:00:45 PM »
wow, that is fascinating :) is there a description of main algorithms and data structures of stunts? (i know about some work on track elements but car and car collision - also the reason of PG (overflowing/round presicion of floats - but some line of pseudocode would be nice :) ))

btw - that is strange - y is axe of height?

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3620
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #24 on: February 07, 2013, 04:22:50 PM »
1:1x.xx long
Where did you get that from?

IF first graph is a raw map of the line driven (not the track as we often don't use it that much), it resembles the line of a default 2x secs lap. Straight, 2 left turns to complete about 180º then straight again, turn 180º again and finish
There's a General Custer for every urban tribe

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20048
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #25 on: February 07, 2013, 04:31:31 PM »
1:1x.xx long
Where did you get that from?

Speculation from the X axis of the second graph: the last point is at ~1450-1500 units. But only if it's a time scale... :D

Duplode

  • Moderator
  • Getting intrested in spam
  • *****
  • Posts: 3397
  • Through the astral door - to soar
    • View Profile
    • The Southern Cross Stunts Trophy
Re: Replay logging
« Reply #26 on: February 07, 2013, 08:13:52 PM »
Nice guesses so far; CTG in particular is hot on the trail (his interpretation of both plots is correct). But there are some more clues ;)

is there a description of main algorithms and data structures of stunts? (i know about some work on track elements but car and car collision - also the reason of PG (overflowing/round presicion of floats - but some line of pseudocode would be nice :) ))

There is no neat documentation that I know of, though the assets of the restunts project include a substantial amount of unsystematically annotated assembly. (Writing notes on some of that stuff, specially on track building, is in my TODO list for almost three years now...)

btw - that is strange - y is axe of height?

Yup, y is height (cf. 3D coordinates in CarBlaster and stressed). Naturally, There are y values along the x and z ones; I didn't log them thus far due to minor technical annoyances.

alanrotoi

  • Having only spam addict friends
  • ********
  • Posts: 3982
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: Replay logging
« Reply #27 on: February 07, 2013, 08:20:37 PM »
Yes, I guess it's an excel chart!  :-[

Chulk

  • Trying out spam for the first time
  • ********
  • Posts: 3620
  • "Do, or do not. There is no try."
    • View Profile
Re: Replay logging
« Reply #28 on: February 07, 2013, 09:14:14 PM »
Yes, I guess it's an excel chart!  :-[
Explanation is there on facebook for you ;)
There's a General Custer for every urban tribe

CTG

  • Spam, egg, spam, spam, bacon and spam
  • *
  • Posts: 20048
  • Psycho
    • View Profile
    • UnskilledStunts Championship
Re: Replay logging
« Reply #29 on: February 07, 2013, 09:47:32 PM »
Corvette or GTO (30 mph after ~2.1 seconds, Indy's acceleration is a lot better)