Author Topic: ReplayReader [SA]  (Read 11656 times)

0 Members and 1 Guest are viewing this topic.

Offline Reynard The Fox

  • Reynolds
  • Senior Member
  • Posts: 3291
    • View Profile
ReplayReader [SA]
« on: July 17, 2014, 06:33:45 AM »
Info

This all started out as a little project for me all the way back in 2008. I was determined to find a solution to the modding problem that plagues San Andreas. I tried all sorts of things like trying to make a replay speedometer, memory hacking and figuring out the replay format. A while back I found the replay template for 010editor made by Seemann. This really gave me a head start for reading out the replays. I'm not sure about the effectiveness of the program. For me it was just something I really wanted to make for a very long time follow your dreams.

Development

The program is written in Java. There is a great open-source chart library, called JFreeChart, that I used for the drawing of the plots. Initially I wanted to make this program in C++, but due to time constraints, and no prior experience with the language except for regular C, I abolished this idea. The GUI is just regular Java-swing.
If there is enough interest I will make the source public (after I commented the code though).

Analyzing Replays

Before I actually jump into the analyzing I just wanted to mention that this program does not give ANY guarantee that you can spot possible modifications.
So the different things you can view plots of are the coordinates, velocity*, speeds and acceleration. This can be done for every vehicle that occurs in the replay. Note that the speeds and acceleration plots are calculated by the program itself based on the XYZ-coordinates and were not in the replay.

(* The velocity values are read directly from the replay, however I have no idea what they mean just that they fluctuate in a nonsensical way.)

Download

Mediafire:
http://www.mediafire.com/download/m4jkjrgweuffh3r/ReplayReader_v1.0.rar

Just extract where ever you like and run the executable file.


Instructions

Open a replay and then select the vehicle for which you want to see the plots.


Bugs

Report any bugs you encounter in this thread.

Shout-outs
Rusch69, Artifex for sending me replays and helping out.

Have fun  :cc_detective:
« Last Edit: July 17, 2014, 06:37:08 AM by Over The Horizon Gaydar VEVO »

Offline hachi

  • Veteran Member
  • Posts: 2309
    • View Profile
Re: ReplayReader [SA]
« Reply #1 on: July 17, 2014, 06:53:43 AM »
best project

Offline imbaA

  • Posts: 473
  • I love rhinos...
    • View Profile
Re: ReplayReader [SA]
« Reply #2 on: July 17, 2014, 07:10:24 AM »
God damn it you must do this for VC too.

Offline Rusch69

  • Senior Member
  • Posts: 2990
    • View Profile
Re: ReplayReader [SA]
« Reply #3 on: July 17, 2014, 07:12:41 AM »
Pinned right away.

Unfortunately I don't have the time to check it out today, but I know this is gonna come in handy. Sadly this is way too late and modders will now still try to find some workaround. Anyway, still big props for having this made dude. I'm sure it'll be all way easier and has more ground to it now.

Offline MxZz.

  • Veteran Member
  • Posts: 5653
  • Nomad Union
    • View Profile
    • MY YT CHANNEL
Re: ReplayReader [SA]
« Reply #4 on: July 17, 2014, 07:22:55 AM »
Daaaaaaamn, did you finish that only now? Great release, such work  :wub:
« Last Edit: July 17, 2014, 07:24:54 AM by MxZz. »

Offline Blaze

  • USS Crew
  • *
  • Posts: 7698
    • View Profile
    • Bike Gallery
Re: ReplayReader [SA]
« Reply #5 on: July 17, 2014, 07:35:05 AM »
I don't play SA but this is definitely gonna help those who do. Any chance it could be ported to the VC engine? I'm not 100% on coding but arent III/VC/SA ran on the same engine/file system? Obviously it would require some changes but a VC version of this would be spectacular.

Good work man.

Offline Nagash

  • Posts: 23
  • I liek teh stuntz
    • View Profile
Re: ReplayReader [SA]
« Reply #6 on: July 17, 2014, 07:45:15 AM »
This will be useful on seeing if somebody used speedhack on his run-up, it's not useful on bump speeding from what I've checked

Offline Artifex

  • Artifex
  • Veteran Member
  • Posts: 3338
    • View Profile
Re: ReplayReader [SA]
« Reply #7 on: July 17, 2014, 08:27:39 AM »
Lekker gerben

Offline VaNilla

  • next week m9
  • Veteran Member
  • Posts: 3809
    • View Profile
    • YouTube
