Spinning Replay FixIntroductionThis should have been fixed a very long time ago, but alas here we are now on the verge of 2023. As many of you may know the replay system in GTA san andreas was a big downgrade from the one in VC. No sparks and moving wheels for the bikes. Although it still functions, it has never looked as great as VC replays.
Getting the wheels to spin in replays has been a goal for many for a very long time. Although I had attempted it before I always got stuck because of multiple factors. Recently I came across
gta-reversed-modern, a reimplementation of SA that doesnt strafe too far away from the original source. The replay part had recently been implemented and this gave some fresh insight into what actually happens in SA
replays.
It turns out that the saving of the state of the wheels is only implemented for cars. For all other vehicle types, nothing similar is stored in the replays. When encountering a vehicle in a replay a simple check is done to see if it is a car. If it is, it then stores or retrieves the wheel data, wheel orientation and wheel rotation, to or from the replay.
To then implement the same thing for bikes requires us to implement such a routine into the code ourselves. This is exactly what I have been doing the last few days. First I implemented it directly into gta modern reversed, but this turned out to be a little
buggy. This didn't seem like a suitable choice because of the bugs and difficult redistribution. I would like to see some general adoption of this and so I implemented it using
Plugin SDK. The code is available on Github
here.
ResultsHere you can see a short clip of me driving an NRG in a replay demonstrating that both front and back wheels are spinning forwards and backwards. In addition, the front and back suspension also work properly.
Here is another comparison between old without fix and with the new fix on the same replay.
https://www.youtube.com/watch?v=TVWyH21dDYcCompatibility and BugsThe replays generated when using this fix are able to be played when the fix is not active. It would look exactly the same as before. Conversely, older replays are able to be played, but the wheels of bikes will most likely bug out. There is no actual bike wheel data so it tries to read whatever gibberish is present in the replay. Car wheels should function as normal, in both cases.
The fix should work for all bikes except the quad. A special fix has to be written for the quad. Let me know if any of the normal bikes give any issues.
I have not tested if it is compatible with freeplay or other .asi scripts but I foresee no problems there.
DownloadYou can download it
hereInstructionsPut the .asi script in the GAME_FOLDER/scripts folder and use your favourite .asi loader to load it. I recommend Silent's which you can find
here.
DisclaimerI am not responsible for any corrupt replays if you choose to use this fix.
ThanksThanks to Erney for doing some quick testing. I wish you happy stunting with this fix, may your stunts be large and your grinds long. Maybe we can fix sparks someday!