Re: ReplayReader [SA]
« Reply #8 on: July 17, 2014, 10:04:21 AM »
Nice job :D. Don't know how accurate this can be, given the calculation of the data, but it will be interesting to see how it is used.

Offline Minq

  • Aero Reapers
  • *
  • Posts: 503
    • View Profile
Re: ReplayReader [SA]
« Reply #9 on: July 17, 2014, 10:57:08 AM »
Aren't replays are faster and slower with low and high fps ? Also isn't the speed than also different ? Cool work,it even leads u to the java site ^^.  btw correct me if i'm wrong
« Last Edit: July 17, 2014, 11:04:09 AM by Minq »

Offline VaNilla

  • next week m9
  • Veteran Member
  • Posts: 3809
    • View Profile
    • YouTube
Re: ReplayReader [SA]
« Reply #10 on: July 17, 2014, 10:58:32 AM »
Aren't replays are faster and slower with low and high fps ? Also isn't the speed than also different ? Cool work,it even leads u to the java site ^^.

Yes, but the interpolation of the data within the replay file in game doesn't affect the output. Just tested this program out, awesome job :cheernutz:. Finally can prove some things, a little at least :ninja:.

EDIT: Tool crashes using some replays without running admin rights. Crashing quite consistently opening some WH replays, even with admin rights (which seems to work sometimes, but not always). However, some replays work upon opening them at first, and then crash at other times.

EDIT 2: Some replays report NUL values across all categories - http://gyazo.com/244af560447fbaa4fd70d74d01d2cb2c

EDIT 3: Velocity and Acceleration seem completely broken (as you mentioned). Here's what a constant speed grind looks like, replay beginning and ending on the grind (acelleration X values).



Really awesome co-ords tracking though. Works 100% for me (when it's not reporting NUL, regardless of the vehicle selected :P). Seems like there's a lot of bugs to sort out, perhaps inherent to the replay data itself, but good start :ajaja:.
« Last Edit: July 17, 2014, 11:54:02 AM by VaNilla »

Offline Reynard The Fox

  • Reynolds
  • Senior Member
  • Posts: 3291
    • View Profile
Re: ReplayReader [SA]
« Reply #11 on: July 17, 2014, 03:21:52 PM »
I guess those spikes are when the player is teleported? They really mess up the view of the data but I forgot to mention that it is possible to zoom in on a part of the graph. Th is way you can actually see that the value is not zero but a little more depending on the value ofcourse. I might be wrong though and thats why I encourage you to send me the replays so I can troubleshoot them. Send them via skypeso that I can easily ask you questions about the stunt also (I don't have  access to SA atm). Also why do you capitalise the word nul because you are confusing me with NULL which in this case will give an completely other output,  namely of no graph at all. The program crashing is likely due to weird replay blocks inside the replay that have never occured in my test replays and thus I wasnt able to debug them. I am very interested in those. Thanks for the help though.

Offline Diaz

  • Veteran Member
  • Posts: 3314
  • WH
    • View Profile
Re: ReplayReader [SA]
« Reply #12 on: July 17, 2014, 03:38:25 PM »
Amazing job, great effort, I just hope that the bugs can be sort out and it will work properly. It would be good to use it everytime with reliability when someone gets accused.

Offline VaNilla

  • next week m9
  • Veteran Member
  • Posts: 3809
    • View Profile
    • YouTube
Re: ReplayReader [SA]
« Reply #13 on: July 17, 2014, 07:56:42 PM »
I guess those spikes are when the player is teleported? They really mess up the view of the data but I forgot to mention that it is possible to zoom in on a part of the graph. Th is way you can actually see that the value is not zero but a little more depending on the value ofcourse. I might be wrong though and thats why I encourage you to send me the replays so I can troubleshoot them. Send them via skypeso that I can easily ask you questions about the stunt also (I don't have  access to SA atm). Also why do you capitalise the word nul because you are confusing me with NULL which in this case will give an completely other output,  namely of no graph at all. The program crashing is likely due to weird replay blocks inside the replay that have never occured in my test replays and thus I wasnt able to debug them. I am very interested in those. Thanks for the help though.

NULL is what I meant. The spikes were simply random, no teleporting occurred. Straight grind, beginning and ending on the rail. I no longer have the specific replay, this was just a quick test of accuracy as to the velocity. The crashing happened with a bunch of different replays I've tested from people, maybe I'll send some soon :P.

Offline NumeRo

  • Veteran Member
  • Posts: 1277
    • View Profile
Re: ReplayReader [SA]
« Reply #14 on: July 17, 2014, 11:10:27 PM »
this will be helpful :jajaja:

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal